diff options
| author | Zachary Turner <zturner@google.com> | 2016-05-25 03:53:16 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2016-05-25 03:53:16 +0000 |
| commit | c59261ca379981d803dfe837bbcc0a31aac4a96d (patch) | |
| tree | e6d4e6b2427fd99bdc615d923c21245588aa2a33 /llvm/lib/DebugInfo/PDB | |
| parent | 82dd8bae7101b98b3dc0957b682e8774914f5287 (diff) | |
| download | bcm5719-llvm-c59261ca379981d803dfe837bbcc0a31aac4a96d.tar.gz bcm5719-llvm-c59261ca379981d803dfe837bbcc0a31aac4a96d.zip | |
[llvm-pdbdump] Stream 0 isn't actually the MSF superblock.
Oddly enough, I realized we don't actually know what stream
0 is (if anything).
llvm-svn: 270655
Diffstat (limited to 'llvm/lib/DebugInfo/PDB')
| -rw-r--r-- | llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp b/llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp index a8143a946e2..9da9c817780 100644 --- a/llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp +++ b/llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp @@ -124,6 +124,7 @@ StringRef PDBFile::getBlockData(uint32_t BlockIndex, uint32_t NumBytes) const { Error PDBFile::parseFileHeaders() { std::error_code EC; MemoryBufferRef BufferRef = *Context->Buffer; + // Make sure the file is sufficiently large to hold a super block. // Do this before attempting to read the super block. if (BufferRef.getBufferSize() < sizeof(SuperBlock)) |

