summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2016-10-07 08:51:57 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2016-10-07 08:51:57 +0000
commitb7aec331255e7be93652dfad94e817fd8b7be0b8 (patch)
tree970bfe15c79ce9a95934faa0e36e61c5797bf9c2 /clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
parentd9edde4ae2cd3e5350c3a981f6715de9f2457196 (diff)
downloadbcm5719-llvm-b7aec331255e7be93652dfad94e817fd8b7be0b8.tar.gz
bcm5719-llvm-b7aec331255e7be93652dfad94e817fd8b7be0b8.zip
[ELF] - Do not crash when unable to parse ELF object file.
createELFObj() may call error(...), for example when file is too short. In that case header is not set and following line lead to crash: EMachine = ELFObj.getHeader()->e_machine; Patch fixes the issue. Differential revision: https://reviews.llvm.org/D25233 llvm-svn: 283532
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud