diff options
author | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-07 20:33:24 +0000 |
---|---|---|
committer | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-07 20:33:24 +0000 |
commit | 10658cb60e12130ceef08c62d966dccac4e6b2f1 (patch) | |
tree | 3e8bb8c77125f5accd195db3b7205b66a38dfbd2 /chrome/renderer/chrome_render_process_observer.h | |
parent | 38f4e2efd1e3105160f41669606580d17a85121f (diff) | |
download | chromium_src-10658cb60e12130ceef08c62d966dccac4e6b2f1.zip chromium_src-10658cb60e12130ceef08c62d966dccac4e6b2f1.tar.gz chromium_src-10658cb60e12130ceef08c62d966dccac4e6b2f1.tar.bz2 |
In CrMallocErrorBreak, do not kill the process if errno is ENOMEM.
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
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125441 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/chrome_render_process_observer.h')
0 files changed, 0 insertions, 0 deletions