<table><tr><td style="">iasensio edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-3h6mbambih2vgs3/">(Show Details)</a>
</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>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;">When requesting metadata on a dangling symlink, the framestack ends up calling `k_queryAttributes<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">()</span>` with the symlink path.<br />
There, the `listxattr` syscall returns `size=<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">=</span>-1` and `errno<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">=</span>=ENOENT` (<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">2 No</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">No</span> such file or directory), which was not covered before, and provok<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">ing</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">ed</span> a segfault on `QByteArray`. Full traceback on: https://bugs.kde.org/show_bug.cgi?id=414227<br />
<br />
It might be also a good idea to protect the function in any other cases where `size=<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">=</span>-1`<div style="padding: 8px 0;">...</div></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R286 KFileMetaData</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>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>