zlib/google: Use UncheckedMalloc() to allocate memory instead of malloc().
On Windows, malloc() (in Chrome) never returns nullptr, instead triggering an OOM. Explicitly using UncheckedMalloc() to get nullptr in case of allocation failure. Bug: 905777 Change-Id: I56bf677710b606cc6ca69073f4cc2d34c4ef19dd Reviewed-on: https://chromium-review.googlesource.com/c/1344064Reviewed-by:Alexei Svitkine <asvitkine@chromium.org> Commit-Queue: Benoit L <lizeb@chromium.org> Cr-Commit-Position: refs/heads/master@{#609991}
Showing
Please register or sign in to comment