diff options
author | Sim Sun <sunsj1231@gmail.com> | 2020-08-14 21:36:30 -0700 |
---|---|---|
committer | Mark Mentovai <mark@chromium.org> | 2020-08-15 05:28:45 +0000 |
commit | 62d927241962ad40f3bca9fa3841edf9d7a56b5f (patch) | |
tree | b4015792a6ae8bfe841acfea0a6821fcc643afcc /src/common/tests/file_utils.h | |
parent | processor: subtract 1 from return pointers while scanning (diff) | |
download | breakpad-62d927241962ad40f3bca9fa3841edf9d7a56b5f.tar.xz |
linux: Fix segfault when there is no section header in ELF file
Some vendor library doesn't contain the section header. It causes
segmentation fault in `FindElfClassSection`.
> e_shoff:
> This member holds the section header table's file offset in bytes.
> If the file has no section header table this member holds zero.
Change-Id: Id98d6ff3bd16af4541deb5a55a8fad2fa74eda23
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/2354427
Reviewed-by: Mark Mentovai <mark@chromium.org>
Diffstat (limited to 'src/common/tests/file_utils.h')
0 files changed, 0 insertions, 0 deletions