@@ -3007,7 +3007,7 @@ static int GetInputText(WOLFSSH* ssh, byte** pEol)
3007
3007
int gotLine = 0 ;
3008
3008
int inSz = 255 ;
3009
3009
int in ;
3010
- char * eol ;
3010
+ char * eol = NULL ;
3011
3011
3012
3012
if (GrowBuffer (& ssh -> inputBuffer , inSz ) < 0 )
3013
3013
return WS_MEMORY_E ;
@@ -4099,7 +4099,7 @@ static int DoKexInit(WOLFSSH* ssh, byte* buf, word32 len, word32* idx)
4099
4099
wc_HashAlg * hash = & ssh -> handshake -> kexHash ;
4100
4100
enum wc_HashType hashId = (enum wc_HashType )ssh -> handshake -> kexHashId ;
4101
4101
byte scratchLen [LENGTH_SZ ];
4102
- word32 strSz ;
4102
+ word32 strSz = 0 ;
4103
4103
4104
4104
if (!ssh -> isKeying ) {
4105
4105
WLOG (WS_LOG_DEBUG , "Keying initiated" );
@@ -4446,7 +4446,7 @@ static int ParseECCPubKey(WOLFSSH *ssh,
4446
4446
#ifndef WOLFSSH_NO_ECDSA
4447
4447
const byte * q ;
4448
4448
word32 qSz , pubKeyIdx = 0 ;
4449
- int primeId ;
4449
+ int primeId = 0 ;
4450
4450
word32 scratch ;
4451
4451
4452
4452
ret = wc_ecc_init_ex (& sigKeyBlock_ptr -> sk .ecc .key , ssh -> ctx -> heap ,
@@ -11262,7 +11262,7 @@ int SendKexDhReply(WOLFSSH* ssh)
11262
11262
byte f_s [KEX_F_SIZE ];
11263
11263
byte sig_s [KEX_SIG_SIZE ];
11264
11264
#endif
11265
- byte msgId ;
11265
+ byte msgId = 0 ;
11266
11266
byte useDh = 0 ;
11267
11267
byte useEcc = 0 ;
11268
11268
byte useCurve25519 = 0 ;
@@ -13980,7 +13980,7 @@ int SendUserAuthFailure(WOLFSSH* ssh, byte partialSuccess)
13980
13980
byte * output ;
13981
13981
word32 idx ;
13982
13982
int ret = WS_SUCCESS ;
13983
- int authSz ;
13983
+ int authSz = 0 ;
13984
13984
char authStr [MAX_AUTH_STRING ];
13985
13985
13986
13986
WLOG (WS_LOG_DEBUG , "Entering SendUserAuthFailure()" );
@@ -14503,7 +14503,7 @@ int SendChannelEow(WOLFSSH* ssh, word32 peerChannelId)
14503
14503
byte * output ;
14504
14504
const char * str = "eow@openssh.com" ;
14505
14505
word32 idx ;
14506
- word32 strSz ;
14506
+ word32 strSz = 0 ;
14507
14507
int ret = WS_SUCCESS ;
14508
14508
WOLFSSH_CHANNEL * channel = NULL ;
14509
14509
@@ -14560,7 +14560,7 @@ int SendChannelExit(WOLFSSH* ssh, word32 peerChannelId, int status)
14560
14560
byte * output ;
14561
14561
const char * str = "exit-status" ;
14562
14562
word32 idx ;
14563
- word32 strSz ;
14563
+ word32 strSz = 0 ;
14564
14564
int ret = WS_SUCCESS ;
14565
14565
WOLFSSH_CHANNEL * channel = NULL ;
14566
14566
0 commit comments