| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
| |
|
| |
|
|
|
| |
Clarify the documentation for the CALL_FUNCTION_* bytecodes. They changed in 3.5 in subtle ways and the documentation has never been correct, much less clear.
|
| |
|
| |
|
|
|
|
|
|
| |
* bpo-33001: Minimal fix to prevent buffer overrun in os.symlink
* Remove invalid test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Prevent low-grade poplib REDOS (CVE-2018-1060)
The regex to test a mail server's timestamp is susceptible to
catastrophic backtracking on long evil responses from the server.
Happily, the maximum length of malicious inputs is 2K thanks
to a limit introduced in the fix for CVE-2013-1752.
A 2KB evil response from the mail server would result in small slowdowns
(milliseconds vs. microseconds) accumulated over many apop calls.
This is a potential DOS vector via accumulated slowdowns.
Replace it with a similar non-vulnerable regex.
The new regex is RFC compliant.
The old regex was non-compliant in edge cases.
* Prevent difflib REDOS (CVE-2018-1061)
The default regex for IS_LINE_JUNK is susceptible to
catastrophic backtracking.
This is a potential DOS vector.
Replace it with an equivalent non-vulnerable regex.
Also introduce unit and REDOS tests for difflib.
Co-authored-by: Tim Peters <tim.peters@gmail.com>
Co-authored-by: Christian Heimes <christian@python.org>.
(cherry picked from commit 0e6c8ee2358a2e23117501826c008842acb835ac)
|
| |
|
| |
|
| |
|
|\ |
|
| | |
|
| | |
|
| | |
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* [3.5] bpo-32072: Fix issues with binary plists. (GH-4455)
* Fixed saving bytearrays.
* Identical objects will be saved only once.
* Equal references will be load as identical objects.
* Added support for saving and loading recursive data structures.
(cherry picked from commit a897aee)
* Fix implementation dependent assertion in test_plistlib. (#4813)
It is failed with an advanced optimizer.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Directory and zipfile execution previously added
the parent directory of the directory or zipfile
as sys.path[0] and then subsequently overwrote
it with the directory or zipfile itself.
This caused problems in isolated mode, as it
overwrote the "stdlib as a zip archive" entry
in sys.path, as the parent directory was
never added.
The attempted fix to that issue in bpo-29319
created the opposite problem in *non*-isolated
mode, by potentially leaving the parent
directory on sys.path instead of overwriting it.
This change fixes the root cause of the problem
by removing the whole "add-and-overwrite" dance
for sys.path[0], and instead simply never adds
the parent directory to sys.path in the first
place.
(cherry picked from commit d2977a3ae2cc6802921b1e3b6e9d13fcfbda872d)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* [3.5] bpo-32563: Get expat to compile under C89
expat: Add artificial scopes in xmltok.c utf8_toUtf8() to fix c89 compilation.
Cherry-picked from libexpat commit e0b290eb3d8f4c4b45137a7d7f4f8db812145bd2
* Backport XML RPC test skip to 3.5
The buildbot service upgrade removed the XML-RPC
interface, so this test no longer works (through no
fault of the standard library).
* Don't configure a nonexistent Python
|
|
|
|
|
|
|
|
|
|
| |
* [3.5] Remove failing pyenv call from CI config
* Backport XML RPC test skip to 3.5
The buildbot service upgrade removed the XML-RPC
interface, so this test no longer works (through no
fault of the standard library).
|
|
|
|
|
| |
Fixes possible integer overflow in PyBytes_DecodeEscape.
Co-Authored-By: Jay Bosamiya <jaybosamiya@gmail.com>
|
| |
|
| |
|
|
|
| |
(cherry picked from commit a6296d34a478b4f697ea9db798146195075d496c)
|
|
|
|
|
|
| |
* bpo-31170: Fix inclusion of expat in Windows build projects.
* Fixes line endings
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* bpo-30947, bpo-31170: Update expat from 2.2.1 to 2.2.4
* Upgrade libexpat embedded copy from version 2.2.1 to 2.2.3 to get security
fixes.
* Update libexpat from 2.2.3 to 2.2.4. Fix copying of partial
characters for UTF-8 input (libexpat bug 115):
https://github.com/libexpat/libexpat/issues/115
* Define XML_POOR_ENTROPY when compiling expat
|
|
|
|
| |
Works around Travis CI bug about the python3.5 binary:
https://github.com/travis-ci/travis-ci/issues/8363
|
|
|
|
|
|
| |
The `Show Source` was broken because of a change made in sphinx 1.5.1
In Sphinx 1.4.9, the sourcename was "index.txt".
In Sphinx 1.5.1+, it is now "index.rst.txt".
(cherry picked from commit b9ff498793611d1c6a9b99df464812931a1e2d69)
|
|
|
|
|
|
|
|
|
| |
Rather than requiring the path to blurb and/or sphinx-build to be specified to
the make rule, enhance the Doc/Makefile to look for each first in a virtual
environment created by make venv and, if not found, look on the normal process
PATH. This allows the Doc/Makefile to take advantage of an installed
spinx-build or blurb and, thus, do the right thing most of the time. Also, make
the directory for the venv be configurable and document the `make venv` target.
|
|\ |
|
| |
| |
| | |
(cherry picked from commit e1e60bd95c376f9b18cbaf9481364281c6cc1bc7)
|
| |
| |
| |
| | |
Use the copy provided in https://bugs.python.org/issue25910GH-msg295200
(cherry picked from commit 8474d87165593bac2bc231287f42c4cff3fd6aaf)
|
| |
| |
| | |
(cherry picked from commit 6fcb69dad579cc9a7dc15eabead43b6c37464f8c)
|
| |
| |
| |
| |
| |
| |
| |
| | |
(#2874)
* bpo-31036: use an existing Misc/NEWS rather than trying to use blurb
* bpo-31036: avoid echoing comments
|
| |
| |
| | |
(cherry picked from commit d5ed47dea25e04a3a144eddf99a4ac4a29242dbc)
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
Use the copy provided in https://bugs.python.org/issue25910GH-msg295200
(cherry picked from commit 8474d87165593bac2bc231287f42c4cff3fd6aaf)
(cherry picked from commit f6306e737203ac1bf1717bbf62bc58dac24b68db)
|
| |
| |
| |
| |
| | |
(cherry picked from commit 6fcb69dad579cc9a7dc15eabead43b6c37464f8c)
(cherry picked from commit 52c41f18086f3d8b1eb3854b568f04717c724e3d)
|
|/
|
|
|
|
|
|
|
|
| |
(#2874)
* bpo-31036: use an existing Misc/NEWS rather than trying to use blurb
* bpo-31036: avoid echoing comments
(cherry picked from commit 3de144890ad3bc50694368a1b33be6d7f3a780b3)
|
|
|
|
| |
illegal command (#1214) (#2887)
|
|
|
|
|
| |
(#2869)
(cherry picked from commit 39243779f4c97ec6f700fa73c007ca66dfa9408e)
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
tearDown() now clears explicitly the self.server variable to make
sure that the thread is completely cleared when tearDownClass()
checks if all threads have been cleaned up.
Fix the following warning:
$ ./python -m test --fail-env-changed -m test.test_os.TestSendfile.test_keywords -R 3:1 test_os
(...)
Warning -- threading_cleanup() failed to cleanup 0 threads after 3 sec (count: 0, dangling: 2)
(...)
Tests result: ENV CHANGED
(cherry picked from commit d1cc037d1442cc35d1b194ec8e50901514360949)
|
| | |
|
| |
| |
| | |
(cherry picked from commit cfcd76777e35c83d548d8736f5d7dc92fe56d806)
|