Files
phs_v1.0.1.0/third_party/mbedtls/scripts/find-mem-leak.cocci

21 lines
269 B
Plaintext
Raw Normal View History

2024-09-27 19:21:56 +08:00
@@
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