diff options
author | Martin Storsjö <martin@martin.st> | 2013-09-11 22:56:55 +0300 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-10-03 23:31:34 +0200 |
commit | 153deed18bed43d16b272e8681b2a9b988d2682a (patch) | |
tree | e80dad3f4d75942bde19d7244369b3cba1ed54ac /libavformat/tcp.c | |
parent | 9eba02d5dd7036294ea350cb772822deec95b867 (diff) | |
download | ffmpeg-153deed18bed43d16b272e8681b2a9b988d2682a.tar.gz |
sierravmd: Do sanity checking of frame sizes
Limit the size to INT_MAX/2 (for simplicity) to be sure that
size + BYTES_PER_FRAME_RECORD won't overflow.
Also factorize other existing error return paths.
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit 0ef1660a6365ce60ead8858936b6f3f8ea862826)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavformat/tcp.c')
0 files changed, 0 insertions, 0 deletions