• src/sbbs3/ars.c

    From Rob Swindell@VERT to Git commit to main/sbbs/master on Wednesday, February 23, 2022 23:25:45
    https://gitlab.synchro.net/main/sbbs/-/commit/92d91fb153b42ffc67947e6c
    Modified Files:
    src/sbbs3/ars.c
    Log Message:
    Comment intentional case statement fall-throughs

    CID 33207
    CID 33208
    CID 33209

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on ChromeOS)@VERT to Git commit to main/sbbs/master on Sunday, June 11, 2023 14:33:40
    https://gitlab.synchro.net/main/sbbs/-/commit/f9acb79dec8930f45cd3d2dc
    Modified Files:
    src/sbbs3/ars.c
    Log Message:
    Fix unaligned memory accesses as reported by ASan

    e.g. runtime error: store to misaligned address 0x7ffec33195e3 for type
    'short int', which requires 2 byte alignment

    These aren't a problem for x86, but could be a problem for some other CPU architectures that don't support unaligned access. I didn't use memcpy() to resolve this (though that would've worked) to make this change endian agnostic.

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