mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-13 20:39:41 -07:00
make tpi hash parsing gracefully exit on empty input data
This commit is contained in:
1 parent
90d9f3b7c2
commit
2fff68cfcf
1 file changed
+1
-1
+1
-1
@@ -310,7 +310,7 @@ pdb_tpi_hash_from_data(Arena *arena, PDB_Strtbl *strtbl, PDB_TpiParsed *tpi, Str
|
||||
|
||||
U32 stride = tpi->hash_key_size;
|
||||
U32 bucket_count = tpi->hash_bucket_count;
|
||||
if (1 <= stride && stride <= 8 && bucket_count > 0){
|
||||
if (1 <= stride && stride <= 8 && bucket_count > 0 && data.str != 0){
|
||||
|
||||
// allocate buckets
|
||||
PDB_TpiHashBlock **buckets = push_array(arena, PDB_TpiHashBlock*, bucket_count);
|
||||
|
||||
Reference in new issue
Block a user