From: Andreas Schneider Date: Tue, 9 Jun 2020 15:00:24 +0000 (+0200) Subject: talloc: Mark ptr of talloc_unlink() not as a tainted scalar X-Git-Tag: ldb-2.2.0~169 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e922b75d0a28a4c882863150af73161f019fdb3;p=thirdparty%2Fsamba.git talloc: Mark ptr of talloc_unlink() not as a tainted scalar This should address a lot of issues reported by Coverity. Signed-off-by: Andreas Schneider Reviewed-by: Volker Lendecke --- diff --git a/lib/talloc/talloc.c b/lib/talloc/talloc.c index 518ffbdbfdf..e476f3e2d05 100644 --- a/lib/talloc/talloc.c +++ b/lib/talloc/talloc.c @@ -1438,6 +1438,8 @@ static inline int talloc_unreference(const void *context, const void *ptr) remove a specific parent context from a pointer. This is a more controlled variant of talloc_free() */ + +/* coverity[ -tainted_data_sink : arg-1 ] */ _PUBLIC_ int talloc_unlink(const void *context, void *ptr) { struct talloc_chunk *tc_p, *new_p, *tc_c;