BBS:      TELESC.NET.BR
Assunto:  src/xpdev/dat_file.c
De:       Deuc¨
Data:     Sun, 15 Mar 2026 16:01:53 -0700
-----------------------------------------------------------
https://gitlab.synchro.net/main/sbbs/-/commit/97495ee29f0da7a841cfad0e
Modified Files:
	src/xpdev/dat_file.c
Log Message:
Fix csvEncode() heap buffer overflow

malloc(strlen * 2) was too small  worst case (all double-quotes with
enclosure) needs strlen * 2 + 3 bytes: each quote doubled, plus
opening quote, closing quote, and NUL terminator.

Co-Authored-By: Claude Opus 4.6 
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

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