[SCM] flake/master: libflake/lpc.c: Pass max_order instead of max_order+1 to compute_lpc_coefs(). This avoids a buffer overrun in the autoc[] array.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Fri Nov 19 11:47:07 UTC 2010


The following commit has been merged in the master branch:
commit ca7e97cf343ade884a5c512d8ffc45211850c607
Author: Alessio Treglia <alessio at debian.org>
Date:   Fri Nov 19 12:46:43 2010 +0100

    libflake/lpc.c: Pass max_order instead of max_order+1 to compute_lpc_coefs(). This avoids a buffer overrun in the autoc[] array.

diff --git a/debian/patches/1001-buffer_overrun.patch b/debian/patches/1001-buffer_overrun.patch
new file mode 100644
index 0000000..d26bee3
--- /dev/null
+++ b/debian/patches/1001-buffer_overrun.patch
@@ -0,0 +1,18 @@
+Description: Pass max_order instead of max_order+1 to compute_lpc_coefs().
+ This avoids a buffer overrun in the autoc[] array.
+Origin: upstream, commit:263
+---
+ libflake/lpc.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- flake.orig/libflake/lpc.c
++++ flake/libflake/lpc.c
+@@ -232,7 +232,7 @@ lpc_calc_coefs(const int32_t *samples, i
+     int i;
+     int opt_order;
+ 
+-    compute_autocorr(samples, blocksize, max_order+1, autoc);
++    compute_autocorr(samples, blocksize, max_order, autoc);
+ 
+     opt_order = max_order;
+     if(omethod == FLAKE_ORDER_METHOD_EST) {
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..dd58104
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+1001-buffer_overrun.patch

-- 
flake packaging



More information about the pkg-multimedia-commits mailing list