Commit 1720784d authored by Michael Smith's avatar Michael Smith
Browse files

gst/typefind/gsttypefindfunctions.c: Don't crash on truncated files - check...

gst/typefind/gsttypefindfunctions.c: Don't crash on truncated files - check that we got an 8 byte buffer before tryin...

Original commit message from CVS:
* gst/typefind/gsttypefindfunctions.c: (ogganx_type_find):
Don't crash on truncated files - check that we got an 8 byte buffer
before trying to memcmp it.
parent aeb0afba
2006-09-17 Michael Smith <msmith@fluendo.com>
* gst/typefind/gsttypefindfunctions.c: (ogganx_type_find):
Don't crash on truncated files - check that we got an 8 byte buffer
before trying to memcmp it.
2006-09-17 Tim-Philipp Müller <tim at centricular dot net>
 
* gst/playback/gstplaybasebin.c: (get_active_source):
......@@ -1953,7 +1953,7 @@ ogganx_type_find (GstTypeFind * tf, gpointer private)
/* Check for an annodex fishbone header */
data = gst_type_find_peek (tf, 28, 8);
if (memcmp (data, "fishead\0", 8) == 0)
if (data && memcmp (data, "fishead\0", 8) == 0)
gst_type_find_suggest (tf, GST_TYPE_FIND_MAXIMUM, OGGANX_CAPS);
gst_type_find_suggest (tf, GST_TYPE_FIND_MAXIMUM,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment