math: check for overflows when calculating the max
commit48c2cc03bc3a50de2aaa70ff09cdeef8d03dab2e
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 23 Nov 2012 06:39:32 +0000 (23 09:39 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Fri, 23 Nov 2012 06:39:32 +0000 (23 09:39 +0300)
treef753118b413fff0ed8af5b3b0d1a8d4604f9e489
parenteb3f1826060357e42bee29b4e310364a90c4b582
math: check for overflows when calculating the max

If it overflows then return the max for the type.

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