Skip to content
Snippets Groups Projects
  1. Feb 08, 2025
    • Rob Swindell's avatar
      Native JS methods must return JS_FALSE for (Error) exceptions to be thrown · 6ed4a05f
      Rob Swindell authored
      I discovered the first case when FileBase.get_path() failed, but didn't
      (immediately) throw an exception. Reviewing the other instances of
      JS_RepoertError() calls found several that either reported a garbage (e.g.
      NULL) string value or returned JS_TRUE.
      
      The design pattern used a little in js_socket.c probably should be used more:
      
      	if (JS_IsExceptionPending(cx))
      		return JS_FALSE;
      	return JS_TRUE;
      
      ... but that's more of a refactor than I had the stomach for right now.
      6ed4a05f
    • Deucе's avatar
      Fix memory leak in read_chunked() · 3676d09a
      Deucе authored
      3676d09a
    • Deucе's avatar
      Fix chunked transfer encoding of web lists · 0985260e
      Deucе authored
      It's Transfer-Encoding:, not Content-Transfer-Encoding:, and each
      chunk has a \r\n appended to it.
      0985260e
    • Deucе's avatar
      Terminate header parsing loop on \n as well as \r · 84c4814a
      Deucе authored
      With the latest change, *val will be \n after the last item, so
      this avoids an extra loop through the loops.
      84c4814a
    • Deucе's avatar
      Fix two (more) bugs with Web Lists · c35aa0bc
      Deucе authored
      1 - If cache-control header had more than one option, an infinite
          loop would occur.
      2 - For TLS, if the remote closes the connection after the transfer,
          a "Complete" error would occur.
      
      Together, these should fox ticket 191
      c35aa0bc
  2. Feb 06, 2025
  3. Feb 05, 2025
Loading