• src/sbbs3/js_console.cpp

    From Rob Swindell (on Windows@VERT to Git commit to main/sbbs/m on Sat Mar 23 17:11:00 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/35666fb0ec7116fd0580da76
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Fix CID 479078: Resource leak (RESOURCE_LEAK)

    Passing an unparseable integer to console.editfile() could leak heap memory

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on ChromeOS@VERT to Git commit to main/sbbs/m on Tue May 21 19:42:00 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/b5365030a7b32e167db28df5
    Modified Files:
    src/sbbs3/js_console.cpp load_cfg.c sbbsdefs.h scfgdefs.h
    Log Message:
    Replace ctrl/attr.cfg (customized text colors/attrs) with ctrl/attr.ini

    Another legacy config file replaced with .ini file (for easier editing and future extensibility).

    No longer dynamically allocate scfg_t.colors (no need). There's really no reason why this is still an array, but leave as is for now.

    Also, I noticed JS console.color_list (also an array) is not enumerable
    (or documented) - that should be fixed.

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows@VERT to Git commit to main/sbbs/m on Tue Aug 6 18:11:00 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/049c18c41a02cf6a6934ecd5
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Fix potential null object pointer passed to JS_GetProperty in js_gotoxy()

    I'm not sure under what script conditions this could happen, but apparently Nelgin was able to produce this null pointer deref (and segfault) using DDMsgReader. This should fix issue #769

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Tue Aug 6 18:27:00 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/a2d6dc86b0b09664a1782cb6
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Better invalid argument reporting (null object) from js_gotoxy()

    The calling script will still terminate if it does this, but at least the caller will get a useful JS exception.

    Related to fix for issue #769

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Fri Dec 6 17:38:28 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/097e0162ab78524539fea92c
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Parse console.inkey() timeout parameter as an *unsigned* integer

    A negative timeout value doesn't make sense and this will extend the legal (positive) range of this parameter value.

    Hopefully this will help eliminate these errors I get often:
    dd_lightbar_menu.js line 4041: Error: can't convert inputTimeoutMS to an
    integer

    But if there's some way that this parameter value is even out of the range of an unsigned 32-bit value (4294967295) then this error could still happen. Unfortunately, the JS exception doesn't report the value that failed to convert.

    ---
    � 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 Sat Jan 25 17:23:49 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/484706a8ba4fd641267db20a
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Add getkey_inactivity_warning property (alias: inactivity warning)

    Configured duration in seconds before warning about pending disconnection due to
    user/keyboard inactivity (or 0 if disabled).

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Sat Jan 25 17:49:48 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/4e87ccf78f8d10121d96492b
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Resolve MSVC warning

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Sun Mar 2 20:44:35 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/db8708b2d9c285a40d79eeda
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Add console.cleartoeos() method

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