diff options
author | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-11-06 21:04:34 +0100 |
---|---|---|
committer | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-11-26 01:37:56 +0100 |
commit | 4636eb8968807fc41154b361383b8df4f1b28984 (patch) | |
tree | af6e52c8753fc580df5d9e1d625899a11979f6f7 /libavcodec/alpha/mpegvideo_alpha.c | |
parent | 54133b7aebbcd485bd631c514be08aede9c3475c (diff) | |
download | ffmpeg-4636eb8968807fc41154b361383b8df4f1b28984.tar.gz |
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: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to 'libavcodec/alpha/mpegvideo_alpha.c')
0 files changed, 0 insertions, 0 deletions