llvm-project/llvm/lib/DebugInfo/CodeView
Zachary Turner 2ed2aa75bf [pdb] Fix an uninitialized read, and add a test for it.
This was originally reported in pr32249, uncovered by PTVS-Studio.
There was no code coverage for this path because it was
difficult to construct odd-case PDB files that were not generated
by cl.

Now that we can write construct minimal PDB files from YAML,
it's easy to construct fragments that generate whatever we want.

In this patch I add a test that creates 2 type records.  One
with a unique name, and one without.  I verify that we can go
from PDB to Yaml with no errors.  In a future patch I'd like
to add something like llvm-pdbdump raw -lookup-type that will
just dump one record and nothing else, which should make it
a bit cleaner to find this kind of thing.

llvm-svn: 298017
2017-03-17 00:15:55 +00:00
..
CMakeLists.txt [llvm-pdbdump] Add support for dumping symbols from Yaml -> PDB. 2017-03-13 14:57:45 +00:00
CVSymbolVisitor.cpp [Support] Move Stream library from MSF -> Support. 2017-03-02 20:52:51 +00:00
CVTypeDumper.cpp [Support] Move Stream library from MSF -> Support. 2017-03-02 20:52:51 +00:00
CVTypeVisitor.cpp [Support] Move Stream library from MSF -> Support. 2017-03-02 20:52:51 +00:00
CodeViewError.cpp [pdb] Add the ability to resolve TypeServer PDBs. 2017-02-16 23:35:45 +00:00
CodeViewRecordIO.cpp [Support] Move Stream library from MSF -> Support. 2017-03-02 20:52:51 +00:00
EnumTables.cpp Resubmit "Write the TPI stream from a PDB to Yaml." 2016-08-18 16:49:29 +00:00
Formatters.cpp Properly parse the TypeServer2 record. 2017-02-03 21:22:27 +00:00
LLVMBuild.txt [msf] Resubmit "Rename Msf -> MSF". 2016-07-29 20:56:36 +00:00
Line.cpp
ModuleSubstream.cpp [Support] Move Stream library from MSF -> Support. 2017-03-02 20:52:51 +00:00
ModuleSubstreamVisitor.cpp [Support] Move Stream library from MSF -> Support. 2017-03-02 20:52:51 +00:00
RecordSerialization.cpp [Support] Move Stream library from MSF -> Support. 2017-03-02 20:52:51 +00:00
SymbolDumper.cpp [PDB] It is not an error getting the "Invalid" Annotation opcode. 2017-03-17 00:15:27 +00:00
SymbolRecordMapping.cpp Resubmit "[CodeView] Hook CodeViewRecordIO for reading/writing symbols." 2016-12-16 22:48:14 +00:00
SymbolSerializer.cpp [llvm-pdbdump] Add support for dumping symbols from Yaml -> PDB. 2017-03-13 14:57:45 +00:00
TypeDatabase.cpp [pdb] Add a new command for analyzing hash collisions. 2017-02-01 18:30:22 +00:00
TypeDatabaseVisitor.cpp [CodeView] Add TypeDatabase class. 2017-01-11 00:35:08 +00:00
TypeDumpVisitor.cpp [Support] Move Stream library from MSF -> Support. 2017-03-02 20:52:51 +00:00
TypeRecord.cpp [Support] Move Stream library from MSF -> Support. 2017-03-02 20:52:51 +00:00
TypeRecordMapping.cpp [pdb] Fix an uninitialized read, and add a test for it. 2017-03-17 00:15:55 +00:00
TypeSerializer.cpp [Support] Move Stream library from MSF -> Support. 2017-03-02 20:52:51 +00:00
TypeStreamMerger.cpp [pdb] Add the ability to resolve TypeServer PDBs. 2017-02-16 23:35:45 +00:00