diff options
author | Jason Ekstrand <[email protected]> | 2019-06-05 17:30:47 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-06-06 00:27:53 +0000 |
commit | b38dab101ca7e0896255dccbd85fd510c47d84d1 (patch) | |
tree | bc79f13b3a1970ee326f9f78741cc5015c95bc02 /src/compiler | |
parent | 8306dabc03c9a030cacd078b56446e6548224a23 (diff) |
util/hash_table: Assert that keys are not reserved pointers
If we insert a NULL key, it will appear to succeed but will mess up
entry counting. Similar errors can occur if someone accidentally
inserts the deleted key. The later is highly unlikely but technically
possible so we should guard against it too.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/compiler')
0 files changed, 0 insertions, 0 deletions