libstdc++: Fix null dereference in pb_ds containers
authorJonathan Wakely <jwakely@redhat.com>
Tue, 4 May 2021 14:46:28 +0000 (15:46 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 4 May 2021 21:34:20 +0000 (22:34 +0100)
commitca871701c2822c3c4537745d4aa44a7b8f408337
treea906537862fa90dd027e1bde018b7f0076843510
parent6fb8b67089119b737ccb38f75f403b8d279e2229
libstdc++: Fix null dereference in pb_ds containers

This fixes ubsan errors:

ext/pb_ds/detail/cc_hash_table_map_/cc_ht_map_.hpp:533:15: runtime error: member access within null pointer of type 'struct entry'

libstdc++-v3/ChangeLog:

* include/ext/pb_ds/detail/cc_hash_table_map_/cc_ht_map_.hpp
(find_key_pointer(key_const_reference, false_type))
(find_key_pointer(key_const_reference, true_type)): Do not
dereference null pointer.
libstdc++-v3/include/ext/pb_ds/detail/cc_hash_table_map_/cc_ht_map_.hpp