qtdemux: fix bogus memory chunk size check
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Wed, 18 Nov 2009 11:53:44 +0000 (12:53 +0100)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Wed, 18 Nov 2009 11:54:48 +0000 (12:54 +0100)
gst/qtdemux/qtdemux.c

index 94ca1fd..720f68c 100644 (file)
@@ -5237,7 +5237,7 @@ qtdemux_tag_add_location (GstQTDemux * qtdemux, const char *tag,
     g_free (name);
   }
 
-  if (len <= offset + 2 + 4 + 4 + 4)
+  if (len < offset + 2 + 4 + 4 + 4)
     goto short_read;
 
   /* +1 +1 = skip null-terminator and location role byte */