]> git.eshelyaron.com Git - emacs.git/commit
Robustify stack-size calculation
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 27 May 2016 20:39:34 +0000 (13:39 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 27 May 2016 20:41:22 +0000 (13:41 -0700)
commit9d356f62b3c24d9f2b2bc3831cf19e8351860a86
tree97241f72d0825ca2de1a203da2b9edec2a064af8
parent168163434678dcc030d1e2844765ddae7b555721
Robustify stack-size calculation

* src/emacs.c: Include getpagesize.h.
(main): Check for integer overflow when computing stack size.
Round new rlim_cur to pagesize boundary on all platforms, as this
is easy and would have prevented Bug#23622.  If setrlimit
fails, use current limit to determine re_max_failures.
src/emacs.c