]> git.eshelyaron.com Git - emacs.git/commit
Limit insert-file-contents to MAX_ALLOCA
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 22 Jun 2017 00:15:49 +0000 (17:15 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 22 Jun 2017 00:27:58 +0000 (17:27 -0700)
commit07a3386fbb4e180f017fab11ea963f4f34493f3c
treec81385849535fecc9b9a8322a2377384f0a49fe9
parentb7dfd39c8b2ebd127e83d84b9df48be173bc0134
Limit insert-file-contents to MAX_ALLOCA

* src/fileio.c (READ_BUF_SIZE): Don’t allocate more than
MAX_ALLOCA bytes in a single stack array.
src/fileio.c