Add mmap safety check to the elf file parser
Summary: mmap() calls are a bit dangerous, in that the backing files can be corrupted or unreadable. Ideally, we would just migrate this whole symbolizer to use ::pread(), but in the meantime, just making sure that the last byte of the mmap'd file is readable seems to get rid of the crashes we've been seeing. Reviewed By: ccdavid Differential Revision: D24505608 fbshipit-source-id: e7bb3ea4d34f7b79f5a1cbb593a195f836d85ec7
Showing
Please register or sign in to comment