[PATCH 1/2] ecc-eddsa: free memory also when in error branch.

Werner Koch wk at gnupg.org
Thu Aug 6 14:55:43 CEST 2015


On Wed,  5 Aug 2015 14:27, ismo.puustinen at intel.com said:

> -    return GPG_ERR_INTERNAL; /* We only support 256 bit. */
> +  if (b != 256/8) {
> +    rc = GPG_ERR_INTERNAL; /* We only support 256 bit. */
> +    goto leave;

Not quite correct.  You forgot to init DIGEST which would have been free
but not initialized.  I fixed that.


Shalom-Salam,

   Werner


-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gcrypt-devel mailing list