qtdemux: bail out instead of trying to alloc silly index sizes
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 20 Aug 2009 17:21:59 +0000 (18:21 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 24 Sep 2009 15:29:26 +0000 (16:29 +0100)
commitf65e6ea3a17f98b5bcf799a1c418198028b548a1
treea98070df493481da169298fd5284db00795d4985
parentabaf91e428e597e0209fcbf156fd5fac8a16e658
qtdemux: bail out instead of trying to alloc silly index sizes

If it looks like we would be allocating a silly size for our sample
index, just bail out instead of trying to allocate it. Helps with
broken or fuzzed files where we might end up trying to malloc a
couple of hundred MBs otherwise.
gst/qtdemux/qtdemux.c