mbed TLS upgraded to 2.6.0

Fork of mbedtls by Mark Radbourne

scripts/find-mem-leak.cocci

Committer:
Jasper Wallace
Date:
2017-09-29
Revision:
2:bbdeda018a3c
Parent:
1:9ebc941037d5

File content as of revision 2:bbdeda018a3c:

@@
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