• src/sbbs3/chksmb.c

    From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Wednesday, September 30, 2026 02:44:22
    https://gitlab.synchro.net/main/sbbs/-/commit/540ba0d0687f94c8aca7b65a
    Modified Files:
    src/sbbs3/chksmb.c
    Log Message:
    chksmb: compute a message's data block count once

    The data-block verification loop re-evaluated smb_datblocks(smb_getmsgdatlen(&msg)), which walks every data field, as
    its bound on each iteration.

    Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Saturday, November 14, 2026 13:59:52
    https://gitlab.synchro.net/main/sbbs/-/commit/6708bf23c477b7b9f02dae61
    Modified Files:
    src/sbbs3/chksmb.c
    Log Message:
    chksmb: report data blocks whose reference count doesn't match

    The data block check only counted free records in the allocation file
    and flagged active messages whose blocks were marked free. A block used
    by two messages but allocated once (cross-linked), or allocated with no
    message using it (leaked), went unreported; a cross-link surfaced only
    when the overwritten text happened to break a translation header.

    chksmb now counts, for every data block, the headers still allocated
    (deleted or not) that use it, and compares that with the block's
    reference count in the allocation file. Mismatches are reported per
    block and as "Data Block Reference Mismatches" in the summary, and the
    base is reported as having errors.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)