| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
when encoding non-BMP unicode characters. (Submitted by Ray Chason)
|
| |
|
|
|
|
|
| |
add 'if (PyErr_Occurred())' checks to various places so that NULL is
returned properly.
2.4 backport candidate.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* unified the way intobject, longobject and mystrtoul handle
values around -sys.maxint-1.
* in general, trying to entierely avoid overflows in any computation
involving signed ints or longs is extremely involved. Fixed a few
simple cases where a compiler might be too clever (but that's all
guesswork).
* more overflow checks against bad data in marshal.c.
* 2.5 specific: fixed a number of places that were still confusing int
and Py_ssize_t. Some of them could potentially have caused
"real-world" breakage.
* list.pop(x): fixing overflow issues on x was messy. I just reverted
to PyArg_ParseTuple("n"), which does the right thing. (An obscure
test was trying to give a Decimal to list.pop()... doesn't make
sense any more IMHO)
* trying to write a few tests...
|
| |
|
|
| |
(unsigned long vs. unsigned int).
|
| |
|
|
| |
datetime's strftime function.
|
| |
|
|
| |
anyone cares.
|
| |
|
|
|
|
| |
which breaks negative counts
* added test for negative numbers
will backport to 2.5.1
|
| |
|
|
|
|
| |
arguments are transposed. (reported by Louis Zechtzer)
..already committed to release24-maint
..needs committing to release25-maint
|
| | |
|
| |
|
|
| |
lot of them.)
|
| | |
|
| |
|
|
|
| |
as first argument, and failed with a 'bad argument to internal function'
error message.
|
| |
|
|
|
|
|
| |
and they gave a strange error message from PyArg_ParseTuple:
function takes exactly 2 arguments (3 given).
With tests.
|
| |
|
|
|
|
|
|
|
|
|
| |
timeout on the select()
if an input hook has been defined. Patch by Richard Boulton.
This select() code is only executed with readline 2.1, or if
READLINE_CALLBACKS is defined.
Backport candidate for 2.5, 2.4, probably earlier versions too.
|
| |
|
|
| |
of os.urandom().
|
| |
|
|
|
|
|
|
| |
- gbk and gb18030 codec now handle U+30FB KATAKANA MIDDLE DOT correctly.
- iso2022_jp_2 codec now encodes into G0 for KS X 1001, GB2312
codepoints to conform the standard.
- iso2022_jp_3 and iso2022_jp_2004 codec can encode JIS X 2013:2
codepoints now.
|
| |
|
|
| |
Needs backport to 2.5.1 and earlier.
|
| |
|
|
| |
to 2.5.1 and earlier.
|
| | |
|
| | |
|
| |
|
|
|
| |
array.__deepcopy__() needs to take an argument, even if it doesn't actually
use it. Will backport to 2.5 and 2.4 (if applicable.)
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Klocwork #307
|
| |
|
|
|
|
|
|
| |
In one place where I'n not 1000% sure about the non-NULL, raise
a RuntimeError for safety.
This should fix the klocwork issues that Neal sent me. If so,
it should be applied to the release25-maint branch also.
|
| |
|
|
| |
ignore data that arrives before the opening start tag
|
| |
|
|
|
|
|
|
|
|
| |
of the Python part of a callback function to C. If it cannot be
converted, call PyErr_WriteUnraisable with the exception we got.
Before, arbitrary data has been passed to the calling C code in this
case.
(I'm not really sure the NEWS entry is understandable, but I cannot
find better words)
|
| |
|
|
|
|
|
| |
exception. Remove a stray '?' character from the exception text
when the value is retrieved of such an object.
Includes tests.
|
| |
|
|
|
|
|
|
| |
PyObject_stgdict() and PyType_stgdict() calls are non-NULL before
dereferencing the result. Hopefully this fixes what klocwork is
complaining about.
Fix a few other nits as well.
|
| | |
|
| | |
|
| |
|
|
| |
raises the correct exceptions.
|
| |
|
|
|
| |
Remove the -no-stack-protector compiler flag for OpenBSD
as it has been reported to be unneeded.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
ctypes instances no longer have the internal and undocumented
'_as_parameter_' attribute which was used to adapt them to foreign
function calls; this mechanism is replaced by a function pointer in
the type's stgdict.
In the 'from_param' class methods, try the _as_parameter_ attribute if
other conversions are not possible.
This makes the documented _as_parameter_ mechanism work as intended.
Change the ctypes version number to 1.0.1.
|
| |
|
|
| |
area because the size if unknown in source/callproc.c.
|
| |
|
|
| |
Fixes klockwork issues #188, #189.
|
| |
|
|
| |
Fixes klockwork issues #183, #184, #185.
|
| |
|
|
| |
Fixes klockwork issue #207.
|
| | |
|
| |
|
|
| |
Klocwork 225-228
|
| |
|
|
| |
(Followup of Klocwork 274)
|
| |
|
|
|
| |
Fix a bunch of refleaks in the init of the module. This would only be found
when running python -v.
|
| |
|
|
| |
Klocwork 341-342
|
| |
|
|
|
|
|
| |
that PyString_AsString() returns a valid pointer. (The problem can
arise when zlib.decompress doesn't return a string.)
Klocwork 346
|
| |
|
|
| |
Klocwork 180-181
|
| |
|
|
|
| |
Fix a bunch of refleaks in the init of the module. This would only be found
when running python -v.
|
| |
|
|
|
|
|
| |
I modified this patch some by fixing style, some error checking, and adding
XXX comments. This patch requires review and some changes are to be expected.
I'm checking in now to get the greatest possible review and establish a
baseline for moving forward. I don't want this to hold up release if possible.
|
| |
|
|
|
|
| |
Ensure we don't pass NULL to free.
Klocwork #306 (at least the first part, checking malloc)
|
| |
|
|
| |
Klocwork #214
|