[LLVMbugs] [Bug 4247] New: [clang] An array overgflow occurs for 128 bit floats

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri May 22 16:56:27 PDT 2009


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

           Summary: [clang] An array overgflow occurs for 128 bit floats
           Product: new-bugs
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rich at pennware.com
                CC: llvmbugs at cs.uiuc.edu


In the function DefineFloatMacros, there is a 60 byte array (MacroBuf) used to
build up macro definitions. When floats are IEEE long double, the string placed
in the array is exactly 60 characters not including the trailing nul:
__LDBL_DENORM_MIN__=4.94065645841246544176568792868221e-324L

This can cause all sorts of strange behavior.

InitPreprocessor.cpp


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