Wei Dai wrote:This code looks fine and works for me with the current Crypto++ code in CVS.What version of Crypto++ are you using? And also I need a stack trace. After the debugger breaks at the exception, hit Alt-7 to open a call stack window and copy the information for me. On Thu, Jun 24, 2004 at 06:47:09PM +0300, Cornel Maftuleac wrote: The exception occurs when the "std::string EncryptionBuffer" is destructed, in this example on exit. Try using dynamic std::string instead of stack, and the exception will occur allso on destructor. Using CryptoPP Version 5.1 3/20/2003 Call stack: NTDLL! 77fa144b() NTDLL! 77fb6bcc() NTDLL! 77f81d44() KERNEL32! 7c4fb252() _CrtIsValidHeapPointer(const void * 0x002f41e8) line 1697 _free_dbg_lk(void * 0x002f41e8, int 1) line 1044 + 9 bytes _free_dbg(void * 0x002f41e8, int 1) line 1001 + 13 bytes free(void * 0x002f41e8) line 956 + 11 bytes operator delete(void * 0x002f41e8) line 7 + 9 bytes std::allocator<char>::deallocate(void * 0x002f41e8, unsigned int 33) line 64 + 38 bytes std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Tidy(unsigned char 1) line 592 std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >() line 59 + 39 bytes main() line 33 + 62 bytes mainCRTStartup() line 206 + 25 bytes KERNEL32! 7c4e87f5() |
- Re: CryptoPP 5.1 and Sun Studio 8 Johan Warman
- Re: CryptoPP 5.1 and Sun Studio 8 Dominik Stadler
- Re: CryptoPP 5.1 and Sun Studio 8 Dominik Stadler
- RE: CryptoPP 5.1 and Sun Studio 8 Walton, Jeffrey
- RE: CryptoPP 5.1 and Sun Studio 8 Johan Warman
- StreamTransformationFilter Class. Cornel Maftuleac
- Possibile BUG: External chipers used in ECB and ... Cornel Maftuleac
- Re: Possibile BUG: External chipers used in ... Wei Dai
- Re: Possibile BUG: External chipers used... Cornel Maftuleac
- Re: StreamTransformationFilter Class. Wei Dai
- Re: StreamTransformationFilter Class. Cornel Maftuleac
- Re: StreamTransformationFilter Class. Wei Dai
- Re: StreamTransformationFilter Clas... Cornel Maftuleac
