aboutsummaryrefslogtreecommitdiff
path: root/lib/mbedtls-2.27.0/scripts/rm-calloc-cast.cocci
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mbedtls-2.27.0/scripts/rm-calloc-cast.cocci')
-rw-r--r--lib/mbedtls-2.27.0/scripts/rm-calloc-cast.cocci7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/mbedtls-2.27.0/scripts/rm-calloc-cast.cocci b/lib/mbedtls-2.27.0/scripts/rm-calloc-cast.cocci
new file mode 100644
index 0000000..89481c0
--- /dev/null
+++ b/lib/mbedtls-2.27.0/scripts/rm-calloc-cast.cocci
@@ -0,0 +1,7 @@
+@rm_calloc_cast@
+expression x, n, m;
+type T;
+@@
+ x =
+- (T *)
+ mbedtls_calloc(n, m)