Change in osmo-pcu[master]: bts: fix uninitialized memaccess in BTS::send_gsmtap()

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/.

fixeria gerrit-no-reply at lists.osmocom.org
Wed Jan 13 14:16:05 UTC 2021


fixeria has submitted this change. ( https://gerrit.osmocom.org/c/osmo-pcu/+/22155 )

Change subject: bts: fix uninitialized memaccess in BTS::send_gsmtap()
......................................................................

bts: fix uninitialized memaccess in BTS::send_gsmtap()

Change-Id: I7c5105c9e8a2c680dc8b24cc5e3bda6f7405a3ee
Fixes: CID#216511
---
M src/bts.cpp
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, approved



diff --git a/src/bts.cpp b/src/bts.cpp
index 87afc9f..307df94 100644
--- a/src/bts.cpp
+++ b/src/bts.cpp
@@ -529,7 +529,7 @@
 		      uint8_t ts_no, uint8_t channel, uint32_t fn,
 		      const uint8_t *data, unsigned int len)
 {
-	struct pcu_l1_meas meas;
+	struct pcu_l1_meas meas = { 0 };
 	send_gsmtap_meas(categ, uplink, trx_no, ts_no, channel, fn, data, len, &meas);
 }
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/22155
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I7c5105c9e8a2c680dc8b24cc5e3bda6f7405a3ee
Gerrit-Change-Number: 22155
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210113/62991cc8/attachment.htm>


More information about the gerrit-log mailing list