libtiff: Revert "Remove -i option (ignore errors) from tiffcp, because almost all fuzzer issues were consequential errors from ignored...

From 1c3ecce8498f634346a7030b1859faca24e126f5 Mon Sep 17 00:00:00 2001
From: Su_Laus <[EMAIL REDACTED]>
Date: Sat, 11 May 2024 16:52:35 +0200
Subject: [PATCH] Revert "Remove -i option (ignore errors) from tiffcp, because
 almost all fuzzer issues were consequential errors from ignored errors
 because of the "-i" option."

This reverts commit 280a568ae887c27a422a5da862398ffdbcd9b84d.
---
 tools/tiffcp.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tools/tiffcp.c b/tools/tiffcp.c
index ebff4721..650544e3 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:astBLMC8xh")) != -1)
+    while ((c = getopt(argc, argv, "m:,:b:c:f:l:o:p:r:w:aistBLMC8xh")) != -1)
         switch (c)
         {
             case 'm':
@@ -273,6 +273,9 @@ 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);
@@ -567,6 +570,7 @@ 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 "