pespin has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/40557?usp=email )
Change subject: Fix static str buf in osmo_ss7_route_print() too small ......................................................................
Fix static str buf in osmo_ss7_route_print() too small
Related: Coverity CID#528692 Change-Id: I40c9ac38b60b01f64bec01ddd10a63759dbdec81 --- M src/ss7_route.c 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Jenkins Builder: Verified laforge: Looks good to me, approved
diff --git a/src/ss7_route.c b/src/ss7_route.c index c432c49..713cc6a 100644 --- a/src/ss7_route.c +++ b/src/ss7_route.c @@ -271,7 +271,7 @@
const char *osmo_ss7_route_print(const struct osmo_ss7_route *rt) { - static char buf[64]; + static char buf[MAX_PC_STR_LEN * 2 + 1]; struct osmo_strbuf sb = { .buf = buf, .len = sizeof(buf) }; char buf_pc[MAX_PC_STR_LEN]; const struct osmo_ss7_instance *inst = rt->rtable->inst;