This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Contents of Wei Dai's Crypto23.Zip - Segmentation fault with verification process
- To: philip dot rose at scitech dot co dot uk (Philip Rose)
- Subject: Re: Contents of Wei Dai's Crypto23.Zip - Segmentation fault with verification process
- From: hjl at lucon dot org (H.J. Lu)
- Date: Fri, 29 May 1998 14:48:08 -0700 (PDT)
- Cc: egcs at cygnus dot com
>
> Wei Dai has published an excellent set of cryptography routines, available
> by following the links from www.eskimo.com/~weidai
>
> Unfortunately, when compiling on an i586-gnulibc5 with egcs 1.0.1 or gcc
> 2.8.2, it the finished program insists on dumping core after the EC2N
> validation suite.
>
> Has anyone else had this problem? Can anyone help with this problem? Please?
>
> I know I've posted this before, but I didn't give any helpful information.
> Hope this helps...
>
>
I am 95% certain that it is a crypto++ bug. The problem is with
SecBlock<T>::~SecBlock(), which calls SecFree(ptr, size). I believe
"ptr" is a pointer to an object. That call is made a little bit too
early.
--
H.J. Lu (hjl@gnu.org)