Merge pull request #9973 from JacobBarthelmeh/static_analysis

fix to sanity check on importing raw session key info
This commit is contained in:
David Garske
2026-03-16 13:46:53 -06:00
committed by GitHub
+1 -1
View File
@@ -1169,7 +1169,7 @@ static int ImportKeyState(WOLFSSL* ssl, const byte* exp, word32 len, byte ver,
XMEMCPY(keys->server_write_MAC_secret, exp + idx, sz); idx += sz;
}
#else
if (sz + idx > len) {
if ((sz * 2) + idx > len) {
return BUFFER_E;
}
idx += sz; idx += sz;