Skip to content

Commit aa94f7e

Browse files
committed
hygiene, make xstrndup() act sanitising
1 parent 1c8cb34 commit aa94f7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/clitosis.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*** clitosis.c -- command-line-interface tester on shell input syntax
22
*
3-
* Copyright (C) 2013-2020 Sebastian Freundt
3+
* Copyright (C) 2013-2021 Sebastian Freundt
44
*
55
* Author: Sebastian Freundt <freundt@ga-group.nl>
66
*
@@ -318,6 +318,7 @@ xmemmem(const char *hay, const size_t hayz, const char *ndl, const size_t ndlz)
318318
return NULL;
319319
}
320320

321+
/* coverity[-tainted_data_sink: arg-0] */
321322
static char*
322323
xstrndup(const char *s, size_t z)
323324
{

0 commit comments

Comments
 (0)