]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #26644: Merge SSL negative read fix from 3.5
authorMartin Panter <vadmium+py@gmail.com>
Sun, 27 Mar 2016 10:40:22 +0000 (10:40 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Sun, 27 Mar 2016 10:40:22 +0000 (10:40 +0000)
1  2 
Lib/test/test_ssl.py
Misc/NEWS
Modules/_ssl.c

Simple merge
diff --cc Misc/NEWS
index 83dee73886b8db9b58d664aae72cb7d4babdac44,acbaaf7399aa514b9f5720151f0ac0e5056a7761..c70b3e0aa65e740499aa866bd03d7990ed1b0d95
+++ b/Misc/NEWS
@@@ -232,29 -93,15 +232,32 @@@ Core and Builtin
  Library
  -------
  
+ - Issue #26644: Raise ValueError rather than SystemError when a negative
+   length is passed to SSLSocket.recv() or read().
  - Issue #26616: Fixed a bug in datetime.astimezone() method.
  
 -- Issue #21925: :func:`warnings.formatwarning` now catches exceptions on
 -  ``linecache.getline(...)`` to be able to log :exc:`ResourceWarning` emitted
 -  late during the Python shutdown process.
 +- Issue #26637: The :mod:`importlib` module now emits an :exc:`ImportError`
 +  rather than a :exc:`TypeError` if :func:`__import__` is tried during the
 +  Python shutdown process but :data:`sys.path` is already cleared (set to
 +  ``None``).
 +
 +- Issue #21925: :func:`warnings.formatwarning` now catches exceptions when
 +  calling :func:`linecache.getline` and
 +  :func:`tracemalloc.get_object_traceback` to be able to log
 +  :exc:`ResourceWarning` emitted late during the Python shutdown process.
 +
 +- Issue #23848: On Windows, faulthandler.enable() now also installs an
 +  exception handler to dump the traceback of all Python threads on any Windows
 +  exception, not only on UNIX signals (SIGSEGV, SIGFPE, SIGABRT).
 +
 +- Issue #26530: Add C functions :c:func:`_PyTraceMalloc_Track` and
 +  :c:func:`_PyTraceMalloc_Untrack` to track memory blocks using the
 +  :mod:`tracemalloc` module. Add :c:func:`_PyTraceMalloc_GetTraceback` to get
 +  the traceback of an object.
 +
 +- Issue #26588: The _tracemalloc now supports tracing memory allocations of
 +  multiple address spaces (domains).
  
  - Issue #24266: Ctrl+C during Readline history search now cancels the search
    mode when compiled with Readline 7.
diff --cc Modules/_ssl.c
Simple merge