[llvm-bugs] [Bug 35096] New: UBSan "shift exponent 32 is too large for 32-bit type" on include/c++/v1/algorithm:3025:

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Oct 26 07:20:28 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=35096

            Bug ID: 35096
           Summary: UBSan "shift exponent 32 is too large for 32-bit type"
                    on include/c++/v1/algorithm:3025:
           Product: libc++
           Version: 5.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: brian.cain at gmail.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

"LLVM-Unit :: Support/./SupportTests/Parallel.sort" caught a UBSan failure
regarding the shift exponent in the algorithm header.


~~~~~~~~~~


******************** TEST 'LLVM-Unit :: Support/./SupportTests/Parallel.sort'
FAILED ********************
...
/local/mnt/workspace/install/clang_Aug_2017/bin/../include/c++/v1/algorithm:3025:17:
runtime error: shift exponent 32 is too large for 32-bit type

'std::__1::__independent_bits_engine<std::__1::mersenne_twister_engine<unsigned
long, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640
, 15, 4022730752, 18, 1812433253>, unsigned int>::result_type' (aka 'unsigned
int')
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior
/local/mnt/workspace/install/clang_Aug_2017/bin/../include/c++/v1/algorithm:3025:17
in

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171026/540cb136/attachment.html>


More information about the llvm-bugs mailing list