Rivoreo Source Code Repositories
src.rivoreo.one
/
security
/
mbedtls
/
488c08c00b0068ee5a67042e6068a3587f4d36e4
/
.
/
scripts
/
find-mem-leak.cocci
blob: 5cfe4522da1bbeb10f06ae77c7f92f0df1668172 [
file
] [
log
] [
blame
] [
raw
]
@@
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