overflow: fix false positive allocating a void pointer
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 4 Feb 2013 14:25:38 +0000 (17:25 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 4 Feb 2013 14:25:38 +0000 (17:25 +0300)
commitac067bde67c2e200120380b1e0e093e6bae01e69
treed06b04ba40776b28f4c8dacd349724e3b99d8216
parent158582e1dbe1ea175e69463e7f9abb0f67563728
overflow: fix false positive allocating a void pointer

For a void pointer the bytes is -1.  Also if it says we are allocating a
negative number of bytes that's probably bogus.  Treat it as a large
positive by using sval.uvalue instead of sval.value.

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