BBS:      TELESC.NET.BR
Assunto:  src/ssh/ssh-chan.c
De:       Deuc¨
Data:     Wed, 25 Mar 2026 23:06:00 -0700
-----------------------------------------------------------
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) 
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

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