[New-bugs-announce] [issue13806] Audioop decompression frames size check fix

Oleg Plakhotnyuk report at bugs.python.org
Tue Jan 17 16:23:45 CET 2012

New submission from Oleg Plakhotnyuk <olegus8 at gmail.com>:

According to documentation (http://docs.python.org/library/audioop.html), adpcm2lin, alaw2lin and ulaw2lin are using 'width' argument to represent output frames width. However, in audioop.c module there are checks that are raising exceptions if input frames length is not multiple of 'width'. I have replaced checking of 'len' to match 'size' with checking of 'len*size' to match 'size' in order to retain only basic length validity checks.

components: Library (Lib)
files: audioop_size_check.patch
keywords: patch
messages: 151459
nosy: Oleg.Plakhotnyuk, ezio.melotti, sandro.tosi
priority: normal
severity: normal
status: open
title: Audioop decompression frames size check fix
type: behavior
versions: Python 3.2, Python 3.3
Added file: http://bugs.python.org/file24260/audioop_size_check.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list