mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 06:16:42 +01:00
Add a semantic patch to remove casts of malloc.
This commit is contained in:
parent
539d972a25
commit
5b535de474
1 changed files with 7 additions and 0 deletions
7
scripts/rm-malloc-cast.cocci
Normal file
7
scripts/rm-malloc-cast.cocci
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
@rm_malloc_cast@
|
||||||
|
expression x, n;
|
||||||
|
type T;
|
||||||
|
@@
|
||||||
|
x =
|
||||||
|
- (T *)
|
||||||
|
polarssl_malloc(n)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue