This is an archive of the discontinued LLVM Phabricator instance.

[python] Fix getting section contents.
ClosedPublic

Authored by wanders on Apr 23 2014, 1:43 PM.

Details

Summary
The returnvalue was handled as c_char_p which ment that ctypes
handled it as a NUL-terminated string making it cut the contents
at first NUL (or even worse - overrunning the buffer if it doesn't
contain a NUL).

Diff Detail

Event Timeline

wanders updated this revision to Diff 8780.Apr 23 2014, 1:43 PM
wanders retitled this revision from to [python] Fix getting section contents. .
wanders updated this object.
wanders edited the test plan for this revision. (Show Details)
wanders added a reviewer: indygreg.
wanders added a subscriber: Unknown Object (MLST).
indygreg accepted this revision.Apr 24 2014, 3:46 PM
indygreg edited edge metadata.

LGTM

This revision is now accepted and ready to land.Apr 24 2014, 3:46 PM
wanders closed this revision.May 19 2014, 7:23 AM
wanders updated this revision to Diff 9542.

Closed by commit rL207199 (authored by andersg).