BBS:      TELESC.NET.BR
Assunto:  src/ssh/ssh-auth.c src/ssh/test/dssh_test_internal.h test_auth.c
De:       Deuc¨
Data:     Wed, 25 Mar 2026 00:49:07 -0700
-----------------------------------------------------------
https://gitlab.synchro.net/main/sbbs/-/commit/c5e8b4efff3f8f6aec667491
Modified Files:
	src/ssh/ssh-auth.c src/ssh/test/dssh_test_internal.h test_auth.c
Log Message:
ssh-auth.c: direct parse_userauth_prefix tests (7 new tests)

Make parse_userauth_prefix DSSH_TESTABLE and add 7 direct unit tests
that call it from the main thread. This bypasses a coverage counter
issue where threaded server tests' branch hits don't register in
merged profdata.

Tests cover all 6 truncation branches in parse_userauth_prefix:
- Empty payload (no username length)
- Truncated username data
- No service length field
- Truncated service data
- No method length field
- Truncated method data
- Valid parse (positive test)

ssh-auth.c missed branches: 64  55.

Co-Authored-By: Claude Opus 4.6 (1M context) 
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

-----------------------------------------------------------
[Voltar]