This is an archive of the discontinued LLVM Phabricator instance.

Change the /proc/<pid>/maps to not assert on incorrect input
ClosedPublic

Authored by tberghammer on Jul 11 2016, 4:24 AM.

Details

Summary

Change the /proc/<pid>/maps to not assert on incorrect input

If LLDB reads some incorrect input form /proc/<pid>/maps then it
should report an error instead of assert-ing as we don't want to
crash in case of an incorrect maps file.

Diff Detail

Repository
rL LLVM

Event Timeline

tberghammer retitled this revision from to Change the /proc/<pid>/maps to not assert on incorrect input.
tberghammer updated this object.
tberghammer added a reviewer: labath.
tberghammer added a subscriber: lldb-commits.
labath edited edge metadata.Jul 11 2016, 6:27 AM

Given that this "file" comes straight from the kernel, i don't think asserting here is necessarily a bad thing, but I don't really care either way...

This revision was automatically updated to reflect the committed changes.