Author: tfaber Date: Wed Oct 12 12:41:31 2016 New Revision: 72960
URL: http://svn.reactos.org/svn/reactos?rev=72960&view=rev Log: [REGDUMP] - Fix a buffer overflow. Patch by Víctor Martínez Calvo. ROSTESTS-203 #resolve
Modified: trunk/rostests/tests/regdump/regproc.c
Modified: trunk/rostests/tests/regdump/regproc.c URL: http://svn.reactos.org/svn/reactos/trunk/rostests/tests/regdump/regproc.c?re... ============================================================================== --- trunk/rostests/tests/regdump/regproc.c [iso-8859-1] (original) +++ trunk/rostests/tests/regdump/regproc.c [iso-8859-1] Wed Oct 12 12:41:31 2016 @@ -310,7 +310,7 @@ 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;