diff options
| author | Facundo Batista <facundobatista@gmail.com> | 2008-07-07 17:02:59 +0000 |
|---|---|---|
| committer | Facundo Batista <facundobatista@gmail.com> | 2008-07-07 17:02:59 +0000 |
| commit | 1a664419bb61079e1fd7a57bc7dc807a3d33443d (patch) | |
| tree | 282957b9afcd9ab194563b29a4b47b0ff57471ca /Modules/audioop.c | |
| parent | 10cf7d947d9d9cc12edef02bfb70db4ff959d8bb (diff) | |
| download | cpython-git-1a664419bb61079e1fd7a57bc7dc807a3d33443d.tar.gz | |
Issue 3306. Better control for a lenght in findmax() function.
Diffstat (limited to 'Modules/audioop.c')
| -rw-r--r-- | Modules/audioop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/audioop.c b/Modules/audioop.c index 31e3fa4870..767cae64e9 100644 --- a/Modules/audioop.c +++ b/Modules/audioop.c @@ -575,7 +575,7 @@ audioop_findmax(PyObject *self, PyObject *args) } len1 >>= 1; - if ( len1 < len2 ) { + if ( len2 < 0 || len1 < len2 ) { PyErr_SetString(AudioopError, "Input sample should be longer"); return 0; } |
