http://llvm.org/bugs/show_bug.cgi?id=8950

           Summary: Crypto++ validation test crashes in IDEA code
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


Created an attachment (id=5981)
 --> (http://llvm.org/bugs/attachment.cgi?id=5981)
Replacement makefile (uses clang, removes -O2)

This looks like a codegen error; but I'm not 100% sure.

To reproduce:
1) Get crypto++ from here: "svn co
https://cryptopp.svn.sourceforge.net/svnroot/cryptopp/trunk/c5 cryptopp"
2) Replace GNUMakefile with one from this bug report.
3) make test
--> segmentation fault

Running under gdb shows:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x0000000000000000
0x000000010017d7a0 in CryptoPP::IDEA::Base::DeKey (this=0x100d04ba0) at
idea.cpp:141
141            tempkey[i*6+5] =        m_key[(ROUNDS-1-i)*6+5];

and some poking around shows that i == 0, and that the sizes of the arrays are
ok.

More questions? Drop me a line.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to