aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/decoding_encoding.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-28 01:57:39 +0100
commitc2d11275f7cf34d69a033235d26fd45aab96d5e9 (patch)
treecabf994d0aad6b48961034d429b25464facdc07a /doc/examples/decoding_encoding.c
parentb54c155f5b18b0ce8e47e73d27f657e592f9072d (diff)
downloadffmpeg-c2d11275f7cf34d69a033235d26fd45aab96d5e9.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 'doc/examples/decoding_encoding.c')
0 files changed, 0 insertions, 0 deletions