• src/sbbs3/scfglib1.c scfglib2.c

    From rswindell@VERT to CVS commit on Thursday, March 13, 2014 22:37:38
    src/sbbs3 scfglib1.c 1.63 1.64 scfglib2.c 1.42 1.43
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv24706

    Modified Files:
    scfglib1.c scfglib2.c
    Log Message:
    The free_xxx_cfg() functions which free arrays of configuration items will now also clear the associated counts (sizes) for these arrays, eliminating some potential crashes while dereferencing these arrays after freeing (e.g. during shutdown or recycle of sbbs).


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Tuesday, January 24, 2023 17:37:31
    https://gitlab.synchro.net/main/sbbs/-/commit/5a9cf58f77d0d7d1a1240f13
    Modified Files:
    src/sbbs3/scfglib1.c scfglib2.c
    Log Message:
    Don't conditionally allocate scfg_t dynamic arrays

    malloc(0) returns a usable/freeable pointer on all supported platforms.

    This change insures that the scfg_t dynamically allocated arrays are all valid non-NULL pointers, even if/when the array length is 0. This should resolve
    a lot of new(ish) CIDs. Or not. We'll see. :-/

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net