user_data2: handle pointers to user data better
commita1c6fd9f23cdecc8d3cbe791dd535d0e5717eb65
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 1 Jul 2015 10:52:15 +0000 (1 13:52 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 1 Jul 2015 10:52:15 +0000 (1 13:52 +0300)
treec21d7e79a98fdbcc60abfb36defa3e1427ac26e4
parent67a2b631f1f3557e9262974fc9d25d63cb581672
user_data2: handle pointers to user data better

There are a couple related issues here.  If you had a buffer containing
user data then we should record that *buf is USER_DATA.  But even if it
is a struct pointer containing user data and we have tagged the members,
we should still record that *p is USER_DATA in case the buffer gets
casted to something else.

This information needs to be recorded in caller_info etc.

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