linuxOS_D21X/source/artinchip/awtk-ui/awtk/3rd/mbedtls/scripts/find-mem-leak.cocci
2024-11-29 16:23:11 +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