make llvm-dwarfdump a little more resilient when parsing .debug_loc
authorAdrian Prantl <aprantl@apple.com>
Tue, 11 Feb 2014 21:22:53 +0000 (21:22 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 11 Feb 2014 21:22:53 +0000 (21:22 +0000)
commitd5468bf381a8e2c18c50f7e8e7804ad3e04ce66c
treee96a15c1cc7b1626a72f061a1ef91923498c0d4b
parent69bc4ddf101663a0b4f23dec25a6f2a2a76699f6
make llvm-dwarfdump a little more resilient when parsing .debug_loc
sections. The call to data.getUnsigned(&Offset, AddressSize) only
increments Offset if the read succeeds, which will result in an infinite
loop.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201179 91177308-0d34-0410-b5e6-96231b3b80d8
lib/DebugInfo/DWARFDebugLoc.cpp