This patch was downloaded from https://sourceforge.net/p/mpg321/bugs/51/ and fixes CVE-2019-14247. Description: Handle illegal bitrate value Author: Chrysostomos Nanakos Bug-Debian: https://bugs.debian.org/870406 Bug-Debian: https://bugs.debian.org/887057 --- mpg321-0.3.2.orig/mad.c +++ mpg321-0.3.2/mad.c @@ -574,6 +574,12 @@ void scan(void const *ptr, ssize_t len, if (!is_vbr) { + if (header.bitrate <= 0) + { + fprintf(stderr, "Illegal bit allocation value\n"); + return; + } + double time = (len * 8.0) / (header.bitrate); /* time in seconds */ double timefrac = (double)time - ((long)(time)); long nsamples = 32 * MAD_NSBSAMPLES(&header); /* samples per frame */ utsummaryrefslogtreecommitdiff
path: root/release.nix
AgeCommit message (Expand)Author
2013-05-12release.nix: Revert back to before unchroot experiments....* release.nix: Revert to commit 4050e5d6cfe8f7af29f10b2f1b3c7febdc10946a. Ludovic Courtès
2013-03-18release.nix: Hack to unchroot more stuff....* release.nix (unchrootedNixpkgs): New function. (jobs)[tarball, build, build_disable_daemon, distro): Use it. Should fix <http://hydra.gnu.org:3000/build/7279>. Ludovic Courtès
2013-03-18release.nix: Adjust to current Nixpkgs....* release.nix: s/buildNativeInputs/nativeBuildInputs/. Ludovic Courtès
2013-03-02release.nix: Reduce the number of dependencies....* release.nix (tarball): Use a minimal Git. Ludovic Courtès
2013-03-02release.nix: Unchroot recursively....* release.nix (unchroot): Operate recursively on build inputs. Ludovic Courtès
2013-03-02release.nix: Build outside of a chroot....* release.nix (unchroot): New function. (jobs)[tarball, build, build_disable_daemon]: Use it. Ludovic Courtès