This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Contents of Wei Dai's Crypto23.Zip - Segmentation fault with verification process


> 
> 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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]