MCUXpresso_LPC55S69/middleware/mbedtls/scripts/find-mem-leak.cocci
2022-04-08 22:42:47 +08:00

21 lines
269 B
Plaintext

@@
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