summaryrefslogtreecommitdiffstats
path: root/Modules/audioop.c
Commit message (Collapse)AuthorAgeFilesLines
* bpo-28261: Fixed err msgs where PyArg_ParseTuple is used to parse normal ↵Oren Milman2017-08-201-7/+23
| | | | tuples. (#3119)
* Use uint16_t instead of short in audioop.Serhiy Storchaka2016-09-111-14/+14
|
* replace PyInt16 with int16_tBenjamin Peterson2016-09-081-14/+11
|
* replace PY_SIZE_MAX with SIZE_MAXBenjamin Peterson2016-09-071-1/+1
|
* Fix some warnings from MSVCSteve Dower2016-09-071-1/+2
|
* replace Python aliases for standard integer types with the standard integer ↵Benjamin Peterson2016-09-061-4/+4
| | | | types (#17884)
* Issue #1621: Avoid signed int negation overflow in audioopMartin Panter2016-07-191-1/+3
|
* - Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka2016-07-071-53/+52
|\ | | | | | | generated by Argument Clinic. Patch by Petr Viktorin.
| * Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka2016-07-071-53/+52
| | | | | | | | generated by Argument Clinic. Patch by Petr Viktorin.
* | Merge typo fixes from 3.5Martin Panter2016-05-081-2/+2
|\ \ | |/
| * Corrections for a/an in code comments and documentationMartin Panter2016-05-081-2/+2
| |
* | Issue #25923: Added the const qualifier to static constant arrays.Serhiy Storchaka2015-12-251-9/+11
|/
* Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5Martin Panter2015-11-021-2/+2
|\
| * Issue #25523: Correct "a" article to "an" articleMartin Panter2015-11-021-2/+2
| | | | | | | | | | | | This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed or edited some other way to fix the grammar.
* | Issue #24456: Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()Serhiy Storchaka2015-06-281-13/+26
|\ \ | |/ | | | | functions of the audioop module.
| * Issue #24456: Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()Serhiy Storchaka2015-06-281-13/+26
| | | | | | | | functions of the audioop module.
* | Issue #24326: Fixed audioop.ratecv() with non-default weightB argument.Serhiy Storchaka2015-05-291-1/+1
|\ \ | |/ | | | | Original patch by David Moore.
| * Issue #24326: Fixed audioop.ratecv() with non-default weightB argument.Serhiy Storchaka2015-05-291-1/+1
| | | | | | | | Original patch by David Moore.
* | Issue #23944: Argument Clinic now wraps long impl prototypes at column 78.Larry Hastings2015-04-141-26/+40
| |
* | Issue #23501: Argumen Clinic now generates code into separate files by default.Serhiy Storchaka2015-04-031-2/+1
|/
* Issue #20326: Argument Clinic now uses a simple, unique signature toLarry Hastings2014-01-281-27/+27
| | | | | | | | | | annotate text signatures in docstrings, resulting in fewer false positives. "self" parameters are also explicitly marked, allowing inspect.Signature() to authoritatively detect (and skip) said parameters. Issue #20326: Argument Clinic now generates separate checksums for the input and output sections of the block, allowing external tools to verify that the input has not changed (and thus the output is not out-of-date).
* Issue #20394: Attempt to silence CID 1164423: Division or modulo by zero in ↵Christian Heimes2014-01-271-1/+2
| | | | | | audioop_ratecv_impl() Serhiy and I had the same idea so it's most likely right. ;)
* fix refleak on errorBenjamin Peterson2014-01-261-4/+7
|
* Fix for catestrophic errors in previous checkin (Argument Clinic rollup patch).Larry Hastings2014-01-261-1/+1
|
* Issue #20390: Small fixes and improvements for Argument Clinic.Larry Hastings2014-01-261-1/+0
|
* Issue #20133: The audioop module now uses Argument Clinic.Serhiy Storchaka2014-01-251-486/+591
|
* fix refleak in the error caseBenjamin Peterson2014-01-131-2/+2
|
* audioop: adpcm2lin() and lin2adpcm() now raises a TypeError instead of aVictor Stinner2014-01-031-0/+6
| | | | SystemError if the state type is invalid.
* Issue #19641: Added the audioop.byteswap() function to convert big-endianSerhiy Storchaka2013-11-231-0/+32
| | | | samples to little-endian and vice versa.
* Fixed compile error on Windows caused by arithmetic with void * pointersSerhiy Storchaka2013-11-111-3/+3
| | | | (issue #16685).
* Issue #16685: Added support for any bytes-like objects in the audioop module.Serhiy Storchaka2013-11-101-288/+378
| | | | Removed support for strings.
* Issue #19418 Fix some warnings on Win64Tim Golden2013-10-311-2/+5
|
* Issue #12866: Fix bias() for 24-bit. Add more tests.Serhiy Storchaka2013-10-201-4/+8
|
* Issue #12866: The audioop module now supports 24-bit samples.Serhiy Storchaka2013-10-191-223/+200
|
* Issue #18203: Replace malloc() with PyMem_Malloc() in Python modulesVictor Stinner2013-07-071-6/+4
| | | | | Replace malloc() with PyMem_Malloc() when the GIL is held, or with PyMem_RawMalloc() otherwise.
* audioop: explicit cast to fix a compiler warningVictor Stinner2013-05-071-1/+1
|
* Issue #16686: Fixed a lot of bugs in audioop module.Serhiy Storchaka2013-02-091-156/+154
|\ | | | | | | | | | | | | | | | | | | | | | | * avgpp() and maxpp() no more crash on empty and 1-samples input fragment. They now work when peak-peak values are greater INT_MAX. * ratecv() no more crashes on empty input fragment. * Fixed an integer overflow in ratecv(). * Fixed an integer overflow in add() and bias() for 32-bit samples. * reverse(), lin2lin() and ratecv() no more lose precision for 32-bit samples. * max() and rms() no more returns negative result for 32-bit sample -0x80000000. * minmax() now returns correct max value for 32-bit sample -0x80000000. * avg(), mul(), tomono() and tostereo() now round negative result down and can return 32-bit sample -0x80000000. * add() now can return 32-bit sample -0x80000000.
| * Issue #16686: Fixed a lot of bugs in audioop module.Serhiy Storchaka2013-02-091-156/+154
| | | | | | | | | | | | | | | | | | | | | | | | * avgpp() and maxpp() no more crash on empty and 1-samples input fragment. They now work when peak-peak values are greater INT_MAX. * ratecv() no more crashes on empty input fragment. * Fixed an integer overflow in ratecv(). * Fixed an integer overflow in add() and bias() for 32-bit samples. * reverse(), lin2lin() and ratecv() no more lose precision for 32-bit samples. * max() and rms() no more returns negative result for 32-bit sample -0x80000000. * minmax() now returns correct max value for 32-bit sample -0x80000000. * avg(), mul(), tomono() and tostereo() now round negative result down and can return 32-bit sample -0x80000000. * add() now can return 32-bit sample -0x80000000.
* | Issue #16096: Fix several occurrences of potential signed integer overflow. ↵Mark Dickinson2012-10-061-2/+2
| | | | | | | | Thanks Serhiy Storchaka.
* | Issue #13806: The size check in audioop decompression functions was too ↵Antoine Pitrou2012-01-281-3/+3
|\ \ | |/ | | | | | | | | strict and could reject valid compressed data. Patch by Oleg Plakhotnyuk.
| * Issue #13806: The size check in audioop decompression functions was too ↵Antoine Pitrou2012-01-281-3/+3
| | | | | | | | | | | | strict and could reject valid compressed data. Patch by Oleg Plakhotnyuk.
* | Issue #8914: fix various warnings from the Clang static analyzer v254.Brett Cannon2011-02-221-4/+0
|/
* Issue #9566: use Py_ssize_t instead of intVictor Stinner2011-01-041-1/+1
|
* Fix refleak in Modules/audioop.c.Mark Dickinson2010-07-041-2/+7
|
* Merged revisions 82492 via svnmerge fromVictor Stinner2010-07-031-73/+71
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r82492 | victor.stinner | 2010-07-03 15:36:19 +0200 (sam., 03 juil. 2010) | 3 lines Issue #7673: Fix security vulnerability (CVE-2010-2089) in the audioop module, ensure that the input string length is a multiple of the frame size ........
* Issue #8657: Make the audioop module PY_SSIZE_T_CLEAN.Mark Dickinson2010-05-111-64/+70
|
* Merged revisions 81079 via svnmerge fromMark Dickinson2010-05-111-17/+8
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81079 | mark.dickinson | 2010-05-11 14:05:30 +0100 (Tue, 11 May 2010) | 1 line Issue #8674: fix another bogus overflow check in audioop module. ........
* Merged revisions 81045 via svnmerge fromMark Dickinson2010-05-101-28/+21
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81045 | mark.dickinson | 2010-05-10 17:07:42 +0100 (Mon, 10 May 2010) | 3 lines Issue #8674: Fix incorrect and UB-inducing overflow checks in audioop module. Thanks Tomas Hoger for the patch. ........
* Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-1255/+1255
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
* Silence compiler warning.Raymond Hettinger2009-05-161-1/+1
|