--- old/src/share/native/sun/security/ec/impl/ecc_impl.h 2014-05-27 12:59:28.369804000 -0700 +++ new/src/share/native/sun/security/ec/impl/ecc_impl.h 2014-05-27 12:59:28.191803000 -0700 @@ -43,6 +43,7 @@ extern "C" { #endif +#include #include #include "ecl-exp.h" @@ -101,12 +102,22 @@ #define PORT_ArenaGrow(a, b, c, d) NULL #define PORT_ZAlloc(n, f) kmem_zalloc((n), (f)) #define PORT_Alloc(n, f) kmem_alloc((n), (f)) +#define PORT_ZFree(p, l) \ + do { \ + memset((p), 0, (l)); \ + kmem_free((p), (l)); \ + } while (0) #else #define PORT_ArenaAlloc(a, n, f) malloc((n)) #define PORT_ArenaZAlloc(a, n, f) calloc(1, (n)) #define PORT_ArenaGrow(a, b, c, d) NULL #define PORT_ZAlloc(n, f) calloc(1, (n)) #define PORT_Alloc(n, f) malloc((n)) +#define PORT_ZFree(p, l) \ + do { \ + memset((p), 0, (l)); \ + free((p)); \ + } while (0) #endif #define PORT_NewArena(b) (char *)12345