<table><tr><td style="">ahmadsamir created this revision.<br />ahmadsamir added reviewers: Frameworks, dfaure.<br />Herald added a project: Frameworks.<br />ahmadsamir requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D23708">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>In copyNextFile() if all files have been skipped QList::erase() will<br />
return end() iterator, accessing the element latter denotes leads<br />
to a crash; guard against that possibility.</p>

<p>BUG: 408350<br />
FIXED-IN: 5.62.0</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>kioclient5 copy SOME_DIR_WITH_FILES DEST<br />
kioclient5 copy --interactive SOME_DIR_WITH_FILES DEST</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">In the "folder already exists" dialog enable "Apply to all" then hit "Skip"</li>
<li class="remarkup-list-item">Without the patch you'd get a segmentation fault, with the patch the copy should finish as expected</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>BRANCH</strong><div><div>ahmad/copyjob (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D23708">https://phabricator.kde.org/D23708</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/core/copyjob.cpp</div></div></div><br /><div><strong>To: </strong>ahmadsamir, Frameworks, dfaure<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns<br /></div>