Benjamin Peterson
1f0e7c9933
rearrange methodcaller_new so that the main error case does not cause uninitialized memory usage ( closes #27783 )
10 years ago
Benjamin Peterson
3a27b0857e
do not decref value borrowed from list ( closes #27774 )
10 years ago
Benjamin Peterson
432ea4ff37
fail when negative values are passed to instr()
10 years ago
Benjamin Peterson
4f976513ef
fix possible integer overflow in binascii.b2a_qp ( closes #27760 )
Reported by Thomas E. Hybel
10 years ago
Benjamin Peterson
40a77c3381
do not allow reading negative values with getstr()
10 years ago
Benjamin Peterson
6e01d90cc8
check for overflow in join_append_data ( closes #27758 )
Reported by Thomas E. Hybel
10 years ago
Vinay Sajip
6f25003291
Issue #20160 : Handled passing of large structs to callbacks correctly.
10 years ago
Benjamin Peterson
06d49bb895
sync ordering of stddef.h includes with expat 2.1.1
10 years ago
Benjamin Peterson
196d7db395
upgrade expt to 2.1.1 ( closes #26556 )
10 years ago
Benjamin Peterson
9491272751
open the cert store readonly
Patch from Chi Hsuan Yen.
10 years ago
Benjamin Peterson
b1db758061
reject negative data_size
10 years ago
Benjamin Peterson
c4032da201
prevent buffer overflow in get_data ( closes #26171 )
10 years ago
Benjamin Peterson
ef9cf08352
fix refleak in error condition
10 years ago
Benjamin Peterson
0e617e22f0
remove some copyright notices supserseded by the toplevel ones
10 years ago
Serhiy Storchaka
7efaf95934
Issue25814: Propagate all errors from custom XML parser handlers
in ElementTree.iterparse().
10 years ago
Martin Panter
afdd51343c
Issue #25764 : Preserve subprocess fork exception when preexec_fn used
Also fix handling of failure to release the import lock.
10 years ago
Serhiy Storchaka
ca28eba3d3
Fixed reference leak when read truncated pickle.
10 years ago
Serhiy Storchaka
097a664f57
Issue #19687 : Fixed possible integer overflows in ElementTree.
Based on patch by Christian Heimes.
10 years ago
Serhiy Storchaka
a49de6be36
Issue #25725 : Fixed a reference leak in pickle.loads() when unpickling
invalid data including tuple instructions.
10 years ago
Serhiy Storchaka
e9b3074cf9
Issue #23914 : Fixed SystemError raised by unpickler on broken pickle data.
10 years ago
Serhiy Storchaka
b6aa5375d5
Issue #25691 : Fixed crash on deleting ElementTree.Element attributes.
10 years ago
Serhiy Storchaka
04d759b1e4
Issue #19687 : Fixed memory leak on failed Element slice assignment.
Added new tests for Element slice assignments.
10 years ago
Benjamin Peterson
025a1fd990
rm trailing ws
10 years ago
Benjamin Peterson
f0c9038a36
fix possible memory lea k in _get_aia_uri ( closes #25578 )
10 years ago
Benjamin Peterson
806fb25405
fix build with older openssl ( #25569 )
10 years ago
Martin Panter
1bb651540e
Issue #25498 : Fix GC crash due to ctypes objects wrapping a memoryview
This was a regression caused by revision 1da9630e9b7f. Based on patch by
Eryksun.
10 years ago
Benjamin Peterson
a9dcdabccb
always set OP_NO_SSLv3 by default ( closes #25530 )
10 years ago
Benjamin Peterson
eda06c8f5e
fix memory leak in _get_crl_dp ( closes #25569 )
Patch started by Stéphane Wirtel.
10 years ago
Serhiy Storchaka
d65c9496da
Issue #25523 : Further a-to-an corrections.
10 years ago
Martin Panter
7462b64911
Issue #25523 : Correct "a" article to "an" article
This changes the main documentation, doc strings, source code comments, and a
couple error messages in the test suite. In some cases the word was removed
or edited some other way to fix the grammar.
10 years ago
Benjamin Peterson
b397e3b526
add a missing comma ( closes #25371 )
11 years ago
Martin Panter
cfad54344f
Issue #22413 : Document newline effect on StringIO initializer and getvalue
Also add to comment in the C code.
11 years ago
Martin Panter
9955a373a8
Various minor typos in documentation and comments
11 years ago
Berker Peksag
e2382c598c
Issue #25290 : Fix typo in csv.reader() docstring
Patch by Johannes Niediek.
11 years ago
Serhiy Storchaka
e060619d4b
Issue #25262 . Added support for BINBYTES8 opcode in Python implementation of
unpickler. Highest 32 bits of 64-bit size for BINUNICODE8 and BINBYTES8
opcodes no longer silently ignored on 32-bit platforms in C implementation.
11 years ago
Alexander Belopolsky
edc6885b3f
Closes issue #23600 : Wrong results from tzinfo.fromutc().
11 years ago
Alexander Belopolsky
c79447b267
Closes issue #23600 : Wrong results from tzinfo.fromutc().
11 years ago
Serhiy Storchaka
1138439376
Issue #25203 : Failed readline.set_completer_delims() no longer left the
module in inconsistent state.
11 years ago
Benjamin Peterson
3c0769d478
fix spacing
11 years ago
Benjamin Peterson
6aa1564e9c
initialize return value to NULL to avoid compiler compliants ( closes #25245 )
11 years ago
Benjamin Peterson
e48cf7e729
prevent overflow in _Unpickler_Read
11 years ago
Victor Stinner
511491ade0
Issue #23517 : Fix rounding in fromtimestamp() and utcfromtimestamp() methods
of datetime.datetime: microseconds are now rounded to nearest with ties going
to nearest even integer (ROUND_HALF_EVEN), instead of being rounding towards
zero (ROUND_DOWN). It's important that these methods use the same rounding
mode than datetime.timedelta to keep the property:
(datetime(1970,1,1) + timedelta(seconds=t)) == datetime.utcfromtimestamp(t)
It also the rounding mode used by round(float) for example.
Add more unit tests on the rounding mode in test_datetime.
11 years ago
Kristján Valur Jónsson
102764a1f6
Issue #25021 : Correctly make sure that product.__setstate__ does not access
invalid memory.
11 years ago
Victor Stinner
ec1a498a01
Issue #24684 : socket.socket.getaddrinfo() now calls
PyUnicode_AsEncodedString() instead of calling the encode() method of the
host, to handle correctly custom string with an encode() method which doesn't
return a byte string. The encoder of the IDNA codec is now called directly
instead of calling the encode() method of the string.
11 years ago
Martin Panter
db4220ea09
Issue #25030 : Do not document seek() as if it accepts keyword arguments
Patch from Shiyao Ma.
11 years ago
Martin Panter
9499413508
os.sendfile(headers=None, trailers=None) arguments are not actually accepted
Needs to be tested on a BSD.
11 years ago
Martin Panter
bf19d16950
Issue #23738 : Document and test actual keyword parameter names
Also fix signature because os.utime(..., ns=None) is not allowed.
11 years ago
Serhiy Storchaka
de5f9f4f70
Raise more correct exception on overflow in setting buffer_size attribute of
expat parser.
11 years ago
Serhiy Storchaka
931331a328
Issue #25019 : Fixed a crash caused by setting non-string key of expat parser.
Added additional tests for expat parser attributes.
Based on patch by John Leitch.
11 years ago
Steve Dower
aa2fcc6b35
Issue #24917 : time_strftime() buffer over-read.
11 years ago