• src/sbbs3/getmail.c

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sun Nov 22 12:19:51 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/8731cd866bed775ad48c49b6
    Modified Files:
    src/sbbs3/getmail.c
    Log Message:
    Mailbox size: don't trust a header's data field count beyond its length

    mail_stored_bytes() read as many data fields as a message header's total_dfields claimed, up to 65,535 reads for a corrupt header. A count
    whose fields do not fit within the header record's length is now taken as corrupt and the message counts 0, as an unreadable header already did.
    The data length is kept as an off_t, so a corrupt field offset and length cannot wrap it.

    Coverity CIDs 662421, 662426.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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