Gregory P. Smith
ad3e72557c
Should fix the issue19081 fix on Windows. Don't let the previous
...
posix module ImportError cause the nt module import to fail.
2014-01-07 01:11:09 -08:00
Gregory P. Smith
b48c5d5107
Fixes issue19081: When a zipimport .zip file in sys.path being imported
...
from is modified during the lifetime of the Python process after
zipimport has already opened and cached the zip's table of contents
it now fstat's the file after opening it upon every attempt to access
anything within and will re-read the table of contents if the .zip file
inode, size or mtime have changed.
It would've been nicer to hold any .zip file used by zipimport open for the
duration of the process but that would be more invasive and add an additional
open file descriptor to all zipimport using processes. It also would likely
not fix the problem on Windows due to different filesystem semantics.
2014-01-06 09:46:46 -08:00
Victor Stinner
9450219b06
Issue #20026 : Fix the sqlite module to handle correctly invalid isolation level
...
(wrong type).
2013-12-19 16:44:48 +01:00
Serhiy Storchaka
0c221beed4
Issue #18829 : csv.Dialect() now checks type for delimiter, escapechar and
...
quotechar fields. Original patch by Vajrasky Kok.
2013-12-19 16:26:56 +02:00
Gregory P. Smith
ddd71e2f78
remove trailing spaces.
2013-12-18 11:25:26 -08:00
Serhiy Storchaka
15df36bb14
Issue #16404 : Add checks for return value of PyInt_FromLong() in
...
sys.getwindowsversion() and ossaudiodev.setparameters().
Reported by Ned Batchelder.
2013-12-17 15:09:45 +02:00
Serhiy Storchaka
a92cc91ee6
Issue #17919 : Fixed integer overflow in the eventmask parameter.
2013-12-14 19:11:04 +02:00
Serhiy Storchaka
17f22c9281
Issue #17919 : select.poll.poll() again works with poll.POLLNVAL on AIX.
2013-12-13 12:09:05 +02:00
Victor Stinner
66c6e9dcb4
Issue #14432 : Generator now clears the borrowed reference to the thread state
...
Fix a crash when a generator is created in a C thread that is destroyed while
the generator is still used. The issue was that a generator contains a frame,
and the frame kept a reference to the Python state of the destroyed C thread.
The crash occurs when a trace function is setup.
2013-12-13 02:37:09 +01:00
Serhiy Storchaka
5493d5ea2a
Issue #19099 : The struct module now supports Unicode format strings.
2013-12-08 17:44:50 +02:00
Nadeem Vawda
337c50b8cb
Closes #19878 : Fix segfault in bz2 module.
...
Initial patch by Vajrasky Kok.
2013-12-08 15:31:50 +01:00
Alexandre Vassalotti
df9460f8dc
Issue #6477 : Revert fbb97f6eb3b3 as it broke test_xpickle.
2013-11-30 17:43:42 -08:00
Alexandre Vassalotti
a2934280e5
Issue #6477 : Added pickling support for singletons and their types.
2013-11-30 16:52:03 -08:00
Eli Bendersky
71142c4e86
Fix indentation from previous commit
2013-11-28 06:37:25 -08:00
Eli Bendersky
f933e081dd
Issue #19815 : Fix segfault when parsing empty namespace declaration.
...
Based on patches by Christian Heimes and Vajrasky Kok
2013-11-28 06:25:45 -08:00
Serhiy Storchaka
dafda9b042
Issue #11489 : JSON decoder now accepts lone surrogates.
2013-11-26 21:25:15 +02:00
R David Murray
a691219716
backport #18985 : Improve fcntl documentation.
2013-11-07 10:52:53 -05:00
Christian Heimes
41a7d5ee17
Issue #19227 / Issue #18747 : Remove pthread_atfork() handler to remove OpenSSL re-seeding
...
It is causing trouble like e.g. hanging processes.
2013-10-29 20:50:01 +01:00
Serhiy Storchaka
fdb73ed486
Issue #19405 : Fixed outdated comments in the _sre module.
2013-10-27 08:00:57 +02:00
Benjamin Peterson
657d06b13e
just return toplevel symbol table rather than all blocks ( closes #19393 )
2013-10-26 13:13:51 -04:00
Mark Dickinson
36f6e2c9e0
Issue #18739 : Fix inconsistent results from math.log(n) and math.log(long(n))
2013-10-13 10:55:15 +01:00
Ned Deily
62a192931b
Issue #18458 : Prevent crashes with newer versions of libedit. Its readline
...
emulation has changed from 0-based indexing to 1-based like gnu readline.
Original patch by Ronald Oussoren.
2013-10-12 15:45:25 -07:00
Ned Deily
ebca3a5ab9
Issue #19147 : Fix docstring for fcntl.flock to refer to correct man section.
2013-10-02 12:20:18 -07:00
Antoine Pitrou
87c99a0d37
Properly initialize all fields of a SSL object after allocation.
2013-09-29 19:52:45 +02:00
Serhiy Storchaka
cf29ba8cf0
Issue #18672 : Fixed format specifiers for Py_ssize_t in debugging output in
...
the _sre moduel.
2013-09-05 18:02:57 +03:00
Christian Heimes
5eb6e3b40d
Issue #18709 : GCC 4.6 complains that 'v' may be used uninitialized in GEN_EMAIL/GEN_URI/GEN_DNS case
2013-09-05 16:05:50 +02:00
Christian Heimes
ed9884b2d0
Issue #18709 : GCC 4.6 complains that 'v' may be used uninitialized in GEN_EMAIL/GEN_URI/GEN_DNS case
2013-09-05 16:04:35 +02:00
Victor Stinner
930c3c9e43
Issue #18909 : Fix _tkinter.tkapp.interpaddr() on Windows 64-bit, don't cast
...
64-bit pointer to long (32 bits).
2013-09-05 00:26:15 +02:00
Antoine Pitrou
213fec4bff
Issue #18876 : The FileIO.mode attribute now better reflects the actual mode under which the file was opened.
...
Patch by Erik Bray.
2013-09-04 20:46:33 +02:00
Eli Bendersky
e6802db7d1
Close #18912 : Fix indentation in docstring
...
Contributed by Jeroen Van Goey
2013-09-03 06:41:58 -07:00
Ezio Melotti
6d0f0f299b
#18803 : fix more typos. Patch by Févry Thibault.
2013-08-26 01:31:30 +03:00
Christian Heimes
42831fefa7
Issue #11973 : Fix a problem in kevent. The flags and fflags fields are now
...
properly handled as unsigned.
2013-08-25 14:57:00 +02:00
Christian Heimes
8ee5ffddf5
Issue #18747 : Fix spelling errors in my commit message and comments,
...
thanks to Vajrasky Kok for proof-reading.
2013-08-25 14:19:16 +02:00
Barry Warsaw
82f8828317
- Issue #18709 : Fix CVE-2013-4238. The SSL module now handles NULL bytes
...
inside subjectAltName correctly. Formerly the module has used OpenSSL's
GENERAL_NAME_print() function to get the string represention of ASN.1
strings for `rfc822Name` (email), `dNSName` (DNS) and
`uniformResourceIdentifier` (URI).
2013-08-23 13:26:49 -04:00
Serhiy Storchaka
2ac1c1a31d
Issue #16809 : Tkinter's splitlist() and split() methods now accept Tcl_Obj
...
argument.
This is needed for support Tcl/Tk 8.6.
2013-08-22 17:42:45 +03:00
Christian Heimes
1d0f73d20f
Issue #18747 : Use a parent atfork handler instead of a child atfork handler.
...
fork() is suppose to be async-signal safe but the handler calls unsafe functions. A parent handler mitigates the issue.
2013-08-22 13:19:48 +02:00
Serhiy Storchaka
4203570d01
Issue #17119 : Fixed integer overflows when processing large Unicode strings
...
and tuples in the tkinter module.
2013-08-21 21:46:12 +03:00
Christian Heimes
0d604cf65e
Issue #18747 : Re-seed OpenSSL's pseudo-random number generator after fork.
...
A pthread_atfork() child handler is used to seeded the PRNG with pid, time
and some stack data.
2013-08-21 13:26:05 +02:00
Serhiy Storchaka
c360389453
Issue #8865 : Concurrent invocation of select.poll.poll() now raises a
...
RuntimeError exception. Patch by Christian Schubert.
2013-08-20 20:38:21 +03:00
Serhiy Storchaka
a9885e93ee
Issue #13461 : Fix a crash in the TextIOWrapper.tell method and in the "replace"
...
error handler on 64-bit platforms. Patch by Yogesh Chaudhari.
2013-08-20 20:08:53 +03:00
Christian Heimes
10107813ac
Issue #18777 : The ssl module now uses the new CRYPTO_THREADID API of
...
OpenSSL 1.0.0+ instead of the deprecated CRYPTO id callback function.
2013-08-19 17:36:29 +02:00
Christian Heimes
b4ec842f39
Issue 18768: Correct doc string of RAND_edg(). Patch by Vajrasky Kok.
2013-08-17 17:25:18 +02:00
Christian Heimes
f1bd47ae14
Issue #18768 : coding style nitpick. Thanks to Vajrasky Kok
2013-08-17 17:18:56 +02:00
Ezio Melotti
419e23cbb0
#18466 : fix more typos. Patch by Févry Thibault.
2013-08-17 16:56:09 +03:00
Christian Heimes
6e0be01bfb
Issue #18178 : Fix ctypes on BSD. dlmalloc.c was compiled twice which broke malloc weak symbols.
2013-08-17 15:01:54 +02:00
Christian Heimes
88b174c977
Issue #18709 : Fix CVE-2013-4238. The SSL module now handles NULL bytes
...
inside subjectAltName correctly. Formerly the module has used OpenSSL's
GENERAL_NAME_print() function to get the string represention of ASN.1
strings for rfc822Name (email), dNSName (DNS) and
uniformResourceIdentifier (URI).
2013-08-17 00:54:47 +02:00
Serhiy Storchaka
e822b034e7
Issue #15866 : The xmlcharrefreplace error handler no more produces two XML
...
entities for a non-BMP character on narrow build.
2013-08-06 16:56:26 +03:00
Mark Dickinson
5ad3514822
Issue #18661 : typo in grp.struct_group docstring.
2013-08-05 17:56:17 +01:00
Eli Bendersky
b671701149
Issue #13612 : Fix a buffer overflow in case of a multi-byte encoding.
...
This is a belated backport of f7b47fb30169; Patch by Serhiy Storchaka.
2013-08-04 06:09:49 -07:00
Serhiy Storchaka
3ade66c203
Issue #17998 : Fix an internal error in regular expression engine.
2013-08-03 19:26:33 +03:00