From 9e922b75d0a28a4c882863150af73161f019fdb3 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 9 Jun 2020 17:00:24 +0200 Subject: 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 --- lib/talloc/talloc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/talloc') 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; -- cgit v1.2.1