1. 17 May, 2019 1 commit
    • Benjamin Peterson's avatar
      closes bpo-36755: Suppress noisy error output in test HTTPS server by default. (GH-13370) · 951af2d7
      Benjamin Peterson authored
      TLS 1.3 has a more efficient handshake protocol. The client can reject the server's credentials and close the connection before the server has even finished writing out all of its initial data. Depending on whether the server finishes writing the rest of its handshake before the it sees the connection is reset, the server will read an empty line or see a ECONNRESET OSError. Nothing is really wrong here with the server or client, so just suppress the error output in the OSError case to fix the test.
      
      This fix isn't required in Python 3 because clients that reject the server's certificate will shut down the TLS layer before closing the TCP connection.
      951af2d7
  2. 15 May, 2019 1 commit
  3. 13 May, 2019 2 commits
    • Terry Jan Reedy's avatar
    • Gregory P. Smith's avatar
      [2.7] bpo-35925: Skip SSL tests that fail due to weak external certs or old... · 7346a16e
      Gregory P. Smith authored
      [2.7] bpo-35925: Skip SSL tests that fail due to weak external certs or old TLS (GH-13124) (GH-13253)
      
      Modern Linux distros such as Debian Buster have default OpenSSL system
      configurations that reject connections to servers with weak certificates
      by default. This causes our test suite run with external networking
      resources enabled to skip these tests when they encounter such a
      failure.
      
      Fixing the network servers is a separate issue.
      (cherry picked from commit 2cc0223f)
      
      Changes to test_ssl.py required as 2.7 has legacy protocol tests.
      
      The test_httplib.py change is omitted from this backport as
      self-signed.pythontest.net's certificate was updated and the
      test_nntplib.py change is not applicable on 2.7.
      
      Authored-by: Gregory P. Smith greg@krypto.org
      7346a16e
  4. 12 May, 2019 1 commit
  5. 09 May, 2019 1 commit
  6. 08 May, 2019 1 commit
  7. 02 May, 2019 2 commits
  8. 01 May, 2019 1 commit
  9. 30 Apr, 2019 1 commit
  10. 29 Apr, 2019 1 commit
  11. 25 Apr, 2019 1 commit
  12. 22 Apr, 2019 1 commit
  13. 13 Apr, 2019 1 commit
  14. 12 Apr, 2019 1 commit
  15. 09 Apr, 2019 5 commits
  16. 03 Apr, 2019 1 commit
  17. 31 Mar, 2019 1 commit
  18. 28 Mar, 2019 1 commit
  19. 27 Mar, 2019 3 commits
  20. 26 Mar, 2019 2 commits
  21. 25 Mar, 2019 2 commits
  22. 20 Mar, 2019 2 commits
  23. 19 Mar, 2019 3 commits
  24. 18 Mar, 2019 2 commits
  25. 15 Mar, 2019 1 commit
  26. 14 Mar, 2019 1 commit
    • Victor Stinner's avatar
      bpo-36262: Fix _Py_dg_strtod() memory leak (goto undfl) (GH-12276) (GH-12332) · b1405787
      Victor Stinner authored
      Fix an unlikely memory leak on conversion from string to float in the
      function _Py_dg_strtod() used by float(str), complex(str),
      pickle.load(), marshal.load(), etc.
      
      Fix an unlikely memory leak in _Py_dg_strtod() on "undfl:" label:
      rewrite memory management in this function to always release all
      memory before exiting the function. Initialize variables to NULL, and
      set them to NULL after calling Bfree() at the "cont:" label.
      
      Note: Bfree(NULL) is well defined: it does nothing.
      
      (cherry picked from commit 9776b063)
      b1405787