https://gitlab.synchro.net/main/sbbs/-/commit/88b70f03d0f04fb63dc37d00
Modified Files:
src/ssh/test/test_conn.c test_transport.c
Log Message:
Test the last "practically untestable" branches
All four turned out to be testable:
- aes256_ctr/ctx_member_null: cbd non-NULL but cbd->ctx is NULL
(second half of OR condition at line 46)
- aes256_ctr/encrypt_update_fail: arm ossl countdown AFTER init
succeeds so EVP_EncryptUpdate fails mid-operation
- hmac_sha2_256/cleanup_null: call cleanup with NULL ctx
- hmac_sha2_256/generate_failure: arm ossl countdown AFTER init
succeeds so EVP_MAC operations fail mid-generate
- test_window_add_overflow: set local_window near UINT32_MAX,
send_window_adjust with enough to overflow — clamps to UINT32_MAX
Co-Authored-By: Claude Opus 4.6 (1M context) <
noreply@anthropic.com>
--- SBBSecho 3.37-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)