buf_comparison: copy the code from smatch_constraints.c
commit5e55933d8a7d742d19034b3f29d9e5c7957be2d4
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 21 Nov 2017 11:45:31 +0000 (21 14:45 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 21 Nov 2017 11:45:31 +0000 (21 14:45 +0300)
treeb8994b23a47667bb6527fa37414c6ccb9ccdd466
parent664b1a99ec15b31d69fb4e284f5546303d552aae
buf_comparison: copy the code from smatch_constraints.c

This code is basically the same as smatch_constraints.c.  We're trying to
link the size variable and the buffer.  So I've copied the improvements
from smatch_constraints.c to here as well.

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