BBS: TELESC.NET.BR Assunto: src/sbbs3/writemsg.cpp De: Rob Swindell (on Debian Linux) Data: Wed, 6 May 2026 19:41:53 -0700 ----------------------------------------------------------- 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.7n --- mSynchronetn hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net ----------------------------------------------------------- [Voltar]