mirror of https://github.com/FFmpeg/FFmpeg.git
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>pull/28/head^2
parent
902cfe2f74
commit
4e692374f7
1 changed files with 5 additions and 6 deletions
Loading…
Reference in new issue