Commit f9053b91 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

dbghelp: Avoid accessing a negative string index when parsing stabs entries with an empty string.

parent 4a95b6ae
......@@ -1213,7 +1213,7 @@ BOOL stabs_parse(struct module* module, unsigned long load_offset,
WARN("Bad stabs string %p\n", ptr);
continue;
}
if (ptr[strlen(ptr) - 1] == '\\')
if (*ptr != '\0' && (ptr[strlen(ptr) - 1] == '\\'))
{
/*
* Indicates continuation. Append this to the buffer, and go onto the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment