aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ppc/mathops.h
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-11-06 21:04:34 +0100
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-11-26 01:37:56 +0100
commit4636eb8968807fc41154b361383b8df4f1b28984 (patch)
treeaf6e52c8753fc580df5d9e1d625899a11979f6f7 /libavcodec/ppc/mathops.h
parent54133b7aebbcd485bd631c514be08aede9c3475c (diff)
downloadffmpeg-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/ppc/mathops.h')
0 files changed, 0 insertions, 0 deletions