aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_geq.c
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-11-06 21:04:34 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2015-11-07 14:10:41 +0100
commite217224456affb22846bee9ac7c5c877f22bcd51 (patch)
tree333b5298b3593efd8b42b100cc6d2dd981de4842 /libavfilter/vf_geq.c
parent56419053bcaef67acb41dbc1934aa8eaec9acbe6 (diff)
downloadffmpeg-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/vf_geq.c')
0 files changed, 0 insertions, 0 deletions