]> git.buserror.net Git - polintos/scott/priv.git/commit
Cause excessively large malloc()s to fail rather than assert.
authorScott Wood <scott@thor.buserror.net>
Mon, 12 May 2008 02:11:46 +0000 (21:11 -0500)
committerScott Wood <scott@thor.buserror.net>
Mon, 12 May 2008 02:11:46 +0000 (21:11 -0500)
commit371d6008c5366f424e4bf8889febe3cc495d0d3e
tree22f9a2e3fdc0b6903d93a14649777d544c2bfd30
parented94ee97c9872c957efa4790c4ea073f371262a6
Cause excessively large malloc()s to fail rather than assert.

GCC's exception frame searching will malloc() larger than a page;
returning NULL forces it to fall back on slower, in-place searching.

Signed-off-by: Scott Wood <scott@thor.buserror.net>
kernel/lib/libc.cc