summaryrefslogtreecommitdiff
path: root/testing/libfuzzer/xfa_codec_fuzzer.h
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-11-08 12:59:30 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-08 12:59:30 -0800
commit62114cf3d85ee9149b270e02935c98395567f45e (patch)
treebd5a8e1dcaeb47e53c033c30c44f9f2e33bb3dbc /testing/libfuzzer/xfa_codec_fuzzer.h
parentc59fa8895fa6fa8428b9b278eee6f05478ab8f56 (diff)
downloadpdfium-62114cf3d85ee9149b270e02935c98395567f45e.tar.xz
Compile fuzzer sources in standalone builds. (try 2)
- Add a template for fuzzers to remove redundancy. - Sort fuzzers in alphabetical order. Previous attempt: https://codereview.chromium.org/2480043002/ Review-Url: https://codereview.chromium.org/2481933003
Diffstat (limited to 'testing/libfuzzer/xfa_codec_fuzzer.h')
-rw-r--r--testing/libfuzzer/xfa_codec_fuzzer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/libfuzzer/xfa_codec_fuzzer.h b/testing/libfuzzer/xfa_codec_fuzzer.h
index bf8f985f34..4281db0ac9 100644
--- a/testing/libfuzzer/xfa_codec_fuzzer.h
+++ b/testing/libfuzzer/xfa_codec_fuzzer.h
@@ -49,7 +49,7 @@ class XFACodecFuzzer {
void Release() override {}
bool ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override {
- if (offset < 0 || offset >= m_size)
+ if (offset < 0 || static_cast<size_t>(offset) >= m_size)
return false;
if (offset + size > m_size)
size = m_size - offset;