Commit Graph

77397 Commits

Author SHA1 Message Date
Barry Warsaw c7708a5533 null merge 2013-09-30 15:57:29 -04:00
Barry Warsaw c545a5ebd6 - Issue #16041: CVE-2013-1752: poplib: Limit maximum line lengths to 2048 to
prevent readline() calls from consuming too much member.  Patch by Jyrki
  Pulliainen.
2013-09-30 15:56:29 -04:00
Antoine Pitrou 59db34e4d5 Add a "skull and crossbones" to Py_AddPendingCall. 2013-09-30 21:35:44 +02:00
Martin v. Löwis 5ddb0a30fd Add fake buildbottouch target. 2013-09-30 16:18:31 +02:00
Senthil Kumaran a719eed4d9 Code improvement. Review comment by Eric V. Smith 2013-09-29 18:57:42 -07:00
Barry Warsaw ffa4987245 null merge 2013-09-29 14:01:22 -04:00
Barry Warsaw 7472b1d3ae null merge 2013-09-29 14:00:06 -04:00
Barry Warsaw 6c1bb7b4e3 - Issue #16037: HTTPMessage.readheaders() raises an HTTPException when more
than 100 headers are read.  Adapted from patch by Jyrki Pulliainen.
2013-09-29 13:59:06 -04:00
Antoine Pitrou 87c99a0d37 Properly initialize all fields of a SSL object after allocation. 2013-09-29 19:52:45 +02:00
Richard Oudkerk c54960723f Issue #19112: avoid using function defined in method. 2013-09-29 17:10:40 +01:00
Benjamin Peterson 61f901c882 remove duplicate method (closes #19127) 2013-09-29 11:15:31 -04:00
Benjamin Peterson 0e234e60e6 condense two tests with the same name (closes #19114) 2013-09-29 11:13:27 -04:00
Benjamin Peterson f20cf944ab move helper function into its test method (closes #19112) 2013-09-29 11:08:04 -04:00
Antoine Pitrou 0879b168bf Issue #4366: Fix building extensions on all platforms when --enable-shared is used. 2013-09-29 01:48:40 +02:00
Benjamin Peterson a094f04e7b fix duplicate test names (closes #19115)
Patch by Xavier de Gaye.
2013-09-28 15:12:37 -04:00
Serhiy Storchaka cfa5574405 Issue #18950: Fix miscellaneous bugs in the sunau module.
Au_read.readframes() now updates current file position and reads correct
number of frames from multichannel stream.  Au_write.writeframesraw() now
correctly updates current file position.  Au_read and Au_write now correctly
work with file object if start file position is not a zero.
2013-09-28 21:31:36 +03:00
Barry Warsaw d9836ebced null merge 2013-09-25 10:42:27 -04:00
Barry Warsaw d6fddf3d15 - Issue #16038: CVE-2013-1752: ftplib: Limit amount of data read by
limiting the call to readline().  Original patch by Michał
  Jastrzębski and Giampaolo Rodola.

with test fixes by Serhiy Storchaka.
2013-09-25 09:36:58 -04:00
Barry Warsaw 212f4b767b null merge 2013-09-22 16:26:09 -04:00
Barry Warsaw 4e95d60191 - Issue #16039: CVE-2013-1752: Change use of readline in imaplib module to
limit line length.  Patch by Emil Lind.
2013-09-22 16:07:09 -04:00
Georg Brandl a63231aa18 Closes #19043: remove detailed listing of versions from license files
Since all versions since 2.2 are under the same licensing terms,
this saves the release manager from touching the two files for
every new minor release.
2013-09-22 11:45:02 +02:00
Georg Brandl 110953d6de Closes #19061: make shelve security warning consistent between 2.x and 3.x. 2013-09-22 11:43:10 +02:00
Nick Coghlan 254a377222 This check can still fail on RHEL6 2013-09-22 19:36:09 +10:00
Serhiy Storchaka 60bf0e4daa Issue #18050: Fixed an incompatibility of the re module with Python 2.7.3
and older binaries.
2013-09-20 21:25:53 +03:00
R David Murray f1c1cd9b3b Merge #14984: only import pwd on POSIX. 2013-09-18 08:50:11 -04:00
R David Murray 9e27eda325 #14984: only import pwd on POSIX. 2013-09-18 08:49:25 -04:00
R David Murray c64566e30f #19037: adjust file times *before* moving maildir files into place.
This avoids race conditions when other programs are monitoring
the maildir directory.  Patch by janzert.
2013-09-18 08:35:45 -04:00
R David Murray ba58e1d827 Merge: Add versionchanged for #14984, remove extra blank from string. 2013-09-17 20:10:23 -04:00
R David Murray 137b572d55 Add versionchanged for #14984, remove extra blank from string. 2013-09-17 20:08:09 -04:00
Serhiy Storchaka e4818f6937 Remove the use of non-existing re.ASCII.
(fixes a regression in 3d46ef0c62c5, issue #18873)
2013-09-17 10:09:08 +03:00
Serhiy Storchaka e787bce79c Issue #18873: IDLE, 2to3, and the findnocoding.py script now detect Python
source code encoding only in comment lines.
2013-09-17 00:00:46 +03:00
R David Murray 74213e4ee9 Merge #14984: On POSIX, enforce permissions when reading default .netrc. 2013-09-16 14:32:54 -04:00
R David Murray 4189b67a66 #14984: On POSIX, enforce permissions when reading default .netrc.
Initial patch by Bruno Piguet.

This is implemented as if a useful .netrc file could exist without passwords,
which is possible in the general case; but in fact our netrc implementation
does not support it.  Fixing that issue will be an enhancement.
2013-09-16 13:48:44 -04:00
Eli Bendersky e207e38c53 Close #18945: Add tests for tempfile name collision handling.
Patch by Vlad Shcherbina
2013-09-15 12:08:14 -07:00
Andrew Kuchling 35532c86f5 Null merge with 2.6 2013-09-15 13:24:05 -04:00
Andrew Kuchling 503baf9ecd #16042: CVE-2013-1752: Limit amount of data read by limiting the call to readline().
The SSLFakeFile.readline() method needs to support limiting readline() as
well.  It's not a full emulation of readline()'s signature, but this class
is only used by smtplib's code, so it doesn't have to be.

Modified version of original patch by Christian Heimes.
2013-09-15 13:11:47 -04:00
Raymond Hettinger 39659f22fa Issue #19018: The heapq.merge() function no longer suppresses IndexError 2013-09-14 22:17:39 -07:00
Ezio Melotti bf7e8656b5 #18981: fix a typo in a comment (noticed by Anoop Thomas Mathew). 2013-09-13 23:52:12 +03:00
Ezio Melotti 802fa397d5 Fix markup in email.parser docs. 2013-09-13 22:55:08 +03:00
Ezio Melotti 36c3368233 #18951: use consistent names in unittest docs. 2013-09-13 22:17:40 +03:00
Senthil Kumaran d4fac04fde Fix SimpleHTTPServer's request handling case on trailing '/'.
Patch contributed by Vajrasky Kok. Addresses Issue #17324
2013-09-13 00:18:55 -07:00
Serhiy Storchaka b06f536cb7 Issue #18784: The uuid module no more attempts to load libc via ctypes.CDLL,
if all necessary functions are already found in libuuid.
Patch by Evgeny Sologubov.
2013-09-13 07:52:00 +03:00
Senthil Kumaran 5d253efb06 Automated merge with file:///Users/skumaran/python/cpython 2013-09-11 22:56:34 -07:00
Senthil Kumaran 37851d0e55 Improve the docstring of random.shuffle. Inform users not to provide int arg.
Addresses issue #14927
2013-09-11 22:52:58 -07:00
Serhiy Storchaka e03c74a1b6 Issue #18988: The "Tab" key now works when a word is already autocompleted. 2013-09-11 22:49:06 +03:00
Senthil Kumaran b65685f3f2 Clarify mmap.close method behavior. Addresses issue #18815
Patch contributed by Anoop Thomas Mathew.
2013-09-09 22:38:58 -07:00
Mark Dickinson 8fdd9deb45 Docstring typo fix: Arithmentic -> Arithmetic. 2013-09-09 10:32:08 +01:00
Serhiy Storchaka 7d12ca5fd4 Fix a typo. (closes #18953) 2013-09-08 20:43:16 +03:00
Serhiy Storchaka 9402533cb1 Fixed tests with Tcl/Tk <8.5 (closes #18964). 2013-09-08 20:32:56 +03:00
Senthil Kumaran 023c3e74a6 Fix the dead link of IEEE_854-1987 standard with the Wikipedia entry.
Addresses issue #18438
2013-09-07 23:18:53 -07:00