Commit 275f6ca3 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

crypt32: Allow only ASCII digits in CRYPT_AsnEncodeNumericString.

parent ffbb1c4e
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment