fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/28450 )
Change subject: fix uninitialized err pointer passed to osmo_bssap_le_dec() ......................................................................
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;