<table><tr><td style="">iasensio created this revision.<br />iasensio added a reviewer: astippich.<br />Herald added projects: Frameworks, Baloo.<br />Herald added subscribers: Baloo, kde-frameworks-devel.<br />iasensio 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/D25414">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>When requesting metadata on a dangling symlink, the framestack ends up calling <tt style="background: #ebebeb; font-size: 13px;">k_queryAttributes</tt> with the symlink path.<br />
There, the <tt style="background: #ebebeb; font-size: 13px;">listxattr</tt> syscall returns <tt style="background: #ebebeb; font-size: 13px;">size=-1</tt> and <tt style="background: #ebebeb; font-size: 13px;">errno=ENOENT</tt> (2 No such file or directory), which was not covered before, and provoking a segfault on <tt style="background: #ebebeb; font-size: 13px;">QByteArray</tt>. Full traceback on: <a href="https://bugs.kde.org/show_bug.cgi?id=414227" class="remarkup-link" target="_blank" rel="noreferrer">https://bugs.kde.org/show_bug.cgi?id=414227</a></p>
<p>It might be also a good idea to protect the function in any other cases where <tt style="background: #ebebeb; font-size: 13px;">size=-1</tt></p>
<p>BUG: 414227</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>On dolphin, with panel information open, hover over a dangling symlink</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R286 KFileMetaData</div></div></div><br /><div><strong>BRANCH</strong><div><div>fix_symlink</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D25414">https://phabricator.kde.org/D25414</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/xattr_p.h</div></div></div><br /><div><strong>To: </strong>iasensio, astippich<br /><strong>Cc: </strong>kde-frameworks-devel, Baloo, hurikhan77, lots0logs, LeGast00n, fbampaloukas, GB_2, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams<br /></div>