]> git.eshelyaron.com Git - emacs.git/commit
Fix integer overflow in oversize vectors
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 8 Dec 2018 18:47:38 +0000 (10:47 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 8 Dec 2018 18:50:15 +0000 (10:50 -0800)
commita65c0929ebd6f1980fe0f493a7d623aac63a34bd
tree7eef34fdd9bc10e00b9d01017b6bc6c9f0f245ad
parent9b099ce56b0a5a952c096568c28b1007d321ee24
Fix integer overflow in oversize vectors

* src/alloc.c (allocate_vector): Fix integer overflow when
allocating very large vectors, by taking large_vector_offset
into account.  Assume C99.
src/alloc.c