I faced this very weird issue and i have no idea how to fix it. Code
directly from wiki example crashes on last line:
///////////////////////////////////////
// Pseudo Random Number Generator
AutoSeededRandomPool rng;
///////////////////////////////////////
// Generate Parameters
InvertibleRSAFunction params;
params.GenerateRandomWithKeySize( rng, 1024 );
Crash happens @ file misc.h, line 176 (sure source code is v5.6),
"return memset(ptr, value, num);". Ptr = 0x435525f000000000, num =
0x0000001000000000. Now num value confuses me, it seems way too big.
Im testing this on x64 platform btw. Exception text is as following:
First-chance exception at 0x000007feee9db0b0 (ggauth.dll) in
L2Server.exe: 0xC0000005: Access violation reading location
0xffffffffffffffff.
Some asm code where crash actually happens:
template <class T>
T GetValueWithDefault(const char *name, T defaultValue) const
{
GetValue(name, defaultValue);
return defaultValue;
000007FEEE8FBAED mov rdx,qword ptr [defaultValue]
000007FEEE8FBAF2 mov rcx,qword ptr [rsp+48h]
000007FEEE8FBAF7 call CryptoPP::Integer::Integer
(7FEEE8E9AE0h)
000007FEEE8FBAFC mov eax,dword ptr [rsp+20h]
000007FEEE8FBB00 or eax,1
000007FEEE8FBB03 mov dword ptr [rsp+20h],eax
000007FEEE8FBB07 mov rcx,qword ptr [defaultValue]
000007FEEE8FBB0C call CryptoPP::Integer::~Integer
(7FEEE8B74C0h) ;<----- HERE
000007FEEE8FBB11 mov rax,qword ptr [rsp+48h]
return
GetValue((std::string("ThisPointer:")+typeid(T).name()).c_str
(), p);
}
Destructor of Integer leads to crash as you see. Does anyone have any
idea how to fix it? Or maybe have a fix for this?
I found this very odd as i tried older versions, and they kept
crashing in different places of code with same exception. Im totally
lost whats happening here..
--~--~---------~--~----~------------~-------~--~----~
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.
-~----------~----~----~----~------~----~------~--~---