]> gcc.gnu.org Git - gcc.git/commit
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>
Fri, 18 Jun 2021 12:56:11 +0000 (13:56 +0100)
commit94712f96ec4be85d3dbdb3647c64268227519987
tree99c24a47f5cd5336b45650100085a248007c3a15
parente50a64c98316eac1dfb695d903cc7cda0cfcb389
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.

(cherry picked from commit ca871701c2822c3c4537745d4aa44a7b8f408337)
libstdc++-v3/include/ext/pb_ds/detail/cc_hash_table_map_/cc_ht_map_.hpp
This page took 0.057307 seconds and 6 git commands to generate.