Today I tried to add crypto++ source files directly to my project. And
got the same result - application crashes even on simple operations.
For examlpe:
int APIENTRY WinMain(HINSTANCE /*hInstance*/, HINSTANCE /
*hPrevInstance*/, LPSTR /*lpCmdLine*/, int /*nCmdShow*/)
{
CryptoPP::StringSource strCr("abc", true /*pumpAll*/);
//...
}
Call stack:
> msvcr90.dll!memcpy(unsigned char * dst=0x0028f993, unsigned char *
> src=0x00000301, unsigned long count=1) Line 348 Asm
Starter.exe!CryptoPP::ArraySink::Put2(const unsigned char *
begin=0x00000301, unsigned int length=1, int messageEnd=0, bool
blocking=true) Line 513 + 0x42 bytes C++
Starter.exe!CryptoPP::BufferedTransformation::ChannelPut2(const
std::basic_string<char,std::char_traits<char>,std::allocator<char> > &
channel="", const unsigned char * begin=0x00000301, unsigned int
length=1, int messageEnd=0, bool blocking=true) Line 357 + 0x1e bytes
C++
Starter.exe!
CryptoPP::StringStore::CopyRangeTo2(CryptoPP::BufferedTransformation &
target={...}, unsigned __int64 & begin=0, unsigned __int64 end=1,
const
std::basic_string<char,std::char_traits<char>,std::allocator<char> > &
channel="", bool blocking=true) Line 1069 + 0x29 bytes C++
Starter.exe!
CryptoPP::BufferedTransformation::CopyRangeTo(CryptoPP::BufferedTransformation
& target={...}, unsigned __int64 position=0, unsigned __int64
copyMax=1, const
std::basic_string<char,std::char_traits<char>,std::allocator<char> > &
channel="") Line 912 + 0x41 bytes C++
Starter.exe!
CryptoPP::BufferedTransformation::CopyTo(CryptoPP::BufferedTransformation
& target={...}, unsigned __int64 copyMax=1, const
std::basic_string<char,std::char_traits<char>,std::allocator<char> > &
channel="") Line 908 + 0x23 bytes C++
Starter.exe!CryptoPP::BufferedTransformation::Peek(unsigned char *
outString=0x0028f993, unsigned int peekMax=1) Line 439 + 0x18 bytes C+
+
Starter.exe!CryptoPP::BufferedTransformation::Peek(unsigned char &
outByte=0) Line 430 C++
Starter.exe!CryptoPP::BufferedTransformation::AnyRetrievable() Line
401 + 0x11 bytes C++
Starter.exe!
CryptoPP::BufferedTransformation::TransferMessagesTo2(CryptoPP::BufferedTransformation
& target={...}, unsigned int & messageCount=0, const
std::basic_string<char,std::char_traits<char>,std::allocator<char> > &
channel="", bool blocking=true) Line 506 + 0xd bytes C++
Starter.exe!
CryptoPP::BufferedTransformation::TransferAllTo2(CryptoPP::BufferedTransformation
& target={...}, const
std::basic_string<char,std::char_traits<char>,std::allocator<char> > &
channel="", bool blocking=true) Line 555 + 0x19 bytes C++
Starter.exe!
CryptoPP::SourceTemplate<CryptoPP::StringStore>::PumpAll2(bool
blocking=true) Line 767 + 0x2d bytes C++
Starter.exe!CryptoPP::Source::PumpAll() Line 738 + 0x19 bytes C++
Starter.exe!CryptoPP::Source::SourceInitialize(bool pumpAll=true,
const CryptoPP::NameValuePairs & parameters={...}) Line 750 C++
Starter.exe!CryptoPP::StringSource::StringSource(const char *
string=0x01202dc0, bool pumpAll=true, CryptoPP::BufferedTransformation
* attachment=0x00000000) Line 786 + 0x9e bytes C++
Starter.exe!WinMain(HINSTANCE__ * __formal=0x00f20000, HINSTANCE__ *
__formal=0x00f20000, HINSTANCE__ * __formal=0x00f20000, HINSTANCE__ *
__formal=0x00f20000) Line 104 + 0x14 bytes C++
Starter.exe!__tmainCRTStartup() Line 578 + 0x1d bytes C
kernel32.dll!@BaseThreadInitThunk@12() + 0x12 bytes
ntdll.dll!___RtlUserThreadStart@8() + 0x27 bytes
ntdll.dll!__RtlUserThreadStart@8() + 0x1b bytes
I can't understand the reason of this strange behaviour.
Anton
--
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.