mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
qtdemux: Check that the XiTh size is big enough
https://bugzilla.gnome.org/show_bug.cgi?id=775794
This commit is contained in:
parent
f7c033f4ec
commit
35748dc8f2
1 changed files with 8 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue