1. 28 Aug, 2019 3 commits
  2. 27 Aug, 2019 30 commits
  3. 26 Aug, 2019 6 commits
    • rswindell's avatar
      Implement a simple bound-checker in RingBufWrite(): · e3892691
      rswindell authored
      if the ringbuf is shared among multiple threads (e.g. the sbbs->outbuf is
      shared between output_thread() and passthru_thread()) - it was possible
      for a race condition to occur between the caller would call RingBufFree
      to determine the available space in the ringbuf and the call to RingBufWrite
      which would happily overflow the allocated buffer if more data was
      written to the ringbuf (by another thread) in the unprotected time between the
      RingBufFree and RingBufWrite calls.
      Now, RingBufWrite() can perform short-writes and will return a length less
      than what was requested to write when there is not enough available space
      to write the requested length.
      Hopefully this resolves the corruption/crash issue Deuce is seeing in
      sbbs's passthru_thread().
    • rswindell's avatar
      New global function: utf8_width() · f3e14e0d
      rswindell authored
      - returns the fixed printed-width of the specified UTF-8 encoded string
    • rswindell's avatar
      Added auxattr MSG_HFIELDS_UTF8 bit definition. · 5a1e7f43
      rswindell authored
    • rswindell's avatar
      In *nix builds, change the second almost identical log "Executing external" · 38e30cd4
      rswindell authored
      log message to:
      - only log the message if the "full command line" is different than the
        command-line argument to the external() function. I'm pretty sure that was
        the reason for the addition of this log message, for debugging Linux-DOSEMU
        issues where the fullcmdline != cmdline.
      - change from INFO to DEBUG log level
      - change the message from "executing external: " to "Executing cmd-line: "
    • rswindell's avatar
      Re-enable socket optoins and blocking configuration for the client_socket_dup · 801631e5
      rswindell authored
      when de-activating the passthru_socket.
    • deuce's avatar
      If an exception is thrown by the exec()d script, return it instead of the · 5309058a
      deuce authored
      exit_code, and don't throw the exception in the caller.
      Remove support for js_scope == scope.  It sorta defeats the whole purpose
      of js.exec().
  4. 25 Aug, 2019 1 commit