mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +00:00
rtsp-server: Remove pointless assertions that can happen if client provides invalid rates
Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3731 Fixes CVE-2024-44331 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7731>
This commit is contained in:
parent
43c9c3a020
commit
f3e707c71c
1 changed files with 2 additions and 4 deletions
|
@ -2979,15 +2979,13 @@ gst_rtsp_media_get_rates (GstRTSPMedia * media, gdouble * rate,
|
||||||
first_stream = FALSE;
|
first_stream = FALSE;
|
||||||
} else {
|
} else {
|
||||||
if (save_rate != *rate || save_applied_rate != *applied_rate) {
|
if (save_rate != *rate || save_applied_rate != *applied_rate) {
|
||||||
/* diffrent rate or applied_rate, weird */
|
/* different rate or applied_rate, weird */
|
||||||
g_assert (FALSE);
|
|
||||||
result = FALSE;
|
result = FALSE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* complete stream withot rate and applied_rate, weird */
|
/* complete stream without rate and applied_rate, weird */
|
||||||
g_assert (FALSE);
|
|
||||||
result = FALSE;
|
result = FALSE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue