diff options
author | Jason Ekstrand <[email protected]> | 2019-06-05 16:56:20 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-06-06 00:27:53 +0000 |
commit | 8306dabc03c9a030cacd078b56446e6548224a23 (patch) | |
tree | 7ebf83403956268d5ba78adee5eee5e149e213d5 /src/util/string_buffer.h | |
parent | 7a18ce0b9119898b6d58b8e76495a40a9fe71765 (diff) |
util/set: 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/util/string_buffer.h')
0 files changed, 0 insertions, 0 deletions