https://gitlab.synchro.net/main/sbbs/-/commit/2836b0a2fe1df7c154492ad0
Modified Files:
src/syncterm/conn_conpty.c
Log Message:
Fix get_utf8_span() boundary checks in conn_conpty.c
Multi-byte UTF-8 completeness checks compared (b + N) <= last after
advancing b past the sequence, requiring N extra bytes beyond the
sequence end. Changed all three cases to (b - 1) <= last, which
correctly checks that the last byte of the sequence is within bounds. Previously, complete multi-byte sequences at the buffer end were
incorrectly excluded from the span count.
Co-Authored-By: Claude Opus 4.6 <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net