mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[REGDUMP]
- Fix a buffer overflow. Patch by Víctor Martínez Calvo. ROSTESTS-203 #resolve svn path=/trunk/; revision=72960
This commit is contained in:
parent
3d2b354712
commit
7f94fb8b3d
1 changed files with 1 additions and 1 deletions
|
@ -310,7 +310,7 @@ DWORD convertHexCSVToHex(TCHAR* str, BYTE* buf, ULONG bufLen)
|
|||
TCHAR xbuf[3];
|
||||
TCHAR wc;
|
||||
memcpy(xbuf, s, 2);
|
||||
xbuf[3] = _T('\0');
|
||||
xbuf[2] = _T('\0');
|
||||
_stscanf(xbuf, _T("%02x"), (UINT*)&wc);
|
||||
if (byteCount < bufLen)
|
||||
*b++ = (unsigned char)wc;
|
||||
|
|
Loading…
Reference in a new issue