Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@vrabaud
Copy link
Contributor

@vrabaud vrabaud commented Jul 3, 2024

In case of corrupted JPEG, imread would still return a JPEG of the proper size (as indicated by the header) but with some uninitialized values. I do not have a short reproducer I can add as a test as this was found by our fuzzers.

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch

@asmorkalov asmorkalov self-requested a review July 3, 2024 14:22
@asmorkalov asmorkalov added this to the 4.11.0 milestone Jul 3, 2024
@asmorkalov asmorkalov self-assigned this Jul 3, 2024
@vrabaud vrabaud changed the title Make sure a line is read when calling jpeg_read_scanlines Make sure all the lines of a JPEG are read Jul 4, 2024
@vrabaud
Copy link
Contributor Author

vrabaud commented Jul 4, 2024

Indeed, that patch was totally wrong. It is now fixed.

@vrabaud
Copy link
Contributor Author

vrabaud commented Jul 4, 2024

It is now truly fixed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants