]> Savannah Git Hosting - gnulib.git/commit
hamt: fix technically undefined behavior
authorMarc Nieper-Wißkirchen <marc@nieper-wisskirchen.de>
Fri, 12 Aug 2022 14:00:23 +0000 (16:00 +0200)
committerMarc Nieper-Wißkirchen <marc@nieper-wisskirchen.de>
Fri, 12 Aug 2022 14:00:23 +0000 (16:00 +0200)
commit2c984879f02633334ccf80512ad1034dcc9cb922
tree859293c65a061780b89288cc90e784fecb32591a
parent2a613e0165f40653faf54d3ee0b97336c3be7034
hamt: fix technically undefined behavior

Bug reported by Bruno Haible in
<https://lists.gnu.org/r/bug-gnulib/2022-04/msg00023.html>.
* lib/hamt.c (entry_insert): Remove technically undefined
behavior when shifting an integer of N bits by N or more bits.
ChangeLog
lib/hamt.c