From 27924e6c9d43f0eba57d14004853d5a8ba47de26 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Wed, 9 May 2018 14:42:42 +0000 Subject: Do not build TIFF when codec is disabled Currently all of the TIFF related code is being built when support for the codec is disabled, it just isn't being utilized. Depending on the settings being used, this unneeded code may or may not get stripped during linking. This CL explicitly turns off building the TIFF codec code if support for TIFF is turned off. It also fixes cases in the code base where tif was being used instead of tiff. BUG=pdfium:1080 Change-Id: If6aaa8af5160fdd5b261e63bab7d5984196efcc9 Reviewed-on: https://pdfium-review.googlesource.com/32193 Commit-Queue: Ryan Harrison Reviewed-by: Tom Sepez --- testing/libfuzzer/pdf_codec_tiff_fuzzer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testing/libfuzzer/pdf_codec_tiff_fuzzer.cc') diff --git a/testing/libfuzzer/pdf_codec_tiff_fuzzer.cc b/testing/libfuzzer/pdf_codec_tiff_fuzzer.cc index 483ac28306..8e28d0fd12 100644 --- a/testing/libfuzzer/pdf_codec_tiff_fuzzer.cc +++ b/testing/libfuzzer/pdf_codec_tiff_fuzzer.cc @@ -5,5 +5,5 @@ #include "testing/libfuzzer/xfa_codec_fuzzer.h" extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { - return XFACodecFuzzer::Fuzz(data, size, FXCODEC_IMAGE_TIF); + return XFACodecFuzzer::Fuzz(data, size, FXCODEC_IMAGE_TIFF); } -- cgit v1.2.3