mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
qtdemux: Check for invalid (empty) classification info entity strings
Otherwise the classification string can be empty and gst_tag_list_add() will complain or have a \0 in the first four bytes, which is wrong too.
This commit is contained in:
parent
17d9447ea5
commit
fb12172810
1 changed files with 6 additions and 0 deletions
|
@ -7584,6 +7584,12 @@ qtdemux_tag_add_classification (GstQTDemux * qtdemux, const char *tag,
|
|||
|
||||
offset = 12;
|
||||
entity = (guint8 *) node->data + offset;
|
||||
if (entity[0] == 0 || entity[1] == 0 || entity[2] == 0 || entity[3] == 0) {
|
||||
GST_DEBUG_OBJECT (qtdemux,
|
||||
"classification info: %c%c%c%c invalid classification entity",
|
||||
entity[0], entity[1], entity[2], entity[3]);
|
||||
return;
|
||||
}
|
||||
|
||||
offset += 4;
|
||||
table = QT_UINT16 ((guint8 *) node->data + offset);
|
||||
|
|
Loading…
Reference in a new issue