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