Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

PR 5951 adds explicit checks for the number of channels and sample width when 
read audio files in aifc, sunau and wave and converts some struct.error to 
EOFError when the file is truncated in wave.

This change can break an existing code that currently successfully opens 
corrupted audio files and read only headers, but not audio samples. Therefore 
it is safer to not backport it, even if classify this issue as a bug.

----------
title: Improve exceptions in Lib/wave.py -> Improve exceptions in aifc, sunau 
and wave
versions: +Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32056>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to