user_data: introduce implied_user_data()
commitd375b254937e6d34e3206cd4567cd4424b99dce8
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 7 May 2014 14:05:04 +0000 (7 17:05 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 7 May 2014 14:05:04 +0000 (7 17:05 +0300)
treef15afa2269f7ffe4531cab76e96724a647a02c7f
parentc8f7453339058d94135783a4ee7983076d96c3aa
user_data: introduce implied_user_data()

Eventually instead of just tainting data as user_data, I want to say how
much the user can actually control.  For example, say we read a u8 from
the user but we pass it to a function and we also pass an unknown u32 to
the function.  In the current code, smatch assumes that the user can
control u32 bits of data but actually it is only a u8 of data that the
user controls.

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