function_hooks, db: handle PARAM_LIMIT for struct members
commitf8d6258b41e2599efee5bb3eab05f8ac927571a4
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 10 Jan 2017 14:51:35 +0000 (10 17:51 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 10 Jan 2017 14:51:35 +0000 (10 17:51 +0300)
tree3cf85f2d47b9f3f6ae7fa2099bc2411f99ff79f1
parentc8083b727d5df89f604aabc87491f86115abee63
function_hooks, db: handle PARAM_LIMIT for struct members

Say you have a function call:

frob(foo, bar);

The original code could say things like if foo is NULL we will return
-EINVAL, but it didn't say things like if foo->member is NULL we return
whatever.  With this change that's possible now.

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