[PATCH v2] mpi: Fix error that point not uninitialized

Tianjia Zhang tianjia.zhang at linux.alibaba.com
Thu May 7 04:34:34 CEST 2020



On 2020/5/7 3:08, Werner Koch wrote:
> On Wed,  8 Jan 2020 21:36, Tianjia Zhang said:
>> * cipher/ecc-curves.c (mpi_ec_get_elliptic_curve): Initialize E->G poing
> 
> Do you have a bug report for this or how did you stepped on this?
> 
> 
> Shalom-Salam,
> 
>     Werner
> 

This was discovered when I developed the sm2 algorithm before. Calling 
_gcry_mpi_ec_internal_new() to generate an ec from ecc_domain_parms_t 
will cause a crash. It seems that there is no such usage in the existing 
code. For details, please refer to the earliest patch of sm2, Of course, 
this patch is not accepted.

https://lists.gnupg.org/pipermail/gcrypt-devel/2019-December/004862.html

Thanks and best,
Tianjia



More information about the Gcrypt-devel mailing list