Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2
python3-base
python-3.6-CVE-2017-18207.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-3.6-CVE-2017-18207.patch of Package python3-base
From ae0ed14794ced2c51c822fc6f0d3ca92064619dd Mon Sep 17 00:00:00 2001 From: BT123 <abcdyzhang@163.com> Date: Fri, 17 Nov 2017 16:45:45 +0800 Subject: [PATCH] bug in wave.py --- Lib/wave.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/wave.py b/Lib/wave.py index cf94d5af72b4..6db5a2e9cc96 100644 --- a/Lib/wave.py +++ b/Lib/wave.py @@ -259,6 +259,8 @@ def _read_fmt_chunk(self, chunk): self._sampwidth = (sampwidth + 7) // 8 else: raise Error('unknown format: %r' % (wFormatTag,)) + if self._nchannels == 0: + raise ValueError("The audio file in wav format should have at least one channel!") self._framesize = self._nchannels * self._sampwidth self._comptype = 'NONE' self._compname = 'not compressed'
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor