Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2174)

Unified Diff: testing/libfuzzer/xfa_codec_fuzzer.h

Issue 2452523005: Fix libfuzzer build broken at 9f7f7f8 (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/libfuzzer/xfa_codec_fuzzer.h
diff --git a/testing/libfuzzer/xfa_codec_fuzzer.h b/testing/libfuzzer/xfa_codec_fuzzer.h
index c31761818f1c71095a9eb59437ce09660fab6a51..bf8f985f34dafa06faf4a09907db9bba702949c5 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); }
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698