Fatal: memory at 0x804a3dc corrupted (underflow=40)

Timo Schulz twoaday@freakmail.de
Tue, 22 Oct 2002 19:27:16 +0200


On Tue Oct 22 2002; 21:01, Ruediger Sonderfeld wrote:

> int wcrypt_pkdecrypt(pkalgo algo,const encrypted_data *data,unsigned char* 
> to,size_t tn,pkkey key)

[snip]
>     
>     if(gcry_sexp_build(&s_data,NULL,"(enc-val(rsa(a%m)))",data[0])) 
> //<----here the error occures
>       return -1;

The SEXP structure expects a MPI (GCRY_MPI=%m) but you use a
const structure (encrypted_data) and this might the problem.

BTW, it's propably the best you use a debugger to take a closer look
at the specific variables and pointers.


        Timo