• icoolidge's avatar
    Fix OutOfMemoryDeathTest.ViaSharedLibraries. · 9a4f22db
    icoolidge authored
    This test was invalid on modern glibc:
    asprintf errors EOVERFLOW without attempting an allocation
    when the size is at least INT_MAX - 32. INT_MAX - 33 is the
    largest size that can attempt to trigger allocation failure,
    and will not necessarily accomplish that on some systems.
    
    Create a library that is specified to wrap malloc trivially,
    to accomplish the goal of the test without external dependencies
    or inconsistently implemented behavior.
    
    BUG=428211
    
    Review URL: https://codereview.chromium.org/1064793002
    
    Cr-Commit-Position: refs/heads/master@{#324092}
    9a4f22db
base_unittests.isolate 1.92 KB