summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-rw-r--r--testing/libfuzzer/pdf_css_fuzzer.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/testing/libfuzzer/pdf_css_fuzzer.cc b/testing/libfuzzer/pdf_css_fuzzer.cc
index 247c9b9245..4a45a03f5f 100644
--- a/testing/libfuzzer/pdf_css_fuzzer.cc
+++ b/testing/libfuzzer/pdf_css_fuzzer.cc
@@ -22,10 +22,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
CFDE_CSSSyntaxParser parser;
parser.Init(stream, 1024);
- FDE_CSSSYNTAXSTATUS status = parser.DoSyntaxParse();
- while (status != FDE_CSSSYNTAXSTATUS_Error &&
- status != FDE_CSSSYNTAXSTATUS_EOS)
+ FDE_CSSSyntaxStatus status;
+ do {
status = parser.DoSyntaxParse();
-
+ } while (status != FDE_CSSSyntaxStatus::Error &&
+ status != FDE_CSSSyntaxStatus::EOS);
return 0;
}