From 860ce31f6384178858b30871ece46c322f519988 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 17 Jul 2024 13:14:20 -0400 Subject: [PATCH] MT#55283 prevent uninitialised pointer access This array is only conditionally partially filled, but then unconditionally copied, so we need to zero it out. closes #1839 Change-Id: I38662ed094aad776a68ad0c2eb947fd598bc4c57 --- kernel-module/xt_RTPENGINE.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel-module/xt_RTPENGINE.c b/kernel-module/xt_RTPENGINE.c index 6a9df9e9b..3fac41f65 100644 --- a/kernel-module/xt_RTPENGINE.c +++ b/kernel-module/xt_RTPENGINE.c @@ -2668,7 +2668,7 @@ static int table_add_destination(struct rtpengine_table *t, struct rtpengine_des struct rtpengine_target *g; struct interface_stats_block *iface_stats; struct stream_stats *stats; - struct ssrc_stats *ssrc_stats[RTPE_NUM_SSRC_TRACKING]; + struct ssrc_stats *ssrc_stats[RTPE_NUM_SSRC_TRACKING] = {0}; unsigned int u; // validate input