mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Protect against bogus string offsets
svn path=/trunk/; revision=13635
This commit is contained in:
parent
41475e9941
commit
c53bc44bae
1 changed files with 2 additions and 1 deletions
|
@ -442,7 +442,8 @@ ConvertStabs(ULONG *SymbolsCount, PROSSYM_ENTRY *SymbolsBase,
|
|||
{
|
||||
case N_SO:
|
||||
Name = (char *) StabStringsBase + StabEntry[i].n_strx;
|
||||
if ('\0' == *Name || '/' == Name[strlen(Name) - 1]
|
||||
if (StabStringsLength < StabEntry[i].n_strx
|
||||
||'\0' == *Name || '/' == Name[strlen(Name) - 1]
|
||||
|| '\\' == Name[strlen(Name) - 1]
|
||||
|| StabEntry[i].n_value < ImageBase)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue