pineapple/externals/mbedtls/scripts/find-mem-leak.cocci
2020-12-28 15:15:37 +00:00

20 lines
269 B
Text
Executable file

@@
expression x, y;
statement S;
@@
x = mbedtls_calloc(...);
y = mbedtls_calloc(...);
...
* if (x == NULL || y == NULL)
S
@@
expression x, y;
statement S;
@@
if (
* (x = mbedtls_calloc(...)) == NULL
||
* (y = mbedtls_calloc(...)) == NULL
)
S