1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00
FFmpeg/libavformat
Andreas Cadhalpun e217224456 jvdec: avoid unsigned overflow in comparison
The return type of strlen is size_t, i.e. unsigned, so if pd->buf_size
is 3, the right side overflows leading to a wrong result of the
comparison and subsequently a heap buffer overflow.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit db374790c75fa4ef947abcb5019fcf21d0b2de85)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-11-07 14:10:41 +01:00
..
2015-08-21 04:24:58 +00:00
2015-10-12 21:46:54 +02:00
2015-08-18 10:24:01 -04:00
2015-07-12 12:17:40 +02:00
2015-10-12 21:46:54 +02:00
2015-09-03 12:42:40 +02:00
2015-08-20 12:22:50 +02:00
2015-10-09 21:13:49 +02:00
2015-08-21 04:24:58 +00:00
2015-10-12 21:46:54 +02:00
2015-09-08 22:31:44 +02:00
2015-09-01 22:46:23 +02:00
2015-09-01 13:35:37 +02:00