summaryrefslogtreecommitdiff
path: root/audio/flake/1001-buffer_overrun.patch
diff options
context:
space:
mode:
authorEdinaldo P. Silva <edps.mundognu@gmail.com>2015-11-26 08:43:58 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-11-28 07:25:59 +0700
commit6fc1d550577fb7f9aadb17e45c0f33676fd7aaaa (patch)
tree953b641e03b9b1e558996974fa23c2295cbaf700 /audio/flake/1001-buffer_overrun.patch
parent0fabf487392e35eb4ec58ed3ac4d7e5217c7e9a1 (diff)
downloadslackbuilds-6fc1d550577fb7f9aadb17e45c0f33676fd7aaaa.tar.gz
audio/flake: Fix buffer overrun.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/flake/1001-buffer_overrun.patch')
-rw-r--r--audio/flake/1001-buffer_overrun.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/audio/flake/1001-buffer_overrun.patch b/audio/flake/1001-buffer_overrun.patch
new file mode 100644
index 0000000000..d26bee3196
--- /dev/null
+++ b/audio/flake/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) {