]> 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>
Wed, 12 Jul 2017 08:34:26 +0000 (16:34 +0800)
commitffefeef5ea271735884d656afac7a4155a57c87f
tree3eb2f75841577acd5e078a40173a2039d4738e7e
parentcfbb1a652b559c7efcf101d9059d49beb8bc4bbe
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