Browse Source

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
rfuchs/gh1839
Richard Fuchs 1 year ago
parent
commit
860ce31f63
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      kernel-module/xt_RTPENGINE.c

+ 1
- 1
kernel-module/xt_RTPENGINE.c View File

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


Loading…
Cancel
Save