Antoine Pitrou
88c51e8cb1
Issue #13806 : The size check in audioop decompression functions was too strict and could reject valid compressed data.
Patch by Oleg Plakhotnyuk.
15 years ago
Matthias Klose
b7180a89b3
Merge r82494 from the python2.6 branch:
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
16 years ago
Matthias Klose
d4367c24cd
Merge r81080 from the python2.6 branch:
Issue #8674 : fix another bogus overflow check in audioop module.
16 years ago
Matthias Klose
192b714f92
Merged revisions 81046 from the python2.6 branch:
Issue #8674 : Fix incorrect and UB-inducing overflow checks in audioop
module. Thanks Tomas Hoger for the patch.
16 years ago
Victor Stinner
e9123efa21
Merged revisions 82492 via svnmerge from
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
........
16 years ago
Victor Stinner
15e5b1bf0b
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
16 years ago
Mark Dickinson
7ceb497ae6
Merged revisions 81079 via svnmerge from
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.
........
16 years ago
Mark Dickinson
11bb2cdc6a
Issue #8674 : fix another bogus overflow check in audioop module.
16 years ago
Mark Dickinson
47e3bf26f0
Merged revisions 81045 via svnmerge from
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.
........
16 years ago
Mark Dickinson
932e162a96
Issue #8674 : Fix incorrect and UB-inducing overflow checks in audioop
module. Thanks Tomas Hoger for the patch.
16 years ago
Antoine Pitrou
c7c96a90bc
Recorded merge of revisions 81029 via svnmerge from
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.
........
16 years ago
Antoine Pitrou
c83ea137d7
Untabify C files. Will watch buildbots.
16 years ago
Brett Cannon
9824e7f57c
Clean up whitespace and remove unneeded variable initialization as found by
Clang.
16 years ago
Raymond Hettinger
1672dc60ec
Fix signed/unsigned compiler warning.
17 years ago
Facundo Batista
1a664419bb
Issue 3306. Better control for a lenght in findmax() function.
18 years ago
Gregory P. Smith
9d53457e59
Merge in release25-maint r60793:
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.
18 years ago
Gregory P. Smith
dd96db63f6
This reverts r63675 based on the discussion in this thread:
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.
18 years ago
Christian Heimes
593daf545b
Renamed PyString to PyBytes
18 years ago
Martin v. Löwis
73c01d4101
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.
19 years ago
Martin v. Löwis
a811c38d8e
Fix various minor errors in passing arguments to
PyArg_ParseTuple.
20 years ago
Georg Brandl
660222f955
Convert audioop over to METH_VARARGS.
20 years ago
Neal Norwitz
49c65d022f
Make some functions static, reformat function decl to be consistent and check for error from PyModule_GetDict()
21 years ago
Anthony Baxter
17471432ec
replace use of int16_t with a (typedef'd) short, to fix Windows buildbots.
expand tabs.
21 years ago
Anthony Baxter
fa86907aae
SF [ 1231053 ] audioop - alaw encoding/decoding added, code updated
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
21 years ago
Neal Norwitz
60da31660c
Thanks to Coverity, these were all reported by their Prevent tool.
All of these (except _lsprof.c) should be backported. Particularly
the hotshot change which validates sys.path. Can someone backport?
21 years ago
Martin v. Löwis
18e165558b
Merge ssize_t branch.
21 years ago
Neal Norwitz
1ac754fa10
Check return result from Py_InitModule*(). This API can fail.
Probably should be backported.
21 years ago
Mark Hammond
fe51c6d66e
Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype
for Py_Main().
Thanks to Kalle Svensson and Skip Montanaro for the patches.
24 years ago
Martin v. Löwis
43b936d08c
Patch #477750 : Use METH_ constants in Modules.
25 years ago
Tim Peters
eb4b7bad33
audioop_ratecv() again: settle for a sloppier upper bound that's less
obnoxious to compute and easier to explain. No compromise on safety.
25 years ago
Tim Peters
3127c28b3f
audioop_ratecv(): I left a potentially unsafe multiply unchecked
yesterday -- repair that. Also renamed the silly size_times_nchannels
to bytes_per_frame.
25 years ago
Tim Peters
1691bd9f1e
SF bug 482574: audioop.ratecv crashes.
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.
25 years ago
Guido van Rossum
8586991099
REMOVED all CWI, CNRI and BeOpen copyright markings.
This should match the situation in the 1.6b1 tree.
26 years ago
Fred Drake
c818d5347e
Remove one compiler warning found with -Wstrict-prototypes.
26 years ago
Moshe Zadka
6a078edb07
Removing warnings discovered by gcc -Wall
26 years ago
Peter Schneider-Kamp
7e01890986
merge Include/my*.h into Include/pyport.h
marked my*.h as obsolete
26 years ago
Thomas Wouters
f3f33dcf03
Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)',
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 ;)
26 years ago
Peter Schneider-Kamp
8bc8f0d036
ANSI-fication
26 years ago
Guido van Rossum
ffcc3813d8
Change copyright notice - 2nd try.
26 years ago
Guido van Rossum
fd71b9e9d4
Change copyright notice.
26 years ago
Guido van Rossum
7d64b48eaf
Disable the ZEROTRAP code -- this turns a 0 byte into a 2 byte and I
don't think that's what we want. There was some brief discussion
of this somewhere but I don't recall where.
26 years ago
Guido van Rossum
43713e5a28
Massive patch by Skip Montanaro to add ":name" to as many
PyArg_ParseTuple() format string arguments as possible.
27 years ago
Guido van Rossum
65bb328f67
Fixed memory leak in ratecv, in response to PR#72. By Sjoerd Mullender.
27 years ago
Guido van Rossum
3886bb6997
Add DL_EXPORT() to all modules that could possibly be used
on BeOS or Windows.
28 years ago
Guido van Rossum
690119621e
Purported fixes for 64-bit platforms with help from John Jorgensen
29 years ago
Guido van Rossum
6345ac6d61
Add cast to realloc/malloc call to shut up AIX compiler. (Vladimir Marangozov)
29 years ago
Guido van Rossum
0cb96de269
Apply two changes, systematically:
(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!
29 years ago
Guido van Rossum
3bbeb7a318
Fix by Sjoerd: don't want to resize to zero length.
29 years ago
Guido van Rossum
b24c9ea514
fixed ratecv to continue working if product of rates is bigger than 32 bits
(Sjoerd)
29 years ago
Guido van Rossum
644a12b00c
Tweaks to keep the Microsoft compiler quier.
30 years ago