summaryrefslogtreecommitdiff
path: root/testing/libfuzzer
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2017-09-27 10:58:52 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-09-27 16:12:07 +0000
commitbacf75eeeb5d89fe60b2c77584350ca1b1432bd5 (patch)
treebbf956a86b103f5e470338e585ce8b924b08cd8b /testing/libfuzzer
parent875e98c581952478f3a3ccef9b2f2e3ed06c5346 (diff)
downloadpdfium-bacf75eeeb5d89fe60b2c77584350ca1b1432bd5.tar.xz
Replace FX_SAFE_STRSIZE with FX_SAFE_SIZE_T
BUG=pdfium:828 Change-Id: If9560338c456b28f968e743a90a3629791d87df0 Reviewed-on: https://pdfium-review.googlesource.com/14832 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'testing/libfuzzer')
-rw-r--r--testing/libfuzzer/pdf_fm2js_fuzzer.cc2
-rw-r--r--testing/libfuzzer/pdf_xml_fuzzer.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/testing/libfuzzer/pdf_fm2js_fuzzer.cc b/testing/libfuzzer/pdf_fm2js_fuzzer.cc
index 438d1025ad..c93804a92e 100644
--- a/testing/libfuzzer/pdf_fm2js_fuzzer.cc
+++ b/testing/libfuzzer/pdf_fm2js_fuzzer.cc
@@ -11,7 +11,7 @@
#include "xfa/fxfa/fm2js/cxfa_fm2jscontext.h"
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
- FX_SAFE_STRSIZE safe_size = size;
+ FX_SAFE_SIZE_T safe_size = size;
if (!safe_size.IsValid())
return 0;
diff --git a/testing/libfuzzer/pdf_xml_fuzzer.cc b/testing/libfuzzer/pdf_xml_fuzzer.cc
index 0c3cf4fb3f..d8010f90f8 100644
--- a/testing/libfuzzer/pdf_xml_fuzzer.cc
+++ b/testing/libfuzzer/pdf_xml_fuzzer.cc
@@ -46,7 +46,7 @@ CFX_XMLNode* XFA_FDEExtension_GetDocumentNode(
} // namespace
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
- FX_SAFE_STRSIZE safe_size = size;
+ FX_SAFE_SIZE_T safe_size = size;
if (!safe_size.IsValid())
return 0;