| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
In _io_FileIO_readall_impl(), lseek() and _Py_fstat_noraise() were called
without releasing the GIL. This can cause all threads to hang for
unlimited time when calling FileIO.read() and the NFS server is not
accessible.
(cherry picked from commit 6a89481680b921e7b317c29877bdda9a6031e5ad)
|
|
|
|
|
|
| |
(GH-4080) (#4653)
with the persistent_id() and persistent_load() methods.
(cherry picked from commit 986375ebde0dd5ff2b7349e445a06bd28a3a8ee2)
|
|
|
| |
(cherry picked from commit 08d2b86a1058b733bb7f1ae2b55818dd9687d21c)
|
|
|
| |
(cherry picked from commit 6e3d6b5dc22cd06d8c4d44a38a8a3415e4bebb16)
|
|
|
|
|
| |
make_array() (GH-4391) (#4392)
(cherry picked from commit 56935a53b11b9a70f3e13e460777ec81a5b9195e)
|
|
|
|
|
| |
(GH-4384) (#4385)
(cherry picked from commit f76231f89a7231fd486b37f728fbb4aab389e4d7)
|
|
|
|
|
|
|
|
|
| |
(GH-4235) (#4352)
* Fix compilation of the socket module on NetBSD 8.
* Fix the assertion failure or reading arbitrary data when parse
a AF_BLUETOOTH address on NetBSD and DragonFly BSD.
* Fix other potential errors and make the code more reliable.
(cherry picked from commit d3187158c09cf899e9849f335bdff10594209167)
|
|
|
|
|
| |
object is uninitialized (GH-3958) (#4303)
(cherry picked from commit edb13ae48c17210fa4b2d40a6833ca09db5c121b)
|
|
|
|
|
| |
sqlite3.Cursor.__init__() more than once (GH-3968) (#4301)
(cherry picked from commit e56ab746a965277ffcc4396d8a0902b6e072d049)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(#4262)
All Blake2 params have to be encoded in little-endian byte order. For
the two multi-byte integer params, leaf_length and node_offset, that
means that assigning a native-endian integer to them appears to work on
little-endian platforms, but gives the wrong result on big-endian. The
current libb2 API doesn't make that very clear, and @sneves is working
on new API functions in the GH issue above. In the meantime, we can work
around the problem by explicitly assigning little-endian values to the
parameter block.
See https://github.com/BLAKE2/libb2/issues/12.
(cherry picked from commit dcfb0e3c04f1b29a0d09bb0a81dcd5ee5a5fef1a)
|
|
|
|
| |
Bug report and patch by Jeroen Demeyer.
(cherry picked from commit f6f90ff079a22b79a58d47b6117cc8a8c7d366f3)
|
|
|
|
|
|
|
|
|
|
|
| |
(GH-4230) (#4253)
When a single .c file contains several functions and/or methods with
the same name, a safety _METHODDEF GH-define statement is generated
only for one of them.
This fixes the bug by using the full name of the function to avoid
duplicates rather than just the name..
(cherry picked from commit 4f57409a2f7bdf8fb559cddc7c6533ca2c471c67)
|
|
|
|
|
| |
(GH-4220) (#4221)
(cherry picked from commit 4f469c096628af730b17798d0ebfd8925bfde836)
|
|
|
|
|
|
|
| |
earlier. (GH-3826) (#4218)
Skip a test for unget_wch()/get_wch() on OpenBSD since they are broken
in ncurses 5.7.
(cherry picked from commit 7e68790f3db75a893d5dd336e6201a63bc70212b)
|
|
|
| |
(cherry picked from commit 894ebd065e02debf20c0657d26020ecc42b7534f)
|
|
|
|
|
|
|
|
|
|
|
|
| |
Replace occurence of nested comments in blake2 reference implementation
with preprocessor directive for disabling unused code.
`blake2s-load-xop.h` is conditionally pulled in only on chips with XOP
support, among others the AMD Bulldozer. The malformed comments in the
source file breaks the build of `hashlib`'s `_blake2` on GCC 6.3.0.
Official reference code on github uses `GH-if` so this change should be
uncontroversial.
(cherry picked from commit 388cd85e51aa9c73f8e7f35f0d06c258be7b579c)
|
|
|
|
|
|
|
|
|
|
|
| |
(#4212)
Modify the code to use ncurses is_pad() instead of checking WINDOW
_flags field. If your platform does not provide the is_pad(), the
existing way that checks the field will be enabled.
Note: This change does not drop support for platforms where do not
have both WINDOW _flags field and is_pad().
(cherry picked from commit 8bc7d63560024681dce9f40445f2877b2987e92c)
|
|
|
|
|
|
|
| |
(#4201)
* Fix a compilation error on FreeBSD.
* Fix the data attribute size on Mac OS X.
(cherry picked from commit 2298fad5ff907dd48ea0fb5c71fa22334ef28c6b)
|
|
|
|
|
| |
* Fixed the layout of the kqueue_event structure on OpenBSD and NetBSD.
* Fixed the comparison of the kqueue_event objects.
(cherry picked from commit b9052a0f91d2e83bbc27267247a5920c82b242a3)
|
|
|
| |
(cherry picked from commit baac01e629d90f63dfde6b5cc433f4bc65c5feeb)
|
|
|
|
|
| |
(#4135)
(cherry picked from commit 56d1f5ca32892c7643eb8cee49c40c1644f1abfe)
|
|
|
|
|
|
| |
integers. (GH-3947) (#4086)
Bad remainder in divmod() in intermediate calculations caused an assertion failure.
(cherry picked from commit 4ffd4653a7ec9c97775472276cf5e159e2366bb2)
|
|
|
| |
(cherry picked from commit 85f643023fed3d4e2fb8e399f9ad57f3a65ef237)
|
|
|
|
|
| |
(GH-3729). (#4081)
(cherry picked from commit 04e36af9b88cd5e80fc818e51d46f07252a2ff3f)
|
|
|
|
|
|
|
| |
Always pass -1, or INFTIM where defined, to the poll() system call when
a negative timeout is passed to the poll.poll([timeout]) method in the
select module. Various OSes throw an error with arbitrary negative
values.
(cherry picked from commit 6cfa927ceb931ad968b5b03e4a2bffb64a8a0604)
|
|
|
|
|
|
|
|
|
| |
in more functions (GH-4026) (#4032)
Fix timeout rounding in time.sleep(), threading.Lock.acquire() and
socket.socket.settimeout() to round correctly negative timeouts between -1.0 and
0.0. The functions now block waiting for events as expected. Previously, the
call was incorrectly non-blocking.
(cherry picked from commit 59af94fa61bf90adbe624508e909b5d6ef6e8464)
|
|
|
|
|
| |
is a small negative value. (GH-4003). (#4022)
(cherry picked from commit 2c15b29aea5d6b9c61aa42d2c24a07ff1edb4b46)
|
|
|
| |
(cherry picked from commit 1295e11d397c6138427296d5f9653a9e7dd69062)
|
|
|
|
|
| |
(#3973)
(cherry picked from commit de072100775cc29e6cd93a75466cecbd1086f258)
|
|
|
|
|
|
| |
* stdout and stderr are always opened in text mode
* and they are line-buffered
Initial patch by Gareth Rees.
|
|
|
|
|
|
|
| |
* Separated functions and constants descriptions in sections.
* Added a note about the limitations of timezone constants.
* Removed redundant lists from the module docstring.
(cherry picked from commit 703ff381ffa946c23e7e25b0ae93a636a2607a40)
|
|
|
|
|
| |
Element.text and Element.tail (GH-3924) (#3945)
(cherry picked from commit 39ecb9c71b6e55d8a61a710d0144231bd88f9ada)
|
|
|
|
|
|
|
|
| |
split() (GH-3866) (#3874)
when pass a string larger than 2 GiB.
Decrease memory requirements for Tcl's bigmem tests.
(cherry picked from commit 27c623c845dd6e4b8e1782666ca3a956636da266)
|
|
|
|
|
| |
(GH-3864). (#3873)
(cherry picked from commit 929b40a601db868530d6beaafb3256822103a7fb)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* init commit, with initial tests for from_param and fields __set__ and __get__, and some additions to from_buffer and from_buffer_copy
* added the rest of tests and patches. probably only a first draft.
* removed trailing spaces
* replace ctype with ctypes in error messages
* change back from ctypes instance to ctype instance
(cherry picked from commit 1bea762d9ec823544c530d567330a47f64d93d4f)
|
|
|
|
|
| |
has a bad __abs__() method. (GH-3596) (#3794)
(cherry picked from commit d780b2d588e68bd7047ef5d1f04e36da38b7a350)
|
|
|
|
|
| |
_json.make_encoder() received a bad encoder() argument. (GH-3643) (#3777)
(cherry picked from commit 2b382dd6121bb1e4b75470fb3ef8555665df3eb6)
|
|
|
|
|
| |
attr is defined only outside _fields_. (GH-3615) (#3774)
(cherry picked from commit 30b61b51e05d2d43e8e2e783b0a9df738535423b)
|
|
|
| |
(cherry picked from commit 31aca4bf79217e6ec4c1d056d3ad7ed4dd469c78)
|
|
|
|
|
| |
itertools.groupby() iterators. (GH-1557) (#3770)
(cherry picked from commit c740e4fe8a9bc5815dc18c38d7f7600b128c3c51)
|
|
|
|
|
| |
ctypes._CData.__setstate__(), in case of a bad __dict__. (GH-3254) (#3743)
(cherry picked from commit 57c2561c8c5663aef55b00e3f29cba575ff36ccd)
|
|
|
| |
(cherry picked from commit 49392c63a243052c8013bef80d35202bb6d7c404)
|
|
|
|
|
| |
(GH-3712) (#3714)
(cherry picked from commit d6238a76c655e0feb13478505220dc9049f1682f)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(#3681)
Fix a memory corruption in getpath.c due to mixed memory allocators
between Py_GetPath() and Py_SetPath().
The fix use the Raw allocator to mimic the windows version.
This patch should be used from python3.6 to the current version
for more details, see the bug report and
https://github.com/pyinstaller/pyinstaller/issues/2812
(cherry picked from commit 3d1e2ab584ed0175592b5be2a0bc98dc1723776a)
|
|
|
|
|
| |
with a bad as_integer_ratio() method. (GH-3227) (#3654)
(cherry picked from commit 865e4b4f630e2ae91e61239258abb58b488f1d65)
|
|
|
|
|
|
|
|
|
|
| |
* bpo-31499, xml.etree: Fix xmlparser_gc_clear() crash
xml.etree: xmlparser_gc_clear() now sets self.parser to NULL to prevent a
crash in xmlparser_dealloc() if xmlparser_gc_clear() was called previously
by the garbage collector, because the parser was part of a reference cycle.
Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit e727d41ffcd91b21ce82026ec8c8381d34a16209)
|
|
|
|
|
|
|
|
| |
(GH-3545) (#3585)
* Avoid calling "PyObject_GetAttrString()" (and potentially executing user code) with a live exception set.
* Ignore only AttributeError on attribute lookups in ElementTree.XMLParser() and propagate all other exceptions.
(cherry picked from commit c8d8e15bfc24abeeaaf3d8be9073276b0c011cdf)
|
|
|
|
|
| |
case env has a bad keys() method. (GH-3580) (#3584)
(cherry picked from commit 0b3a87ef54a0112b74e8a1d8c6f87d10db4239ab)
|
|
|
|
|
|
|
|
| |
Cast Py_buffer.len (Py_ssize_t, signed) to size_t (unsigned) to
prevent the following warning:
Modules/_ssl.c:3089:21: warning: comparison between signed and
unsigned integer expressions [-Wsign-compare].
(cherry picked from commit 5a61559fb0776a9a0f08294ec9003cea13940430)
|
|
|
|
| |
struct (#3561)
|