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/.
dexter gerrit-no-reply at lists.osmocom.orgHello Neels Hofmeyr, Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/5173
to look at the new patch set (#2).
mgcp_test: fix nullpointer dereference
Change-Id: Ic2ee79eaaca2fada673baf6ff4c226aa16c26269
Fixes: Coverity CID#180536
---
M tests/mgcp/mgcp_test.c
1 file changed, 3 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/73/5173/2
diff --git a/tests/mgcp/mgcp_test.c b/tests/mgcp/mgcp_test.c
index 86edf00..1c57347 100644
--- a/tests/mgcp/mgcp_test.c
+++ b/tests/mgcp/mgcp_test.c
@@ -788,7 +788,7 @@
msg = mgcp_handle_message(cfg, inp);
msgb_free(inp);
- if (check_response(msg->data, t->exp_resp) != 0) {
+ if (msg && check_response(msg->data, t->exp_resp) != 0) {
printf("%s failed '%s'\n", t->name, (char *)msg->data);
OSMO_ASSERT(false);
}
@@ -799,7 +799,8 @@
OSMO_ASSERT(rc == 0);
}
- msgb_free(msg);
+ if (msg)
+ msgb_free(msg);
/* Retransmit... */
printf("Re-transmitting %s\n", t->name);
--
To view, visit https://gerrit.osmocom.org/5173
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ic2ee79eaaca2fada673baf6ff4c226aa16c26269
Gerrit-PatchSet: 2
Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>