-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: AddressSanitizer: heap-buffer-overflow in rapidjson::GenericStringStream<rapidjson::UTF8<char> >::Peek() const #1257
Comments
My fuzz example: #include "../../include/rapidjson/reader.h" using namespace rapidjson; struct MyHandler { extern "C" int LLVMFuzzerTestOneInput(const char *Data, size_t Size)
} |
then Error message: 0x6020000000b1 is located 0 bytes to the right of 1-byte region [0x6020000000b0,0x6020000000b1) SUMMARY: AddressSanitizer: heap-buffer-overflow /home/lx/5_15/rapidjson/rapidjson-1.1.0/example/simplereader/./../../include/rapidjson/stream.h:115:30 in rapidjson::GenericStringStream<rapidjson::UTF8 >::Peek() const |
Not a bug This test is written improperly. |
Thank you for pointing to my fault@StilesCrisis. It is not a BUG.. I change my code in two ways. my code test Document.Parse()and reader.Parse().and I also add my corpus and seed corpus.then it looks like Parse() is stronger.Finally,I show my test code. first code to test Document.parse()
the secode code to test reader.Parse():
Thanks again.I just started to fuzzing test in a week ago.I have a lot to study.It is sorry for my mistake to borther your guys. |
No problem. |
OK,I will finish this issue .Hope a good day for you. Thanks again!!! |
hello,guys. I use libfuzzer to test simplereader example.I found a crash. I think it is due to Peek()function
rapidjson/stream.h:115:30 in rapidjson::GenericStringStream<rapidjson::UTF8 >::Peek() const.
then I want to show my example.
The text was updated successfully, but these errors were encountered: