mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
gst/matroska/matroska-demux.c: Fix possible crasher.
Original commit message from CVS: * gst/matroska/matroska-demux.c: (gst_matroska_demux_parse_blockgroup): Fix possible crasher.
This commit is contained in:
parent
59726ae2df
commit
d209b3de10
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-12-18 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||
|
||||
* gst/matroska/matroska-demux.c:
|
||||
(gst_matroska_demux_parse_blockgroup):
|
||||
Fix possible crasher.
|
||||
|
||||
2004-12-18 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||
|
||||
* gst/matroska/matroska-demux.c: (gst_matroska_ebmlnum_uint),
|
||||
|
|
|
@ -1884,7 +1884,8 @@ gst_matroska_demux_parse_blockgroup (GstMatroskaDemux * demux,
|
|||
lace_size[n] = lace_size[n - 1] + snum;
|
||||
total += lace_size[n];
|
||||
}
|
||||
lace_size[n] = size - total;
|
||||
if (n < laces)
|
||||
lace_size[n] = size - total;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue