summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* #3703 unhelpful _fileio.FileIO error message when trying to open a directoryBenjamin Peterson2008-09-011-1/+3
| | | | Reviewer: Gregory P. Smith
* Update bsddb code to version 4.7.3pre2. This code shouldJesus Cea2008-08-312-38/+116
| | | | | | be compatible with Python 3.0, also. http://www.jcea.es/programacion/pybsddb.htm#bsddb3-4.7.3
* #3662: Fix segfault introduced when fixing memory leaks.Neal Norwitz2008-08-241-1/+1
| | | | | TESTED=./python -E -tt ./Lib/test/regrtest.py test_fileio R (approach from bug)=Amaury and Benjamin
* Fix:Neal Norwitz2008-08-243-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | * crashes on memory allocation failure found with failmalloc * memory leaks found with valgrind * compiler warnings in opt mode which would lead to invalid memory reads * problem using wrong name in decimal module reported by pychecker Update the valgrind suppressions file with new leaks that are small/one-time leaks we don't care about (ie, they are too hard to fix). TBR=barry TESTED=./python -E -tt ./Lib/test/regrtest.py -uall (both debug and opt modes) in opt mode: valgrind -q --leak-check=yes --suppressions=Misc/valgrind-python.supp \ ./python -E -tt ./Lib/test/regrtest.py -uall,-bsddb,-compiler \ -x test_logging test_ssl test_multiprocessing valgrind -q --leak-check=yes --suppressions=Misc/valgrind-python.supp \ ./python -E -tt ./Lib/test/regrtest.py test_multiprocessing for i in `seq 1 4000` ; do LD_PRELOAD=~/local/lib/libfailmalloc.so FAILMALLOC_INTERVAL=$i \ ./python -c pass done At least some of these fixes should probably be backported to 2.5.
* #3643 add a few more checks to _testcapi to prevent segfaultsBenjamin Peterson2008-08-231-4/+20
| | | | | Author: Victor Stinner Reviewer: Benjamin Peterson
* d is the correct format stringChristian Heimes2008-08-221-1/+1
|
* Fixed two format strings in the _collections module. For exampleChristian Heimes2008-08-221-2/+2
| | | | | Modules/_collectionsmodule.c:674: warning: format '%i' expects type 'int', but argument 2 has type 'Py_ssize_t' Reviewed by Benjamin Peterson
* Silenced a compiler warning in the sqlite moduleChristian Heimes2008-08-221-2/+2
| | | | | Modules/_sqlite/row.c:187: warning: suggest parentheses around && within || Reviewed by Benjamin Peterson
* Issue 1179: [CVE-2007-4965] Integer overflow in imageop module.Guido van Rossum2008-08-191-12/+68
|
* COM method code is windows specificThomas Heller2008-08-191-1/+4
|
* Fix a regression introduced by rev. 63792: ctypes function pointersThomas Heller2008-08-191-5/+26
| | | | that are COM methods must have a boolean True value.
* Fix strange character in the docstring.Thomas Heller2008-08-191-1/+1
|
* get the symtable module back in working orderBenjamin Peterson2008-08-171-0/+3
| | | | | | - Fix broken functions - Add (hopefully) extensive tests - Modernize a little
* Backport r65661, r65760: Issue #3575: Incremental decoder's decodeHirokazu Yamamoto2008-08-171-5/+18
| | | | function now takes bytearray by using 's*' instead of 't#'.
* Issue #2222: Fixed reference leak when occured os.rename()Hirokazu Yamamoto2008-08-171-28/+26
| | | | fails unicode conversion on 2nd parameter. (windows only)
* Properly INCREF reference in Py_buffer.Martin v. Löwis2008-08-141-0/+2
|
* Issue #3139: Make buffer-interface thread-safe wrt. PyArg_ParseTuple,Martin v. Löwis2008-08-126-184/+227
| | | | | | | by denying s# to parse objects that have a releasebuffer procedure, and introducing s*. More module might need to get converted to use s*.
* Copy reduce() to _functools so to have functools.reduce() not raise a warningBrett Cannon2008-08-091-0/+79
| | | | from usage under -3.
* #3205: bz2 iterator fails silently on MemoryErrorAntoine Pitrou2008-08-091-0/+1
|
* Patch by Ian Charnas from issue 3517.Guido van Rossum2008-08-071-0/+5
| | | | Add F_FULLFSYNC if it exists (OS X only so far).
* Tracker issue 3487: sre "bytecode" verifier.Guido van Rossum2008-08-051-0/+474
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a verifier for the binary code used by the _sre module (this is often called bytecode, though to distinguish it from Python bytecode I put it in quotes). I wrote this for Google App Engine, and am making the patch available as open source under the Apache 2 license. Below are the copyright statement and license, for completeness. # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. It's not necessary to include these copyrights and bytecode in the source file. Google has signed a contributor's agreement with the PSF already.
* fix compile error on WindowsBenjamin Peterson2008-08-021-1/+1
|
* Submit fix for issue3393: Memory corruption in multiprocessing moduleJesse Noller2008-08-013-19/+28
|
* Security patches from Apple: prevent int overflow when allocating memoryNeal Norwitz2008-07-313-2/+22
|
* Replace math.sum with math.fsum in a couple of commentsMark Dickinson2008-07-301-2/+2
| | | | that were missed by r65308
* Rename math.sum to math.fsumMark Dickinson2008-07-301-16/+16
|
* Fix special-value handling for math.sum.Mark Dickinson2008-07-301-38/+54
| | | | | | Also minor cleanups to the code: fix tabbing, remove trailing whitespace, and reformat to fit into 80 columns.
* Make ctypes compatible with Python 2.3, 2.4, and 2.5 again.Thomas Heller2008-07-242-2/+16
|
* Finish conversion from int to Py_ssize_t.Raymond Hettinger2008-07-241-23/+23
|
* Parse to the correct datatype.Raymond Hettinger2008-07-241-1/+1
|
* Finish-up the partial conversion from int to Py_ssize_t for deque indices ↵Raymond Hettinger2008-07-241-23/+24
| | | | and length.
* 3k-warn about parser's "ast" aliases.Georg Brandl2008-07-231-5/+37
|
* bsddb module updated to version 4.7.2devel9.Jesus Cea2008-07-232-530/+820
| | | | | | | | | | | | | This patch publishes the work done until now for Python 3.0 compatibility. Still a lot to be done. When possible, we use 3.0 features in Python 2.6, easing development and testing, and exposing internal changes to a wider audience, for better test coverage. Some mode details: http://www.jcea.es/programacion/pybsddb.htm#bsddb3-4.7.2
* Issue #2620: Overflow checking when allocating or reallocating memoryGregory P. Smith2008-07-223-2/+9
| | | | | | | | was not always being done properly in some python types and extension modules. PyMem_MALLOC, PyMem_REALLOC, PyMem_NEW and PyMem_RESIZE have all been updated to perform better checks and places in the code that would previously leak memory on the error path when such an allocation failed have been fixed.
* On Windows, silence a Purify warning and initialize the memory passed to ↵Amaury Forgeot d'Arc2008-07-211-0/+1
| | | | | | CryptGenRandom. Since python doesn't provide any particular random data, it seems more reasonable anyway.
* #3322: bounds checking for _json.scanstringBob Ippolito2008-07-191-2/+10
|
* #3303: fix crash with invalid Py_DECREF in strcoll().Georg Brandl2008-07-191-1/+3
|
* #3302: fix segfaults when passing None for arguments that can'tGeorg Brandl2008-07-191-5/+9
| | | | be NULL for the C functions.
* #3312: fix two sqlite3 crashes.Georg Brandl2008-07-162-3/+13
|
* #3305: self->stream can be NULL.Georg Brandl2008-07-161-2/+2
|
* #1608818: errno can get set by every call to readdir().Georg Brandl2008-07-161-8/+10
|
* Issue #3313: Contrary to the man page, a failed dlopen() call does notThomas Heller2008-07-152-2/+8
| | | | always set a dlerror() message.
* Issue #3258: Fix an assertion error (in debug build) and a crash (inThomas Heller2008-07-151-1/+12
| | | | | release build) when the format string of a pointer to an incomplete structure is created.
* Issue 2235: __hash__ is once again inherited by default, but inheritance can ↵Nick Coghlan2008-07-151-8/+1
| | | | be blocked explicitly so that collections.Hashable remains meaningful
* Fix posix.fork1() / os.fork1() to only call PyOS_AfterFork() in the childGregory P. Smith2008-07-141-1/+2
| | | | | | | | process rather than both parent and child. Does anyone actually use fork1()? It appears to be a Solaris thing but if Python is built with pthreads on Solaris, fork1() and fork() should be the same.
* Issue #3153: sqlite leaks on error.Alexandre Vassalotti2008-07-132-23/+12
| | | | Changed statements of the form Py_DECREF(obj), obj = 0 to Py_CLEAR(obj).
* Added garbage collector overhead and optional default return value toRobert Schuppenies2008-07-101-0/+1
| | | | sys.getsizeof.
* Issue 3301: Bisect functions behaved badly when lo was negative.Raymond Hettinger2008-07-101-0/+8
|
* Issue 3306. Better control for a lenght in findmax() function.Facundo Batista2008-07-071-1/+1
|
* Add commented out #_sha256 and #_sha512 lines per issue 3183.Gregory P. Smith2008-07-071-2/+4
|