- 14 Agu, 2006 8 kayıt (commit)
-
-
Marc-André Lemburg yazdı
Replace UnicodeDecodeErrors raised during == and != compares of Unicode and other objects with a new UnicodeWarning. All other comparisons continue to raise exceptions. Exceptions other than UnicodeDecodeErrors are also left untouched.
-
Thomas Heller yazdı
area because the size if unknown in source/callproc.c.
-
Thomas Heller yazdı
Fixes klockwork issues #188, #189.
-
Thomas Heller yazdı
Fixes klockwork issues #183, #184, #185.
-
Thomas Heller yazdı
Fixes klockwork issue #207.
-
Neal Norwitz yazdı
-
Neal Norwitz yazdı
about the best we can do is call PyErr_WriteUnraisable and go on. We won't be able to do the call below either, so verify delstr is valid.
-
Neal Norwitz yazdı
-
- 13 Agu, 2006 14 kayıt (commit)
-
-
Neal Norwitz yazdı
-
Neal Norwitz yazdı
Klocwork 225-228
-
Neal Norwitz yazdı
Klocwork 281
-
Neal Norwitz yazdı
(Followup of Klocwork 274)
-
Neal Norwitz yazdı
Fix a bunch of refleaks in the init of the module. This would only be found when running python -v.
-
Neal Norwitz yazdı
Klocwork 341-342
-
Neal Norwitz yazdı
that PyString_AsString() returns a valid pointer. (The problem can arise when zlib.decompress doesn't return a string.) Klocwork 346
-
Neal Norwitz yazdı
Klocwork 180-181
-
Neal Norwitz yazdı
Fix a bunch of refleaks in the init of the module. This would only be found when running python -v.
-
Neal Norwitz yazdı
__oct__, __hex__ don't return a string. Klocwork 308
-
Neal Norwitz yazdı
to write the .pyc to NULL. Check results of PyList_GetItem() and PyModule_GetDict() are not NULL. Klocwork 282, 283, 285
-
Neal Norwitz yazdı
Should fix most of Klocwork 234-272.
-
Neal Norwitz yazdı
Verify that PyEval_Get{Globals,Locals} returned valid pointers. Klocwork 231-232
-
Neal Norwitz yazdı
-
- 12 Agu, 2006 18 kayıt (commit)
-
-
Neal Norwitz yazdı
were failing due to inappropriate clipping of numbers larger than 2**31 with new-style classes. (typeobject.c) In reviewing the code for classic classes, there were 2 problems. Any negative value return could be returned. Always return -1 if there was an error. Also make the checks similar with the new-style classes. I believe this is correct for 32 and 64 bit boxes, including Windows64. Add a test of classic classes too.
-
Neal Norwitz yazdı
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.
-
Georg Brandl yazdı
-
Tim Peters yazdı
protected by "if verbose:", which caused the test to fail on all non-Windows boxes. Note that I deliberately didn't convert this to unittest yet, because I expect it would be even harder to debug this on Tru64 after conversion.
-
Tim Peters yazdı
appears to be utterly insane. Plug some theoretical insecurities in the test script: - Verify that the SIGALRM handler was actually installed. - Don't call alarm() before the handler is installed. - Move everything that can fail inside the try/finally, so the test cleans up after itself more often. - Try sending all the expected signals in force_test_exit(), not just SIGALRM. Since that was fixed to actually send SIGALRM (instead of invisibly dying with an AttributeError), we've seen that sending SIGALRM alone does not stop this from hanging. - Move the "kill the child" business into the finally clause, so the child doesn't survive test failure to send SIGALRM to other tests later (there are also baffling SIGALRM-related failures in test_socket). - Cancel the alarm in the finally clause -- if the test dies early, we again don't want SIGALRM showing up to confuse a later test. Alas, this still relies on timing luck wrt the spawned script that sends the test signals, but it's hard to see how waiting for seconds can so often be so unlucky. test_threadedsignals: curiously, this test never fails on Tru64, but doesn't normally signal SIGALRM. Anyway, fixed an obvious (but probably inconsequential) logic error.
-
Neal Norwitz yazdı
Ensure we don't pass NULL to free. Klocwork #306 (at least the first part, checking malloc)
-
Neal Norwitz yazdı
Klocwork #298-299.
-
Neal Norwitz yazdı
Check seq in both portions of if/else. Klocwork #289-290.
-
Neal Norwitz yazdı
Klocwork #214
-
Neal Norwitz yazdı
Whoops, how did that get in there. :-) Revert all the parts of 51227 that were not supposed to go it. Only Modules/_ctypes/cfields.c was supposed to be changed
-
Neal Norwitz yazdı
Klocwork #233
-
Neal Norwitz yazdı
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
-
Neal Norwitz yazdı
There might be something else we need to do to handle the exception. Klocwork # 212-213
-
Neal Norwitz yazdı
Klocwork #274.
-
Neal Norwitz yazdı
Return early in that case. The caller checks for PyErr_Occurred so this should be ok. Klocwork #297
-
Neal Norwitz yazdı
There might be something else that needs to be done to setup the error. Klocwork #295.
-
Neal Norwitz yazdı
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.
-
Neal Norwitz yazdı
So be safe and do an XINCREF. Klocwork # 221-222.
-