[PDB] Fix out-of-bounds acces when sorting GSI buckets
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>
Fri, 10 Jul 2020 14:38:29 +0000 (10:38 -0400)
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>
Fri, 10 Jul 2020 14:55:27 +0000 (10:55 -0400)
commit23cd70d71c10dc0b31ac37a733349f9de2e9b84c
tree0e77a6d62666396b39868a25dbd58a765384686d
parent5fea54bc05a71e81e843fd9284d258cd38d7fe23
[PDB] Fix out-of-bounds acces when sorting GSI buckets

When building in Debug on Windows-MSVC after b7402edce315, a lot of tests were failing because we were dereferencing an element past the end of HashRecords. This happened towards the end of the table, in unused slots.
llvm/lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp