dbghelp: Avoid accessing a negative string index when parsing stabs entries with an empty string.
This commit is contained in:
parent
4a95b6ae0a
commit
f9053b91bf
|
@ -1213,7 +1213,7 @@ BOOL stabs_parse(struct module* module, unsigned long load_offset,
|
||||||
WARN("Bad stabs string %p\n", ptr);
|
WARN("Bad stabs string %p\n", ptr);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (ptr[strlen(ptr) - 1] == '\\')
|
if (*ptr != '\0' && (ptr[strlen(ptr) - 1] == '\\'))
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Indicates continuation. Append this to the buffer, and go onto the
|
* Indicates continuation. Append this to the buffer, and go onto the
|
||||||
|
|
Loading…
Reference in New Issue