-
Notifications
You must be signed in to change notification settings - Fork 2.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
Buffer overflow with string_view format string that isn't null terminated #977
Comments
Which {fmt} version? I get an exception with the message "argument not found" as expected. |
master You have to compile with sanitizers, I should have mentioned that: Here is the code I used to fuzz the library, it will give a heap-buffer-overflow within seconds:
|
Fixed in de71db6, thanks for catching this! |
The dereferenced value was never used BTW, but it was still technically a UB I think. |
Hi,
It looks like the format strings are assumed to be null-terminated.
Here is a simple example that will result in a stack-overflow:
I found this when fuzzing with libFuzzer.
The text was updated successfully, but these errors were encountered: