Blame SOURCES/diffutils-3.7-false-positive.patch

2527e6
diff -up diffutils-3.7/lib/freopen-safer.c.me diffutils-3.7/lib/freopen-safer.c
2527e6
--- diffutils-3.7/lib/freopen-safer.c.me	2021-03-24 15:38:27.785170510 +0100
2527e6
+++ diffutils-3.7/lib/freopen-safer.c	2021-03-24 15:39:56.389523872 +0100
2527e6
@@ -49,6 +49,7 @@ protect_fd (int fd)
2527e6
         }
2527e6
       return false;
2527e6
     }
2527e6
+  /* coverity[leaked_handle : FALSE] */
2527e6
   return true;
2527e6
 }
2527e6
 
2527e6
diff -up diffutils-3.7/lib/regex_internal.c.me diffutils-3.7/lib/regex_internal.c
2527e6
--- diffutils-3.7/lib/regex_internal.c.me	2021-03-24 15:45:12.934308141 +0100
2527e6
+++ diffutils-3.7/lib/regex_internal.c	2021-03-24 15:48:06.165592478 +0100
2527e6
@@ -1724,6 +1724,7 @@ create_cd_newstate (const re_dfa_t *dfa,
2527e6
 		}
2527e6
 	      if (re_node_set_init_copy (newstate->entrance_nodes, nodes)
2527e6
 		  != REG_NOERROR)
2527e6
+		/* coverity[leaked_storage : FALSE] */
2527e6
 		return NULL;
2527e6
 	      nctx_nodes = 0;
2527e6
 	      newstate->has_constraint = 1;
2527e6
diff -up diffutils-3.7/src/analyze.c.me diffutils-3.7/src/analyze.c
2527e6
--- diffutils-3.7/src/analyze.c.me	2021-03-24 17:16:35.560137760 +0100
2527e6
+++ diffutils-3.7/src/analyze.c	2021-03-24 17:18:02.298846273 +0100
2527e6
@@ -688,6 +688,7 @@ diff_2_files (struct comparison *cmp)
2527e6
       for (f = 0; f < 2; f++)
2527e6
 	{
2527e6
 	  free (cmp->file[f].equivs);
2527e6
+     /* coverity[offset_free : FALSE] */
2527e6
 	  free (cmp->file[f].linbuf + cmp->file[f].linbuf_base);
2527e6
 	}
2527e6
 
2527e6
diff -up diffutils-3.7/src/diff3.c.me diffutils-3.7/src/diff3.c
2527e6
--- diffutils-3.7/src/diff3.c.me	2021-03-24 17:18:21.317231331 +0100
2527e6
+++ diffutils-3.7/src/diff3.c	2021-03-24 17:22:54.217398657 +0100
2527e6
@@ -795,6 +795,7 @@ using_to_diff3_block (struct diff_block
2527e6
 			      D_LINEARRAY (result, FILEC) + result_offset,
2527e6
 			      D_LENARRAY (result, FILEC) + result_offset,
2527e6
 			      D_NUMLINES (ptr, FC)))
2527e6
+	  /* coverity[leaked_storage : FALSE] */
2527e6
 	  return 0;
2527e6
       }
2527e6
 
2527e6
@@ -824,6 +825,7 @@ using_to_diff3_block (struct diff_block
2527e6
 				D_LINEARRAY (result, FILE0 + d) + result_offset,
2527e6
 				D_LENARRAY (result, FILE0 + d) + result_offset,
2527e6
 				D_NUMLINES (ptr, FO)))
2527e6
+	    /* coverity[leaked_storage : FALSE] */
2527e6
 	    return 0;
2527e6
 
2527e6
 	  /* Catch the lines between here and the next diff */
2527e6
diff -up diffutils-3.7/src/sdiff.c.me diffutils-3.7/src/sdiff.c
2527e6
--- diffutils-3.7/src/sdiff.c.me	2021-03-24 17:24:37.022988328 +0100
2527e6
+++ diffutils-3.7/src/sdiff.c	2021-03-24 17:25:39.145495628 +0100
2527e6
@@ -1169,5 +1169,6 @@ temporary_file (void)
2527e6
   fd = mkstemp (buf);
2527e6
   if (0 <= fd)
2527e6
     tmpname = buf;
2527e6
+  /* coverity[leaked_storage : FALSE] */
2527e6
   return fd;
2527e6
 }
2527e6
diff -up diffutils-3.7/src/util.c.me diffutils-3.7/src/util.c
2527e6
--- diffutils-3.7/src/util.c.me	2021-03-24 17:25:51.419067091 +0100
2527e6
+++ diffutils-3.7/src/util.c	2021-03-24 17:36:28.882404028 +0100
2527e6
@@ -699,6 +699,7 @@ parse_diff_color (void)
2527e6
         }
2527e6
       colors_enabled = false;
2527e6
     }
2527e6
+/* coverity[leaked_storage : FALSE] */
2527e6
 }
2527e6
 
2527e6
 static void