Skip to content
Snippets Groups Projects
Commit dfbaa901 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard
Browse files

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

parent 23be4ff0
No related branches found
No related tags found
No related merge requests found
......@@ -389,10 +389,13 @@ enum get_sym_val DEBUG_GetSymbolValue( const char * name,
{
char buffer[512];
assert(strlen(name) < sizeof(buffer) - 2); /* one for '_', one for '\0' */
buffer[0] = '_';
strcpy(buffer + 1, name);
num = DEBUG_GSV_Helper(buffer, lineno, value, NUMDBGV, bp_flag);
if (strlen(name) < sizeof(buffer) - 2) /* one for '_', one for '\0' */
{
buffer[0] = '_';
strcpy(buffer + 1, name);
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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment