The following config:

./configure --with-liboqs --enable-all --disable-psk --enable-intelasm --enable-aesni --enable-sp-math-all --enable-sp-asm CFLAGS="-O3"

Yeilds the following erorr:

src/internal.c: In function ‘DoServerKeyExchange’:
src/internal.c:24487:28: error: ‘sigAlgo’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
24487 |                         if (sigAlgo == ed448_sa_algo &&
      |                            ^

This fixes it.
This commit is contained in:
Anthony Hu
2021-11-15 14:51:03 -05:00
parent 995ef60ff1
commit 0ae0b31509

View File

@ -24450,7 +24450,7 @@ static int DoServerKeyExchange(WOLFSSL* ssl, const byte* input,
#else #else
enum wc_HashType hashType; enum wc_HashType hashType;
word16 verifySz; word16 verifySz;
byte sigAlgo; byte sigAlgo = 0;
if (ssl->options.usingAnon_cipher) { if (ssl->options.usingAnon_cipher) {
break; break;