From: Antonio Larrosa Date: Mon, 6 Mar 2017 12:51:22 +0100 Subject: Always check the number of coefficients When building the library with NDEBUG, asserts are eliminated so it's better to always check that the number of coefficients is inside the array range. This fixes the 00191-audiofile-indexoob issue in #41 --- libaudiofile/WAVE.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libaudiofile/WAVE.cpp b/libaudiofile/WAVE.cpp index 9dd8511..0fc48e8 100644 --- a/libaudiofile/WAVE.cpp +++ b/libaudiofile/WAVE.cpp @@ -281,6 +281,12 @@ status WAVEFile::parseFormat(const Tag &id, uint32_t size) /* numCoefficients should be at least 7. */ assert(numCoefficients >= 7 && numCoefficients <= 255); + if (numCoefficients < 7 || numCoefficients > 255) + { + _af_error(AF_BAD_HEADER, + "Bad number of coefficients"); + return AF_FAIL; + } m_msadpcmNumCoefficients = numCoefficients; t'>
aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/selinux.scm
AgeCommit message (Expand)Author
2022-10-02gnu: python-setools: Update to 4.4.0....* gnu/packages/selinux.scm (python-setools): Update to 4.4.0. [source, home-page]: Update url. [inputs]: Add python-pyqt. [native-inputs]: Add python-cython. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Greg Hogan
2022-08-13gnu: policycoreutils: Use G-expression....* gnu/packages/selinux.scm (policycoreutils)[arguments]: Convert to gexp. Marius Bakke
2022-08-13gnu: libsepol: Use G-expression....* gnu/packages/selinux.scm (libsepol)[arguments]: Convert to gexp. Marius Bakke
2022-08-13gnu: policycoreutils: Remove input labels....* gnu/packages/selinux.scm (policycoreutils)[native-inputs, inputs]: Remove labels. Marius Bakke
2022-08-13gnu: python-sepolgen: Use G-expression and remove labels....* gnu/packages/selinux.scm (python-sepolgen)[arguments]: Convert to G-expression. Don't refer to python by label. [inputs]: Remove labels. Marius Bakke
2022-08-13gnu: secilc: Remove input labels....* gnu/packages/selinux.scm (secilc)[arguments]: Use G-expression and SEARCH-INPUT-DIRECTORY. [inputs, native-inputs]: Remove labels. Marius Bakke
2022-08-13gnu: libsemanage: Remove input labels....* gnu/packages/selinux.scm (libsemanage)[arguments]: Use G-expression. [native-inputs, inputs]: Remove labels. Marius Bakke
2022-08-13gnu: libselinux: Remove input labels....* gnu/packages/selinux.scm (libselinux)[arguments]: Use G-expression. [native-inputs, inputs, propagated-inputs]: Remove labels. Marius Bakke
2022-08-13gnu: checkpolicy: Remove input labels....* gnu/packages/selinux.scm (checkpolicy)[arguments]: Use G-expression & SERACH-INPUT-FILE. [native-inputs, inputs]: Remove labels. Marius Bakke
2022-08-13gnu: SELinux: Update to 3.4....* gnu/packages/selinux.scm (libsepol): Update to 3.4. (libselinux)[propagated-inputs]: Replace PCRE with PCRE2. Marius Bakke