• src/ssh/ssh-chan.c

    From Deucе@VERT to Git commit to main/sbbs/master on Wed Mar 25 23:06:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/bdb23b7bc4371e2091228cfa
    Modified Files:
    src/ssh/ssh-chan.c
    Log Message:
    Guard bytebuf_read against division by zero on capacity==0

    Same pattern as bytebuf_write fix — early return if the ring
    buffer has zero capacity. All other division/modulo operations
    in the library use compile-time constants or function returns
    that are clamped to minimum values.

    Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net