• src/sbbs3/getmsg.cpp

    From Rob Swindell@VERT to Git commit to main/sbbs/master on Wednesday, January 20, 2021 23:00:27
    https://gitlab.synchro.net/main/sbbs/-/commit/f039b2aa3d8c26807b35390e
    Modified Files:
    src/sbbs3/getmsg.cpp
    Log Message:
    Clean-up MIME-Decoded plain-text format message

    Don't display at all if smb_getplaintext() returns a blank string.
    Don't display "(null)" if there's no text sub-type.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sunday, July 03, 2022 15:55:50
    https://gitlab.synchro.net/main/sbbs/-/commit/bd725db622999e7311ab340e
    Modified Files:
    src/sbbs3/getmsg.cpp
    Log Message:
    Paranoia around use of smb.subnum as an index into scfg.sub[]

    Use the is_valid_subnum() function before using the smb.subnum as an index into (s)cfg.sub[]. Related to the previous committed fix of writemsg(): leaving the global smb.subnum as -1 (INVALID_SUB) after replying to a post via email or netmail, resulting in a crash here.

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