• src/sbbs3/logfile.cpp scfglib1.c

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sat Dec 5 15:16:19 2026
    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