commit | f5ffc79896681daddf7530646c0908f51a887dbd | [log] [tgz] |
---|---|---|
author | Janos Follath <janos.follath@arm.com> | Fri Jan 27 16:05:20 2017 +0000 |
committer | Simon Butcher <simon.butcher@arm.com> | Tue Feb 28 20:24:52 2017 +0000 |
tree | ab3e05a4ab9ea5098132832d303738c54600b385 | |
parent | 0990a8b4c54a39a30f143d1cf7ff35575c957fa8 [diff] |
ECP: Prevent freeing a buffer on stack The function ecp_mod_koblitz computed the space for the result of a multiplication optimally for that specific case, but unfortunately the function mbedtls_mpi_mul_mpi performs a generic, suboptimal calculation and needs one more limb for the result. Since the result's buffer is on the stack, the best case scenario is that the program stops. This only happened on 64 bit platforms. Fixes #569