[cfe-commits] [patch] Fix CastSizeChecker to handle sizeless types

Ted Kremenek kremenek at apple.com
Fri Jun 18 17:18:25 PDT 2010


Looks good to me.

On Jun 18, 2010, at 4:05 PM, Jordy Rose wrote:

> Casting to void* or any other pointer-to-sizeless type (e.g. function
> pointers) causes a divide-by-zero error. Simple fix: check if the pointee
> type size is 0 and bail out early if it is.
> <void-ptr-cast.patch>_______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list