OSDN Git Service

lavf: sanity check size in av_get/append_packet().
authorAnton Khirnov <anton@khirnov.net>
Tue, 19 Feb 2013 16:20:35 +0000 (17:20 +0100)
committerAnton Khirnov <anton@khirnov.net>
Fri, 15 Mar 2013 19:05:04 +0000 (20:05 +0100)
commitaa3c77998404cc32233cb76e961ca27db8565459
tree75146cced2d53e14faf572567464d25d3e784736
parentca6c3f2c53be70aa3c38e8f1292809db89ea1ba6
lavf: sanity check size in av_get/append_packet().

To avoid allocating ridiculous amounts of memory for corrupted files,
read the input in chunks limited to filesize or an arbitrary large
amount when that is not known (chosen to be 50M).
libavformat/utils.c