tcmalloc: restrict maximum size of memory allocations

Original CL: https://chromiumcodereview.appspot.com/11857007

  TCMalloc: restrict maximum size of memory allocations

  For security purposes, we restrict the maximum size of memory
  allocations under what can be indexed by an int.

  BUG=169327
  NOTRY=true

BUG=724399,b:70905156

Change-Id: I530659b9d0f519db1bc70f8d8f5b15537dc1f1b8
Reviewed-on: https://chromium-review.googlesource.com/1184336
Commit-Queue: Gabriel Marin <gmx@chromium.org>
Reviewed-by: Will Harris <wfh@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#585558}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 93604967c25f5e54d5e7d8e94e9f8edf752a7f37
1 file changed
tree: 1129aff544c76fb01105b61cf6f62364f6c8472b
  1. src/