blob: 8179e2b3ebd901e3d43a80f3312d1ecc315979a9 [file] [log] [blame] [raw]
Mansour Moufid961c6262015-02-17 13:07:29 -05001@@
2expression x, y;
3statement S;
4@@
Andres Amaya Garciafe948312017-07-06 10:34:12 +01005 x = mbedtls_calloc(...);
6 y = mbedtls_calloc(...);
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 (
Andres Amaya Garciafe948312017-07-06 10:34:12 +010016* (x = mbedtls_calloc(...)) == NULL
Mansour Moufid263438b2015-02-17 13:40:48 -050017 ||
Andres Amaya Garciafe948312017-07-06 10:34:12 +010018* (y = mbedtls_calloc(...)) == NULL
Mansour Moufid263438b2015-02-17 13:40:48 -050019 )
20 S