]> granicus.if.org Git - llvm/commit
[PDB] Add an additional test for BinaryStreamRef.
authorZachary Turner <zturner@google.com>
Wed, 1 Mar 2017 01:04:16 +0000 (01:04 +0000)
committerZachary Turner <zturner@google.com>
Wed, 1 Mar 2017 01:04:16 +0000 (01:04 +0000)
commit00d9a548e882278f6fcbfda638d97dd4bad55e9f
tree4a096573d24e2e90b0fb3d9b3713dde136718a5f
parent854f9fd1475162ab49cae79304b6f87765b642dc
[PDB] Add an additional test for BinaryStreamRef.

A bug was uncovered where if you have a StreamRef whose ViewOffset
is > 0, then when you call readLongestContiguousChunk it will
succeed even when it shouldn't, and it always return you a
buffer that was taken as if the ViewOffset was 0.

Fixed this bug and added a test for it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296556 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/MSF/BinaryStreamRef.h
unittests/DebugInfo/PDB/BinaryStreamTest.cpp