Martin Panter
6507657ddd
Issue #27895 : Spelling fixes (Contributed by Ville Skyttä).
2016-09-07 12:03:06 +00:00
Martin Panter
6eec87810f
Issue #27570 : Avoid zero-length memcpy() calls with null source pointers
2016-09-07 11:04:41 +00:00
Christian Heimes
6663eb6b72
Issue #27691 : Fix ssl module's parsing of GEN_RID subject alternative name fields in X.509 certs.
2016-09-06 23:25:35 +02:00
Benjamin Peterson
f0039d1f8d
fix unused variable warnings in pysqlite ( closes #27967 )
2016-09-06 10:01:16 -07:00
Benjamin Peterson
28e2771f24
Backed out changeset 8b6be1341770
2016-09-05 17:22:09 -07:00
Benjamin Peterson
bbc8fe1841
remove long double from ctypes value union
...
It is unused. It also forces a 16-byte alignment, which creates problems because
Python's allocator only uses 8-byte alignment.
2016-09-05 16:24:52 -07:00
Christian Heimes
9940633e89
Issue #26470 : Use short name rather than name for compression name to fix #27958 .
2016-09-06 01:10:39 +02:00
Christian Heimes
c2fc7c4f53
Issue #26470 : Port ssl and hashlib module to OpenSSL 1.1.0.
2016-09-05 23:37:13 +02:00
Benjamin Peterson
f859d0d7fd
move declaration to top of the function to appease the c89 gods
2016-09-05 13:07:48 -07:00
Benjamin Peterson
aa187c6878
rewrite unpack_add_info, so it has less memory corruption bugs ( closes #27944 )
2016-09-05 12:44:38 -07:00
Mark Dickinson
e6239a3ab3
Issue #27934 : Use float.__repr__ instead of plain repr when JSON-encoding an instance of a float subclass. Thanks Eddie James.
2016-09-03 17:45:00 +01:00
Serhiy Storchaka
e63af905a4
Issue #27861 : Fixed a crash in sqlite3.Connection.cursor() when a factory
...
creates not a cursor. Patch by Xiang Zhang.
2016-08-29 14:29:55 +03:00
Martin Panter
eac40fdf72
Issue #19884 : Avoid spurious output on OS X with Gnu Readline
...
Also adjust the test condition, because enable-meta-key was only added in
6.1, not 6.0.
2016-08-27 02:54:43 +00:00
Berker Peksag
dc60c75aee
Issue #10513 : Fix a regression in Connection.commit()
...
Statements should not be reset after a commit.
Backported from 029050896b
2016-08-26 22:19:05 +03:00
Benjamin Peterson
aed5a4ee73
rearrange methodcaller_new so that the main error case does not cause uninitialized memory usage ( closes #27783 )
2016-08-16 23:35:35 -07:00
Benjamin Peterson
0f3596a136
do not decref value borrowed from list ( closes #27774 )
2016-08-15 22:01:41 -07:00
Benjamin Peterson
505989c0e7
fail when negative values are passed to instr()
2016-08-15 21:40:14 -07:00
Benjamin Peterson
6c08d9628a
fix possible integer overflow in binascii.b2a_qp ( closes #27760 )
...
Reported by Thomas E. Hybel
2016-08-13 18:33:33 -07:00
Benjamin Peterson
f670120cb7
do not allow reading negative values with getstr()
2016-08-13 18:15:28 -07:00
Benjamin Peterson
d81ad0df71
check for overflow in join_append_data ( closes #27758 )
...
Reported by Thomas E. Hybel
2016-08-13 17:17:06 -07:00
Benjamin Peterson
04a5385353
fix possible overflow in encode_basestring_ascii ( #23369 )
2016-08-13 16:47:25 -07:00
Vinay Sajip
e1f3afbde2
Issue #20160 : Handled passing of large structs to callbacks correctly.
2016-08-05 21:10:26 +01:00
Martin Panter
a850ef698e
Issue #27626 : Spelling fixes in docs, comments and internal names
...
Based on patch by Ville Skyttä.
2016-07-28 01:11:04 +00:00
Martin Panter
e2eacc02bc
Issue #23943 : Fix typos. Patch by Piotr Kasprzyk.
2016-07-28 03:04:04 +00:00
Victor Stinner
2e1a34025c
ctypes: fix CThunkObject_new()
...
* Initialize restype and flags fields to fix a crash when Python runs on a
read-only file system
* Use Py_ssize_t type rather than int for the "i" iterator variable
* Reorder assignements to be able to more easily check if all fields are
initialized
Issue #11048 . Initial patch written by Marcin Bachry.
2016-07-27 16:58:47 +02:00
Martin Panter
1e411c5c78
Issue #27130 : Fix handling of buffers exceeding (U)INT_MAX in “zlib” module
...
Ported from patches by Xiang Zhang, Nadeem Vawda, and myself.
2016-07-23 04:22:09 +00:00
Martin Panter
bf2dca96fb
English spelling and grammar fixes
2016-07-11 07:51:37 +00:00
Martin Panter
b362f75f6e
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
to fix the grammar.
2015-11-02 03:37:02 +00:00
Martin Panter
8c6849bfe6
Issue #23804 : Fix SSL zero-length recv() calls to not block and raise EOF
2016-07-11 00:17:13 +00:00
Benjamin Peterson
e5fa8b0b0d
initialize variable to appease gcc
2016-07-07 00:24:26 -07:00
Benjamin Peterson
42e1029564
assume egd unless OPENSSL_NO_EGD is defined—remove configure check ( closes #24557 )
2016-07-07 00:02:31 -07:00
Serhiy Storchaka
3c9ce74c21
Issue #23908 : os functions, open() and the io.FileIO constructor now reject
...
unicode paths with embedded null character on Windows instead of silently
truncate them.
2016-07-01 23:34:44 +03:00
Serhiy Storchaka
ff0d875ad1
array.buffer_info() should return a length as int, not long, for compatibility.
2016-06-24 08:38:59 +03:00
Serhiy Storchaka
0cc5a2b263
Fixed integer overflow and handled MemoryError in array.buffer_info().
2016-06-24 00:00:32 +03:00
Martin Panter
b3eaaf0bfc
Issue #22463 : Cure unused function warnings on AIX
2016-06-22 02:46:33 +00:00
Martin Panter
2924124259
Issue #22463 : Correct #endif placement; patch by Senthil Kumaran
2016-06-22 02:04:38 +00:00
Martin Panter
646b528467
Issue #22463 : Backport compiler warning fixes and workarounds
...
* Set but unused variable in Parser/pgen.c in non-debug builds. Patch by
Christian Heimes.
* Unused static function in Modules/readline.c. Patch by Georg Brandl.
* main_window unused in Modules/tkappinit.c. Patch by Gregory P. Smith.
* Dead assignment in Modules/_ctypes/cfield.c. Extracted from patch by Brett
Cannon.
* Expression result unused in PyObject_INIT macro expansions. Based on
patches by Christian Heimes.
* Load expat_config.h and therefore pyconfig.h before C stdlib headers are
loaded. This silences pre-processor warnings including '_POSIX_C_SOURCE
redefined'. Extracted from patch by Christian Heimes.
2016-06-21 23:58:05 +00:00
Martin Panter
4e6e565368
Fix English spelling and grammar errors
2016-06-20 07:52:50 +00:00
Serhiy Storchaka
f46d3afc51
ctypes: the type of b_size is Py_ssize_t.
2016-06-17 11:11:07 +03:00
Serhiy Storchaka
ef012cc7f7
Issue #27330 : Fixed possible leaks in the ctypes module.
2016-06-16 22:08:11 +03:00
Serhiy Storchaka
1f7586eeb9
Issue #25455 : Fixed a crash in repr of cElementTree.Element with recursive tag.
2016-06-12 10:06:32 +03:00
Benjamin Peterson
d244a8f7cb
upgrade expt to 2.1.1 ( closes #26556 )
2016-06-11 13:28:56 -07:00
Martin Panter
c9813d83f7
Issue #20699 : Document that “io” methods should accept memoryview
...
This matches the usage by BufferedReader, BufferedWriter, etc. Also document
and test that the write() methods should only access their argument before
they return.
2016-06-03 05:59:20 +00:00
Benjamin Peterson
b3e073cbb3
fix leak of keyfile_bytes
2016-06-08 23:18:51 -07:00
Benjamin Peterson
3b91de5a76
stop leaking certfile_bytes ( closes #27267 )
2016-06-08 23:16:36 -07:00
Benjamin Peterson
a48aa85da0
check the result of PyByteArray_Resize in readline() ( closes #27211 )
2016-06-03 22:20:44 -07:00
Benjamin Peterson
e725777eaf
remove (hilarious) defaults for various constants getpath.c needs
2016-06-02 12:41:35 -07:00
Martin Panter
8d496add74
Issue #27171 : Fix typos in documentation, code comments, and tests
2016-06-02 10:35:44 +00:00
Martin Panter
200a615774
Issue #27125 : Remove duplicated words from documentation and comments
2016-05-30 04:04:50 +00:00
Martin Panter
9c946bbf20
Issue #5784 : Expand documentation and tests for zlib wbits parameter
...
Based on documentation by AM Kuchling.
2016-05-27 07:32:11 +00:00