mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Add a semantic patch to remove casts of malloc.
This commit is contained in:
committed by
Manuel Pégourié-Gonnard
parent
671589d9a2
commit
fd9afb29d3
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)
|
Reference in New Issue
Block a user