MT#55283 fix possible array overflow

Change-Id: I712069a139c9e9d494e4a2fc912ab0cdacbac986
(cherry picked from commit 96432024b7)
(cherry picked from commit 43c7753c71)
mr26.2.1
Richard Fuchs 3 weeks ago
parent f0908045f6
commit 47aa1f571d

@ -1528,7 +1528,7 @@ static void fill_bundle_pt_stats(kernelize_state *s, struct call_media *bundle,
__auto_type iter = t_hash_table_iter(bundle->pt_media);
void *pt;
struct call_media *pt_media;
while (t_hash_table_iter_next(&iter, &pt, &pt_media)) {
while (t_hash_table_iter_next(&iter, &pt, &pt_media) && s->num_payload_types < RTPE_NUM_PAYLOAD_TYPES) {
struct packet_stream *pt_ps = get_media_component(pt_media, component);
if (!pt_ps)
continue; // log as error?

Loading…
Cancel
Save