Description
I spent a little time sorting out some information. here are what I got:
We implement a fuzz target in fuzz.cpp, which integrated into this project's build and test system, and will be really used by project OSS-Fuzz,which contains a fuzzer. and the fuzzer will feed massive data to fuzz target until there is a crash.
If we run fuzz.cpp by the method that I used in issue #1009 where its fuzzer is directly comes from libFuzzer.a, it does have an crash. This means there is a buffer overflow in fuzz.cpp, and when I run the code in your PR #994 with a dict, there are also some crashes. So my question is :
-
Does this also means there is a buffer overflow in some APIs of jsoncpp?
-
And if the testcase in main.cpp run the fuzz test without any fuzzer, then it will always pass the build&unittest, so is this test case still useful?