mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
commiting the fix is better
Original commit message from CVS: commiting the fix is better
This commit is contained in:
parent
c6e3d085a7
commit
de070b3297
1 changed files with 0 additions and 6 deletions
|
@ -546,12 +546,6 @@ gst_asf_demux_process_comment (GstASFDemux * asf_demux, guint64 * obj_size)
|
|||
if (gst_bytestream_peek_bytes (bs, &data, lengths[i]) != lengths[i])
|
||||
goto fail;
|
||||
|
||||
/* check null-termination (malicious input) */
|
||||
if (data[lengths[i] - 1] != '\0' || data[lengths[i] - 2] != '\0') {
|
||||
gst_bytestream_flush_fast (bs, lengths[i]);
|
||||
continue;
|
||||
}
|
||||
|
||||
/* convert to UTF-8 */
|
||||
utf8_comments[i] = g_convert (data, lengths[i],
|
||||
"UTF-8", "UTF-16LE", &in, &out, NULL);
|
||||
|
|
Loading…
Reference in a new issue