diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2023-09-28 09:24:06 -0600 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2023-09-28 09:24:43 -0600 |
commit | 7cb7a7999b542cb4ae75a3d289a429a68df6a86a (patch) | |
tree | 8e54ff803326f8455dce0becc0cf7b6d59116c93 | |
parent | c8c97864e8c810068123ef62947be13675df54c2 (diff) | |
download | harfbuzz_ng-7cb7a7999b542cb4ae75a3d289a429a68df6a86a.tar.gz |
[map] Fix undefined integer-overflow
Fixes https://oss-fuzz.com/testcase-detail/5814850435284992
-rw-r--r-- | src/hb-map.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hb-map.hh b/src/hb-map.hh index 2b5bbfb1b..13d62054c 100644 --- a/src/hb-map.hh +++ b/src/hb-map.hh @@ -104,7 +104,7 @@ struct hb_hashmap_t hb_pair_t<const K &, V &> get_pair_ref() { return hb_pair_t<const K &, V &> (key, value); } uint32_t total_hash () const - { return (hash * 31) + hb_hash (value); } + { return (hash * 31u) + hb_hash (value); } static constexpr bool is_trivial = hb_is_trivially_constructible(K) && hb_is_trivially_destructible(K) && |