Ezio Melotti
f8a9402c97
This should fix the failure introduced in r77680. The error message is now different and it caused the test to fail. The failing test is not present in 2.5 so it is failing only on 2.6 and newer versions.
2010-01-22 16:58:28 +00:00
Mark Dickinson
86db34207c
Correct typo in comment.
2010-01-22 16:18:09 +00:00
Matthias Klose
0d948ac90c
- Expat: Fix DoS via XML document with malformed UTF-8 sequences
...
(CVE_2009_3560).
2010-01-22 00:39:04 +00:00
Matthias Klose
3b0f9b01f6
- Mention CVE-2009-3720 for change in r74429.
2010-01-22 00:34:48 +00:00
Ezio Melotti
77a64e7159
#7746 : rephrase a sentence
2010-01-21 20:50:57 +00:00
Mark Dickinson
a3112d1462
Use // for floor division.
2010-01-21 19:58:41 +00:00
Mark Dickinson
5a633488d4
Add two more test_strtod test values.
2010-01-21 18:32:27 +00:00
Mark Dickinson
294d6acb89
Additional testcases for strtod.
2010-01-21 17:02:53 +00:00
Mark Dickinson
ca6ea56718
Additional explanatory comments for _Py_dg_strtod.
2010-01-20 21:23:25 +00:00
Mark Dickinson
1942806013
Don't try to put a value into a NULL pointer.
2010-01-20 18:02:41 +00:00
Mark Dickinson
4141d65fb7
Various dtoa.c cleanups. 1. Despagghetify _Py_dg_strtod parsing code
...
and exit points. 2. Simplify bigcomp comparison loop. 3. Don't set
ERANGE on _Py_dg_strtod underflow (it was set inconsistently anyway).
4. Remove unused dsign field from BCinfo struct.
2010-01-20 17:36:31 +00:00
Gregory P. Smith
8926108bfb
Revert debugprint code in r77607.
2010-01-19 08:25:26 +00:00
Gregory P. Smith
6b3573009a
Do not compile stubs for the sha2 series hashes in the openssl hashlib
...
module when the openssl version is too old to support them. That
leads both compiled code bloat and to unittests attempting to test
implementations that don't exist for comparison purposes on such
platforms.
2010-01-19 08:19:03 +00:00
Gregory P. Smith
8f6f42621a
Add a pydebug mode only debug print to help debug the errors in
...
http://www.python.org/dev/buildbot/all/builders/x86%20gentoo%20trunk/builds/5700/
Will be removed shortly.
2010-01-19 08:01:00 +00:00
Benjamin Peterson
9179dab3f4
data descriptors do not override the class dictionary if __get__ is not defined
...
Adjust documentation and add a test to verify this behavior.
See http://mail.python.org/pipermail/python-dev/2010-January/095637.html for
discussion.
2010-01-18 23:07:56 +00:00
Antoine Pitrou
c07336c673
Add a NEWS entry for r77599 and r77600.
2010-01-18 21:15:21 +00:00
Antoine Pitrou
9a386826fb
Add ccbench to the Tools directory
2010-01-18 21:10:31 +00:00
Antoine Pitrou
c9d6238b34
Add iobench to the Tools directory (see December python-dev discussion)
2010-01-18 21:04:00 +00:00
Ezio Melotti
b01f5e6f84
#7730 : remove spaces after functions names
2010-01-18 09:10:26 +00:00
Georg Brandl
42eaded701
Fix internal reference.
2010-01-17 23:33:53 +00:00
Mark Dickinson
9481c576cd
Issue #7632 : When Py_USING_MEMORY_DEBUGGER is defined, disable the
...
private memory allocation scheme in dtoa.c, along with a piece of code
that caches powers of 5 for future use. This makes it easier to
detect dtoa.c memory leaks with Valgrind or similar tools.
Patch by Stefan Krah.
2010-01-17 20:57:56 +00:00
Ronald Oussoren
92397ce93f
Explicitly use /usr/bin/arch on OSX, fixes issue 7715
2010-01-17 19:32:00 +00:00
Ronald Oussoren
3c0a1265c1
This patch ensures that the configure-script mentions checking for --enable-universalsdk
...
and that it doesn't default to the 10.4u SDK when that SDK does not exist.
(This affects OSX)
This patch should fix most of issue 4834, although I haven't gotten enough
information from the user to be sure.
2010-01-17 19:27:57 +00:00
Ronald Oussoren
a55af9a9db
- Issue #7658 : Ensure that the new pythonw executable works on OSX 10.4
...
- Issue #7714 : Use ``gcc -dumpversion`` to detect the version of GCC on
MacOSX.
- Make configure look for util.h as well as libutil.h. The former
is the header file that on OSX contains the defition of openpty.
(Needed to compile for OSX 10.4 on OSX 10.6)
- Use the correct definition of CC to compile the pythonw executable
2010-01-17 16:25:57 +00:00
Antoine Pitrou
60ba2c8bf8
Use PyAPI_DATA.
2010-01-17 15:55:45 +00:00
Mark Dickinson
23df3d270d
Issue #7632 : Fix a memory leak in _Py_dg_strtod.
2010-01-17 13:37:57 +00:00
Ronald Oussoren
724c5b2e7f
Add text to Mac/README to warn about non-universal libraries when
...
building a universal Python. Based on issue7679.
2010-01-17 12:38:11 +00:00
Antoine Pitrou
e80a6a4ead
Issue #7561 : Operations on empty bytearrays (such as `int(bytearray())`)
...
could crash in many places because of the PyByteArray_AS_STRING() macro
returning NULL. The macro now returns a statically allocated empty
string instead.
2010-01-17 12:26:20 +00:00
Georg Brandl
aee900338e
Add note about usage of STRINGLIB_EMPTY.
2010-01-17 12:14:42 +00:00
Mark Dickinson
ab6ee7a042
Increase number of strtod tests slightly, to make it more likely that a memory leak is detected.
2010-01-17 11:10:03 +00:00
Georg Brandl
6cbb7f945a
#7699 : improve datetime docs: straightforward linking to strftime/strptime section, mark classmethods as such.
2010-01-17 08:42:30 +00:00
Mark Dickinson
d87f22cec8
Add better error reporting for MemoryErrors caused by str->float conversions.
2010-01-16 20:33:02 +00:00
Ezio Melotti
5afe42b69b
remove wrong markup
2010-01-16 19:36:42 +00:00
Ezio Melotti
3373a3a282
typo: use one instead instead of two
2010-01-16 18:38:01 +00:00
Mark Dickinson
18a818bc63
Fix multiple uses of variable 'L' in _Py_dg_strtod, where one use requires an unsigned long and the other a signed long. See also r77421.
2010-01-16 18:06:17 +00:00
Mark Dickinson
811ff822f8
Issue #7632 : Fix one more case of incorrect rounding for str -> float
...
conversion (see bug 5 in the issue tracker).
2010-01-16 17:57:49 +00:00
Antoine Pitrou
db983a7c38
Followup to #7703 : a2b_hqx() didn't follow the new buffer API (neither in trunk
...
nor in py3k). Patch by Florent Xicluna as well as additional tests.
2010-01-16 17:45:56 +00:00
R. David Murray
c755dba906
Fix issue number in comment.
2010-01-16 16:08:32 +00:00
Mark Dickinson
476279f18b
Issue #7632 : Fix a serious wrong output bug for string -> float conversion.
...
Also remove some now unused variables, and add comments clarifying the
possible outputs of the parsing section of _Py_dg_strtod. Thanks
Eric Smith for reviewing.
2010-01-16 10:44:00 +00:00
R. David Murray
ed44dfa4c7
Issue #1670765 : Prevent email.generator.Generator from re-wrapping
...
headers in multipart/signed MIME parts, which fixes one of the sources of
invalid modifications to such parts by Generator. Patch and tests by
Martin von Gagern.
2010-01-16 05:15:17 +00:00
Sean Reifscheider
57cd8ebc20
issue5063: Fixes for building RPM on CentOS plus misc .spec file enhancements.
2010-01-16 04:27:58 +00:00
Vinay Sajip
334ffe8cc8
Fixed issue-number mistake in NEWS update.
2010-01-15 23:27:05 +00:00
Benjamin Peterson
667dc19130
try to fix for windows
2010-01-15 02:26:07 +00:00
Brett Cannon
0bc77474aa
Remove C++/C99-style comments.
2010-01-15 01:31:45 +00:00
Antoine Pitrou
c391ad007b
Issue #7701 : Fix crash in binascii.b2a_uu() in debug mode when given a
...
1-byte argument. Patch by Victor Stinner.
2010-01-15 00:18:00 +00:00
Brett Cannon
3ffa43db48
The silencing of DeprecationWarning was not taking -3 into consideration. Since
...
Py3K warnings are DeprecationWarning by default this was causing -3 to
essentially be a no-op. Now DeprecationWarning is only silenced if -3 is not
used.
Closes issue #7700 . Thanks Ezio Melotti and Florent Xicluna for patch help.
2010-01-14 20:00:28 +00:00
Antoine Pitrou
efdddd3370
Issue #3299 : Fix possible crash in the _sre module when given bad
...
argument values in debug mode. Patch by Victor Stinner.
2010-01-14 17:25:24 +00:00
Antoine Pitrou
fd3a60d5ef
Issue #7703 : Add support for the new buffer API to functions of the
...
binascii module. Backported from py3k by Florent Xicluna, with some
additional tests.
2010-01-14 16:27:09 +00:00
Mark Dickinson
647ed91d5c
Issue #7632 : add tests for bugs fixed so far.
2010-01-14 15:22:33 +00:00
Mark Dickinson
f8747c1f12
Issue 7632: fix incorrect rounding for long input strings with values very close to a power of 2. (See Bug 4 in the tracker discussion.)
2010-01-14 14:40:20 +00:00