Commit 35748dc8 authored by Sebastian Dröge's avatar Sebastian Dröge

qtdemux: Check that the XiTh size is big enough

https://bugzilla.gnome.org/show_bug.cgi?id=775794
parent f7c033f4
......@@ -7313,8 +7313,15 @@ qtdemux_parse_node (GstQTDemux * qtdemux, GNode * node, const guint8 * buffer,
offset = 0;
break;
}
if (offset)
if (offset) {
if (length < offset) {
GST_WARNING_OBJECT (qtdemux,
"skipping too small %" GST_FOURCC_FORMAT " box",
GST_FOURCC_ARGS (fourcc));
break;
}
qtdemux_parse_container (qtdemux, node, buffer + offset, end);
}
break;
}
case FOURCC_in24:
......
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