diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-12-05 06:05:07 +0000 |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-12-05 06:05:07 +0000 |
commit | 1691bd9f1ef89acd02dc86e88b81eb53fd0e3c02 (patch) | |
tree | 368148a324a54ef7b9ba73128149dec522844c7d /Python/dynload_os2.c | |
parent | c2f496a138a4838375b449e238d963615d546de6 (diff) | |
download | cpython-git-1691bd9f1ef89acd02dc86e88b81eb53fd0e3c02.tar.gz |
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.
Diffstat (limited to 'Python/dynload_os2.c')
0 files changed, 0 insertions, 0 deletions