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:
1:9ebc941037d5

File content as of revision 1:9ebc941037d5:

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