[LLVMbugs] [Bug 9326] New: libc++ input streaming fails on out of bounds types of long or bigger

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Feb 25 10:43:55 PST 2011


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

           Summary: libc++ input streaming fails on out of bounds types of
                    long or bigger
           Product: libc++
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
        AssignedTo: hhinnant at apple.com
        ReportedBy: chris at bubblescope.net
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=6236)
 --> (http://llvm.org/bugs/attachment.cgi?id=6236)
Test case for testing bounds of parsing of integer types.

The attached test case tries parsing in, for various integral types, values one
bigger and one smaller than the type supports. 

This works correctly for short and int, but in libc++ fails for long and larger
types. 

This code works correctly with clang using libstdc++.

I give permission for the attached file, or a modified version of it, to be
used in the libc++ testsuite, if you want it.

-- 
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.



More information about the llvm-bugs mailing list