aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vp3.c
diff options
context:
space:
mode:
authorXi Wang <xi.wang@gmail.com>2013-01-22 21:40:05 -0500
committerMichael Niedermayer <michaelni@gmx.at>2013-01-23 05:55:20 +0100
commitb59ee5dcf119f900a3e9f45098f9e992a5f26fd0 (patch)
treef435c91b9acabe9e5bac46675715177e9d4d7b10 /libavcodec/vp3.c
parente163d884ef6ccc52f02a176105098d15c451d6af (diff)
downloadffmpeg-b59ee5dcf119f900a3e9f45098f9e992a5f26fd0.tar.gz
rtmp: fix buffer overflows in ff_amf_tag_contents()
A negative `size' will bypass FFMIN(). In the subsequent memcpy() call, `size' will be considered as a large positive value, leading to a buffer overflow. Change the type of `size' to unsigned int to avoid buffer overflow, and simplify overflow checks accordingly. Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 4e692374f7962ea358c329de38c380103f8991b6) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vp3.c')
0 files changed, 0 insertions, 0 deletions