Terry Jan Reedy
65fa1264a3
[2.7] bpo-34162: Update 2.7 idlelib/NEWS.txt to 2018-9-24 (GH-9550)
2018-09-24 19:43:54 -04:00
Serhiy Storchaka
69d0bc1430
[2.7] bpo-34610: Fixed iterator of multiprocessing.managers.DictProxy. (GH-9113). (GH-9500)
...
(cherry picked from commit e0e5065dae
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-09-22 21:34:16 +03:00
Serhiy Storchaka
6ec2981148
[2.7] bpo-34472: Add data descriptor signature to zipfile (GH-8871) (ПР-9407)
...
This makes streamed zips compatible with MacOS Archive Utility and
other applications.
(cherry picked from commit 4ba3b50bfe
)
Co-authored-by: Silas Sewell <silas@sewell.org>
2018-09-22 20:48:23 +03:00
Miss Islington (bot)
fef3a92be9
Fix pickletools doc for NEWFALSE. (GH-9432)
...
Also make docs for NEWFALSE and NEWTRUE more consistent
with docs for other opcodes.
(cherry picked from commit 488cfb78c8
)
Co-authored-by: Krzysztof Wroblewski <krzysiek.wr@gmail.com>
2018-09-22 08:38:57 -07:00
Miss Islington (bot)
10be1d3f80
[2.7] bpo-34623: Mention CVE-2018-14647 in news entry (GH-9482) (GH-9490)
...
https://bugs.python.org/issue34623
(cherry picked from commit 026337a710
)
Co-authored-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue34623
2018-09-21 21:57:00 -07:00
Miss Islington (bot)
170ea8ccd4
bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446)
...
(cherry picked from commit 8213eaddf3
)
Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
2018-09-20 09:06:04 -07:00
Christian Heimes
49d65958e1
[2.7] bpo-34542: Update test certs and keys (GH-8997) (GH-9397)
...
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 e6dac00779
)
https://bugs.python.org/issue34542
2018-09-20 03:33:53 -07:00
Vladimir Matveev
b63a16febb
[2.7] bpo-34603, ctypes/libffi_msvc: Fix returning structs from functions (GH-9258) (GH-9425)
...
Co-authored-by: Vladimir Matveev <v2matveev@outlook.com>
2018-09-19 13:48:21 -07:00
Serhiy Storchaka
29034baf58
[2.7] bpo-34341: Fix appending to ZIP archives with the ZIP64 extension. (GH-8683). (GH-9400)
...
(cherry picked from commit 9bdb7be482
)
2018-09-18 23:28:34 +03:00
Christian Heimes
18b20bad75
[2.7] bpo-34623: Use XML_SetHashSalt in _elementtree (GH-9146) (GH-9394)
...
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 cb5778f00c
)
Co-authored-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue34623
2018-09-18 06:13:09 -07:00
Christian Heimes
5f883fcb9b
[2.7] bpo-34710: fix SSL module build (GH-9347) (GH-9353)
...
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 b3a271fc0c
)
Co-authored-by: Alexandru Ardelean <ardeleanalex@gmail.com>
https://bugs.python.org/issue34710
2018-09-17 06:42:30 -07:00
Serhiy Storchaka
afa591d774
[2.7] bpo-33216: Clarify the documentation for CALL_FUNCTION_* (GH-8338) (GH-8783)
...
(cherry picked from commit 76aa2c0a9a
)
Co-authored-by: larryhastings <larry@hastings.org>
2018-09-17 15:15:48 +03:00
xdegaye
57e70d3802
[2.7] bpo-19417: Add test_bdb.py (GH-5217) (GH-6156)
...
(cherry picked from commit 3fe33043ee
)
https://bugs.python.org/issue19417
2018-09-15 23:09:14 -07:00
Shoham Peller
ee78ba2c81
[2.7] closes bpo-8450: a better error message when http status line isn't received (GH-2825)
...
When the server has closed the connection before sending a status-line,
the client's error message should have a more descriptive error message
https://bugs.python.org/issue8450
https://bugs.python.org/issue8450
2018-09-14 16:28:08 -07:00
Benjamin Peterson
8575503115
[2.7] Don't run AC_STRUCT_TIMEZONE twice. (GH-9309)
...
(cherry picked from commit a4414ef20b
)
2018-09-14 09:53:09 -07:00
Zackery Spytz
0b9fe17341
[2.7] bpo-20047: Remove Objects/bytesobject.c from 2.7 (GH-9268)
...
It was accidentally added in 107f3cc791
.
2018-09-14 02:16:41 +03:00
Benjamin Peterson
18e21883a4
[2.7] closes bpo-34661: Fix test_shutil if unzip doesn't support -t. (GH-9267)
...
(cherry picked from commit a710ebd21b
)
2018-09-13 11:24:07 -07:00
Benjamin Peterson
69e9691015
[2.7] closes bpo-34652: Always disable lchmod on Linux. (GH-9242)
...
(cherry picked from commit 40caa05fa4
)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
2018-09-12 16:31:17 -07:00
Miss Islington (bot)
669429fb58
bpo-34649: Add missing NULL checks to _encoded_const() (GH-9225)
...
Reported by Svace static analyzer.
(cherry picked from commit 6f82bffd2d
)
Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
2018-09-13 01:00:56 +03:00
Zackery Spytz
b36567bef8
[2.7] bpo-28994: Remove mistakenly backported atexitmodule.c (GH-9214)
...
It was backported in 0cc43df05e
.
2018-09-12 14:28:18 +03:00
Benjamin Peterson
b663205ca9
[2.7] Delete old expat comment. (GH-9205)
...
(cherry picked from commit b9bf9d025e
)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
2018-09-11 18:28:35 -07:00
Steve Dower
e351fe241c
[2.7] bpo-34405: Updated to OpenSSL 1.0.2p for Windows builds. (GH-8776) (GH-9202)
...
https://bugs.python.org/issue34405
2018-09-11 18:02:40 -07:00
Miss Islington (bot)
aa02ab15ae
[2.7] bpo-34405: Update to OpenSSL 1.0.2p for macOS installer builds (GH-9191) (GH-9196)
...
(cherry picked from commit 31912b43c9
)
Co-authored-by: Ned Deily <nad@python.org>
<!-- issue-number: [bpo-34405](https://www.bugs.python.org/issue34405 ) -->
https://bugs.python.org/issue34405
<!-- /issue-number -->
2018-09-11 16:53:20 -07:00
Chih-Hsuan Yen
d919c60e69
[2.7] bpo-32502: Discard 64-bit (and other invalid) hardware addresses (GH-9125)
...
(cherry picked from commit 6b273f7f40
)
Co-authored-by: Bo Bayles <bbayles@gmail.com>
2018-09-11 13:54:57 -07:00
Benjamin Peterson
253279c616
[2.7] closes bpo-31608: Fix a crash in methods of a subclass of _collections.deque with a bad __new__(). (GH-9179)
2018-09-11 13:41:57 -07:00
Miss Islington (bot)
7a501def4f
bpo-34625: Update vendorized expat version to 2.2.6. (GH-9150)
...
(cherry picked from commit 5033aa77aa
)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
2018-09-10 21:26:42 -07:00
tzickel
f64c813de8
bpo-25083: Python can sometimes create incorrect .pyc files (GH-8449)
...
Python 2 never checked for I/O error when reading .py files and
thus could mistake an I/O error for EOF and create incorrect .pyc
files.
This adds an check for this and aborts on an error.
2018-09-10 11:46:14 -07:00
Benjamin Peterson
ed62e64510
[2.7] Fix misleading mentions of tp_size in comments (GH-9138)
...
Many type object initializations labeled a field "tp_size" in the
comment, but the name of that field is tp_basicsize..
(cherry picked from commit 0e0bc4e221
)
Co-authored-by: Peter Eisentraut <peter@eisentraut.org>
2018-09-10 10:50:15 -07:00
Miss Islington (bot)
f51a46631f
bpo-23855: Add missing NULL checks for malloc() in _msi.c (GH-9038)
...
(cherry picked from commit 4e519377b1
)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2018-09-10 09:41:12 -07:00
Victor Stinner
bf2bd8f8a1
bpo-25750: fix refcounts in type_getattro() (GH-6118) (GH-9091)
...
When calling tp_descr_get(self, obj, type), make sure that
we own a strong reference to "self".
(cherry picked from commit 8f735485ac
)
2018-09-07 10:15:31 +02:00
Miss Islington (bot)
9734024ec6
bpo-26544: Get rid of dependence from distutils in platform. (GH-8356) (GH-8952)
...
(cherry picked from commit 7d81e8f599
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-09-05 16:46:26 +02:00
Victor Stinner
7056ca880b
bpo-34530: Fix distutils find_executable() (GH-9049) (GH-9058)
...
distutils.spawn.find_executable() now falls back on os.defpath if the
PATH environment variable is not set.
(cherry picked from commit 39487196c8
)
2018-09-04 11:40:29 +02:00
Mickaël Schoentgen
30af2e737a
bpo-34500: Fix ResourceWarning in difflib.py (GH-8926)
...
The change to Tools/scripts/diff.py effectively backports part of
a2637729f2
.
The test code changed in Doc/library/difflib.rst is not present in current 3.x.
2018-09-02 21:48:08 -04:00
Zachary Ware
71f2dadf66
[2.7] Fix struct sequence glossary entry grammar (GH-9030)
...
... by removing a superfluous "either".
Reported by Никита Люшненко on docs@
(cherry picked from commit 98b976a2f8
)
2018-09-01 21:18:22 -05:00
Miss Islington (bot)
5d594f3106
bpo-34007: Skip traceback tests if the Program Counter is not available. (GH-9018)
...
Sometimes some versions of the shared libraries that are part of the
traceback are compiled in optimised mode and the Program Counter (PC)
is not present, not allowing gdb to walk the frames back. When this
happens, the Python bindings of gdb raise an exception, making the
test impossible to succeed.
(cherry picked from commit f2ef51f8be
)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2018-08-31 18:43:24 -04:00
Benjamin Peterson
d8b103b8b3
closes bpo-34540: Convert shutil._call_external_zip to use subprocess rather than distutils.spawn. (GH-8985)
2018-08-29 21:59:21 -07:00
Tal Einat
491740f116
[2.7] bpo-6700: Fix inspect.getsourcelines for module level frames/tracebacks (GH-8864)
...
(cherry picked from commit 91cb298f81
)
Co-authored-by: Vladimir Matveev <v2matveev@outlook.com>
2018-08-26 11:44:53 +03:00
Zackery Spytz
032e85f3fb
bpo-34491: Add missing Py_DECREF() in _bsddb's DB_join() (GH-8909)
2018-08-25 12:22:21 +08:00
Benjamin Peterson
67dafd5c20
[2.7] Issue GH-18560: Fix potential NULL pointer dereference in sum(). (GH-8892)
...
(cherry picked from commit 704e2d374f
)
Co-authored-by: Christian Heimes <christian@cheimes.de>
2018-08-23 22:28:39 -07:00
Miss Islington (bot)
45ee452751
closes bpo-34474: Python/bltinmodule.c: Add missing NULL check in builtin_sum_impl() (GH-8872)
...
Reported by Svace static analyzer.
(cherry picked from commit 2b824b2538
)
Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
2018-08-24 01:13:19 -04:00
Miss Islington (bot)
ea21206626
closes bpo-34477: Objects/typeobject.c: Add missing NULL check to type_init() (GH-8876)
...
Reported by Svace static analyzer.
(cherry picked from commit f6247aac08
)
Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
2018-08-24 00:51:46 -04:00
Miss Islington (bot)
5c437d6fd8
Make it more clear that setUpClass runs before each class, not "class run" (GH-8844)
...
(cherry picked from commit c33bb5d401
)
Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
2018-08-23 10:59:06 -04:00
Alexey Izbyshev
5223ce2131
[2.7] bpo-34457: Python/ast.c: Add missing NULL check to alias_for_import_name(). (GH-8852) (GH-8858)
...
Reported by Svace static analyzer.
(cherry picked from commit 28853a249b
)
Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
2018-08-22 14:46:51 +03:00
Zackery Spytz
eb9a1c01d0
[2.7] bpo-34400: Fix more undefined behavior in parsetok.c (GH-8833). (GH-8849)
...
(cherry picked from commit 3e26e42c90
)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2018-08-22 08:54:17 +03:00
Xiang Zhang
95f9e14e33
[2.7] bpo-30411: Use --git-dir instead of -C to make git work under version below 1.8.5. (GH-8744) (GH-8838)
...
(cherry picked from commit 4c8555773a
)
2018-08-20 23:15:07 +08:00
Sergey Fedoseev
ae1f012729
bpo-34395: Fix memory leaks caused by incautious usage of PyMem_Realloc(). (GH-8785)
2018-08-17 08:36:15 +03:00
Christian Heimes
2ec530cd55
[2.7] bpo-34391: Fix ftplib test for TLS 1.3 (GH-8787) (GH-8791)
...
Read from data socket to avoid "[SSL] shutdown while in init" exception
during shutdown of the dummy server.
Signed-off-by: Christian Heimes <christian@python.org>
<!-- issue-number: [bpo-34391](https://www.bugs.python.org/issue34391 ) -->
https://bugs.python.org/issue34391
<!-- /issue-number -->.
(cherry picked from commit 1590c39336
)
Co-authored-by: Christian Heimes <christian@python.org>
2018-08-16 21:38:44 +02:00
Miss Islington (bot)
00aebabc71
closes bpo-34400: Fix undefined behavior in parsetok(). (GH-4439)
...
Avoid undefined pointer arithmetic with NULL.
(cherry picked from commit 7c4ab2afb1
)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2018-08-15 02:59:11 -04:00
Christian Heimes
1f34aece28
[2.7] bpo-34399: 2048 bits RSA keys and DH params (GH-8762) (GH-8765)
...
Downstream vendors have started to deprecate weak keys. Update all RSA keys
and DH params to use at least 2048 bits.
Finite field DH param file use RFC 7919 values, generated with
certtool --get-dh-params --sec-param=high
Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit 88bfd0bce0
)
Co-authored-by: Christian Heimes <christian@python.org>
2018-08-14 16:53:04 +02:00
Serhiy Storchaka
d1c5e278a1
[2.7] bpo-34272: Move argument parsing tests from test_capi to test_getargs2. (GH-8567). (GH-8691)
...
(cherry picked from commit 8f7bb100d0
)
2018-08-06 18:06:14 +03:00