Browse Source

A call of the 'memset' function will lead to underflow of the buffer 'table'.

Table structure multiplied by N_GLOBAL_NODES will initialize the entire table with 0.
pre-master-46
dwarning 8 years ago
committed by Holger Vogt
parent
commit
a36366be1a
  1. 2
      src/frontend/subckt.c

2
src/frontend/subckt.c

@ -1346,7 +1346,7 @@ settrans(char *formal, char *actual, const char *subname)
{
int i;
memset(table, 0, sizeof(*table));
memset(table, 0, N_GLOBAL_NODES * sizeof(*table));
for (i = 0; i < N_GLOBAL_NODES; i++) {
table[i].t_old = gettok(&formal);

Loading…
Cancel
Save