pespin submitted this change.
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(-)
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;
To view, visit change 40557. To unsubscribe, or for help writing mail filters, visit settings.