Commit dfbaa901 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

Replaced assert by simple if + warning message for too long symbols.

parent 23be4ff0
...@@ -389,11 +389,14 @@ enum get_sym_val DEBUG_GetSymbolValue( const char * name, ...@@ -389,11 +389,14 @@ enum get_sym_val DEBUG_GetSymbolValue( const char * name,
{ {
char buffer[512]; char buffer[512];
assert(strlen(name) < sizeof(buffer) - 2); /* one for '_', one for '\0' */ if (strlen(name) < sizeof(buffer) - 2) /* one for '_', one for '\0' */
{
buffer[0] = '_'; buffer[0] = '_';
strcpy(buffer + 1, name); strcpy(buffer + 1, name);
num = DEBUG_GSV_Helper(buffer, lineno, value, NUMDBGV, bp_flag); num = DEBUG_GSV_Helper(buffer, lineno, value, NUMDBGV, bp_flag);
} }
else DEBUG_Printf(DBG_CHN_WARN, "Way too long symbol (%s)\n", name);
}
/* now get the local symbols if any */ /* now get the local symbols if any */
if (DEBUG_GetStackSymbolValue(name, &vtmp) && num < NUMDBGV) if (DEBUG_GetStackSymbolValue(name, &vtmp) && num < NUMDBGV)
......
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