[LLVMbugs] [Bug 10615] SIGFPE (div by 0) in clang::Sema::CheckArrayAccess

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 10 11:50:05 PDT 2011


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

Kaelyn Uhrain <rikka at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Kaelyn Uhrain <rikka at google.com> 2011-08-10 13:50:05 CDT ---
(In reply to comment #3)
> The crashing line is "uint64_t ratio = array_typesize / ptrarith_typesize;" in
> Sema::CheckArrayAccess.

What fun... pointer arithmetic involving a cast to a type with a zero size. Fix
to ensure ptrarith_typesize is always at least one (to handle void*) has been
submitted as r137234.

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