address: return unknown if we can't figure out the offset
commit849481dffff47b5bc27c2954bdc7d29eebd6050c
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 4 Feb 2019 08:24:22 +0000 (4 11:24 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 4 Feb 2019 08:24:22 +0000 (4 11:24 +0300)
tree905cc73bab2348091419ad25fcc6efbf441e3bf6
parentc066f3c84fdcfc6325b2ec7cc030a49450b10777
address: return unknown if we can't figure out the offset

Sometimes we can't figure out the offset, like when we do:

&foo[unknown_value];

In that case, then get_address_rl() can't really work and we should return
failure.

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