Commit Graph

81054 Commits

Author SHA1 Message Date
Victor Stinner 37f6971777
bpo-36235: Fix CFLAGS in distutils customize_compiler() (GH-12236) (GH-12349)
Fix CFLAGS in customize_compiler() of distutils.sysconfig: when the
CFLAGS environment variable is defined, don't override CFLAGS variable with
the OPT variable anymore.

Initial patch written by David Malcolm.

Co-Authored-By: David Malcolm <dmalcolm@redhat.com>
(cherry picked from commit 86082c22d2)
2019-03-15 16:03:44 +01:00
Victor Stinner b14057877f
bpo-36262: Fix _Py_dg_strtod() memory leak (goto undfl) (GH-12276) (GH-12332)
Fix an unlikely memory leak on conversion from string to float in the
function _Py_dg_strtod() used by float(str), complex(str),
pickle.load(), marshal.load(), etc.

Fix an unlikely memory leak in _Py_dg_strtod() on "undfl:" label:
rewrite memory management in this function to always release all
memory before exiting the function. Initialize variables to NULL, and
set them to NULL after calling Bfree() at the "cont:" label.

Note: Bfree(NULL) is well defined: it does nothing.

(cherry picked from commit 9776b0636a)
2019-03-14 17:19:52 +01:00
stratakis 2dd6e079ae [2.7] bpo-36289: Fix a possible reference leak in the io module (GH-12329)
Fix a reference leak in _bufferedreader_read_all():
_io.BufferedIOMixin.read() leaks a reference on 'data'
when it reads the whole file content but flush() fails.
2019-03-14 16:35:40 +01:00
stratakis fb3336acfd [2.7] bpo-36291: Fix a possible reference leak in the json module (GH-12330)
Fix a reference leak in json if parsing a floating point number fails.

If PyOS_string_to_double() fails in _match_number_str():
decrement numstr ref counter.
2019-03-14 16:22:46 +01:00
stratakis 2832ad5335 [2.7] bpo-36212: Fix two possible reference leaks in the hotshot module (GH-12327)
Fix reference leaks in _hotshot.LogReaderType on PyTuple_New() failure.
2019-03-14 16:10:58 +01:00
Steve Dower ce5c7a93d4
bpo-36174: Update nuget authoring for new license field. (GH-12300) 2019-03-13 14:43:47 -07:00
Steve Dower 507bd8cde6
[3.7] bpo-36216: Only print test messages when verbose (GH-12291) 2019-03-12 13:51:58 -07:00
Victor Stinner 701af605df
bpo-36234: test_os: check TypeError for invalid uid type (GH-12235)
Patch written by David Malcolm.

Co-Authored-By: David Malcolm <dmalcolm@redhat.com>
2019-03-11 13:59:43 +01:00
Miss Islington (bot) 55438d7139
bpo-35807: Upgrade ensurepip bundled pip and setuptools (GH-12189)
* Update pip to 19.0.3
* Update setuptools to 40.8.0
(cherry picked from commit 01e0f439f5)

Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
2019-03-08 13:45:01 -08:00
Terry Jan Reedy 498468d9c3
[2.7] IDLE: Fix typo in keybindingDialog.py (GH-2322) (GH-12231)
Cherry picked by hand from a0e911b
2019-03-07 22:16:07 -05:00
Miss Islington (bot) b19943ec97
bpo-36140: Fix an incorrect check in msidb_getsummaryinformation() (GH-12074)
(cherry picked from commit bf94cc7b49)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2019-03-07 10:49:15 -08:00
Steve Dower e37ef41289
bpo-36216: Add check for characters in netloc that normalize to separators (GH-12201) 2019-03-07 09:08:45 -08:00
Miss Islington (bot) 68041e0f6b
Fix the documentation for set.copy() (GH-12176)
Remove 's' mention as there's no argument.
(cherry picked from commit e942e7b5c9)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2019-03-06 21:29:48 -08:00
stratakis 098b139816 bpo-36147: Fix a memory leak in ctypes s_get() (GH-12102)
The s_get() function leaks the result variable on low memory.
Partially backport commit 19b52545df
to fix it.
2019-03-06 15:14:06 +01:00
stratakis b2aefd77e1 [2.7] bpo-36186: Fix linuxaudiodev.linux_audio_device() error handling (GH-12163)
Fix linuxaudiodev.linux_audio_device() error handling:
close the internal file descriptor if it fails to open the device.
2019-03-06 15:11:56 +01:00
Stéphane Wirtel 84772e0ab4 [2.7] bpo-36019: Use pythontest.net in urllib network tests (GH-11941) (GH-12177)
Use test_support.TEST_HTTP_URL (pythontest.net) instead of http://www.example.com/.
2019-03-05 15:18:58 +01:00
T. Wouters d9bf7f4198
[2.7] bpo-36149 Fix potential use of uninitialized memory in cPickle (#12105)
Fix off-by-one bug in cPickle that caused it to use uninitialised memory on truncated pickles read from FILE*s.
2019-03-04 10:52:07 -08:00
Christian Heimes 84b5ac9ba6 [2.7] bpo-36179: Fix ref leaks in _hashopenssl (GH-12158) (GH-12166)
Fix two unlikely reference leaks in _hashopenssl. The leaks only occur in
out-of-memory cases. Thanks to Charalampos Stratakis.

Signed-off-by: Christian Heimes <christian@python.org>

https://bugs.python.org/issue36179.
(cherry picked from commit b7bc283ab6)

Co-authored-by: Christian Heimes <christian@python.org>



https://bugs.python.org/issue36179
2019-03-04 09:10:45 -08:00
stratakis 710dcfd2f4 [2.7] bpo-13096: Fix memory leak in ctypes POINTER handling of large values (GH-12100) 2019-03-04 16:40:25 +01:00
Benjamin Peterson 67988d12ec Post-2.7.16 version bump. 2019-03-02 11:11:58 -08:00
Benjamin Peterson 9eb17b1a9f Delete old NEWS file. 2019-03-02 11:10:59 -08:00
Benjamin Peterson d31b1ec4b6 Merge branch 'release-2.7.16' into 2.7 2019-03-02 11:09:56 -08:00
Benjamin Peterson 413a49145e Set version to 2.7.16 final. 2019-03-02 10:17:42 -08:00
Benjamin Peterson 10b8873e4d Make 2.7.16 release note. 2019-03-02 10:17:10 -08:00
Ned Deily 59e824b4fc bpo-32129: Avoid blurry IDLE application icon on macOS with Tk 8.6. Original patch by Kevin Walzer. (GH-12034) 2019-03-02 10:14:24 -08:00
Ned Deily 453100f60e
bpo-32129: Avoid blurry IDLE application icon on macOS with Tk 8.6. Original patch by Kevin Walzer. (GH-12034) 2019-03-01 18:12:45 -05:00
Gao, Xiang 69b4a17f34 bpo-36126: Fix ref count leakage in structseq_repr. (GH-12035) 2019-02-28 15:18:48 +02:00
Miss Islington (bot) a588343390
Document the surprising sideeffect PyErr_Print(). (GH-12081)
Did you know an API documented as printing the pending traceback would sometimes exit the process?

You do now.
(cherry picked from commit 4173772031)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2019-02-27 15:45:57 -08:00
Ned Deily 60ef9b05de
Update FAQ to point to Infrastructure Team website. (GH-12079) 2019-02-27 17:43:13 -05:00
Dima Pasechnik b545ba0a50 [2.7] bpo-36106: resolve sinpi name clash with libm (IEEE-754 violation). (GH-12027) (GH-12050)
The standard math library (libm) may follow IEEE-754 recommendation to
include an implementation of sinPi(), i.e. sinPi(x):=sin(pi*x).
And this triggers a name clash, found by FreeBSD developer
Steve Kargl, who worked on putting sinpi into libm used on FreeBSD
(it has to be named "sinpi", not "sinPi", cf. e.g.
https://en.cppreference.com/w/c/experimental/fpext4).
2019-02-26 12:41:15 +02:00
Benjamin Peterson af83770c3a Run autoreconf. 2019-02-25 21:56:27 -08:00
Miss Islington (bot) a0f656d310
closes bpo-13497: Fix `broken nice` configure test. (GH-12041)
Per POSIX, `nice(3)` requires `unistd.h` and `exit(3)` requires `stdlib.h`.

Fixing the test will prevent false positives with pedantic compilers like clang.
(cherry picked from commit 90c6facebd)

Co-authored-by: ngie-eign <1574099+ngie-eign@users.noreply.github.com>
2019-02-25 21:54:33 -08:00
Ned Deily b5213f4def
[2.7] bpo-27313: Avoid test_ttk_guionly ComboboxTest fail with macOS Cocoa Tk (GH-12015) 2019-02-24 03:33:19 -05:00
Ned Deily 72ff2f7554
bpo-26386: Re-enable missing widget testcases in test_ttk_guionly. (GH-12014) 2019-02-24 03:04:19 -05:00
Alan Grgic c7be55208b bpo-36089: Fix formatting/spelling on SimpleHTTPServer docs. (GH-11995) 2019-02-23 07:16:09 +02:00
Miss Islington (bot) 6ee41793d2 bpo-35584: Clarify role of caret in a class class (GH-11946) (GH-11948)
https://bugs.python.org/issue35584
(cherry picked from commit 3bacf61265)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2019-02-19 12:26:11 -08:00
Stéphane Wirtel c611db4942 [2.7] bpo-35126: Fix a mistake in FAQ about converting number to string (GH-11911)
https://bugs.python.org/issue35126
2019-02-19 01:26:02 -08:00
Tzu-ping Chung d5409eb6c2 [2.7] bpo-1104: msilib.SummaryInfo.GetProperty() truncates the string by one character (GH-4517) (GH-11749)
Add one char to MsiSummaryInfoGetProperty() output
Based on the patch in [bpo-1104](https://bugs.python.org/issue1104) by Anthony Tuininga (atuining) and Mark McMahon (markm)
(cherry picked from commit 2de576e16d)

Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>





https://bugs.python.org/issue1104
2019-02-18 19:06:10 -08:00
Benjamin Peterson 49778ada0e Set version to 2.7.16rc1+. 2019-02-17 12:08:34 -08:00
Steve Dower bd6c39608b Add product codes until the end of time. (GH-11901) 2019-02-16 16:42:48 -08:00
Benjamin Peterson baacaac06f Set version to 2.7.16rc1. 2019-02-16 11:02:20 -08:00
Benjamin Peterson 44039c2cf1 Collect 2.7.16rc1 release notes. 2019-02-16 11:01:44 -08:00
Ned Deily b27e30553c
Update IDLE.app plist copyright date. (GH-11890) 2019-02-16 02:03:48 -05:00
stratakis c3c49ec568 [2.7] bpo-33570: Enable OpenSSL 1.1.1 testing within the multissltests (GH-11879)
multissltests: fix _build_src(), add 'cwd' variable.
2019-02-15 19:01:27 +01:00
stratakis 2149a9ad7a [2.7] bpo-32947: Fixes for TLS 1.3 and OpenSSL 1.1.1 (GH-8761) (GH-11876)
Backport of TLS 1.3 related fixes from 3.7.

Misc fixes and workarounds for compatibility with OpenSSL 1.1.1 from git
master and TLS 1.3 support. With OpenSSL 1.1.1, Python negotiates TLS 1.3 by
default. Some test cases only apply to TLS 1.2.

OpenSSL 1.1.1 has added a new option OP_ENABLE_MIDDLEBOX_COMPAT for TLS
1.3. The feature is enabled by default for maximum compatibility with
broken middle boxes. Users should be able to disable the hack and CPython's test suite needs
it to verify default options

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 2a4ee8aa01)
2019-02-15 18:27:44 +01:00
stratakis 28eb87f4f5 Fixup from test_ssl test_default_ecdh_curve (GH-11877)
Partial backport from cb5b68abde

Co-authored-by: Christian Heimes <christian@python.org>
2019-02-15 17:18:58 +01:00
stratakis b8eaec697a [2.7] bpo-28043: improved default settings for SSLContext (GH-10608)
The options OP_NO_COMPRESSION, OP_CIPHER_SERVER_PREFERENCE,
OP_SINGLE_DH_USE, OP_SINGLE_ECDH_USE, OP_NO_SSLv2 (except
for PROTOCOL_SSLv2), and OP_NO_SSLv3 (except for PROTOCOL_SSLv3)
are set by default. The initial cipher suite list contains only
HIGH ciphers, no NULL ciphers and MD5 ciphers (except for PROTOCOL_SSLv2).

(cherry picked from commit 358cfd426c)
2019-02-15 15:24:11 +01:00
stratakis c49f63c176 [2.7] bpo-33570: TLS 1.3 ciphers for OpenSSL 1.1.1 (GH-6976) (GH-8760) (GH-10607)
Change TLS 1.3 cipher suite settings for compatibility with OpenSSL
1.1.1-pre6 and newer. OpenSSL 1.1.1 will have TLS 1.3 cipers enabled by
default.

Also update multissltests to test with latest OpenSSL.

Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit 3e630c541b)
Co-authored-by: Christian Heimes <christian@python.org>
2019-02-15 14:17:12 +01:00
Victor Stinner 826a8b7081
bpo-35746: Credit Colin Read and Nicolas Edet (GH-11866)
Add credit for the cert parser vulnerability. Mention also Cisco
TALOS-2018-0758 identifier.
2019-02-15 12:34:17 +01:00
Miss Islington (bot) 2f1a317d5f
Doc sidebar: 3.6 has moved to security-fix mode. (GH-11810)
(cherry picked from commit 9db56fb8fa)

Co-authored-by: Julien Palard <julien@palard.fr>
2019-02-10 13:43:52 -08:00