summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2009-11-18 12:53:44 +0100
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2009-11-18 12:54:48 +0100
commitbf5f3a396433d40fe8d24dfebc102ea4fd64360d (patch)
tree809bd51e117c65e1dac91be0d992d470bcd13717
parentf85cf3e2006a695523ed0beabe122e364ff76af9 (diff)
qtdemux: fix bogus memory chunk size check
-rw-r--r--gst/qtdemux/qtdemux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c
index 94ca1fdb..720f68c4 100644
--- a/gst/qtdemux/qtdemux.c
+++ b/gst/qtdemux/qtdemux.c
@@ -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 */