[LLVMbugs] [Bug 6854] New: analyzer: Assertion `castTy->isIntegerType() fails when doing reinterpret casting

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 16 08:51:02 PDT 2010


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

           Summary: analyzer: Assertion `castTy->isIntegerType() fails
                    when doing reinterpret casting
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
        AssignedTo: kremenek at apple.com
        ReportedBy: jultay108 at googlemail.com
                CC: llvmbugs at cs.uiuc.edu


svn 101464 (Debug)

I get the assertion
clang: SimpleSValuator.cpp:116: virtual
clang::SVal<unnamed>::SimpleSValuator::EvalCastL(clang::Loc, clang::QualType):
Assertion `castTy->isIntegerType()' failed

when analyzing following code with scan-build gcc -c file.c:

void
crash(void * arg)
{
  void * a = arg;
  *(void**)a = arg;
  float f = *(float*) a;
}

it does not crash when one skips the assignment on the dereferenced left side
pointer or the reinterpret float cast.

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