From 152bfe0f60763263e8bf7292762885eb2aec9b85 Mon Sep 17 00:00:00 2001 From: Nicolas Pena Date: Tue, 18 Apr 2017 15:36:29 -0400 Subject: Libtiff upstream: _TIFFcalloc addition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Commit-Queue: Nicolás Peña --- core/fxcodec/codec/ccodec_tiffmodule.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/fxcodec/codec') diff --git a/core/fxcodec/codec/ccodec_tiffmodule.cpp b/core/fxcodec/codec/ccodec_tiffmodule.cpp index 295f0abe34..3c24c33286 100644 --- a/core/fxcodec/codec/ccodec_tiffmodule.cpp +++ b/core/fxcodec/codec/ccodec_tiffmodule.cpp @@ -62,6 +62,10 @@ class CCodec_TiffContext { TIFF* m_tif_ctx; }; +void* _TIFFcalloc(tmsize_t nmemb, tmsize_t siz) { + return FXMEM_DefaultCalloc(nmemb, siz); +} + void* _TIFFmalloc(tmsize_t size) { return FXMEM_DefaultAlloc(size, 0); } -- cgit v1.2.3