Skip to content
Snippets Groups Projects
  1. Aug 08, 2024
    • Rob Swindell's avatar
      Fix CID 508260: Null pointer dereference · 8fc08f0d
      Rob Swindell authored
      And really, more importantly, the msg header field_list array length would
      always be interpretted as 0-length!
      
      ... introduced in commit 54523145
      8fc08f0d
    • Rob Swindell's avatar
      Fix CID 508259: Control flow issue (DEADCODE) · c8a83171
      Rob Swindell authored
      ... introduced in commit 54523145
      c8a83171
    • Rob Swindell's avatar
      Display usage help when unrecognized param is detected · 54277dec
      Rob Swindell authored
      Include -pause and -loop options in usage help output.
      
      Don't delay (sleep) one second when looping and -pause option is used.
      
      Flush the output before waiting for key-press (-pause option is used).
      
      This should all address issue #365. Sorry for the long wait.
      54277dec
    • Rob Swindell's avatar
      StartXferNow string now contains argument (%s) for the protocol name · a71a2044
      Rob Swindell authored
      This is helpful when auto-starting a download using the user's pre-selected
      default download protocol, reminds the user to start the appropriate transfer
      protocol on their end (when necessary).
      
      Goes along with the previous commited fix to issue #767
      a71a2044
    • Rob Swindell's avatar
      Don't display menu of file xfer prots when auto-selecting user's default prot · 64a6ab9d
      Rob Swindell authored
      When a user has a "default download protocol" selected (configured for their
      user account), don't display a menu of file transfer protocols when we're
      just going to auto-select their default anyway (e.g. when downloading a QWK
      packet).
      
      This change also introduces an argument (%s, the protocol name) in the
      StartXferNow text.dat string, so that if/when the user forgets which default
      download transfer protocol they had selected, they'll be reminded ("oh yeah,
      I need start an XMODEM download!").
      
      This fixes issue #767
      64a6ab9d
    • Rob Swindell's avatar
      Prevent NULL pointer dereference when 'null' object passed to JS functions · 54523145
      Rob Swindell authored
      As was discovered as part of investigation into issue #769, a JavaScript
      could crash SBBS (cause a segfault) due to a NULL pointer dereference when
      the script passes 'null' to native JS functions where an object is expected.
      
      The issue raised was with console.gotoxy(), but it turns out that *many*
      Synchronet native JS functions would call JSVAL_TO_OBJECT() and then, without
      checking for NULL/nullptr, pass its return value to JS api functions such as
      JS_GetPrivate, JS_GetProperty, JS_GetClass, JS_ObjectIsFunction,
      JS_IsArrayObject, JS_GetArrayLength, JS_DefineProperty, JS_Enumerate, etc.
      All of these JS API functions dereference the passed object pointer without
      NULL/nullptr checking.
      
      The fix here is to either call JSVAL_IS_NULL() or JSVAL_NULL_OR_VOID() and
      if true, not call JSVAL_TO_OBJECT() and/or check the return value for the NULL
      value before using as an argument to any other JS API functions.
      54523145
  2. Aug 07, 2024
  3. Aug 06, 2024
  4. Aug 05, 2024
  5. Aug 04, 2024
  6. Jul 23, 2024
  7. Jul 22, 2024
  8. Jul 21, 2024
  9. Jul 20, 2024
  10. Jul 17, 2024
    • Rob Swindell's avatar
      Allow time format to be set via modopts.ini [logonlist] time_fmt · bc10c82c
      Rob Swindell authored
      ... in strftime format (https://cplusplus.com/reference/ctime/strftime/)
      
      If you (sysop) have last_few_callers_fmt set to a custom value in your
      modopts.ini, you'll need to update that format as a result of this change:
      the number and type of arguments have now changed: instead of the logon
      time be passed as hours and minutes (integers), it's now passed as a single
      a string. That string is the result of a call to strftime() with the time_fmt
      or (by default), "%H:%M".
      
      This change was made to accommodate request by NeoArata (THEREALM)
      bc10c82c
  11. Jul 16, 2024
  12. Jul 12, 2024
  13. Jul 11, 2024
  14. Jul 10, 2024
  15. Jul 02, 2024
Loading