Deletion of checks before specific function calls in Linux source files

Edit Package Deletion_of_checks_before_specific_function_calls_in_Linux_source_files

A couple of functions performs input parameter validation before their implementations will try further actions with side effects. Some calling functions perform similar safety checks.

Functions which release a system resource are occasionally documented in the way that they tolerate the passing of a null pointer for example.
There is mostly no need because of this fact that a function caller repeats a corresponding check.

Semantic patch patterns can help to identify update candidates also in Linux source files.

Refresh
Refresh
Source Files
Filename Size Changed
COPYING 0000018092 17.7 KB
Deletion_of_checks_before_specific_function_calls_in_Linux_source_files.spec 0000004189 4.09 KB
delete_unnecessary_checks_template-with_static1.cocci 0000017398 17 KB
delete_unnecessary_checks_template1.cocci 0000000873 873 Bytes
find_functions_with_unnecessary_checks1-inc.make 0000000905 905 Bytes
find_functions_with_unnecessary_checks1.make 0000001397 1.36 KB
find_functions_with_unnecessary_checks_template-with_static1.cocci 0000007885 7.7 KB
find_input_parameter_validation-inc.make 0000002404 2.35 KB
find_input_parameter_validation1.cocci 0000018181 17.8 KB
find_input_parameter_validation1.make 0000001413 1.38 KB
find_input_parameter_validation2-inc.make 0000000989 989 Bytes
find_input_parameter_validation2.cocci 0000014154 13.8 KB
find_input_parameter_validation2.make 0000001490 1.46 KB
find_input_parameter_validation_template-with_static2.cocci 0000005941 5.8 KB
handle_function_list_template-with_static.pgl 0000000635 635 Bytes
handle_function_list_template-with_static.sqlite 0000000350 350 Bytes
handle_function_list_template.sqlite 0000000314 314 Bytes
list_functions_with_unnecessary_checks-with_static1.py 0000004248 4.15 KB
list_functions_with_unnecessary_checks_template-with_static1.cocci 0000011667 11.4 KB
list_functions_with_unnecessary_checks_template1.cocci 0000001934 1.89 KB
list_input_parameter_validation-with_static1.py 0000004404 4.3 KB
list_input_parameter_validation1.cocci 0000001987 1.94 KB
list_input_parameter_validation2.cocci 0000020704 20.2 KB
list_input_parameter_validation_template-with_static2.cocci 0000007682 7.5 KB
makefile 0000017487 17.1 KB
overview1.odg 0000041369 40.4 KB
parallel-inc.make 0000019443 19 KB
patch_functions_with_unnecessary_checks1-inc.make 0000000902 902 Bytes
patch_functions_with_unnecessary_checks1.make 0000001436 1.4 KB
preparation.sql 0000000626 626 Bytes
preparation.sqlite 0000000675 675 Bytes
Latest Revision
Markus Elfring's avatar Markus Elfring (elfring) committed (revision 35)
Two typos were fixed.

The wording was adjusted for two file names.
Comments 0
openSUSE Build Service is sponsored by