mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
ext/alsa/gstalsasink.c: Safety guard.
Original commit message from CVS: * ext/alsa/gstalsasink.c: (gst_alsa_sink_loop): Safety guard.
This commit is contained in:
parent
ae4ad01fe8
commit
e8ac08c520
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-01-19 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||
|
||||
* ext/alsa/gstalsasink.c: (gst_alsa_sink_loop):
|
||||
Safety guard.
|
||||
|
||||
2005-01-19 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||
|
||||
* gst/avi/gstavimux.c: (gst_avimux_write_tag):
|
||||
|
|
|
@ -447,7 +447,7 @@ sink_restart:
|
|||
int width = snd_pcm_format_physical_width (this->format->format);
|
||||
int size = samples * width / 8;
|
||||
|
||||
if (size / (width / 8) != samples) {
|
||||
if (size / (width / 8) != samples || samples > max_discont) {
|
||||
GST_WARNING_OBJECT (this,
|
||||
"Integer overflow for size=%d/samples=%d - broken stream",
|
||||
size, samples);
|
||||
|
|
Loading…
Reference in a new issue