]> granicus.if.org Git - esp-idf/commit
mbedtls: Fix memory leak in initial ECDH exchange if OOM/failure occurs
authorAngus Gratton <angus@espressif.com>
Wed, 12 Jul 2017 08:34:26 +0000 (16:34 +0800)
committerAngus Gratton <gus@projectgus.com>
Thu, 13 Jul 2017 07:55:57 +0000 (15:55 +0800)
commit5d736f7eca485f81ff5eb9eb05d44f98f6e470cc
tree4cf9c5527611314cd9904a6c49cc04bb0c2fdd26
parentbdc499aea756aa8901e7d748670313e2b7d4cc67
mbedtls: Fix memory leak in initial ECDH exchange if OOM/failure occurs

In ecp_mul_comb(), if (!p_eq_g && grp->T == NULL) and ecp_precompute_comb() fails (which can happen due to OOM), then the new array of points T was leaked.
components/mbedtls/library/ecp.c