From 14a674b6f4a901db4e3dc8c87e694eeb2cff1c65 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Thu, 28 Sep 2023 01:06:07 +0200 Subject: [PATCH] fix a random segfault due to out of bound array ref in find_pass_through_symbols() --- src/netlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/netlist.c b/src/netlist.c index 87017b09..f4d37d17 100644 --- a/src/netlist.c +++ b/src/netlist.c @@ -899,7 +899,7 @@ static int find_pass_through_symbols(int what, int ninst) } } int_hash_free(&table); - if(pt_symbol[k]) dbg(1, "duplicated pins: %s\n", xctx->sym[i].name); + if(pt_symbol[k]) dbg(1, "duplicated pins: %s\n", xctx->sym[k].name); } my_free(_ALLOC_ID_, &symtable); } else if(what ==1) { /* query */