Package: m2vrequantiser / 1.1-3

1002-argc_sigsegv.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);