summaryrefslogtreecommitdiff
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* bpo-10496: distutils check_environ() handles getpwuid() error (GH-10931) ↵Victor Stinner2018-12-181-0/+3
| | | | | | | | | (GH-11213) check_environ() of distutils.utils now catchs KeyError on calling pwd.getpwuid(): don't create the HOME environment variable in this case. (cherry picked from commit 17d0c0595e101c4ce76b58e55de37e6b5083e6cd)
* bpo-34279: regrtest consider that skipped tests are ran (GH-11132) (GH-11158)Victor Stinner2018-12-141-0/+3
| | | | | | | | bpo-34279, bpo-35412: support.run_unittest() no longer raises TestDidNotRun if a test result contains skipped tests. The exception is now only raised if no test have been run and no test have been skipped. (cherry picked from commit 3a8f4fef4a4dd0e4a800545468eef9542e126181)
* bpo-16039: CVE-2013-1752: Limit imaplib.IMAP4_SSL.readline() (GH-11120)Victor Stinner2018-12-121-0/+2
| | | | | | | | * bpo-16039: CVE-2013-1752: Change use of readline() in imaplib.IMAP4_SSL to limit line length. Remove IMAP4_SSL.readline() and IMAP4_SSL.read() to inherit safe IMAP4 implementation. * bpo-20118: reenable test_linetoolong() of test_imaplib on ThreadedNetworkedTests and ThreadedNetworkedTestsSSL. The test now sets the _MAXLINE limit to 10 characters.
* [2.7] bpo-15663: the 10.6+ macOS installers for 3.6/2.7 now provide a ↵Ned Deily2018-12-111-0/+2
| | | | private Tcl/Tk 8.6 (GH-11110)
* bpo-35402: Update macOS installer to use Tcl 8.6.9 / Tk 8.6.9.1 (GH-11101)Miss Islington (bot)2018-12-101-0/+1
| | | | | (cherry picked from commit 7cf3d8e25174c8871883e42f3240fd7f01efd3a8) Co-authored-by: Ned Deily <nad@python.org>
* [3.6] bpo-35401: Update macOS installer to OpenSSL 1.0.2q (GH-11095)Miss Islington (bot)2018-12-101-0/+1
| | | | | | https://bugs.python.org/issue35401 (cherry picked from commit 419b5ffc2ca46d7adf0be6216ca3a6e40028e50f) Co-authored-by: Ned Deily <nad@python.org>
* bpo-35401: Updates Windows build to OpenSSL 1.0.2q (GH-11089)Steve Dower2018-12-101-0/+1
|
* bpo-35052: Fix handler on xml.dom.minidom.cloneNode() (GH-11061) (GH-11068)Victor Stinner2018-12-101-0/+2
| | | | | | | | | | | | Fix xml.dom.minidom cloneNode() on a document with an entity: pass the correct arguments to the user data handler of an entity (fix an old copy/paste mistake). Bug spotted and fix proposed by Charalampos Stratakis, initial reproducer written by Petr Viktorin. Co-Authored-By: Charalampos Stratakis <cstratak@redhat.com> Co-Authored-By: Petr Viktorin <encukou@gmail.com> (cherry picked from commit 8e0418688906206fe59bd26344320c0fc026849e)
* Revert "[2.7] bpo-34172: multiprocessing.Pool leaks resources after being ↵Victor Stinner2018-12-061-1/+0
| | | | | deleted (GH-9686)" (GH-10970) This reverts commit 4a7dd30f5810e8861a3834159a222ab32d5c97d0.
* [2.7] bpo-34052: Prevent SQLite functions from setting callbacks on ↵Serhiy Storchaka2018-12-061-0/+7
| | | | | | | | | exceptions. (GH-8113). (GH-10946) (GH-10955) (cherry picked from commit 5b25f1d03100e2283c1b129d461ba68ac0169a14) (cherry picked from commit 1de91a0032fed500ddd3d8c4fb7a38c0b8719f67) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>.
* [2.7] bpo-34738: Add directory entries in ZIP files created by distutils. ↵Serhiy Storchaka2018-12-061-0/+2
| | | | | | (GH-9419). (GH-10950) (cherry picked from commit 67a93b3a0b3814e97ef9d077b21325fc8ce351b2)
* bpo-10496: posixpath.expanduser() catchs pwd.getpwuid() error (GH-10919) ↵Victor Stinner2018-12-051-0/+5
| | | | | | | | | | | (GH-10930) * posixpath.expanduser() now returns the input path unchanged if the HOME environment variable is not set and pwd.getpwuid() raises KeyError (the current user identifier doesn't exist in the password database). * Add test_no_home_directory() to test_site. (cherry picked from commit f2f4555d8287ad217a1dba7bbd93103ad4daf3a8)
* [2.7] bpo-16865: Support arrays >=2GB in ctypes. (GH-3006). (GH-7441)Serhiy Storchaka2018-12-041-0/+1
| | | | | | (cherry picked from commit 735abadd5bd91db4a9e6f4311969b0afacca0a1a) Co-Authored-By: Segev Finer <segev208@gmail.com>
* bpo-35368: Make PyMem_Malloc() thread-safe in debug mode (GH-10828)Victor Stinner2018-12-031-0/+1
| | | | | | | | | When Python is compiled in debug mode, PyMem_Malloc() uses debug hooks, but it also uses pymalloc allocator instead of malloc(). Problem: pymalloc is not thread-safe, whereas PyMem_Malloc() is thread-safe in release mode (it's a thin wrapper to malloc() in this case). Modify the debug hook to use malloc() for PyMem_Malloc().
* bpo-33015: Fix UB in pthread PyThread_start_new_thread (GH-6008) (GH-10823)Victor Stinner2018-11-301-0/+3
| | | | | | | | | Fix an undefined behaviour in the pthread implementation of PyThread_start_new_thread(): add a function wrapper to always return NULL. Add pythread_callback struct and pythread_wrapper() to thread_pthread.h. (cherry picked from commit 9eea6eaf23067880f4af3a130e3f67c9812e2f30)
* bpo-34279, regrtest: Issue a warning if no tests have been executed (GH-10801)Victor Stinner2018-11-291-0/+3
| | | Co-Authored-By: Pablo Galindo <Pablogsal@gmail.com>
* [2.7] bpo-35035: Rename email.utils documentation to email.utils.rst ↵Julien Palard2018-11-221-0/+1
| | | | | (GH-10023) (GH-10667) https://bugs.python.org/issue35035
* Upgrade pip to 18.1 and setuptools to 40.6.2 (GH-10598)Miss Islington (bot)2018-11-191-0/+1
| | | | | (cherry picked from commit 8b9c33ea9ce902f902c9d9900121010801950547) Co-authored-by: Donald Stufft <donald@stufft.io>
* [2.7] bpo-35214: Fix OOB memory access in unicode escape parser (GH-10506) ↵Gregory P. Smith2018-11-141-0/+3
| | | | | | | | | | (GH-10538) Discovered using clang's MemorySanitizer. A msan build will fail by simply executing: ./python -c 'u"\N"' (cherry picked from commit 746b2d3) Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google LLC]
* [2.7] closes bpo-35139: The `pyexpat` module's macros in `Modules/Setup` now ↵Benjamin Peterson2018-11-011-0/+1
| | | | | | | | match `setup.py` (GH-10293) This could cause compile errors on macOS or other platforms.. (cherry picked from commit 318ab63c01f5b8e7562b122ab5ba01258a51277b) Co-authored-by: Max Bélanger <aeromax@gmail.com>
* bpo-35062: Fix parsing _io.IncrementalNewlineDecoder's *translate* argument. ↵Miss Islington (bot)2018-10-311-0/+2
| | | | | | | | | (GH-10217) _io.IncrementalNewlineDecoder's initializer possibly assigns out-of-range value to the bitwise struct field. (cherry picked from commit b08746bfdf64e55ce33516f2065fa2aa4f51be95) Co-authored-by: Xiang Zhang <angwerzx@126.com>
* bpo-34866: Add max_num_fields to cgi.FieldStorage (GH-9660) (GH-9969)matthewbelisle-wf2018-10-301-0/+2
| | | | | | Adding `max_num_fields` to `cgi.FieldStorage` to make DOS attacks harder by limiting the number of `MiniFieldStorage` objects created by `FieldStorage`. (cherry picked from commit 209144831b0a19715bda3bd72b14a3e6192d9cc1)
* [2.7] bpo-34794: Fix a leak in Tkinter. (GH-10025) (GH-10181)Serhiy Storchaka2018-10-281-0/+2
| | | | | Based on the investigation by Xiang Zhang. (cherry picked from commit df13df41a25765d8a39a77220691698498e758d4)
* bpo-35079: Revise difflib.SequenceManager.get_matching_blocks doc (GH-10144)Miss Islington (bot)2018-10-261-0/+2
| | | | | | Specify that blocks are non-overlapping. Change '!=' to '<'. (cherry picked from commit d9bff4e81b8ca36fe6c4e90c0b9cf02bc020e713) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-35017, socketserver: don't accept request after shutdown (GH-9952) ↵Denis Ledoux2018-10-261-0/+3
| | | | | | | | | | | | | | | | | | (GH-10129) Prior to this revision, after the shutdown of a `BaseServer`, the server accepted a last single request if it was sent between the server socket polling and the polling timeout. This can be problematic for instance for a server restart for which you do not want to interrupt the service, by not closing the listening socket during the restart. One request failed because of this behavior. Note that only one request failed, following requests were not accepted, as expected. (cherry picked from commit 10cb3760e8631a27f5db1e51b05494e29306c671)
* bpo-33899: Revert tokenize module adding an implicit final NEWLINE (GH-10072)Tal Einat2018-10-241-3/+0
| | | This reverts commit 7829bba.
* [2.7] bpo-34936: Fix TclError in tkinter.Spinbox.selection_element(). ↵Serhiy Storchaka2018-10-211-0/+2
| | | | | | | | (GH-9760) (GH-9957) (GH-9968) (cherry picked from commit 1deea5e53991b46351f6bb395b22365c9455ed88). (cherry picked from commit bd9c2ce7acaef45f23c2659b854fc9925096d040) Co-authored-by: Juliette Monsel <j4321@users.noreply.github.com>
* [2.7] bpo-31500: IDLE: Scale default fonts on HiDPI displays. (GH-3639) ↵Cheryl Sabella2018-10-201-0/+1
| | | | | | | (GH-6585) (cherry picked from commit a96c96f5dab68d4e611af4b8caefd7268533fd9a)
* bpo-34791: xml package obeys ignore env flags (GH-9544) (GH-9547)Miss Islington (bot)2018-10-201-0/+3
| | | | | | | | | | | The xml.sax and xml.dom.domreg modules now obey sys.flags.ignore_environment. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue34791 (cherry picked from commit 223e501fb9c2b6ae21b96054e20c4c31d94a5d96) Co-authored-by: Christian Heimes <christian@python.org>
* [2.7] bpo-23420: Verify the value of '-s' when execute the CLI of cProfile ↵Stéphane Wirtel2018-10-171-0/+2
| | | | | | | | | | | | | | | (GH-9925) (GH-9928) Verify the value for the parameter '-s' of the cProfile CLI. Patch by Robert Kuska. Co-authored-by: Robert Kuska <rkuska@gmail.com> (cherry picked from commit fcd5e84a515e19409840c570730f0728e9fcfc83) https://bugs.python.org/issue23420
* bpo-34967: Sphinx is deprecating add_description_unit, use add_object_type ↵Miss Islington (bot)2018-10-151-0/+2
| | | | | | | (GH-9827) (cherry picked from commit e385d0661ecf8bc9ba95c4395d9a11262c2cbfec) Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
* [2.7] bpo-16965: 2to3 now rewrites execfile() to open with rb. (GH-8569) ↵Zackery Spytz2018-10-161-0/+2
| | | | | (GH-9890) (cherry picked from commit d4d60134b29290049e28df54f23493de4f1824b6)
* bpo-34989: python-gdb.py: fix current_line_num() (GH-9889) (GH-9899)Victor Stinner2018-10-161-0/+2
| | | | | | | | | | | | | | | | python-gdb.py now handles errors on computing the line number of a Python frame. Changes: * PyFrameObjectPtr.current_line_num() now catchs any Exception on calling addr2line(), instead of failing with a surprising "<class 'TypeError'> 'FakeRepr' object is not subscriptable" error. * All callers of current_line_num() now handle current_line_num() returning None. * PyFrameObjectPtr.current_line() now also catchs IndexError on getting a line from the Python source file. (cherry picked from commit 2e438cc2554495b28480a3ffe5cdf41b6ab823a0)
* [2.7] bpo-34974: Do not replace unexpected errors in bytearray(). (GH-9852) ↵Serhiy Storchaka2018-10-151-0/+3
| | | | | | | (GH-9885) The bytearray constructor converted unexpected exceptions (e.g. MemoryError and KeyboardInterrupt) to TypeError. (cherry picked from commit e890421e334ccf0c000c6b29c4a521d86cd12f47)
* [2.7] bpo-22851: Fix a segfault when accessing ↵Zackery Spytz2018-10-131-0/+2
| | | | | generator.gi_frame.f_restricted. (GH-9348) Frame's field f_tstate is NULL when the generator is exhausted.
* bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection ↵Victor Stinner2018-10-101-0/+1
| | | | | | | | | | | | | | | | | -O0 (GH-9656) (GH-9788) When Python is built with the intel control-flow protection flags, -mcet -fcf-protection, gdb is not able to read the stack without actually jumping inside the function. This means an extra 'next' command is required to make the $pc (program counter) enter the function and make the stack of the function exposed to gdb. test_gdb: get_gdb_repr() now uses the "backtrace 1" command after breakpoint, as in the master branch. Co-Authored-By: Marcel Plch <gmarcel.plch@gmail.com> (cherry picked from commit 9b7c74ca32d1bec7128d550a9ab1b2ddc7046287) (cherry picked from commit 79d21331e605fdc941f947621846b8563485aab6)
* [2.7] bpo-34172: multiprocessing.Pool leaks resources after being deleted ↵tzickel2018-10-031-0/+1
| | | | | (GH-9686) Fix a reference issue inside multiprocessing.Pool that caused the pool to remain alive if it was deleted without being closed or terminated explicitly.
* [2.7] bpo-13407: Mention that bz2/tarfile doesn't support multi-stream bzip2 ↵Andrés Delfino2018-09-291-0/+2
| | | | | | | | files (GH-8428) * bpo-13407: Mention that tarfile doesn't support multistream bzip2 files * Add mention to bz2 module also
* [2.7] bpo-34610: Fixed iterator of multiprocessing.managers.DictProxy. ↵Serhiy Storchaka2018-09-221-0/+1
| | | | | | | (GH-9113). (GH-9500) (cherry picked from commit e0e5065daef36dafe10a46eaa8b7800274d73062) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [2.7] bpo-34472: Add data descriptor signature to zipfile (GH-8871) (ПР-9407)Serhiy Storchaka2018-09-222-0/+4
| | | | | | | This makes streamed zips compatible with MacOS Archive Utility and other applications. (cherry picked from commit 4ba3b50bfe6d50cd82d208023ea23e203ab50589) Co-authored-by: Silas Sewell <silas@sewell.org>
* [2.7] bpo-34623: Mention CVE-2018-14647 in news entry (GH-9482) (GH-9490)Miss Islington (bot)2018-09-211-2/+2
| | | | | | | | | | https://bugs.python.org/issue34623 (cherry picked from commit 026337a7101369297c8083047d2f3c6fc9dd1e2b) Co-authored-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue34623
* [2.7] bpo-34542: Update test certs and keys (GH-8997) (GH-9397)Christian Heimes2018-09-201-0/+1
| | | | | | | | | | | | | Update all test certs and keys to use future proof crypto settings: * 3072 bit RSA keys * SHA-256 signature Signed-off-by: Christian Heimes <christian@python.org>. (cherry picked from commit e6dac0077996b1e1f886f036d6f2606237fa4c85) https://bugs.python.org/issue34542
* [2.7] bpo-34603, ctypes/libffi_msvc: Fix returning structs from functions ↵Vladimir Matveev2018-09-191-0/+1
| | | | | (GH-9258) (GH-9425) Co-authored-by: Vladimir Matveev <v2matveev@outlook.com>
* [2.7] bpo-34341: Fix appending to ZIP archives with the ZIP64 extension. ↵Serhiy Storchaka2018-09-181-0/+2
| | | | | | (GH-8683). (GH-9400) (cherry picked from commit 9bdb7be482aef8f60daa1d36606568a132dcb616)
* [2.7] bpo-34623: Use XML_SetHashSalt in _elementtree (GH-9146) (GH-9394)Christian Heimes2018-09-181-0/+2
| | | | | | | | | | | | | | | The C accelerated _elementtree module now initializes hash randomization salt from _Py_HashSecret instead of libexpat's default CPRNG. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue34623. (cherry picked from commit cb5778f00ce48631c7140f33ba242496aaf7102b) Co-authored-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue34623
* [2.7] bpo-34710: fix SSL module build (GH-9347) (GH-9353)Christian Heimes2018-09-171-0/+1
| | | | | | | | | | | | Include ``openssl/dh.h`` header file to fix implicit function declaration of ``DH_free()``. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>. (cherry picked from commit b3a271fc0ce3e13e427be8914decfc205a220ca8) Co-authored-by: Alexandru Ardelean <ardeleanalex@gmail.com> https://bugs.python.org/issue34710
* [2.7] bpo-19417: Add test_bdb.py (GH-5217) (GH-6156)xdegaye2018-09-151-0/+1
| | | | | | | (cherry picked from commit 3fe33043ee83d19e15551094fc1e0984617ded3c) https://bugs.python.org/issue19417
* [2.7] closes bpo-34661: Fix test_shutil if unzip doesn't support -t. (GH-9267)Benjamin Peterson2018-09-131-0/+1
| | | (cherry picked from commit a710ebd21b09efe902dde84d4862ce5c6427f7af)
* [2.7] closes bpo-34652: Always disable lchmod on Linux. (GH-9242)Benjamin Peterson2018-09-121-0/+1
| | | | | (cherry picked from commit 40caa05fa4d1810a1a6bfc34e0ec930c351089b7) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* [2.7] bpo-28994: Remove mistakenly backported atexitmodule.c (GH-9214)Zackery Spytz2018-09-121-10/+0
| | | | It was backported in 0cc43df05e36655220468953e838169966b94ebd.