]> granicus.if.org Git - gc/commit
Fix potential left shift overflows in finalize.c (64-bit targets)
authorIvan Maidanski <ivmai@mail.ru>
Mon, 15 Feb 2016 21:18:54 +0000 (00:18 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 11 Mar 2016 21:04:17 +0000 (00:04 +0300)
commite9f057571e6004d0a708b2f35f95cfb95b5f2561
tree987fa34b91fe87b90a0b5b4038aaf793b6a6a6cd
parentd45ac9ed9e0e325d0b4ca8007df54f995048c0a1
Fix potential left shift overflows in finalize.c (64-bit targets)

* finalize.c (HASH2, GC_grow_table): Cast 1 to word before shift to
avoid overflow.
* finalize.c (GC_dump_finalization_links, GC_dump_finalization,
ITERATE_DL_HASHTBL_BEGIN, GC_finalize): Cast 1 to size_t before
shift to avoid overflow.
finalize.c