diff options
author | Even Rouault <even.rouault@spatialys.com> | 2016-10-25 22:22:45 +0000 |
---|---|---|
committer | Even Rouault <even.rouault@spatialys.com> | 2016-10-25 22:22:45 +0000 |
commit | 124d8fc8109f32e2039fa4e5306117078783b958 (patch) | |
tree | a8dd46564a12322e834c2d335255c127faca800f | |
parent | c1a5a07a3a8ce025b4b01be4cf2c22bb8bbbf1c1 (diff) | |
download | libtiff-git-124d8fc8109f32e2039fa4e5306117078783b958.tar.gz |
* tools/fax2tiff.c: fix segfault when specifying -r without
argument. Patch by Yuriy M. Kaminskiy.
Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2572
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | tools/fax2tiff.c | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,9 @@ +2016-10-26 Even Rouault <even.rouault at spatialys.com> + + * tools/fax2tiff.c: fix segfault when specifying -r without + argument. Patch by Yuriy M. Kaminskiy. + Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2572 + 2016-10-25 Even Rouault <even.rouault at spatialys.com> * libtiff/tif_dir.c: discard values of SMinSampleValue and diff --git a/tools/fax2tiff.c b/tools/fax2tiff.c index 9bbcb63e..e00de527 100644 --- a/tools/fax2tiff.c +++ b/tools/fax2tiff.c @@ -1,4 +1,4 @@ -/* $Id: fax2tiff.c,v 1.24 2015-08-23 15:40:45 bfriesen Exp $ */ +/* $Id: fax2tiff.c,v 1.25 2016-10-25 22:22:45 erouault Exp $ */ /* * Copyright (c) 1990-1997 Sam Leffler @@ -116,7 +116,7 @@ main(int argc, char* argv[]) extern char* optarg; #endif - while ((c = getopt(argc, argv, "R:X:o:1234ABLMPUW5678abcflmprsuvwz?")) != -1) + while ((c = getopt(argc, argv, "R:X:o:r:1234ABLMPUW5678abcflmprsuvwz?")) != -1) switch (c) { /* input-related options */ case '3': /* input is g3-encoded */ |