wincng.c: fix possible use of uninitialized memory
Fixes VS2012 code analysis warning C6001: using uninitialized memory 'cbDecoded'. libssh2 wincng.c 553
Этот коммит содержится в:
родитель
e57f29f8f6
Коммит
06ff22f1a6
@ -546,8 +546,8 @@ _libssh2_wincng_asn_decode(unsigned char *pbEncoded,
|
||||
unsigned char **ppbDecoded,
|
||||
unsigned long *pcbDecoded)
|
||||
{
|
||||
unsigned char *pbDecoded;
|
||||
unsigned long cbDecoded;
|
||||
unsigned char *pbDecoded = NULL;
|
||||
unsigned long cbDecoded = 0;
|
||||
int ret;
|
||||
|
||||
ret = CryptDecodeObjectEx(X509_ASN_ENCODING | PKCS_7_ASN_ENCODING,
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user