aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/qdm2data.h
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-12 02:55:47 +0100
commitcd8bedb9fa7c3d04288bf57b64081b4a89aefb4d (patch)
treea97b5b33c5df80bb6ac71bee7a320e2467d4abe9 /libavcodec/qdm2data.h
parentd332aa6ec678e5e9630710a049eee36a91127f8c (diff)
downloadffmpeg-cd8bedb9fa7c3d04288bf57b64081b4a89aefb4d.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 'libavcodec/qdm2data.h')
0 files changed, 0 insertions, 0 deletions