FFmpeg/libavcodec
Michael Niedermayer 6dfbb077e9
avcodec/cbs_jpeg: Try to move the read entity to one side in a test
The checked entity should be alone on one side of the check, this avoids
complex considerations of overflows.
This fixes a issue of bad style in our code and a coverity issue.

Fixes: CID1439654 Untrusted pointer read

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 385784a148d2886884aac69acc31bf179fac3ac2)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2024-07-21 19:55:13 +02:00
..
2023-12-21 22:44:01 +01:00
2021-06-18 20:53:56 +02:00
2022-09-25 13:51:42 +02:00
2022-04-06 20:27:35 +02:00
2024-06-15 23:32:48 +02:00
2024-06-15 23:32:47 +02:00
2022-09-25 13:51:46 +02:00
2024-06-15 23:32:43 +02:00
2024-06-15 23:32:58 +02:00
2022-04-06 20:27:35 +02:00
2021-04-03 13:29:30 +02:00
2023-04-07 23:40:40 +02:00
2021-10-05 23:19:39 +02:00
2023-04-07 23:40:39 +02:00
2023-12-21 22:43:44 +01:00
2021-04-02 21:40:54 +02:00
2024-06-15 23:32:49 +02:00
2024-06-15 23:32:57 +02:00
2021-09-21 23:20:29 -03:00
2022-09-25 13:51:43 +02:00