From fde6d79fb8363c4a329a184ef0b107156602b225 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 27 Sep 2018 10:48:45 +0200 Subject: [PATCH] ModuleState: handle compress/decompress init failure When the unit initcompress or initdecompress function fails, m_fileModule is NULL. Return AF_FAIL in that case instead of causing NULL pointer dereferences later. Fixes #49 --- libaudiofile/modules/ModuleState.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libaudiofile/modules/ModuleState.cpp b/libaudiofile/modules/ModuleState.cpp index 0c29d7a..070fd9b 100644 --- a/libaudiofile/modules/ModuleState.cpp +++ b/libaudiofile/modules/ModuleState.cpp @@ -75,6 +75,9 @@ status ModuleState::initFileModule(AFfilehandle file, Track *track) m_fileModule = unit->initcompress(track, file->m_fh, file->m_seekok, file->m_fileFormat == AF_FILE_RAWDATA, &chunkFrames); + if (!m_fileModule) + return AF_FAIL; + if (unit->needsRebuffer) { assert(unit->nativeSampleFormat == AF_SAMPFMT_TWOSCOMP); mmaryrefslogtreecommitdiff
path: root/etc
AgeCommit message (Expand)Author
2023-08-30etc: teams: Fix regexp match and execution....This is a follow up to commit 4d7b25a0 ("etc: teams: Sort and improve display of regular expression in 'scope' field."). * etc/teams.scm.in (regexp-exec*): Rename to... (regexp*-exec): ... this. (find-team-by-scope): Replace regexp? with regexp*?. Replace regexp-exec with regexp*-exec. Maxim Cournoyer
2023-08-29etc: teams: Sort and improve display of regular expression in 'scope' field....Fixes <https://issues.guix.gnu.org/65208>. * etc/teams.scm.in (<regexp*>): New record type. (make-regexp*, regexp-exec*): New procedures. (python, haskell, julia, java, emacs, rust, core, translations, installer, home): Use it. (find-team-by-scope): Use it. (list-teams): Use it. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Reported-by: Greg Hogan <code@greghogan.com> zimoun
2023-08-29etc: teams: Itemize 'scope' field....* etc/teams.scm.in (list-teams): Itemize the 'scope' field. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> zimoun
2023-08-29etc: teams: Add 'show' subcommand and sort teams....* etc/teams.scm.in: Add 'show' subcommand. Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> zimoun
2023-08-29etc: teams: Refactor list-teams....* etc/teams.scm.in (print-team, sort-teams): New procedures. (list-teams): Use them. Maxim Cournoyer
2023-08-29etc: teams: Drop unused port argument for list-members procedure....* etc/teams.scm.in (list-members): Drop port optional argument. Turn PREFIX into a keyword argument. (print-team): Adjust accordingly. Maxim Cournoyer
2023-08-29teams: Register the guix-emacs.el file to the Emacs team....* etc/teams.scm.in (emacs): Add the "gnu/packages/aux-files/emacs/guix-emacs.el" file to the scope of the Emacs team. Maxim Cournoyer
2023-08-27Update tex team....* etc/teams.scm.in: Add gnu/packages/texlive.scm to the files and Andreas Enge to the members of the tex team. Andreas Enge
2023-08-22etc: Add Qt manifests for Qt maintenance....* etc/teams/qt/common.scm: New file. * etc/teams/qt/qt-manifest.scm: Likewise. * etc/teams/qt/qt5-manifest.scm: Likewise. Maxim Cournoyer
2023-08-21maint: Add 'etc/hurd-manifest.scm'....* build-aux/cuirass/hurd-manifest.scm: Move to... * etc/hurd-manifest.scm: ...here. * Makefile.am (EXTRA_DIST): Update accordingly. Janneke Nieuwenhuizen