Page MenuHomePhabricator

Eina_Xattr: fix memory corruption
ClosedPublic

Authored by artem.popov on Mar 23 2017, 7:09 AM.

Details

Summary

There should be reallocation +1 (for last '\0') and also
checking >0, not !=0, because of getxattr can return -1 in case of error
@fix

Diff Detail

Repository
rEFL core/efl
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
artem.popov created this revision.Mar 23 2017, 7:09 AM
NikaWhite accepted this revision.Mar 23 2017, 7:18 AM
This revision is now accepted and ready to land.Mar 23 2017, 7:18 AM
artem.popov edited the summary of this revision. (Show Details)Mar 23 2017, 7:26 AM
artem.popov retitled this revision from Eina_Xattr: fix memory corruption @fix to Eina_Xattr: fix memory corruption.
This revision was automatically updated to reflect the committed changes.