• 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