On Friday, July 31, 2015 at 2:55:59 PM UTC-4, Jeffrey Walton wrote:
>
>
> 1) I have found a way of copying text from Windows Command Line, so here 
>> is the first unsolved problem.
>> On MinGW-32, the *cryptest.exe v *with CRYPTOPP_NO_UNALIGNED_ACCESS 
>> defined crashes with SIGSEGV:
>>
>
> The problem appears to be with MinGW's automatic PIC. You should file a 
> bug report with the MinGW project.
>
> I can reproduce with the following...
>

Here's the last piece to the puzzle: GlobalRNG() needed to be dynamic_cast, 
and not static_cast. I used the static_cast because I prefer to do 
everything early. In this case, I was attempting to do the type checking at 
compile time. But we needed the polymorphism to get things to work properly.

None of the compilers warned against it. It showed up as a finding unde 
Undefined Behavior sanitizer.

The fix was committed a few hours ago: 
https://github.com/weidai11/cryptopp/commit/fd300a1c90c3c943cac2cf62af06d0dab28f9d64.

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/d/optout.

Reply via email to