-
Notifications
You must be signed in to change notification settings - Fork 5
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
Ideas for more testfiles #2
Comments
When loading pictures, make sure that the picture's claimed size matches the actual data size, or else the picture decoder is fed data past the end of the picture block. In the SerenityOS FLAC decoder, this lead to a heap buffer overflow in the past. A (probably invalid) file exercising this was found by oss-fuzz here: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=53684&q=label%3AProj-serenity%20Type%3DBug-Security%20FuzzFlacLoader&can=1 |
Yes, this is explicitly stated in the security considerations of the latest draft: https://www.ietf.org/archive/id/draft-ietf-cellar-flac-13.html#name-security-considerations
Still, a test file would be helpful. |
For reference ffmpeg's flac demuxer used to have a similar issue FFmpeg/FFmpeg@af97c98 |
Maybe think twice before adding a file just because some application fails it, but on the other hand ffmpeg is a big player and - hopefully - when it is fixed, it would be a test on whether applications that either use ffmpeg directly or code from it, do the job updating it: A few more thoughts:
(... in retrospect: I would have wished for all the test files reading the file numbers aloud at the beginning.) |
Mostly as a note to self or TODO list, here are a few ideas I have for more testfiles. These are not for the subset testbench, but perhaps for a security related one, or one specific for fuzzing.
I'll probably add some more if an idea comes up. Feel free to add ideas.
The text was updated successfully, but these errors were encountered: