diff options
author | Evan Brown <ezb@google.com> | 2024-03-07 08:18:47 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2024-03-07 08:20:08 -0800 |
commit | d03f54ef130a3070965618eae4e0e8f97cdd4ca6 (patch) | |
tree | 3d4a91b3f5c20caf15296f5ba3af27d5b6e55779 /absl | |
parent | 53e6dae02bf0d9a5a1d304a3d637c083376b86a1 (diff) |
Avoid MSan: use-of-uninitialized-value error in find_non_soo.
PiperOrigin-RevId: 613590317
Change-Id: I69f095681102e5492916085ada0eed085a75765b
Diffstat (limited to 'absl')
-rw-r--r-- | absl/container/internal/raw_hash_set.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/absl/container/internal/raw_hash_set.h b/absl/container/internal/raw_hash_set.h index d4418339..81f99366 100644 --- a/absl/container/internal/raw_hash_set.h +++ b/absl/container/internal/raw_hash_set.h @@ -3295,14 +3295,13 @@ class raw_hash_set { iterator find_non_soo(const key_arg<K>& key, size_t hash) { assert(!is_soo()); auto seq = probe(common(), hash); - slot_type* slot_ptr = slot_array(); const ctrl_t* ctrl = control(); while (true) { Group g{ctrl + seq.offset()}; for (uint32_t i : g.Match(H2(hash))) { if (ABSL_PREDICT_TRUE(PolicyTraits::apply( EqualElement<K>{key, eq_ref()}, - PolicyTraits::element(slot_ptr + seq.offset(i))))) + PolicyTraits::element(slot_array() + seq.offset(i))))) return iterator_at(seq.offset(i)); } if (ABSL_PREDICT_TRUE(g.MaskEmpty())) return end(); |