Page MenuHomePhabricator

Eina_Xattr: fix memory corruption

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



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

Diff Detail

rEFL core/efl
Automatic diff as part of commit; lint not applicable.
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.