mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 21:35:44 +00:00
gst/qtdemux/qtdemux.c: Fix crash dereferencing NULL pointer if there's no stco atom.
Original commit message from CVS: * gst/qtdemux/qtdemux.c: (qtdemux_parse_trak): Fix crash dereferencing NULL pointer if there's no stco atom. Fixes #387122.
This commit is contained in:
parent
3f787afe02
commit
1891c3240b
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2006-12-18 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* gst/qtdemux/qtdemux.c: (qtdemux_parse_trak):
|
||||||
|
Fix crash dereferencing NULL pointer if there's no stco atom.
|
||||||
|
Fixes #387122.
|
||||||
|
|
||||||
2006-12-18 Jan Schmidt <thaytan@mad.scientist.com>
|
2006-12-18 Jan Schmidt <thaytan@mad.scientist.com>
|
||||||
|
|
||||||
* ext/wavpack/gstwavpackenc.h:
|
* ext/wavpack/gstwavpackenc.h:
|
||||||
|
|
|
@ -3682,7 +3682,10 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
|
||||||
co64 = qtdemux_tree_get_child_by_type (stbl, FOURCC_co64);
|
co64 = qtdemux_tree_get_child_by_type (stbl, FOURCC_co64);
|
||||||
if (stco == NULL && co64 == NULL)
|
if (stco == NULL && co64 == NULL)
|
||||||
goto corrupt_file;
|
goto corrupt_file;
|
||||||
|
if (stco)
|
||||||
stco_data = (const guint8 *) stco->data;
|
stco_data = (const guint8 *) stco->data;
|
||||||
|
else
|
||||||
|
stco_data = NULL;
|
||||||
/* sample time */
|
/* sample time */
|
||||||
stts = qtdemux_tree_get_child_by_type (stbl, FOURCC_stts);
|
stts = qtdemux_tree_get_child_by_type (stbl, FOURCC_stts);
|
||||||
if (stts == NULL)
|
if (stts == NULL)
|
||||||
|
|
Loading…
Reference in a new issue