diff options
| author | George Rimar <grimar@accesssoftek.com> | 2019-09-25 10:14:50 +0000 |
|---|---|---|
| committer | George Rimar <grimar@accesssoftek.com> | 2019-09-25 10:14:50 +0000 |
| commit | 5b9a408113ee2e3c25d51b13cbe6e6281401e25a (patch) | |
| tree | 3f248122cf4e903f7dbe425cca7cdb7d6b373ea9 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 1b16b94eef50b952c13fbd601203ae698a8ce545 (diff) | |
[llvm-readobj] - Don't crash when dumping .stack_sizes and unable to find a relocation resolver.
The crash might happen when we have either a broken or unsupported object
and trying to resolve relocations when dumping the .stack_sizes section.
For the test case I used a 32-bits ELF header and a 64-bit relocation.
In this case a null pointer is returned by the code instead of the relocation
resolver function and then we crash.
Differential revision: https://reviews.llvm.org/D67962
llvm-svn: 372838
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
