mbedtls/scripts/find-mem-leak.cocci
Manuel Pégourié-Gonnard 2cf5a7c98e The Great Renaming
A simple execution of tmp/invoke-rename.pl
2015-04-08 13:25:31 +02:00

21 lines
269 B
Plaintext

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