Fixed potential crash in string variable printing.
This commit is contained in:
parent
805e58108e
commit
1427343172
|
@ -403,6 +403,9 @@ DEBUG_GetExprValue(DBG_ADDR * addr, char ** format)
|
|||
if( type2->type == DT_BASIC && type2->un.basic.basic_size == 1 )
|
||||
{
|
||||
def_format = "\"%s\"";
|
||||
address.off = rtn;
|
||||
address.seg = 0;
|
||||
if (!DBG_CHECK_READ_PTR( &address, 1 )) return 0;
|
||||
break;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue