1
0
Fork 0

BRIDGE: fix truncation crash in DbgGetLabelAt

This commit is contained in:
Duncan Ogilvie 2018-05-08 19:20:51 +02:00
parent d79586d02b
commit 62cd2bb915
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ BRIDGE_IMPEXP bool DbgGetLabelAt(duint addr, SEGMENTREG segment, char* text) //(
BRIDGE_ADDRINFO ptrinfo = info;
if(!_dbg_addrinfoget(addr_, SEG_DEFAULT, &ptrinfo))
return false;
sprintf_s(info.label, "&%s", ptrinfo.label);
_snprintf_s(info.label, _TRUNCATE, "&%s", ptrinfo.label);
}
strcpy_s(text, MAX_LABEL_SIZE, info.label);
return true;