Attached patch fixes issue (improper getopt invocation, -r option requires 
argument)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
NotDashEscaped: You need GnuPG to verify this message

From: Yuriy M. Kaminskiy <yum...@gmail.com>
Subject: fax2tiff: option -r requires argument

Fixes SIGSEGV, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=715892

Index: tiff-4.0.x-20141215/tools/fax2tiff.c
===================================================================
--- tiff-4.0.x-20141215.orig/tools/fax2tiff.c	2014-12-22 11:45:45.744096012 +0300
+++ tiff-4.0.x-20141215/tools/fax2tiff.c	2014-12-22 11:46:15.472596500 +0300
@@ -99,7 +99,7 @@ main(int argc, char* argv[])
 	extern char* optarg;
 
 
-	while ((c = getopt(argc, argv, "R:X:o:1234ABLMPUW5678abcflmprsuvwz?")) != -1)
+	while ((c = getopt(argc, argv, "R:X:o:r:1234ABLMPUW5678abcflmpsuvwz?")) != -1)
 		switch (c) {
 			/* input-related options */
 		case '3':		/* input is g3-encoded */
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iF4EAREIAAYFAlSX21EACgkQKZn9iF16KMM2jQD+K/bz529ghh9r51nd1f8aGNgb
KZ7T3ELyj99ZFrR2EUMA/2xZjurDz8Ac9ByszIBbL0+2wzB1vDJO1w4L2zVr/Hhp
=C2BG
-----END PGP SIGNATURE-----

Reply via email to