Subj : src/sbbs3/writemsg.cpp To : Git commit to main/sbbs/master From : Rob Swindell (on Debian Linux) Date : Wed May 06 2026 19:41:53 https://gitlab.synchro.net/main/sbbs/-/commit/a7106cca0cf813beb39710d0 Modified Files: src/sbbs3/writemsg.cpp Log Message: writemsg: bail out on ftell error before reusing offset (CID 640333) writemsg() captures the message-start offset with ftell() and reuses it via three subsequent fseek(stream, l, SEEK_SET) calls. ftell may return -1 on error, in which case the fseek calls would seek to a negative offset (UB) and corrupt the quoted-text buffer. Bail out cleanly instead, mirroring the existing error-cleanup paths. Co-Authored-By: Claude Opus 4.7 --- þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net .