]> git.ipfire.org Git - thirdparty/hostap.git/commit
OpenSSL: Avoid use of an uninitialized array
authorMeng Yuan <quic_menyua@quicinc.com>
Wed, 16 Apr 2025 06:51:21 +0000 (14:51 +0800)
committerJouni Malinen <j@w1.fi>
Fri, 25 Apr 2025 20:22:13 +0000 (23:22 +0300)
commit9fa657a73ecfe6618c7f50d53b0afe4a25c710c9
tree1669b5a81d3fe1cc5db0d99be4baf578c856f09f
parent03a434db22986292a354fadb27acb3d304892e15
OpenSSL: Avoid use of an uninitialized array

Initialize the skip_buf[] array before using it with EVP_CipherUpdate()
to skip the initial segment of RC4 output. This does not change actual
behavior since the output of that call is not used and it is only there
for changing the internal state of the RC4 cipher. However, this avoids
uninitialized element issues reported in MISRA.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/crypto/crypto_openssl.c