[llvm-pdbdump] Correctly read data larger than a block
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 28 Apr 2016 23:24:23 +0000 (23:24 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 28 Apr 2016 23:24:23 +0000 (23:24 +0000)
commit5baa2bc2e146ebf09a0c9d5bdaf82ab6d01144bc
tree74028d51242634606eb4059f02734710c3389df2
parent0ba164bbcba92404f2f8df7ee4129f2b059776a1
[llvm-pdbdump] Correctly read data larger than a block

A bug was introduced when the code was refactored which resulted in a
bad memory access.

This fixes PR27565.

llvm-svn: 267953
llvm/lib/DebugInfo/PDB/Raw/PDBStream.cpp
llvm/test/DebugInfo/PDB/Inputs/big-read.pdb [new file with mode: 0644]
llvm/test/DebugInfo/PDB/pdbdump-headers.test