address: fix add_offset_to_pointer()
commit6da5d276b17b02a01297e05b803858454e060704
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 25 Jul 2018 07:49:31 +0000 (25 10:49 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 25 Jul 2018 07:49:31 +0000 (25 10:49 +0300)
treec712e7c574f5dd132097f95a2170d87c9d23d5cd
parentd79671fe59b3f77ac988b708adeba65dc1d518ea
address: fix add_offset_to_pointer()

The problem is I was taking an mtag and adding an offset like so
"&foo->bar" where foo has an mtag and this function was returning an
empty rl.

Then the other problem was that I changed rl_binop() to take alignment
into consideration.  In this function we're not doing pointer math, we are
just adding 16 bytes to &foo.

Instead of figuring out the exact issue, I just re-wrote the function.

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