summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/lisp-mnt.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-08-16 20:44:19 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2018-08-16 20:45:08 -0700
commit3b9017b5ba6b7041fbf70691092533286cc9b98d (patch)
tree0bb46f0a20ea28ef2abfee1b7ab749867f2809ff /lisp/emacs-lisp/lisp-mnt.el
parentbb7e0338919d1c7068a64b3855e50fac345e4e05 (diff)
downloademacs-3b9017b5ba6b7041fbf70691092533286cc9b98d.tar.gz
emacs-3b9017b5ba6b7041fbf70691092533286cc9b98d.tar.bz2
emacs-3b9017b5ba6b7041fbf70691092533286cc9b98d.zip
Reject outlandishly-wide bignums
Do not allow bignums that are so wide that their log base 2 might not fit into a fixnum, as this will cause problems elsewhere. We already have a similar limitation for bool-vectors. * src/emacs.c (check_bignum_size, xmalloc_for_gmp): New function. (xrealloc_for_gmp): Check for too-large bignum. (main): Use xmalloc_for_gmp.
Diffstat (limited to 'lisp/emacs-lisp/lisp-mnt.el')
0 files changed, 0 insertions, 0 deletions