On Feb 25, 9:38 am, "Galo Vinueza S." <[email protected]> wrote:
> Hello, i have a memory leak, using VS 2008 and a static version of the
> library, the code is as follow:
>
>         //make room for the biggest 4096 bits
>         BYTE bPriv[2400];
>         BYTE bPub[600];
>
>         DWORD dwPubSize =  0;
>         DWORD dwPrivSize = 0;
>
>         ZeroMemory(bPriv, 2400);
>         ZeroMemory(bPub, 600);
>
>         try
>         {
>                 ArraySink arrPriv(bPriv, 2400);
>                 ArraySink arrPub(bPub, 600);
>
>                 AutoSeededRandomPool _random;
>
>                 RSAES_OAEP_SHA_Decryptor _priv(_random, nKeyLength);
>                 _priv.DEREncode(arrPriv);
>
>                 RSAES_OAEP_SHA_Encryptor _pub(_priv);
>                 _pub.DEREncode(arrPub);
>
>                 dwPubSize = (DWORD)arrPub.TotalPutLength();
>                 dwPrivSize = (DWORD)arrPriv.TotalPutLength();
>          }
>          catch (...){}
>         ....some more code using the bPriv and bPub buffers....
>
> after executing this code, i end up with a memory leak
"Memory leaks reported by debug CRT inside typeinfo.name()",
http://connect.microsoft.com/VisualStudio/feedback/details/106937/memory-leaks-reported-by-debug-crt-inside-typeinfo-name

"Using Run-Time Type Info May Cause Memory Leak Report",
http://support.microsoft.com/kb/140670/

-- 
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.
  • Memory Leak Galo Vinueza S.
    • Re: Memory Leak Jeffrey Walton

Reply via email to