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:
parent
ffbb1c4eb4
commit
275f6ca3df
|
@ -2060,7 +2060,7 @@ static BOOL CRYPT_AsnEncodeNumericString(const CERT_NAME_VALUE *value,
|
||||||
ptr += lenBytes;
|
ptr += lenBytes;
|
||||||
for (i = 0; ret && i < encodedLen; i++)
|
for (i = 0; ret && i < encodedLen; i++)
|
||||||
{
|
{
|
||||||
if (isdigitW(str[i]))
|
if ('0' <= str[i] && str[i] <= '9')
|
||||||
*ptr++ = (BYTE)str[i];
|
*ptr++ = (BYTE)str[i];
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue