From 1427343172fda59fc67484ea72ce77080bd03e3d Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Sat, 23 Oct 1999 14:19:14 +0000 Subject: [PATCH] Fixed potential crash in string variable printing. --- debugger/types.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debugger/types.c b/debugger/types.c index bb04bc09810..04bef27e635 100644 --- a/debugger/types.c +++ b/debugger/types.c @@ -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 -- 2.11.4.GIT