opencv/modules/imgcodecs
Vincent Rabaud dfbd18e9aa
Merge pull request #25864 from vrabaud:legacy
Make sure all the lines of a JPEG are read #25864

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

- [x] I agree to contribute to the project under Apache 2 License.
- [x] 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
- [x] The PR is proposed to the proper branch
2024-07-05 08:53:28 +03:00
..
include/opencv2 Merge pull request #25809 from zihaomu:imread_rgb_flag 2024-07-03 10:58:25 +03:00
misc Merge pull request #24136 from komakai:visionos_support 2023-12-20 15:35:10 +03:00
perf Merge pull request #25809 from zihaomu:imread_rgb_flag 2024-07-03 10:58:25 +03:00
src Merge pull request #25864 from vrabaud:legacy 2024-07-05 08:53:28 +03:00
test Merge pull request #25809 from zihaomu:imread_rgb_flag 2024-07-03 10:58:25 +03:00
CMakeLists.txt Merge pull request #24136 from komakai:visionos_support 2023-12-20 15:35:10 +03:00