]> granicus.if.org Git - llvm/commit
[llvm-readobj] Fix COFF RVA table dumping bug
authorReid Kleckner <rnk@google.com>
Fri, 23 Jun 2017 22:12:11 +0000 (22:12 +0000)
committerReid Kleckner <rnk@google.com>
Fri, 23 Jun 2017 22:12:11 +0000 (22:12 +0000)
commitd24edfe46ae787d69661cf35dffa159e56a85389
tree3e1d0212460acad78403566407a2539fd1f91663
parentbebeb6f17e2d9f187285d426738069590e40c679
[llvm-readobj] Fix COFF RVA table dumping bug

We would return an error in getVaPtr if the RVA table being dumped was
the last data in the .rdata section. Avoid the issue by subtracting one
from the offset and adding it back to get an open interval again.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306171 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-readobj/Inputs/coff-load-config-data-end.exe [new file with mode: 0644]
test/tools/llvm-readobj/coff-load-config.test
tools/llvm-readobj/COFFDumper.cpp