From ef50c9abe585191101aa7bf59f9fd224ca10045d Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Wed, 7 Sep 2022 16:48:53 +0200 Subject: [PATCH] srsran_asn1_nas_test: fix uninitalized value in packing test --- lib/test/asn1/srsran_asn1_nas_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/test/asn1/srsran_asn1_nas_test.cc b/lib/test/asn1/srsran_asn1_nas_test.cc index 48ddf4138..2d43ba28e 100644 --- a/lib/test/asn1/srsran_asn1_nas_test.cc +++ b/lib/test/asn1/srsran_asn1_nas_test.cc @@ -123,7 +123,7 @@ int downlink_generic_nas_transport_packing_test() uint8_t nas_message[] = { 0x27, 0x00, 0x00, 0x00, 0x00, 0xff, 0x07, 0x68, 0x01, 0x00, 0x06, 0xf0, 0x00, 0x00, 0x00, 0x08, 0x70}; uint8_t generic_msg_cont[] = {0xf0, 0x00, 0x00, 0x00, 0x08, 0x70}; - LIBLTE_BYTE_MSG_STRUCT buf; + LIBLTE_BYTE_MSG_STRUCT buf = {}; LIBLTE_MME_DOWNLINK_GENERIC_NAS_TRANSPORT_MSG_STRUCT dl_generic_nas_transport; LIBLTE_ERROR_ENUM err; @@ -167,7 +167,7 @@ int downlink_generic_nas_transport_with_add_info_packing_test() 0xf0, 0x00, 0x00, 0x00, 0x08, 0x70, 0x65, 0x02, 0x11, 0x11}; uint8_t generic_msg_cont[] = {0xf0, 0x00, 0x00, 0x00, 0x08, 0x70}; uint8_t add_info[] = {0x11, 0x11}; - LIBLTE_BYTE_MSG_STRUCT buf; + LIBLTE_BYTE_MSG_STRUCT buf = {}; LIBLTE_MME_DOWNLINK_GENERIC_NAS_TRANSPORT_MSG_STRUCT dl_generic_nas_transport; LIBLTE_ERROR_ENUM err;