Skip to content

Commit 51cce3d

Browse files
committed
move from deprecated interface in fuzz dump raw tape
1 parent 93328c8 commit 51cce3d

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

‎fuzz/fuzz_dump_raw_tape.cpp‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@
88

99
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
1010

11-
try {
12-
auto pj = simdjson::build_parsed_json(Data, Size);
13-
NulOStream os;
14-
UNUSED bool ignored=pj.dump_raw_tape(os);
15-
} catch (...) {
16-
}
17-
return 0;
11+
try {
12+
simdjson::dom::parser pj;
13+
auto elem=pj.parse(Data, Size);
14+
auto v=elem.value();
15+
NulOStream os;
16+
UNUSED auto dumpstatus=v.dump_raw_tape(os);
17+
} catch (...) {
18+
}
19+
return 0;
1820
}

0 commit comments

Comments
 (0)