[Python-checkins] [python/cpython] 65ece7: bpo-30594: Fixed refcounting in newPySSLSocket (#1...

GitHub noreply at github.com
Thu Jun 8 02:30:45 EDT 2017


  Branch: refs/heads/master
  Home:   https://github.com/python/cpython
  Commit: 65ece7ca2366308fa91a39a8dfa255e6bdce3cca
      https://github.com/python/cpython/commit/65ece7ca2366308fa91a39a8dfa255e6bdce3cca
  Author: Nathaniel J. Smith <njs at pobox.com>
  Date:   2017-06-08 (Thu, 08 Jun 2017)

  Changed paths:
    M Modules/_ssl.c

  Log Message:
  -----------
  bpo-30594: Fixed refcounting in newPySSLSocket (#1992)

If pass a server_hostname= that fails IDNA decoding to SSLContext.wrap_socket or SSLContext.wrap_bio, then the SSLContext object had a spurious Py_DECREF called on it, eventually leading to segfaults.




More information about the Python-checkins mailing list