diff options
author | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-11-06 21:04:34 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-11-07 14:10:41 +0100 |
commit | e217224456affb22846bee9ac7c5c877f22bcd51 (patch) | |
tree | 333b5298b3593efd8b42b100cc6d2dd981de4842 /libavfilter/fifo.c | |
parent | 56419053bcaef67acb41dbc1934aa8eaec9acbe6 (diff) | |
download | ffmpeg-e217224456affb22846bee9ac7c5c877f22bcd51.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: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter/fifo.c')
0 files changed, 0 insertions, 0 deletions