| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
the need for the out-of-tree universal binary support that was used to build
the 2.4.3 installer.
Missing here relative to that tree are some changes to IDLE, IMHO those patches
aren't appropriate for the 2.4 branch and users are better of using 2.5's IDLE.
|
| |
|
|
|
| |
Fix #132 from Coverity, retval could have been derefed
if a continue inside a try failed.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
this code is only used if WITHOUT_COMPLEX is *not* defined, which is the
common case for Python builds.]
This code is actually not used unless WITHOUT_COMPLEX is defined.
However, there was no error checking that PyFloat_FromDouble returned
a valid pointer. I believe this change is correct as it seemed
to follow other code in the area.
Klocwork # 292.
|
| |
|
|
|
|
|
| |
It's highly unlikely, though possible for PyEval_Get*() to return NULLs.
So be safe and do an XINCREF.
Klocwork # 221-222.
|
| |
|
|
|
|
|
|
| |
Reported by Klocwork #151.
v2 can be NULL if exception2 is NULL. I don't think that condition can happen,
but I'm not sure it can't either. Now the code will protect against either
being NULL.
|
| |
|
|
|
| |
Handle allocation failures gracefully. Found with failmalloc.
Many (all?) of these could be backported.
|
| |
|
|
|
|
|
|
|
| |
cpathname could be NULL if it was longer than MAXPATHLEN. Don't try
to write the .pyc to NULL.
Check results of PyList_GetItem() and PyModule_GetDict() are not NULL.
Klocwork 282, 283, 285
|
| |
|
|
|
|
|
| |
Move/copy assert for tstate != NULL before first use.
Verify that PyEval_Get{Globals,Locals} returned valid pointers.
Klocwork 231-232
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
| |
Handle more mem alloc issues found with failmalloc
[The other half of this patch affected Python/symtable.c, and wasn't
relevant for the 2.4 branch. --amk]
|
| |
|
|
|
|
| |
Handle a few more error conditions.
Klocwork 301 and 302. Will backport.
|
| |
|
|
|
|
| |
PyModule_GetDict() can fail, produce fatal errors if this happens on startup.
Klocwork #298-299.
|
| |
|
|
|
|
| |
Fix memory leak under some conditions.
Reported by Klocwork, #98.
|
| |
|
|
|
|
|
|
|
| |
Fix an int/long mismatch identified here:
http://www.tortall.net/mu/blog/2005/12/01
Pointed out from SF #1365916.
Backport candidate.
|
| |
|
|
|
|
| |
Check return result from Py_InitModule*(). This API can fail.
Probably should be backported.
|
| |
|
|
| |
rev. 51158 and rev. 50843.
|
| |
|
|
|
| |
sys.stdin is closed.
(backport from rev. 51129)
|
| | |
|
| |
|
|
| |
backport of rev 50787.
|
| |
|
|
|
|
| |
Actually, checking for INT_MAX and INT_MIN is correct since
the format code explicitly handles a C "int".
(backport from rev. 46746)
|
| |
|
|
|
|
| |
checking.
(backport from rev. 46741)
|
| |
|
|
| |
Backport of fix for bug #1501223.
|
| |
|
|
|
|
|
|
|
|
| |
Define MAXPATHLEN to be at least PATH_MAX, if that's defined. Python uses
MAXPATHLEN-sized buffers for various output-buffers (like to realpath()),
and that's correct on BSD platforms, but not Linux (which uses PATH_MAX, and
does not define MAXPATHLEN.) Cursory googling suggests Linux is following a
newer standard than BSD, but in cases like this, who knows. Using the
greater of PATH_MAX and 1024 as a fallback for MAXPATHLEN seems to be the
most portable solution.
|
| |
|
|
| |
in dicts and sets when computing the total number of references.
|
| |
|
|
| |
Fix a ref leak.
|
| | |
|
| |
|
|
|
| |
containing an encoding declaration is compile()d. Fixes
#1115379.
|
| |
|
|
| |
by Coverity.
|
| | |
|
| |
|
|
|
| |
checked. Problem when 'warnings' was set to "error" and thus would re-raise a
new exception.
|
| |
|
|
| |
signed and unsigned types in comparison.
|
| |
|
|
|
|
|
|
|
| |
Patch 1413181, by Gabriel Becedillas.
PyThreadState_Delete(): if the auto-GIL-state machinery knows about
the thread state, forget it (since the thread state is being deleted,
continuing to remember it can't help, but can hurt if another thread
happens to get created with the same thread id).
|
| | |
|
| |
|
|
| |
silence compiler warnings on gcc 4.0.1 .
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
SF Bug #1350188, "setdlopenflags" leads to crash upon "import"
It was possible dlerror() returns a NULL pointer, use a default error
message in this case.
|
| | |
|
| |
|
|
| |
Fix SF bug #976608, Unhelpful error message when mtime of a module is -1
|
| |
|
|
|
|
| |
SF bug #887946, segfault if redirecting directory
Also provide a warning if a directory is passed on the command line.
Add minimal command line test.
|
| |
|
|
|
| |
Fix segfault with invalid coding.
(See SF bug: 772896 for another fix)
|
| |
|
|
|
|
|
|
| |
[ 1307978 ] Unsatisfied symbols: _PyGILState_NoteThreadState (code)
(note that this only happens in a threads-disabled build).
Will forward port momentarily.
|
| |
|
|
|
|
|
|
|
|
| |
Fix bug:
[ 1163563 ] Sub threads execute in restricted mode
basically by fixing bug 1010677 in a non-broken way.
Backport candidate.
|
| |
|
|
| |
with an exception currently set!
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
evaluating keyword arguments.
CVS: ----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: Python/getargs.c
CVS: ----------------------------------------------------------------------
|
| |
|
|
|
| |
with IBM's 64-bit compiler (SF patch #1284289). This also closes SF
bug #105470: test_pwd fails on 64bit system (Opteron).
|
| |
|
|
|
| |
- Changes donated by Elemental Security to make it work on HP-UX 11 on
Itanium2 with HP's 64-bit compiler (SF patch #1225212).
|