diff options
author | tsepez <tsepez@chromium.org> | 2016-10-27 09:25:19 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-27 09:25:19 -0700 |
commit | aeab530b04938797a3fda138a6f25939a26e41d4 (patch) | |
tree | 22a1029a87e14bcc87a11d1b0e1a0d7d057d00a6 /testing | |
parent | 1c467483d806d3bad9b2d90b581ec055ef7a4684 (diff) | |
download | pdfium-aeab530b04938797a3fda138a6f25939a26e41d4.tar.xz |
Fix libfuzzer build broken at 9f7f7f8
BUG=660015
TBR=npm@chromium.org
Review-Url: https://codereview.chromium.org/2452523005
Diffstat (limited to 'testing')
-rw-r--r-- | testing/libfuzzer/xfa_codec_fuzzer.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testing/libfuzzer/xfa_codec_fuzzer.h b/testing/libfuzzer/xfa_codec_fuzzer.h index c31761818f..bf8f985f34 100644 --- a/testing/libfuzzer/xfa_codec_fuzzer.h +++ b/testing/libfuzzer/xfa_codec_fuzzer.h @@ -48,16 +48,16 @@ class XFACodecFuzzer { void Release() override {} - FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override { + bool ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override { if (offset < 0 || offset >= m_size) - return FALSE; + return false; if (offset + size > m_size) size = m_size - offset; if (size == 0) - return FALSE; + return false; memcpy(buffer, m_data + offset, size); - return TRUE; + return true; } FX_FILESIZE GetSize() override { return static_cast<FX_FILESIZE>(m_size); } |