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

Method useDynLess

fuzzing/fuzz_parser.cpp:68–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 }
67
68 void useDynLess() {
69 // this is on the heap because the size is chosen dynamically
70 std::unique_ptr<unsigned char[]> temp(new unsigned char[memlimit1]);
71 stream_parser p(get_null_resource(),
72 opt,
73 temp.get(),
74 memlimit1);
75
76 // this is on the heap because the size is chosen dynamically
77 std::unique_ptr<unsigned char[]> buf(new unsigned char[memlimit2]);
78 static_resource mr2( buf.get(), memlimit2 );
79 p.reset( &mr2 );
80
81 run(p);
82 }
83
84};
85

Callers 1

LLVMFuzzerTestOneInputFunction · 0.80

Calls 3

runFunction · 0.50
getMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected