<table><tr><td style="">iasensio edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-2mkajsxctexsb5y/">(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 <span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"><br />
</span>`k_queryAttributes()` with the symlink path<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">, where the `listxattr` syscall <br />
returns `size==-1` and `errno==ENOENT` (No such file or directory)</span>.<br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">There, the `listxattr` syscall returns `size==-1` and `errno==ENOENT` (No such file or directory), which</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">This case</span> was not covered before, and provoked a segfault on `QByteArray`. <span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"><br />
</span>Full traceback on: https://bugs.kde.org/show_bug.cgi?id=414227<br />
<br />
It might be also a good idea to <span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">always </span>protect the functio<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">n in any other cases</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">n</span> whe<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">re</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">n</span> `size==-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, bruns<br /><strong>Cc: </strong>bruns, kde-frameworks-devel, Baloo, hurikhan77, lots0logs, LeGast00n, fbampaloukas, GB_2, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, abrahams<br /></div>