summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/lisp.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-12-08 16:56:32 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2018-12-08 16:58:40 -0800
commit7bcea8f8c11d10fd189c4250042dfe68e2df8c3a (patch)
tree3676ecf2fccc0b7c4dede99487274931c1214784 /lisp/emacs-lisp/lisp.el
parenta9732737f2b48a78de72d67f6ed950495788ed1d (diff)
downloademacs-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