aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Serialization/ModuleManager.cpp
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2015-05-19 21:54:32 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2015-05-19 21:54:32 +0000
commit7a18c0612802b7380aca8f90cf3f342cc3df9aea (patch)
tree22d3e689ac470d79b6796c526e4c2bd51e071646 /clang/lib/Serialization/ModuleManager.cpp
parentb868ec1c2f4e36033fd67f99a76d4d9d0d68da46 (diff)
downloadllvm-7a18c0612802b7380aca8f90cf3f342cc3df9aea.zip
llvm-7a18c0612802b7380aca8f90cf3f342cc3df9aea.tar.gz
llvm-7a18c0612802b7380aca8f90cf3f342cc3df9aea.tar.bz2
[DWARF parser] Make DWARF parser more robust against missing compile/type units.
DWARF standard claims that each compilation/type unit header in .debug_info/.debug_types section must be followed by corresponding compile/type unit DIE, possibly with its children. Two situations are possible: * compile/type unit DIE is missing because DWARF producer failed to emit it. * DWARF parser failed to parse unit DIE correctly, for instance if it contains some unsupported attributes (see r237721, for instance). In either of these cases, the library, and the tools that use it (llvm-dwarfdump, llvm-symbolizer) should not crash. Insert appropriate checks to protect against this. llvm-svn: 237733
Diffstat (limited to 'clang/lib/Serialization/ModuleManager.cpp')
0 files changed, 0 insertions, 0 deletions