asfdemux: Add check for invalid/corrupt asf object
authorEdward Hervey <edward@centricular.com>
Fri, 25 Nov 2016 08:44:05 +0000 (09:44 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 25 Nov 2016 08:46:12 +0000 (09:46 +0100)
commit97294eb8bbed1b9dad7d3f2c52dd69eb1812cc06
treea8f9e2e6c9604e24afb7ad0dd59376817b60de33
parent48a493070aec4b5426723a4a27f14eba107779cf
asfdemux: Add check for invalid/corrupt asf object

An asf object can't realistically be bigger than 2**32 bytes.

If it reports a size bigger than that, consider it corrupt and properly
propagate the error back.

https://bugzilla.gnome.org/show_bug.cgi?id=775070
gst/asfdemux/gstasfdemux.c