mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-06 00:00:49 +02:00
599eec673e
In ImportKeyState(), wordAdj was always zero because it was computed after clamping wordCount, and the subtraction direction was reversed. This caused misaligned parsing of all subsequent fields when importing state from a peer compiled with a larger WOLFSSL_DTLS_WINDOW_WORDS. Fix both window and prevWindow blocks to compute the adjustment before clamping, with the correct subtraction direction. Add test that imports a state buffer with wordCount > WOLFSSL_DTLS_WINDOW_WORDS to verify the fix.
Before creating any new configure files (.conf) read the CONF_FILES_README.md