[SCM] lame/master: Extend Maks Naumov's patch to also include a sanity check for valid amount of input channels (Closes: #778703)

fabian-guest at users.alioth.debian.org fabian-guest at users.alioth.debian.org
Thu Feb 19 17:49:19 UTC 2015


The following commit has been merged in the master branch:
commit 1c7c62d3c5614443524b5ad170ba2713a14d4e09
Author: Fabian Greffrath <fabian+debian at greffrath.com>
Date:   Thu Feb 19 18:43:56 2015 +0100

    Extend Maks Naumov's patch to also include a sanity check for valid amount of input channels (Closes: #778703)

diff --git a/debian/patches/0001-Add-check-for-invalid-input-sample-rate.patch b/debian/patches/0001-Add-check-for-invalid-input-sample-rate.patch
index 2096d43..26b9b24 100644
--- a/debian/patches/0001-Add-check-for-invalid-input-sample-rate.patch
+++ b/debian/patches/0001-Add-check-for-invalid-input-sample-rate.patch
@@ -14,7 +14,7 @@ Signed-off-by: Maks Naumov <maksqwe1 at ukr.net>
      }
  #endif
  
-+    if (gfp->samplerate_in < 0) {
++    if (gfp->samplerate_in < 0 || gfp->num_channels < 0) {
 +        freegfc(gfc);
 +        gfp->internal_flags = NULL;
 +        return -1;

-- 
lame packaging



More information about the pkg-multimedia-commits mailing list