crypt32: Allow only ASCII digits in CRYPT_AsnEncodeNumericString.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-02-06 14:00:20 +01:00 committed by Alexandre Julliard
parent ffbb1c4eb4
commit 275f6ca3df
1 changed files with 1 additions and 1 deletions

View File

@ -2060,7 +2060,7 @@ static BOOL CRYPT_AsnEncodeNumericString(const CERT_NAME_VALUE *value,
ptr += lenBytes;
for (i = 0; ret && i < encodedLen; i++)
{
if (isdigitW(str[i]))
if ('0' <= str[i] && str[i] <= '9')
*ptr++ = (BYTE)str[i];
else
{