]> git.eshelyaron.com Git - emacs.git/commit
Avoid integer overflow in hash table size
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 21 Jul 2019 18:20:07 +0000 (11:20 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 21 Jul 2019 18:24:11 +0000 (11:24 -0700)
commitc72e6328b408805953a5adf832b5c5cc9f3a75e7
tree33e715f4a28ff12e9d6d5fa1b8cdc81d406a5838
parentcf285946bee56912286f75e4d1215214bc7c5b4b
Avoid integer overflow in hash table size

* src/fns.c (INDEX_SIZE_BOUND): Use a tighter bound.
(maybe_resize_hash_table): Avoid integer overflow when
checking for hash table size overflow.  Fix confusion
between INDEX_SIZE_BOUND (which is for the index vector)
and hash table size.  Fix typo in debugging message
when ENABLE_CHECKING.
src/fns.c