Revert 125441 - In CrMallocErrorBreak, do not kill the process if errno is ENOMEM.
[Caused test failures on 10.5.]
This will allow large JPEG decodes to be handled and optionally killed by the
OOM killer instead. Based on a sampling of the other malloc_error_break() bugs
("unaligned pointer", "freed was not allocated", "double free", and "incorrect
checksum"), this will only affect the "allocate region" error, as those others
happen at free(), rather than malloc().
BUG=103980
TEST=Covered by ProcessUtilTest.MacTerminateOnHeapCorruption
Review URL: http://codereview.chromium.org/9597031
TBR=rsesek@chromium.org
Review URL: https://chromiumcodereview.appspot.com/9622023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125464 0039d316-1c4b-4281-b951-d872f2087c98
CrOS-Libchrome-Original-Commit: 7367fa3b70b65687d4e5d7f40ea3d973eb73c709
1 file changed