tools: fix heap-buffer-overrun detected via ASAN
authorSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 14 Apr 2014 16:38:25 +0000 (16:38 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 14 Apr 2014 16:38:25 +0000 (16:38 +0000)
commitadc90c9d6d1f6cf13a374399f3a3c574ddcbd8b5
tree841263080361129bd82b89f8a398588e13877313
parent6ede5d24b837b24c6e97cee84ecc6c9990568ef4
tools: fix heap-buffer-overrun detected via ASAN

Once the auxiliary fields relating to the filename have been inspected, any
following auxiliary fields need not be visited as they have been consumed (the
following fields comprise the filepath as a single unit).

Adjust the test to catch this even if ASAN is not enabled.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206190 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objdump/coff-file.test
tools/llvm-objdump/llvm-objdump.cpp