[SCM] m2vrequantiser/master: Avoid sscanf() access to argv's 3rd argument when only one is given.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Fri Jul 11 14:36:35 UTC 2014


The following commit has been merged in the master branch:
commit eb1c68f19cf74ba8a9f3d47fbac4398e3ab2e757
Author: Alessio Treglia <alessio at debian.org>
Date:   Fri Jul 11 15:34:46 2014 +0100

    Avoid sscanf() access to argv's 3rd argument when only one is given.
    
    Closes: #715590

diff --git a/debian/patches/1002-argc_sigsegv.patch b/debian/patches/1002-argc_sigsegv.patch
new file mode 100644
index 0000000..8a49c22
--- /dev/null
+++ b/debian/patches/1002-argc_sigsegv.patch
@@ -0,0 +1,18 @@
+Subject: Fix SIGSEGV.
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=715590
+Forwarded: no
+---
+ main.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- m2vrequantiser.orig/main.c
++++ m2vrequantiser/main.c
+@@ -2315,7 +2315,7 @@ int main (int argc, const char * argv[])
+ 	if (argc < 5) { USAGE }
+ 	delta_bright = atoi(argv[4]);
+ #else
+-	if (argc < 2) { USAGE }
++	if (argc < 3) { USAGE }
+ #endif
+ 	fact_x = atof(argv[1]);
+ 	sscanf(argv[2], "%lld", &orim2vsize);
diff --git a/debian/patches/series b/debian/patches/series
index edcbf58..4f32620 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 1001-makefile.patch
+1002-argc_sigsegv.patch

-- 
m2vrequantiser packaging



More information about the pkg-multimedia-commits mailing list