• src/sbbs3/js_msg_area.c

    From Rob Swindell@VERT to Git commit to main/sbbs/master on Fri Jan 1 17:28:31 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/2d421cb3bc706591c9f76508
    Modified Files:
    src/sbbs3/js_msg_area.c
    Log Message:
    Fix: can_* and is_* properties were not dynamic. Added "posts" property.

    The following properties would only reflect the status at the time the
    msg_area object was initialized:
    - can_access
    - can_read
    - can_post
    - is_operator
    - is_moderated

    ... so if changes were made the user while online, for example, these
    property values would *not* also change to reflect the current state.

    The grp[] and grp_list[] 'can_access' properties still have this flaw.

    Also: Add a new "posts" property to the sub[] and sub_list[] objects to
    report the current number of posted messages (quicker than opening a MsgBase instance).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Fri Jan 1 17:41:36 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/b6584f1e735f735feb3079fd
    Modified Files:
    src/sbbs3/js_msg_area.c
    Log Message:
    Fix NULL-ptr dereferences when subscan is NULL

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Wed Sep 18 14:32:21 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/4beab2c67bcb56ceec7142da
    Modified Files:
    src/sbbs3/js_msg_area.c
    Log Message:
    Use JS_ValueToECMAUint32() instead of JS_ValueToInt32() for scan_ptr prop set

    scan_cfg and last_read props too. This gives us use of the entire 32-bit range of an unsigned int. But does someone actually have a message base with message numbers in the billions?

    This is an attempt to fix isssue #792, but I suspect scan_ptr might instead be trying to be set to NaN or ... ?

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