Oren Milman
a5b4ea15b6
bpo-31271: Fix an assertion failure in io.TextIOWrapper.write. ( #3201 )
2017-08-25 21:14:54 +03:00
Stefan Krah
138753c1b9
bpo-31275: Small refactoring to silence a fall-through warning. ( #3206 )
2017-08-25 18:31:22 +02:00
Oren Milman
13614e375c
bpo-28261: fix err msgs where PyArg_ParseTuple is used to parse normal tuples (leftovers) ( #3198 )
2017-08-24 19:51:24 +03:00
INADA Naoki
a6296d34a4
bpo-31095: fix potential crash during GC (GH-2974)
2017-08-24 14:55:17 +09:00
Stefan Krah
f432a3234f
bpo-30923: Silence fall-through warnings included in -Wextra since gcc-7.0. ( #3157 )
2017-08-21 13:09:59 +02:00
Oren Milman
1d1d3e9db8
bpo-28261: Fixed err msgs where PyArg_ParseTuple is used to parse normal tuples. ( #3119 )
2017-08-20 18:35:36 +03:00
Victor Stinner
93d0cb58b4
bpo-30947: Update libexpat from 2.2.1 to 2.2.3 ( #3106 )
...
* bpo-30947: Update libexpat from 2.2.1 to 2.2.3
* Add NEWS entry
* Add new loadlibrary.c
* expat_external.h: restore include "pyexpatns.h"
* PCbuild: add expat/loadlibrary.c
* Define XML_POOR_ENTROPY to compile expat
2017-08-18 23:43:54 +02:00
Stefan Krah
d73a960c57
bpo-30923: Disable warning that has been part of -Wextra since gcc-7.0. ( #3142 )
2017-08-18 21:39:32 +02:00
Yaron de Leeuw
02f3b7d5ab
bpo-31109: Convert zipimport to use Argument Clinic (GH-2990)
2017-08-18 11:41:13 -07:00
Adrian Wielgosik
7c17e2304b
bpo-24700: Add a fast path for comparing array.array of equal type ( #3009 )
2017-08-17 14:46:06 +02:00
Oren Milman
d83c23b2db
fix grammr in error messages in overlapped.c (GH-3095)
2017-08-15 09:04:18 -07:00
Коренберг Марк
d4b93e21c2
bpo-31106: Fix handling of erros in posix_fallocate() and posix_fadvise() ( #3000 ) ( #3000 )
2017-08-14 06:55:16 -07:00
Victor Stinner
7b7c6dcfff
bpo-31173: Rewrite WSTOPSIG test of test_subprocess ( #3055 )
...
The current test_child_terminated_in_stopped_state() function test
creates a child process which calls ptrace(PTRACE_TRACEME, 0, 0) and
then crash (SIGSEGV). The problem is that calling os.waitpid() in the
parent process is not enough to close the process: the child process
remains alive and so the unit test leaks a child process in a
strange state. Closing the child process requires non-trivial code,
maybe platform specific.
Remove the functional test and replaces it with an unit test which
mocks os.waitpid() using a new _testcapi.W_STOPCODE() function to
test the WIFSTOPPED() path.
2017-08-10 12:37:39 +02:00
Ville Skyttä
49b2734bf1
Spelling fixes ( #2902 )
2017-08-03 09:00:59 +03:00
Alexander Mohr
de34cbe9cd
bpo-31061: fix crash in asyncio speedup module (GH-2966)
2017-08-02 15:31:07 +09:00
Alexander Belopolsky
018d353c1c
Closes issue bpo-5288: Allow tzinfo objects with sub-minute offsets. ( #2896 )
...
* Closes issue bpo-5288: Allow tzinfo objects with sub-minute offsets.
* bpo-5288: Implemented %z formatting of sub-minute offsets.
* bpo-5288: Removed mentions of the whole minute limitation on TZ offsets.
* bpo-5288: Removed one more mention of the whole minute limitation.
Thanks @csabella!
* Fix a formatting error in the docs
* Addressed review comments.
Thanks, @haypo.
2017-07-31 10:26:50 -04:00
Segev Finer
5cff637979
bpo-9566: Fixed _ssl module warnings ( #2495 )
...
* bpo-9566: Fixed some _ssl warnings
* bpo-9566: _ssl: Fixup the fixes and also fix the remainings warnings
* Add a comment about the downcast
2017-07-26 15:19:17 -07:00
Segev Finer
679b566622
bpo-9566: Fix some Windows x64 compiler warnings ( #2492 )
...
* bpo-9566: Silence liblzma warnings
* bpo-9566: Silence tcl warnings
* bpo-9566: Silence tk warnings
* bpo-9566: Silence tix warnings
* bpo-9566: Fix some library warnings
* bpo-9566: Fix msvcrtmodule.c warnings
* bpo-9566: Silence _bz2 warnings
* bpo-9566: Fixed some _ssl warnings
* bpo-9566: Fix _msi warnings
* bpo-9566: Silence _ctypes warnings
* Revert "bpo-9566: Fixed some _ssl warnings"
This reverts commit a639001c94 .
* bpo-9566: Also consider NULL as a possible error in HANDLE_return_converter
* bpo-9566: whitespace fixes
2017-07-26 15:17:57 -07:00
Utkarsh Upadhyay
cc5a65cd90
bpo-30302 Make timedelta.__repr__ more informative. ( #1493 )
2017-07-25 23:51:33 +02:00
Segev Finer
39243779f4
bpo-31018: Switch to #pragma pack from __declspec(align) ( #2848 )
2017-07-25 10:47:43 +02:00
Xiang Zhang
4ed5ad79ec
bpo-30961: Fix decrementing a borrowed reference in tracemalloc. ( #2747 )
2017-07-19 00:33:29 +08:00
Antoine Pitrou
f474c5a3f3
bpo-30946: Remove obsolete fallback code in readline module ( #2738 )
...
* Remove obsolete fallback code in readline module
* Add NEWS
* Remove obsolete include
* Fix macro on Windows
2017-07-18 17:05:03 +02:00
Antoine Pitrou
2c8a5e4c96
bpo-30808: Use _Py_atomic API for concurrency-sensitive signal state ( #2417 )
...
* Improve signal delivery
Avoid using Py_AddPendingCall from signal handler, to avoid calling signal-unsafe functions.
* Remove unused function
* Improve comments
* Use _Py_atomic API for concurrency-sensitive signal state
* Add blurb
2017-07-17 12:25:19 +02:00
Steve Dower
68d663cf85
[bpo-30916] Pre-build OpenSSL and Tcl/Tk for Windows ( #2688 )
...
Updates ssl and tkinter projects to use pre-built externals
2017-07-17 11:15:48 +02:00
Serhiy Storchaka
49f6449ef4
bpo-30936: Fix a reference leak in json when fail to sort keys. ( #2712 )
2017-07-16 07:29:16 +03:00
Segev Finer
541bd28941
bpo-30911: Fix a crash in json on platforms with unsigned char ( #2684 )
...
when pass bad strict argument.
2017-07-13 08:52:08 +03:00
Segev Finer
f52325598e
Avoid _GNU_SOURCE redefined warning in xmlparse.c ( #2670 )
2017-07-11 21:47:03 +02:00
Serhiy Storchaka
1180e5a518
bpo-30879: os.listdir() and os.scandir() now emit bytes names when ( #2634 )
...
called with bytes-like argument.
2017-07-11 06:36:46 +03:00
Victor Stinner
b136f11f3a
bpo-30892: Fix _elementtree module initialization ( #2647 )
...
Handle getattr(copy, 'deepcopy') error in _elementtree module
initialization.
2017-07-10 22:28:02 +02:00
Victor Stinner
64fa449f55
bpo-30866: Add _testcapi.stack_pointer() ( #2601 )
2017-07-10 14:37:49 +02:00
Serhiy Storchaka
7e60192fe0
Remove _PyArg_NoStackKeywords(). ( #2641 )
2017-07-10 10:25:34 +02:00
Victor Stinner
1881befb90
bpo-29854: test_readline logs versions ( #2619 )
...
* test_readline logs the versions of libreadline when run in verbose
mode
* Add also readline._READLINE_LIBRARY_VERSION
2017-07-07 16:06:58 +02:00
Nir Soffer
fae8f4a9cb
bpo-29854: Fix segfault in call_readline() (GH-728)
...
If history-length is set in .inputrc, and the history file is double the
history size (or more), history_get(N) returns NULL, and python
segfaults. Fix that by checking for NULL return value.
It seems that the root cause is incorrect handling of bigger history in
readline, but Python should not segfault even if readline returns
unexpected value.
This issue affects only GNU readline. When using libedit emulation
system history size option does not work.
2017-07-07 09:10:46 +03:00
Yury Selivanov
833a3b0d37
bpo-30828: Fix out of bounds write in `asyncio.CFuture.remove_done_callback() ( #2569 )
2017-07-05 13:32:03 -04:00
Victor Stinner
67e1478dba
bpo-30319: socket.close() now ignores ECONNRESET ( #2565 )
...
socket.close() was modified in Python 3.6 to raise OSError on
failure: see bpo-26685.
2017-07-04 16:20:06 +02:00
Serhiy Storchaka
6969eaf468
bpo-29464: Rename METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS and make ( #1955 )
...
the bare METH_FASTCALL be used for functions with positional-only
parameters.
2017-07-03 21:20:15 +03:00
xdegaye
85f643023f
bpo-30695: Add set_nomemory(start, stop) to _testcapi (GH-2406)
2017-07-01 14:14:45 +02:00
Antoine Pitrou
729780a810
bpo-30807: signal.setitimer() may disable the timer by mistake ( #2493 )
...
* bpo-30807: signal.setitimer() may disable the timer by mistake
* Add NEWS blurb
2017-06-30 10:01:05 +02:00
Antoine Pitrou
c08177a1cc
bpo-30703: Improve signal delivery ( #2415 )
...
* Improve signal delivery
Avoid using Py_AddPendingCall from signal handler, to avoid calling signal-unsafe functions.
* Remove unused function
* Improve comments
* Add stress test
* Adapt for --without-threads
* Add second stress test
* Add NEWS blurb
* Address comments @haypo
2017-06-28 23:29:29 +02:00
Segev Finer
9f3bdcb643
bpo-23451: Fix socket deprecation warnings in socketmodule.c ( #2318 )
...
* bpo-23451: Fix WSASocket and WSADuplicateSocket deprecation warnings
* bpo-23451: Add backwards compatibility note about socket share/fromshare
* bpo-23451: Fixed `WSAAddressToString`/`WSAStringToAddress` deprecation warnings
* bpo-23451: Use `inet_pton`/`inet_ntop` instead of `WSAAddressToString`/`WSAStringToAddress`
* bpo-23451: Move `HAVE_INET_PTON` from _socket.vcxproj to pyconfig.h
* bpo-23451: Add SUPPRESS_DEPRECATED_CALL to socketmodule.c
* bpo-23451: Add a NEWS.d entry
* bpo-23451: Corrected NEWS.d entry
2017-06-28 13:51:00 -07:00
Serhiy Storchaka
ccdc09ed1e
Fix compiler warnings on Windows introduced in bpo-13617. ( #2464 )
2017-06-28 09:55:22 +03:00
Serhiy Storchaka
f7eae0adfc
[security] bpo-13617: Reject embedded null characters in wchar* strings. ( #2302 )
...
Based on patch by Victor Stinner.
Add private C API function _PyUnicode_AsUnicode() which is similar to
PyUnicode_AsUnicode(), but checks for null characters.
2017-06-28 08:30:06 +03:00
Serhiy Storchaka
e613e6add5
bpo-30708: Check for null characters in PyUnicode_AsWideCharString(). ( #2285 )
...
Raise a ValueError if the second argument is NULL and the wchar_t\*
string contains null characters.
2017-06-27 16:03:14 +03:00
Eric N. Vander Weele
a7874c73c0
bpo-30769: Fix reference leak introduced in 77703942c5 ( #2416 )
...
New error condition paths were introduced, which did not decrement
`key2` and `val2` objects. Therefore, decrement references before
jumping to the error label.
Signed-off-by: Eric N. Vander Weele <ericvw@gmail.com>
2017-06-27 03:35:20 +02:00
Serhiy Storchaka
77703942c5
bpo-30746: Prohibited the '=' character in environment variable names ( #2382 )
...
in `os.putenv()` and `os.spawn*()`.
2017-06-25 07:33:01 +03:00
Serhiy Storchaka
0ee32c1481
bpo-30745: Fix compiler warnings introduced in bpo-30730. ( #2376 )
2017-06-24 16:14:08 +03:00
Victor Stinner
8f525882fa
bpo-30726: expat: Fix compiler warnings on Windows 64-bit ( #2368 )
...
Explicitly cast on integer downcasting to fix compiler warnings.
(cherry picked from libexpat commit 788bff7a3baad1983b15b17c29e19e1a1a795c48)
2017-06-24 01:08:56 +02:00
Serhiy Storchaka
d174d24a5d
bpo-30730: Prevent environment variables injection in subprocess on Windows. ( #2325 )
...
Prevent passing other invalid environment variables and command arguments.
2017-06-23 19:39:27 +03:00
Victor Stinner
f87b85f808
bpo-21071: struct.Struct.format type is now str ( #845 )
2017-06-23 15:11:12 +02:00
Victor Stinner
c8d6ab2e25
bpo-30602: Fix lastarg in os.spawnve() ( #2287 )
...
Fix a regression introduced by myself in the commit
526b22657c .
2017-06-23 15:04:46 +02:00