mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-05 13:28:40 +00:00
make tpi hash parsing gracefully exit on empty input data
This commit is contained in:
+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 stride = tpi->hash_key_size;
|
||||||
U32 bucket_count = tpi->hash_bucket_count;
|
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
|
// allocate buckets
|
||||||
PDB_TpiHashBlock **buckets = push_array(arena, PDB_TpiHashBlock*, bucket_count);
|
PDB_TpiHashBlock **buckets = push_array(arena, PDB_TpiHashBlock*, bucket_count);
|
||||||
|
|||||||
Reference in New Issue
Block a user