Commit 28c185a8 authored by Denis Efremov's avatar Denis Efremov Committed by Julia Lawall

coccinelle: api: kfree_sensitive: print memset position

Print memset() call position in addition to the kfree() position to
ease issues identification.
Signed-off-by: default avatarDenis Efremov <efremov@linux.com>
Signed-off-by: default avatarJulia Lawall <julia.lawall@inria.fr>
parent 7b36c139
...@@ -85,14 +85,16 @@ type T; ...@@ -85,14 +85,16 @@ type T;
@script:python depends on report@ @script:python depends on report@
p << r.p; p << r.p;
m << r.m;
@@ @@
coccilib.report.print_report(p[0], msg = "WARNING opportunity for kfree_sensitive/kvfree_sensitive (memset at line %s)"
"WARNING: opportunity for kfree_sensitive/kvfree_sensitive") coccilib.report.print_report(p[0], msg % (m[0].line))
@script:python depends on org@ @script:python depends on org@
p << r.p; p << r.p;
m << r.m;
@@ @@
coccilib.org.print_todo(p[0], msg = "WARNING opportunity for kfree_sensitive/kvfree_sensitive (memset at line %s)"
"WARNING: opportunity for kfree_sensitive/kvfree_sensitive") coccilib.org.print_todo(p[0], msg % (m[0].line))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment