talloc: Mark ptr of talloc_unlink() not as a tainted scalar
authorAndreas Schneider <asn@samba.org>
Tue, 9 Jun 2020 15:00:24 +0000 (17:00 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 9 Jun 2020 16:02:59 +0000 (16:02 +0000)
This should address a lot of issues reported by Coverity.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
lib/talloc/talloc.c

index 518ffbdbfdf54e42372ca8c1109dcc220cce5e52..e476f3e2d052ad4ff8f48d3f59861ed4e2ed85fd 100644 (file)
@@ -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;