Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #7673: Fix security vulnerability (CVE-2010-2089) in the audioop module, | Victor Stinner | 2010-07-03 | 1 | -73/+71 |
| | | | | ensure that the input string length is a multiple of the frame size | ||||
* | Issue #8674: fix another bogus overflow check in audioop module. | Mark Dickinson | 2010-05-11 | 1 | -17/+8 |
| | |||||
* | Issue #8674: Fix incorrect and UB-inducing overflow checks in audioop | Mark Dickinson | 2010-05-10 | 1 | -28/+21 |
| | | | | module. Thanks Tomas Hoger for the patch. | ||||
* | Untabify C files. Will watch buildbots. | Antoine Pitrou | 2010-05-09 | 1 | -1226/+1226 |
| | |||||
* | Clean up whitespace and remove unneeded variable initialization as found by | Brett Cannon | 2010-05-03 | 1 | -56/+52 |
| | | | | Clang. | ||||
* | Fix signed/unsigned compiler warning. | Raymond Hettinger | 2009-06-10 | 1 | -1/+1 |
| | |||||
* | Issue 3306. Better control for a lenght in findmax() function. | Facundo Batista | 2008-07-07 | 1 | -1/+1 |
| | |||||
* | Merge in release25-maint r60793: | Gregory P. Smith | 2008-06-11 | 1 | -15/+53 |
| | | | | | | Added checks for integer overflows, contributed by Google. Some are only available if asserts are left in the code, in cases where they can't be triggered from Python code. | ||||
* | This reverts r63675 based on the discussion in this thread: | Gregory P. Smith | 2008-06-09 | 1 | -32/+32 |
| | | | | | | | http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread. | ||||
* | Renamed PyString to PyBytes | Christian Heimes | 2008-05-26 | 1 | -32/+32 |
| | |||||
* | Fix various minor errors in passing arguments to | Martin v. Löwis | 2006-10-19 | 1 | -3/+8 |
| | | | | PyArg_ParseTuple. | ||||
* | Convert audioop over to METH_VARARGS. | Georg Brandl | 2006-05-28 | 1 | -60/+66 |
| | |||||
* | Make some functions static, reformat function decl to be consistent and ↵ | Neal Norwitz | 2006-03-20 | 1 | -7/+10 |
| | | | | check for error from PyModule_GetDict() | ||||
* | replace use of int16_t with a (typedef'd) short, to fix Windows buildbots. | Anthony Baxter | 2006-03-20 | 1 | -1199/+1201 |
| | | | | expand tabs. | ||||
* | SF [ 1231053 ] audioop - alaw encoding/decoding added, code updated | Anthony Baxter | 2006-03-20 | 1 | -91/+305 |
| | | | | | | | | | This patch adds a-LAW encoding to audioop and replaces the old u-LAW encoding/decoding code with the current code from sox. Possible issues: the code from sox uses int16_t. Code by Lars Immisch | ||||
* | Thanks to Coverity, these were all reported by their Prevent tool. | Neal Norwitz | 2006-03-07 | 1 | -0/+2 |
| | | | | | All of these (except _lsprof.c) should be backported. Particularly the hotshot change which validates sys.path. Can someone backport? | ||||
* | Merge ssize_t branch. | Martin v. Löwis | 2006-02-15 | 1 | -1/+3 |
| | |||||
* | Check return result from Py_InitModule*(). This API can fail. | Neal Norwitz | 2006-01-19 | 1 | -0/+2 |
| | | | | Probably should be backported. | ||||
* | Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype | Mark Hammond | 2002-08-02 | 1 | -1/+1 |
| | | | | | | for Py_Main(). Thanks to Kalle Svensson and Skip Montanaro for the patches. | ||||
* | Patch #477750: Use METH_ constants in Modules. | Martin v. Löwis | 2002-01-17 | 1 | -23/+23 |
| | |||||
* | audioop_ratecv() again: settle for a sloppier upper bound that's less | Tim Peters | 2001-12-07 | 1 | -34/+19 |
| | | | | obnoxious to compute and easier to explain. No compromise on safety. | ||||
* | audioop_ratecv(): I left a potentially unsafe multiply unchecked | Tim Peters | 2001-12-05 | 1 | -15/+15 |
| | | | | | yesterday -- repair that. Also renamed the silly size_times_nchannels to bytes_per_frame. | ||||
* | SF bug 482574: audioop.ratecv crashes. | Tim Peters | 2001-12-05 | 1 | -6/+62 |
| | | | | | | | | | | | | Bugfix candidate. A numerically naive computation of output buffer size caused crashes and spurious MemoryErrors for reasonable arguments. audioop_ratecv(): Avoid spurious overflow by careful reworking of the buffer size computations, triggering MemoryError if and only if the final buffer size can't be represented in a C int (although PyString_FromStringAndSize may legitimately raise MemoryError even if it does fit in a C int). All reasonable arguments should work as intended now, and all unreasonable arguments should be cuaght. | ||||
* | REMOVED all CWI, CNRI and BeOpen copyright markings. | Guido van Rossum | 2000-09-01 | 1 | -9/+0 |
| | | | | This should match the situation in the 1.6b1 tree. | ||||
* | Remove one compiler warning found with -Wstrict-prototypes. | Fred Drake | 2000-08-31 | 1 | -1/+1 |
| | |||||
* | Removing warnings discovered by gcc -Wall | Moshe Zadka | 2000-08-04 | 1 | -1/+1 |
| | |||||
* | merge Include/my*.h into Include/pyport.h | Peter Schneider-Kamp | 2000-07-31 | 1 | -2/+0 |
| | | | | marked my*.h as obsolete | ||||
* | Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)', | Thomas Wouters | 2000-07-21 | 1 | -7/+3 |
| | | | | | | | | | | | | | | | | | | and a couple of functions that were missed in the previous batches. Not terribly tested, but very carefully scrutinized, three times. All these were found by the little findkrc.py that I posted to python-dev, which means there might be more lurking. Cases such as this: long func(a, b) long a; long b; /* flagword */ { and other cases where the last ; in the argument list isn't followed by a newline and an opening curly bracket. Regexps to catch all are welcome, of course ;) | ||||
* | ANSI-fication | Peter Schneider-Kamp | 2000-07-10 | 1 | -72/+24 |
| | |||||
* | Change copyright notice - 2nd try. | Guido van Rossum | 2000-06-30 | 1 | -6/+0 |
| | |||||
* | Change copyright notice. | Guido van Rossum | 2000-06-30 | 1 | -22/+7 |
| | |||||
* | Disable the ZEROTRAP code -- this turns a 0 byte into a 2 byte and I | Guido van Rossum | 2000-05-02 | 1 | -1/+1 |
| | | | | | don't think that's what we want. There was some brief discussion of this somewhere but I don't recall where. | ||||
* | Massive patch by Skip Montanaro to add ":name" to as many | Guido van Rossum | 2000-02-29 | 1 | -2/+2 |
| | | | | PyArg_ParseTuple() format string arguments as possible. | ||||
* | Fixed memory leak in ratecv, in response to PR#72. By Sjoerd Mullender. | Guido van Rossum | 1999-09-07 | 1 | -8/+18 |
| | |||||
* | Add DL_EXPORT() to all modules that could possibly be used | Guido van Rossum | 1998-12-04 | 1 | -1/+1 |
| | | | | on BeOS or Windows. | ||||
* | Purported fixes for 64-bit platforms with help from John Jorgensen | Guido van Rossum | 1998-04-23 | 1 | -12/+24 |
| | |||||
* | Add cast to realloc/malloc call to shut up AIX compiler. (Vladimir Marangozov) | Guido van Rossum | 1997-10-31 | 1 | -2/+2 |
| | |||||
* | Apply two changes, systematically: | Guido van Rossum | 1997-10-01 | 1 | -4/+3 |
| | | | | | | | | | | | | | | | | | (1) Use PyErr_NewException("module.class", NULL, NULL) to create the exception object. (2) Remove all calls to Py_FatalError(); instead, return or ignore the errors -- the import code now checks PyErr_Occurred() after calling a module's init function, so it's no longer a fatal error for the initialization to fail. Also did some small cleanups, e.g. removed unnecessary test for "already initialized" from initfpectl(), and unified initposix()/initnt(). I haven't checked this very thoroughly, so while the changes are pretty trivial -- beware of untested code! | ||||
* | Fix by Sjoerd: don't want to resize to zero length. | Guido van Rossum | 1997-09-22 | 1 | -2/+7 |
| | |||||
* | fixed ratecv to continue working if product of rates is bigger than 32 bits | Guido van Rossum | 1997-05-20 | 1 | -0/+21 |
| | | | | (Sjoerd) | ||||
* | Tweaks to keep the Microsoft compiler quier. | Guido van Rossum | 1997-04-09 | 1 | -7/+7 |
| | |||||
* | Changes by Sjoerd (reformatted). | Guido van Rossum | 1997-02-14 | 1 | -95/+106 |
| | | | | | | | add(): better handling of overflow (substitute maxval instead of throwing away higher order bits). ratecv(): some bugfixes, Sjoerd says. | ||||
* | Added Sjoerd's submitted 'ratecv' method. Made corrections for new names. | Roger E. Masse | 1997-01-17 | 1 | -25/+140 |
| | | | | Reindented. | ||||
* | Renamed, reindented. (was already partially complete) | Roger E. Masse | 1997-01-03 | 1 | -933/+939 |
| | |||||
* | Keep gcc -Wall happy. | Guido van Rossum | 1996-12-05 | 1 | -19/+19 |
| | |||||
* | New permission notice, includes CNRI. | Guido van Rossum | 1996-10-25 | 1 | -13/+20 |
| | |||||
* | changes for MPW | Guido van Rossum | 1995-03-09 | 1 | -1/+1 |
| | |||||
* | Made some more things static, and other cleanup for new naming scheme | Guido van Rossum | 1995-01-17 | 1 | -3/+3 |
| | |||||
* | Added 1995 to copyright message. | Guido van Rossum | 1995-01-04 | 1 | -2/+2 |
| | | | | | Setup.in: clarified Tk comments somewhat. structmodule.c: use memcpy() instead of double precision assignment. | ||||
* | Another bulky set of minor changes. | Guido van Rossum | 1995-01-02 | 1 | -5/+2 |
| | | | | | Note addition of gethostbyaddr() and improved repr() for sockets, renaming of md5.md5() to md5.new(), and fixing of leaks in threads. |