Fix OutOfMemoryDeathTest.ViaSharedLibraries.
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}
Showing
base/test/malloc_wrapper.cc
0 → 100644
base/test/malloc_wrapper.h
0 → 100644
Please register or sign in to comment