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:
dwarning 2018-10-29 17:04:19 +01:00 committed by Holger Vogt
parent a2c5cb4301
commit a36366be1a
1 changed files with 1 additions and 1 deletions

View File

@ -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);