• src/ssh/ssh-chan.c

    From Deuc�@VERT to Git commit to main/sbbs/master on Wednesday, March 25, 2026 23:06:00
    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) <[email protected]>

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