-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Image enconding and deconding fixes #4051
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
Conversation
Thanks a lot for the PR! This in principle looks good to me, but I would love if @andfoy could have a closer look. Also, could you add a test? |
Also, do you know if this fixes #3613? |
In principle, the changes do not modify any of the current behaviour, as they only provide a refactor of terms for clarity. I'll take a look if this fixes the libpng bug. But I agree with the changes |
To test image decoding errors, we'd better use fuzzing tests. I have some plans, but it should be put in a separate PR. |
@cyyever can you clarify what are your thoughts about the fuzzy testing that you are describing? Also, can you clarify what this PR fixes? |
I mean we use libfuzzer to generate malformed-images. This is a good way to check image decoding and encoding bugs. However, it needs to change the test infrastructure to include c++ test cases. I think those changes need a separate PR. And this PR fixes some problem reported by clang-tidy and other static code analyzers. |
This PR does not fix #3613:
|
No description provided.