[SCM] pd-cyclone/master: Fixing out-of-bound array access (Closes: #715772)
zmoelnig-guest at users.alioth.debian.org
zmoelnig-guest at users.alioth.debian.org
Mon Dec 9 16:46:47 UTC 2013
The following commit has been merged in the master branch:
commit 29eec623f773ff85284d35384cf533952fc70679
Author: IOhannes m zmölnig <zmoelnig at iem.at>
Date: Mon Dec 9 17:37:08 2013 +0100
Fixing out-of-bound array access (Closes: #715772)
diff --git a/debian/patches/cyclist_fix_arrayaccess.patch b/debian/patches/cyclist_fix_arrayaccess.patch
new file mode 100644
index 0000000..eeb8cff
--- /dev/null
+++ b/debian/patches/cyclist_fix_arrayaccess.patch
@@ -0,0 +1,18 @@
+Description: assert proper (positive) array indices
+ when accessing an array, we should make sure that the index is within bounds.
+ an out-of-bound index can happen when reading invalid binary files.
+Author: IOhannes m zmölnig
+Applied-Upstream: http://sourceforge.net/p/pure-data/svn/17227
+Last-Update: 2013-12-09
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- pd-cyclone.orig/shared/common/binport.c
++++ pd-cyclone/shared/common/binport.c
+@@ -462,6 +462,7 @@
+ static int binport_setbysymtable(t_binport *bp, t_atom *ap, int id)
+ {
+ t_symbol *s;
++ if(id<0) return 0;
+ if (id < bp->b_nsymbols)
+ s = bp->b_symtable[id];
+ else
diff --git a/debian/patches/series b/debian/patches/series
index e7beab7..411377f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
fix-hurd-and-kfreebsd
buildflags.patch
+cyclist_fix_arrayaccess.patch
--
pd-cyclone packaging
More information about the pkg-multimedia-commits
mailing list