MCPcopy Create free account
hub / github.com/boostorg/json / run

Method run

fuzzing/fuzz_parser.cpp:26–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 std::size_t memlimit2;
25 bool res;
26 void run(stream_parser& p) {
27 boost::system::error_code ec;
28
29 // Write the first part of the buffer
30 p.write( jsontext, ec);
31
32 if(! ec)
33 p.finish( ec );
34
35 // Take ownership of the resulting value.
36 if(! ec)
37 {
38 value jv = p.release();
39 res=serialize(jv).size()==42;
40 } else
41 res=false;
42 }
43
44 // easy case - everything default
45 void useDefault() {

Callers

nothing calls this directly

Calls 5

serializeFunction · 0.85
finishMethod · 0.80
writeMethod · 0.45
releaseMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected