Chromium Code Reviews
DescriptionIn 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
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=125441
Patch Set 1 #
Total comments: 6
Patch Set 2 : '' #
Total comments: 2
Patch Set 3 : Better size for malloc #Patch Set 4 : Merge origin/master #Patch Set 5 : Alias the value #
Total comments: 4
Patch Set 6 : nits #Messages
Total messages: 16 (0 generated)
|