[analyzer] Teach CastSizeChecker about flexible array members.

Press ? to show keyboard shortcuts.
Committed
jroseFeb 18 2014, 9:06 AM
Parents
rL201582: [mips] Add support for ELF64-mips and the R_MIPS_32/R_MIPS_64 relocs for it.
Branches
Unknown
Tags
Unknown
Subscribers
None
Description

[analyzer] Teach CastSizeChecker about flexible array members.

...as well as fake flexible array members: structs that end in arrays with
length 0 or 1.

Patch by Daniel Fahlgren!

rL201583

cfe/trunk/lib/StaticAnalyzer/Checkers/CastSizeChecker.cpp

Loading...

cfe/trunk/test/Analysis/malloc.c

Loading...

cfe/trunk/test/Analysis/no-outofbounds.c

Loading...

Add Comment