mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +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;
|
||||
} else {
|
||||
if (save_rate != *rate || save_applied_rate != *applied_rate) {
|
||||
/* diffrent rate or applied_rate, weird */
|
||||
g_assert (FALSE);
|
||||
/* different rate or applied_rate, weird */
|
||||
result = FALSE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
/* complete stream withot rate and applied_rate, weird */
|
||||
g_assert (FALSE);
|
||||
/* complete stream without rate and applied_rate, weird */
|
||||
result = FALSE;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue