summaryrefslogtreecommitdiff
path: root/core/fxcodec/codec/ccodec_tiffmodule.cpp
diff options
context:
space:
mode:
authorNicolas Pena <npm@chromium.org>2017-04-18 15:36:29 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-04-18 20:24:11 +0000
commit152bfe0f60763263e8bf7292762885eb2aec9b85 (patch)
tree0ab40515446a4a4d8c779d39aae0707682a9fffe /core/fxcodec/codec/ccodec_tiffmodule.cpp
parent9bd8b4c8687cc95bed5df131ca8764f9ce203944 (diff)
downloadpdfium-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/fxcodec/codec/ccodec_tiffmodule.cpp')
-rw-r--r--core/fxcodec/codec/ccodec_tiffmodule.cpp4
1 files changed, 4 insertions, 0 deletions
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);
}