fixeria has uploaded this change for review. (
https://gerrit.osmocom.org/c/libosmocore/+/35323?usp=email )
Change subject: tests/lapd: fix wrong size passed in test_lapdm_contention_resolution()
......................................................................
tests/lapd: fix wrong size passed in test_lapdm_contention_resolution()
We should be passing size of the cm[] array, not size of a pointer!
Change-Id: I0a878570e3a3d4e57ff44a7bc460ddb0a1b08558
Fixes: CID#274662
---
M tests/lapd/lapd_test.c
1 file changed, 13 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/23/35323/1
diff --git a/tests/lapd/lapd_test.c b/tests/lapd/lapd_test.c
index 2f2a7f4..f2fccf8 100644
--- a/tests/lapd/lapd_test.c
+++ b/tests/lapd/lapd_test.c
@@ -506,7 +506,7 @@
cm2 = malloc(sizeof(cm));
memcpy(cm2, cm, sizeof(cm));
cm2[0] += 1;
- send_sabm(&bts_to_ms_channel, 0, cm2, sizeof(cm2));
+ send_sabm(&bts_to_ms_channel, 0, cm2, sizeof(cm));
free(cm2);
rc = dequeue_prim(&bts_to_ms_channel.lapdm_dcch, &pp, "DCCH");
OSMO_ASSERT(rc == -ENODEV);
--
To view, visit
https://gerrit.osmocom.org/c/libosmocore/+/35323?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I0a878570e3a3d4e57ff44a7bc460ddb0a1b08558
Gerrit-Change-Number: 35323
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newchange