1. 28 Jan, 2017 1 commit
  2. 27 Jan, 2017 2 commits
  3. 26 Jan, 2017 1 commit
  4. 25 Jan, 2017 1 commit
    • sigiesec's avatar
      Problem: zmq_z85_decode does not validate its input (#2322) · c6c21cf1
      sigiesec authored
      * Problem: zmq_z85_decode does not validate its input
      Solution: added checks for invalid characters and overflows
      
      * Added tests, added further check for range overflow, removed (multiple) calls to strlen
      
      * Problem: gcc fails to build
      Solution: added missing include directive
      
      * Added VS2015 test_utils_z85 project
      
      * Fixed indentation and copyright notice
      
      * Resolved garbage from merge
      
      * Revert "Added VS2015 test_utils_z85 project"
      
      This reverts commit c58b3c664c144326e77135aa1184b6f0dee11143.
      
      * Problem: test calls zmq_z85_decode with a NULL dest
      Solution: call zmq_z85_decode with a properly sized buffer
      
      * Problem: tests for zmq_z85_* scattered over two files
      Solution: merged files
      
      * Removed reference to removed test file from CMakeLists.txt
      
      * Problem: Missing include directive to stdint.h
      Solution: Added include directive
      
      * Define __STDC_LIMIT_MACROS before including stdint.h
      
      * Problem: Wrong variable is checked for invalid character marker
      Solution: Use correct variable
      c6c21cf1
  5. 22 Jan, 2017 2 commits
  6. 21 Jan, 2017 2 commits
  7. 19 Jan, 2017 8 commits
  8. 16 Jan, 2017 2 commits
  9. 12 Jan, 2017 2 commits
  10. 11 Jan, 2017 2 commits
  11. 10 Jan, 2017 3 commits
  12. 09 Jan, 2017 2 commits
  13. 08 Jan, 2017 1 commit
  14. 07 Jan, 2017 4 commits
  15. 06 Jan, 2017 5 commits
  16. 04 Jan, 2017 2 commits
    • Constantin Rack's avatar
      Merge pull request #2292 from bluca/osx_sigpipe · ceb6be77
      Constantin Rack authored
      Problem: peer can close connection before SO_NOSIGPIPE is set
      ceb6be77
    • Luca Boccassi's avatar
      Problem: peer can close connection before SO_NOSIGPIPE is set · 31a3a068
      Luca Boccassi authored
      Solution: setsockopt returns EINVAL if the connection was closed by
      the peer after the accept returned a valid socket. This is a valid
      network error and should not cause an assert.
      To handle this we have to extract the setsockopt from the stream
      engine, as there's no clean way to return an error from the
      constructor. Instead, try to set this option before creating the
      engine in the callers, and return immediately as if the accept
      had failed to avoid churn. Do the same for the connect calls by
      setting the option in open_socket, so that the option for that
      case is set even before connecting, so there's no possible race
      condition.
      Since this has to be done in 4 places (tcp/ipc listener, socks
      connecter and open_socket) add an utility function in ip.cpp.
      Fixes #1442
      31a3a068