On Sunday, November 24, 2013 1:56:11 PM UTC-5, Franco Comida wrote:
>
> Hi all,
>
> I'm using CryptoPP in my project, I compiled it with VS 2010 and I'm
> having a segfault creating an HexEncoder.
>
> HexEncoder encoderPublic, encoderPrivate;
>
> the problem is in memcpy from secblock.h
>
> //! set contents and size
> void Assign(const T *t, size_type len)
> {
> New(len);
> memcpy_s(m_ptr, m_size*sizeof(T), t, len*sizeof(T));
> }
>
You probably have a memory problem prior to the HexEncoder. You should try
running your program under a memory checker like Valgrind.
Jeff
--
--
You received this message because you are subscribed to the "Crypto++ Users"
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at
http://www.cryptopp.com.
---
You received this message because you are subscribed to the Google Groups
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.