[LLVMbugs] [Bug 8998] New: Assert valid target data string in LLVMCreateTargetData

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 18 02:57:33 PST 2011


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

           Summary: Assert valid target data string in
                    LLVMCreateTargetData
           Product: libraries
           Version: 2.8
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Target Description Classes
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: llvm at henning-thielemann.de
                CC: llvmbugs at cs.uiuc.edu, llvm at henning-thielemann.de


Please add an assert to LLVMCreateTargetData (i.e. the C++ function that it
calls), that checks whether the input string is correct. It seems that there is
no way to find out, if an input string is actually valid. If I pass "nonsense"
I get a non-NULL pointer as result (that is, the TargetDataRef does not show
me, that the input was wrong), and if I pass that to LLVMAddTargetData then
things go silently wrong in a very awful way.
See ticket #6394 for an example.
http://llvm.org/bugs/show_bug.cgi?id=6394

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