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.
This commit is contained in:
parent
a2c5cb4301
commit
a36366be1a
|
|
@ -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…
Reference in New Issue