mirror of
https://github.com/reactos/reactos.git
synced 2025-07-13 15:14:12 +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:
|
case N_SO:
|
||||||
Name = (char *) StabStringsBase + StabEntry[i].n_strx;
|
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]
|
|| '\\' == Name[strlen(Name) - 1]
|
||||||
|| StabEntry[i].n_value < ImageBase)
|
|| StabEntry[i].n_value < ImageBase)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue