diff options
author | Nicolas Pena <npm@chromium.org> | 2017-04-18 15:36:29 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-18 20:24:11 +0000 |
commit | 152bfe0f60763263e8bf7292762885eb2aec9b85 (patch) | |
tree | 0ab40515446a4a4d8c779d39aae0707682a9fffe /core/fxcrt/fx_basic_memmgr.cpp | |
parent | 9bd8b4c8687cc95bed5df131ca8764f9ce203944 (diff) | |
download | pdfium-152bfe0f60763263e8bf7292762885eb2aec9b85.tar.xz |
Libtiff upstream: _TIFFcalloc addition
Upstream commit:
https://github.com/vadz/libtiff/commit/d60332057b9575ada4f264489582b13e30137be1
Bug: chromium:711638
Change-Id: I46de1a00f9bb8d5de8df64ec78a9d62dcb4352ed
Reviewed-on: https://pdfium-review.googlesource.com/4310
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'core/fxcrt/fx_basic_memmgr.cpp')
-rw-r--r-- | core/fxcrt/fx_basic_memmgr.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/fxcrt/fx_basic_memmgr.cpp b/core/fxcrt/fx_basic_memmgr.cpp index f3aaa3678d..75bc2bc1f1 100644 --- a/core/fxcrt/fx_basic_memmgr.cpp +++ b/core/fxcrt/fx_basic_memmgr.cpp @@ -24,9 +24,15 @@ void FXMEM_InitalizePartitionAlloc() { void* FXMEM_DefaultAlloc(size_t byte_size, int flags) { return (void*)malloc(byte_size); } + +void* FXMEM_DefaultCalloc(size_t num_elems, size_t byte_size) { + return calloc(num_elems, byte_size); +} + void* FXMEM_DefaultRealloc(void* pointer, size_t new_size, int flags) { return realloc(pointer, new_size); } + void FXMEM_DefaultFree(void* pointer, int flags) { free(pointer); } |