mirror of
https://github.com/jambonz/jambonz-infrastructure.git
synced 2026-10-29 00:04:11 +00:00
12 lines
311 B
Diff
12 lines
311 B
Diff
--- switch_core_media.c 2022-03-04 19:02:35.000000000 -0500
|
|
+++ switch_core_media.c.new 2022-03-05 08:54:38.000000000 -0500
|
|
@@ -2749,7 +2749,7 @@
|
|
*(buf + datalen) = '\0';
|
|
|
|
while (*buf & 0x80) {
|
|
- if (buf + 3 > e) {
|
|
+ if (buf + 3 > e || count >= MAX_RED_FRAMES) {
|
|
*new_datalen = 0;
|
|
return 0;
|
|
}
|