math: fail more often with FUZZY and HARD limits
commitb26f88666ed18b5fd2c579c355c99eb54c7d3696
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 23 May 2013 14:41:38 +0000 (23 17:41 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 23 May 2013 14:41:38 +0000 (23 17:41 +0300)
tree8b49100d4632542dd31c0c79bedcc41630397bba
parentd1685cb79a0ab467b4009efe15ecc9d1b558bd5c
math: fail more often with FUZZY and HARD limits

FUZZY and HARD are related because FUZZY is a tiny bit less restricted
than HARD.  This change makes them both more restricted and reduces the
number of "buffer overflow" false positives.

Function returns used to not be FUZZY so I have reverted to the old
behavior.  I will eventually want to store this information in the database
but it's not there now.

In handling subtraction then if we don't know one side then it doesn't
make sense to talk about HARD restrictions.  Although possibly FUZZY makes
sense...  I may change that later.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_math.c