| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
The cast function did not accept c_char_p or c_wchar_p instances
as first argument, and failed with a 'bad argument to internal function'
error message.
|
|
|
|
|
|
| |
Anonymous structure fields that have a bit-width specified did not work,
and they gave a strange error message from PyArg_ParseTuple:
function takes exactly 2 arguments (3 given).
|
|
|
|
|
|
|
|
|
| |
Fixed a few bugs on cjkcodecs:
- 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 0213:2
codepoints now.
|
|
|
|
|
|
|
|
|
| |
Add asserts to check for 'impossible' NULL values, with comments.
In one place where I'm 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.
|
|
|
|
|
| |
of os.urandom().
(backport from rev. 51762)
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Klocwork #307
|
|
|
|
| |
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
|
|
|
|
| |
Klocwork #233
|
|
|
|
|
|
|
| |
I think it would be better to always use snprintf and have the format
limit the size of the name appropriately (like %.200s).
Klocwork #340
|
|
|
|
|
|
| |
There might be something else we need to do to handle the exception.
Klocwork # 212-213
|
|
|
|
| |
Klocwork #274.
|
|
|
|
|
|
|
| |
Return early in that case. The caller checks for PyErr_Occurred so this
should be ok.
Klocwork #297
|
|
|
|
|
|
|
| |
This is the first batch of fixes that should be easy to verify based on context.
This fixes problem numbers: 220 (ast), 323-324 (symtable),
321-322 (structseq), 215 (array), 210 (hotshot), 182 (codecs), 209 (etree).
|
|
|
|
|
|
|
|
| |
storage before converting the result to C data. See the comment in
the code for details.
Provide a better context for errors when the conversion of a callback
function's result cannot be converted.
|
|
|
|
| |
mention that this is UCD 4.1 now.
|
|
|
|
| |
the md5 and sha modules, so add it in Modules/Setup.dist too.
|
|
|
|
|
| |
Passing float arguments to struct.pack when integers are expected
now triggers a DeprecationWarning.
|
| |
|
|
|
|
| |
for stream decoder, but final=True for the decode function.
|
|
|
|
|
| |
a socket operation on a socket with a timeout, the exception will be
caught correctly. Previously, the exception was not caught.
|
| |
|
| |
|
|
|
|
| |
Reported by Klocwork #36
|