fixeria has uploaded this change for review.

View Change

fix uninitialized err pointer passed to osmo_bssap_le_dec()

osmo_bssap_le_dec() dereferences value of the given pointer and
checks it against NULL. The caller must always initialize it.

Change-Id: Id91dc73da1ca71827183564eb68b12c03ba332b3
---
M tests/bssmap_le/bssmap_le_test.c
1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/50/28450/1
diff --git a/tests/bssmap_le/bssmap_le_test.c b/tests/bssmap_le/bssmap_le_test.c
index 4d132b0..08ed4c6 100644
--- a/tests/bssmap_le/bssmap_le_test.c
+++ b/tests/bssmap_le/bssmap_le_test.c
@@ -162,7 +162,7 @@
.bssmap_le = *pdu,
};
struct bssap_le_pdu dec_pdu;
- struct osmo_bssap_le_err *err;
+ struct osmo_bssap_le_err *err = NULL;
void *loop_ctx;
int rc;


To view, visit change 28450. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Id91dc73da1ca71827183564eb68b12c03ba332b3
Gerrit-Change-Number: 28450
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de>
Gerrit-MessageType: newchange