diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2018-12-08 16:56:32 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2018-12-08 16:58:40 -0800 |
commit | 7bcea8f8c11d10fd189c4250042dfe68e2df8c3a (patch) | |
tree | 3676ecf2fccc0b7c4dede99487274931c1214784 /lisp/emacs-lisp/lisp.el | |
parent | a9732737f2b48a78de72d67f6ed950495788ed1d (diff) | |
download | emacs-7bcea8f8c11d10fd189c4250042dfe68e2df8c3a.tar.gz emacs-7bcea8f8c11d10fd189c4250042dfe68e2df8c3a.tar.bz2 emacs-7bcea8f8c11d10fd189c4250042dfe68e2df8c3a.zip |
Streamline and fix vector-size checks
* src/alloc.c (VECTOR_ELTS_MAX): New constant.
(allocate_vectorlike): LEN now must be positive. Assume LEN
is in range. All callers changed.
(allocate_vector): Arg is now ptrdiff_t, not EMACS_INT.
All callers changed. Return zero vector here, not in
allocate_vectorlike.
* src/lisp.h (make_uninit_vector): Simplify.
* src/xwidget.c (webkit_js_to_lisp):
Check for overflow in ptrdiff_t calculations.
Diffstat (limited to 'lisp/emacs-lisp/lisp.el')
0 files changed, 0 insertions, 0 deletions