qtdemux: more size checks, and use g_try_new0() instead of g_new0()
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 30 Jun 2009 12:12:09 +0000 (13:12 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 1 Jul 2009 08:24:38 +0000 (09:24 +0100)
commit8fa148d2f12383ae29a9e17e24d4feb7b7a0d071
tree4ad295c4405930f4fff7c5f862f03911d5f7b321
parent405aae4568bbc8e3fa1c6975dc97425418dfe71a
qtdemux: more size checks, and use g_try_new0() instead of g_new0()

Whenever we alloc something based on a user-supplied size, we should
really use g_try_new(), otherwise we can easily be made to abort by
passing a ridiculously large number to us for allocing. Fixes
problems with some fuzzed files.
gst/qtdemux/qtdemux.c