diff options
author | Xi Wang <[email protected]> | 2013-01-22 21:40:05 -0500 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2013-01-23 05:55:32 +0100 |
commit | 9aa60889f3f9cc2b1ae8109dfa51c330365c0c76 (patch) | |
tree | 6e195a8c9b75c7ccf44cade2b1ee543ff26cfa42 /cmdutils.c | |
parent | 636c42de19f6a3399632a860dec1105cc0091765 (diff) |
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 <[email protected]>
Signed-off-by: Michael Niedermayer <[email protected]>
(cherry picked from commit 4e692374f7962ea358c329de38c380103f8991b6)
Signed-off-by: Michael Niedermayer <[email protected]>
Diffstat (limited to 'cmdutils.c')
0 files changed, 0 insertions, 0 deletions