https://gitlab.synchro.net/main/sbbs/-/commit/0da194ddb0fcd4a096792d9c
Modified Files:
src/sbbs3/logfile.cpp scfglib1.c
Log Message:
Fix Coverity CIDs 663413, 663412 in dated log file code
read_main_cfg() returned on a failed malloc of a shell or dated log entry without freeing the parsed sections, the ini and the section name lists
(CID 663413). Those returns now go through a common cleanup. And the
entry counts are trimmed to the entries allocated, so free_main_cfg() no
longer frees uninitialized pointers after such a failure.
dated_log_maint() wrote through getfext()'s return value without a NULL
check (CID 663412). dated_log_archived() already implies an extension,
but checking costs nothing.
Both arrived with afa023d649 (purple-19-easily, 2026-12-04).
Co-Authored-By: Claude Opus 5.5 <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net