Added additional array boundary check.
This commit is contained in:
parent
b0720eb617
commit
6eb4f0248d
@ -424,7 +424,10 @@ static int AddModule(address, symbol)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (num_modules > 0)
|
||||
mp = &sym_array_modules[num_modules - 1];
|
||||
else
|
||||
mp = &sym_array_modules[0];
|
||||
AddSymbol(mp, address, symbol);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user