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:
Sebastian Dröge 2024-10-24 20:12:55 +03:00 committed by GStreamer Marge Bot
parent 43c9c3a020
commit f3e707c71c

View file

@ -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;
}