mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
wolfcrypt/src/asn.c: in wc_PemCertToDer_ex() and wc_PemPubKeyToDer_ex(), work around false positive -Wmaybe-uninitialized from scan-build.
This commit is contained in:
@ -23395,7 +23395,7 @@ int wc_PemCertToDer_ex(const char* fileName, DerBuffer** der)
|
|||||||
#ifndef WOLFSSL_SMALL_STACK
|
#ifndef WOLFSSL_SMALL_STACK
|
||||||
byte staticBuffer[FILE_BUFFER_SIZE];
|
byte staticBuffer[FILE_BUFFER_SIZE];
|
||||||
#endif
|
#endif
|
||||||
byte* fileBuf;
|
byte* fileBuf = NULL;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
XFILE file = XBADFILE;
|
XFILE file = XBADFILE;
|
||||||
int dynamic = 0;
|
int dynamic = 0;
|
||||||
@ -23486,7 +23486,7 @@ int wc_PemPubKeyToDer_ex(const char* fileName, DerBuffer** der)
|
|||||||
#ifndef WOLFSSL_SMALL_STACK
|
#ifndef WOLFSSL_SMALL_STACK
|
||||||
byte staticBuffer[FILE_BUFFER_SIZE];
|
byte staticBuffer[FILE_BUFFER_SIZE];
|
||||||
#endif
|
#endif
|
||||||
byte* fileBuf;
|
byte* fileBuf = NULL;
|
||||||
int dynamic = 0;
|
int dynamic = 0;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
long sz = 0;
|
long sz = 0;
|
||||||
|
Reference in New Issue
Block a user