BBS: TELESC.NET.BR Assunto: src/ssh/ssh-arch.c ssh-conn.c src/ssh/test/dssh_test_alloc.c dssh_test De: Deuc¨ Data: Fri, 27 Mar 2026 20:57:48 -0700 ----------------------------------------------------------- https://gitlab.synchro.net/main/sbbs/-/commit/ef7aa088602f6496b7d3c37c Modified Files: src/ssh/ssh-arch.c ssh-conn.c src/ssh/test/dssh_test_alloc.c dssh_test_alloc.h test_arch.c test_conn.c Log Message: Add alloc failure sweeps for channel open, conditional demux exclusion Two new alloc sweep tests (open_exec, open_shell) iterate malloc failure points during channel open, verifying NULL return without crash or hang. New dssh_test_alloc_exclude_new_threads() flag lets tests opt demux threads out of alloc injection. The flag is conditional -- demux only self-excludes when the test explicitly sets it, so future server-side demux alloc tests remain possible. Cleared by dssh_test_alloc_reset(). Reorder ssh-arch.c NULL guards (val/pos first, buf last) and add explicit NULL tests for dssh_parse_uint32 and dssh_serialize_uint32 to reach 100% branch coverage on ssh-arch.c. Co-Authored-By: Claude Opus 4.6 (1M context)n --- mSynchronetn hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net ----------------------------------------------------------- [Voltar]