Christian Heimes
07a2a1b7e5
Additional safe-guard against dereferencing NULL in reduce_newobj
...
_PyObject_GetNewArguments() can leave args == NULL but the __newobj_ex__
branch expects args to be not-NULL.
CID 1353201
2016-09-09 00:21:22 +02:00
Christian Heimes
884332b45a
Add NULL check for gen->gi_code in gen_send_ex()
...
_PyGen_Finalize() checks that gen->gi_code is not NULL before it
accesses the flags of the code object. This means that the flag
could be NULL.
It passes down the generatore to gen_close() and gen_send_ex().
gen_send_ex() did not check for gen->gi_code != NULL.
CID 1297900
2016-09-09 00:20:13 +02:00
Christian Heimes
7a5457b687
Add error checking to PyInit_pyexpact
...
The module initializer of the pyexpat module failed to check
the return value of PySys_GetObject() for NULL.
CID 982779
2016-09-09 00:13:35 +02:00
Christian Heimes
6782b14bcb
Use PyModule_AddIntMacro() in signal module
...
The signal module was using old-style module initialization with
potential NULL dereferencing.
CID 1295026
2016-09-09 00:11:45 +02:00
Christian Heimes
c6cc23d0b9
Skip unused value in tokenizer code
...
In the case of an escape character, c is never read. tok_next() is
used to advance the pointer.
CID 1225097
2016-09-09 00:09:45 +02:00
Christian Heimes
275270772e
Check return value of PyList_Append() in Py_Main(). CID 1353200
2016-09-09 00:08:35 +02:00
R David Murray
301edfa579
Add policy keyword to email.generator.DecodedGenerator.
2016-09-08 17:57:06 -04:00
Raymond Hettinger
4c483ad52b
Merge
2016-09-08 14:45:40 -07:00
Steve Dower
33df0c3fb6
More lenient skipping of console tests.
2016-09-08 14:36:18 -07:00
Steve Dower
f09e2fa2e9
Skips console open_fd tests when we don't have real consoles.
2016-09-08 14:34:24 -07:00
Senthil Kumaran
10427f4485
[merge from 3.5] - Issue28010 - Make http.client.HTTPConnection.putrequest
...
documentation consistent with the code.
2016-09-08 14:29:23 -07:00
Senthil Kumaran
5dc504c3c9
Issue28010 - Make http.client.HTTPConnection.putrequest documentation consistent with the code.
2016-09-08 14:28:01 -07:00
Davin Potts
37156a70b9
Issue #21201 : Improves readability of multiprocessing error message from server to client for certain exceptions
2016-09-08 14:40:36 -05:00
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)
014d52ffc4
document --with-optimizations in the README for issue26359.
2016-09-08 18:33:00 +00:00
Berker Peksag
2b2a9be913
Issue #27445 : Don't pass str(_charset) to MIMEText.set_payload()
...
Patch by Claude Paroz.
2016-09-08 19:40:30 +03:00
Senthil Kumaran
82733fac8d
Issue11551 - Increase the test coverage of _dummy_thread module to 100%.
...
Initial patch contributed by Denver Coneybeare.
2016-09-08 02:46:22 -07:00
Gregory P. Smith
bfac23a4c0
Move my news entries to the build section.
2016-09-08 00:14:01 -07:00
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)
9719161858
Fix indentation (reindent.py).
2016-09-08 00:48:07 +00:00
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)
dd1c638b92
lib2to3.pgen3.driver.load_grammar() now creates a stable cache file
...
between runs given the same Grammar.txt input regardless of the hash
randomization setting.
2016-09-08 00:40:07 +00:00
Vinay Sajip
d61910c598
Fixes #27930 : improved QueueListener behaviour.
2016-09-08 01:13:39 +01:00
Martin Panter
0f0eac431f
Issue #27993 : Fix problems with plural objects in docs and comments
2016-09-07 11:04:41 +00:00
Martin Panter
0be894b2f6
Issue #27895 : Spelling fixes (Contributed by Ville Skyttä).
2016-09-07 12:03:06 +00:00
Martin Panter
be8da9c990
Issue #27570 : Avoid zero-length memcpy() calls with null source pointers
2016-09-07 11:04:41 +00:00
Gregory P. Smith
799520c91e
Fixes issue# 27983: Cause lack of llvm-profdata tool when using clang -
...
required for PGO linking - to be a configure time error rather than
make time when --with-optimizations is enabled. Also improve our
ability to find the llvm-profdata tool on MacOS and some Linuxes.
2016-09-07 16:10:00 -07:00
R David Murray
dc1650ca06
#22233 : Only split headers on \r and/or \n, per email RFCs.
...
Original patch by Martin Panter, new policy fixes by me.
2016-09-07 17:44:34 -04:00
R David Murray
6b46ec7733
#26209 : Clarify type of *localaddr*/*remoteadr* in smtpd docs.
2016-09-07 14:01:23 -04:00
R David Murray
c2e2473bc2
27988: Make sure iter_attachments does not mutate the payload list.
2016-09-07 13:39:36 -04:00
Benjamin Peterson
48c88307d8
capture stderr to silence output during test_coroutines ( closes #27968 )
2016-09-07 09:00:48 -07:00
Benjamin Peterson
b88db8745b
supress coroutine warning when an exception is pending ( #27968 )
2016-09-07 08:46:59 -07:00
Senthil Kumaran
32d374215a
[backport to 3.5] - issue26896 - Disambiguate uses of "importer" with "finder".
2016-09-07 00:52:20 -07:00
Guido van Rossum
e848cd7605
Issue #27905 : Docs for typing.Type[C], by Michael Lee.
2016-09-06 21:12:44 -07:00
Benjamin Peterson
33d2a492d0
promote some shifts to unsigned, so as not to invoke undefined behavior
2016-09-06 20:40:04 -07:00
Benjamin Peterson
4a757609d1
do not memcpy from NULL
2016-09-06 19:03:40 -07:00
Berker Peksag
a1bc246dd5
Use shorter version of Connection.isolation_level in sqlite3.rst
2016-09-07 04:02:41 +03:00
Benjamin Peterson
5a7d923e75
make sure to not call memcpy with a NULL second argument
2016-09-06 17:58:25 -07:00
Brett Cannon
8c94f97465
Issue #26359 : Add the --with-optimizations flag.
2016-09-06 17:15:21 -07:00
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)
653c850919
Fixes issue26307: The profile-opt build now applys PGO to the built-in
...
modules.
2016-09-06 23:56:54 +00:00
Berker Peksag
4bf580d6d5
Issue #21250 : Add tests for SQLite's ON CONFLICT clause
...
Initial patch by Alex LordThorsen.
2016-09-07 02:04:34 +03:00
Benjamin Peterson
01c340da23
do not leak addrinfo in configure test
2016-09-06 15:54:24 -07:00
Christian Heimes
1c03abd026
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
Christian Heimes
03d13c0cbf
Issues #27850 and #27766 : Remove 3DES from ssl default cipher list and add ChaCha20 Poly1305.
2016-09-06 20:06:47 +02:00
Benjamin Peterson
cbef66d711
suppress stderr output when checking gdb ( closes #27969 )
2016-09-06 10:06:31 -07:00
Jason R. Coombs
c5c83d6b7d
Issue #27960 : Merge with 3.4
2016-09-05 22:26:19 -04:00
Jason R. Coombs
1f5fd648b1
Issue #27960 : Revert state to 675e20c38fdac6, backing out all changes by developed for Issue #12885 .
2016-09-05 22:24:01 -04:00
Benjamin Peterson
1bb0c0bd30
explicitly cast away constness to silence compiler warning
2016-09-05 18:26:19 -07:00
Benjamin Peterson
5130a4d5d7
Backed out changeset 8b6be1341770
2016-09-05 17:22:09 -07:00
Senthil Kumaran
4672060d86
Update pkgutil docs to reference appropriate finder and loader object documentation.
...
Initial patch contributed by Jaysinh shukla.
2016-09-05 17:11:51 -07:00
Benjamin Peterson
6d999803a0
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
281e5f8839
Issue #26470 : Use short name rather than name for compression name to fix #27958 .
2016-09-06 01:10:39 +02:00
Zachary Ware
f4a7381719
Issue #27748 : Backed out changeset f845e24d794e
...
Apparently the test succeeds on XP.
2016-09-05 18:08:27 -05:00