overflow: automatically list functions that take a size parameter
commitee233fb046fa91ca25286a3cac0650271936b640
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 18 May 2012 08:35:31 +0000 (18 11:35 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Fri, 18 May 2012 08:35:31 +0000 (18 11:35 +0300)
tree2a2a2f44e3aafd2e0cf9f15d07ba00837b0f656a
parent7365609874eb46425d372a141c8e7b6c6b261548
overflow: automatically list functions that take a size parameter

Make a list of functions calls like this:
foo(x, sizeof(x), ...);
That way we can print a warning if someone calls foo() with a smaller x
and a large buffer size.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_list.h
check_overflow.c
check_passes_sizeof.c [new file with mode: 0644]
smatch_data/kernel.sizeof_param [new file with mode: 0644]
smatch_data/kernel.sizeof_param.remove [new file with mode: 0644]
smatch_scripts/gen_sizeof_param.sh [new file with mode: 0755]