[PATCH] libosmo-sccp[master]: sua: Always zero-initialize the output of sua_addr_parse_part()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Wed Feb 15 23:05:57 UTC 2017


Review at  https://gerrit.osmocom.org/1837

sua: Always zero-initialize the output of sua_addr_parse_part()

Change-Id: Ia41a3f611dc8bb999db21f4e6fbe626f41aeb66e
---
M src/sua.c
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/37/1837/1

diff --git a/src/sua.c b/src/sua.c
index 7fe74cb..dec5fa2 100644
--- a/src/sua.c
+++ b/src/sua.c
@@ -691,6 +691,8 @@
 	uint16_t par_tag, par_len, par_datalen;
 	uint32_t *p32;
 
+	memset(out, 0, sizeof(*out));
+
 	LOGP(DSUA, LOGL_DEBUG, "%s(IEI=0x%04x) (%d) %s\n", __func__,
 	     param->tag, param->len,
 	     osmo_hexdump(param->dat, param->len));

-- 
To view, visit https://gerrit.osmocom.org/1837
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia41a3f611dc8bb999db21f4e6fbe626f41aeb66e
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>



More information about the gerrit-log mailing list