From 280a568ae887c27a422a5da862398ffdbcd9b84d Mon Sep 17 00:00:00 2001
From: Su_Laus <[EMAIL REDACTED]>
Date: Sat, 12 Aug 2023 15:52:28 +0200
Subject: [PATCH] Remove -i option (ignore errors) from tiffcp, because almost
all fuzzer issues were consequential errors from ignored errors because of
the "-i" option.
---
tools/tiffcp.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/tools/tiffcp.c b/tools/tiffcp.c
index 42b5510c..aff06260 100644
--- a/tools/tiffcp.c
+++ b/tools/tiffcp.c
@@ -221,7 +221,7 @@ int main(int argc, char *argv[])
*mp++ = 'w';
*mp = '\0';
- while ((c = getopt(argc, argv, "m:,:b:c:f:l:o:p:r:w:aistBLMC8xh")) != -1)
+ while ((c = getopt(argc, argv, "m:,:b:c:f:l:o:p:r:w:astBLMC8xh")) != -1)
switch (c)
{
case 'm':
@@ -273,9 +273,6 @@ int main(int argc, char *argv[])
else
usage(EXIT_FAILURE);
break;
- case 'i': /* ignore errors */
- ignore = TRUE;
- break;
case 'l': /* tile length */
outtiled = TRUE;
deftilelength = atoi(optarg);
@@ -570,7 +567,6 @@ static const char usage_info[] =
" -L write little-endian instead of native byte order\n"
" -M disable use of memory-mapped files\n"
" -C disable strip chopping\n"
- " -i ignore read errors\n"
" -b file[,#] bias (dark) monochrome image to be subtracted from all "
"others\n"
" -,=% use % rather than , to separate image #'s (per Note "