blob: 5cfe4522da1bbeb10f06ae77c7f92f0df1668172 [file] [log] [blame]
Mansour Moufid961c6262015-02-17 13:07:29 -05001@@
2expression x, y;
3statement S;
4@@
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +02005 x = mbedtls_malloc(...);
6 y = mbedtls_malloc(...);
Mansour Moufid961c6262015-02-17 13:07:29 -05007 ...
8* if (x == NULL || y == NULL)
9 S
Mansour Moufid263438b2015-02-17 13:40:48 -050010
11@@
12expression x, y;
13statement S;
14@@
15 if (
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020016* (x = mbedtls_malloc(...)) == NULL
Mansour Moufid263438b2015-02-17 13:40:48 -050017 ||
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020018* (y = mbedtls_malloc(...)) == NULL
Mansour Moufid263438b2015-02-17 13:40:48 -050019 )
20 S