qtdemux: Check that the XiTh size is big enough

https://bugzilla.gnome.org/show_bug.cgi?id=775794
This commit is contained in:
Sebastian Dröge 2016-12-14 10:15:10 +02:00
parent f7c033f4ec
commit 35748dc8f2

View file

@ -7313,8 +7313,15 @@ qtdemux_parse_node (GstQTDemux * qtdemux, GNode * node, const guint8 * buffer,
offset = 0; offset = 0;
break; 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); qtdemux_parse_container (qtdemux, node, buffer + offset, end);
}
break; break;
} }
case FOURCC_in24: case FOURCC_in24: