1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-09 14:14:39 +02:00
FFmpeg/libavcodec
Michael Niedermayer ae37eda47c
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:11 +02:00
..
2023-11-10 00:25:38 +01:00
2022-03-15 09:42:39 -03:00
2022-07-07 21:52:52 +02:00
2022-03-15 09:42:39 -03:00
2022-02-07 00:31:23 +01:00
2022-03-18 19:56:50 +01:00
2022-03-18 19:56:50 +01:00
2022-06-24 15:37:23 +08:00
2022-06-24 15:37:23 +08:00
2022-05-08 10:38:54 +08:00
2022-07-09 20:06:47 +02:00
2024-06-13 11:22:11 +02:00
2022-02-24 12:56:49 +01:00
2022-03-15 09:42:41 -03:00
2022-03-15 09:42:41 -03:00
2022-07-07 21:52:52 +02:00
2024-06-13 11:22:10 +02:00
2022-07-12 21:55:22 +02:00
2022-01-26 15:30:28 +01:00
2023-02-22 00:32:19 +01:00
2024-06-13 11:13:56 +02:00
2022-06-25 09:05:58 +08:00
2022-05-30 19:44:11 +02:00
2024-06-13 19:45:26 +02:00
2022-06-16 10:23:30 +02:00
2022-07-03 15:16:31 +02:00
2022-03-15 09:42:43 -03:00
2022-03-15 09:42:43 -03:00
2022-02-18 20:11:06 +01:00
2022-02-18 20:11:06 +01:00
2022-02-07 00:31:23 +01:00
2022-03-16 14:04:35 +02:00
2023-10-30 00:39:00 +01:00
2022-07-03 15:16:31 +02:00
2022-07-03 15:16:31 +02:00
2022-07-03 15:16:31 +02:00
2023-02-22 00:10:15 +01:00
2023-02-21 23:53:32 +01:00
2023-10-30 00:38:57 +01:00
2022-04-10 20:12:23 +02:00
2022-04-13 00:37:06 +02:00
2022-06-25 09:05:58 +08:00
2022-07-13 00:27:37 +02:00
2024-06-13 11:22:12 +02:00
2024-06-13 19:44:50 +02:00
2022-03-15 09:42:45 -03:00
2022-07-12 21:55:22 +02:00