<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi,</div><div class=""><br class=""></div>There seems to be a discrepancy between what the default value of 'allocator_may_return_null' should be:<div class="">  source code:<br class=""><div class=""><div style="margin: 0px; font-family: Menlo;" class="">  ./lib/sanitizer_common/sanitizer_flags.inc:COMMON_FLAG(bool, allocator_may_return_null, false,</div></div><div style="margin: 0px; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px;" class=""><font face="Menlo" class=""> </font>docs (<a href="https://code.google.com/p/address-sanitizer/wiki/Flags" class="">https://code.google.com/p/address-sanitizer/wiki/Flags</a>)<span style="font-family: Menlo;" class="">:</span></div><div style="margin: 0px;" class=""><table class="wikitable" style="font-family: arial, sans-serif; border-spacing: 0px; border: 1px solid rgb(204, 204, 204); color: rgb(0, 0, 0); font-size: 13px; background-color: rgb(255, 255, 255);"><tbody class=""><tr class=""><td style="border: 1px solid rgb(204, 204, 204); padding: 5px;" class="">allocator_may_return_null </td><td style="border: 1px solid rgb(204, 204, 204); padding: 5px;" class="">1 </td><td style="border: 1px solid rgb(204, 204, 204); padding: 5px;" class="">If false, the allocator will crash instead of returning 0 on out-of-memory.</td></tr></tbody></table><div style="font-family: Menlo;" class=""><br class=""></div><div class="">I suspect that the reason to have <font face="arial, sans-serif" size="4" class=""><span style="background-color: rgb(255, 255, 255);" class="">it default to 'false' is because that would provide for a </span>more predictable out of memory behavior in most use cases. Is that the case or should this be system dependent and match the default system allocator?</font></div><div class=""><font face="arial, sans-serif" size="4" class=""><br class=""></font></div><div class=""><font face="arial, sans-serif" size="4" class="">Thanks,</font></div><div class=""><font face="arial, sans-serif" size="4" class="">Anna.</font></div></div></div></body></html>