/illumos-gate/usr/src/tools/smatch/src/ |
H A D | check_debug.c | 124 arg = get_argument_from_call_expr(expr->args, 0); in match_print_known() 141 arg = get_argument_from_call_expr(expr->args, 0); in match_print_implied() 155 arg = get_argument_from_call_expr(expr->args, 0); in match_real_absolute() 169 arg = get_argument_from_call_expr(expr->args, 0); in match_print_implied_min() 186 arg = get_argument_from_call_expr(expr->args, 0); in match_print_implied_max() 207 arg = get_argument_from_call_expr(expr->args, 0); in match_user_rl() 223 arg = get_argument_from_call_expr(expr->args, 0); in match_capped() 235 arg = get_argument_from_call_expr(expr->args, 0); in match_print_hard_max() 252 arg = get_argument_from_call_expr(expr->args, 0); in match_print_fuzzy_max() 269 arg = get_argument_from_call_expr(expr->args, 0); in match_print_absolute() [all …]
|
H A D | check_kernel.c | 34 arg = get_argument_from_call_expr(call->args, 0); in implied_err_cast_return() 131 arg = get_argument_from_call_expr(call_expr->args, 0); in match_not_err() 147 arg = get_argument_from_call_expr(call_expr->args, 0); in match_err() 212 size_arg = get_argument_from_call_expr(call->args, 1); in match_next_bit() 244 arg = get_argument_from_call_expr(call->args, 0); in match_fls() 358 dest = get_argument_from_call_expr(call->args, 0); in match__write_once_size() 363 data = get_argument_from_call_expr(call->args, 1); in match__write_once_size() 389 data = get_argument_from_call_expr(call->args, 0); in match__read_once_size() 394 dest = get_argument_from_call_expr(call->args, 1); in match__read_once_size() 418 cl = get_argument_from_call_expr(call->args, 0); in match_closure_call() [all …]
|
H A D | smatch_strlen.c | 81 str = get_argument_from_call_expr(right->args, 0); in match_strlen() 114 str = get_argument_from_call_expr(left->args, 0); in match_strlen_condition() 118 str = get_argument_from_call_expr(right->args, 0); in match_strlen_condition() 171 dest = get_argument_from_call_expr(expr->args, 0); in match_snprintf() 172 dest_size_expr = get_argument_from_call_expr(expr->args, 1); in match_snprintf() 191 dest = get_argument_from_call_expr(expr->args, 0); in match_strlcpycat() 192 src = get_argument_from_call_expr(expr->args, 1); in match_strlcpycat() 193 limit_expr = get_argument_from_call_expr(expr->args, 2); in match_strlcpycat() 213 dest = get_argument_from_call_expr(expr->args, 0); in match_strcpy() 214 src = get_argument_from_call_expr(expr->args, 1); in match_strcpy()
|
H A D | check_snprintf_overflow.c | 32 dest = get_argument_from_call_expr(expr->args, 0); in match_snprintf() 33 dest_size_expr = get_argument_from_call_expr(expr->args, 1); in match_snprintf() 34 format_string = get_argument_from_call_expr(expr->args, 2); in match_snprintf() 35 data = get_argument_from_call_expr(expr->args, 3); in match_snprintf()
|
H A D | check_sprintf_overflow.c | 30 dest = get_argument_from_call_expr(expr->args, 0); in match_sprintf() 31 format_string = get_argument_from_call_expr(expr->args, 1); in match_sprintf() 32 data = get_argument_from_call_expr(expr->args, 2); in match_sprintf()
|
H A D | check_platform_device_put.c | 34 arg_expr = get_argument_from_call_expr(call_expr->args, 0); in match_added() 43 arg_expr = get_argument_from_call_expr(call_expr->args, 0); in match_not_added() 52 arg_expr = get_argument_from_call_expr(expr->args, 0); in match_platform_device_del()
|
H A D | check_kunmap.c | 47 arg = get_argument_from_call_expr(expr->args, 0); in match_kmap_atomic() 56 arg = get_argument_from_call_expr(expr->args, 0); in match_kunmap_atomic() 70 arg = get_argument_from_call_expr(expr->args, 0); in match_kunmap()
|
H A D | check_err_ptr_deref.c | 105 arg = get_argument_from_call_expr(call_expr->args, 0); in match_checked() 117 arg = get_argument_from_call_expr(call_expr->args, 0); in match_err() 136 arg = get_argument_from_call_expr(expr->args, arg_nr); in match_kfree() 178 arg = get_argument_from_call_expr(expr->args, 0); in match_err_ptr_positive_const() 196 arg = get_argument_from_call_expr(expr->args, 0); in match_err_ptr()
|
H A D | smatch_struct_assignment.c | 399 arg = get_argument_from_call_expr(call->args, param); in returns_container_of() 436 buf = get_argument_from_call_expr(expr->args, 0); in match_memset() 437 val = get_argument_from_call_expr(expr->args, 1); in match_memset() 448 dest = get_argument_from_call_expr(expr->args, 0); in match_memcpy() 449 src = get_argument_from_call_expr(expr->args, 1); in match_memcpy() 467 arg = get_argument_from_call_expr(right->args, 0); in match_memdup() 475 dest = get_argument_from_call_expr(expr->args, 0); in match_memcpy_unknown() 554 arg = get_argument_from_call_expr(expr->args, param); in db_param_cleared()
|
H A D | check_unwind.c | 63 arg_expr = get_argument_from_call_expr(expr->args, arg_no); in print_unwind_functions() 83 arg_expr = get_argument_from_call_expr(call_expr->args, arg_no); in request_granted() 99 arg_expr = get_argument_from_call_expr(call_expr->args, arg_no); in request_denied() 109 arg_expr = get_argument_from_call_expr(expr->args, arg_no); in match_release()
|
H A D | smatch_constraints_required.c | 220 arg = get_argument_from_call_expr(call->args, size_arg); in match_alloc() 235 size = get_argument_from_call_expr(call->args, start_arg); in match_calloc() 238 count = get_argument_from_call_expr(call->args, start_arg + 1); in match_calloc() 240 size = get_argument_from_call_expr(call->args, start_arg + 1); in match_calloc() 243 count = get_argument_from_call_expr(call->args, start_arg); in match_calloc() 353 arg = get_argument_from_call_expr(right->args, size_arg); in match_assign_data() 357 arg = get_argument_from_call_expr(right->args, size_arg2); in match_assign_data()
|
H A D | check_strcpy_overflow.c | 29 dest = get_argument_from_call_expr(expr->args, 0); in match_strcpy() 30 data = get_argument_from_call_expr(expr->args, 1); in match_strcpy()
|
H A D | check_proc_create.c | 39 arg_expr = get_argument_from_call_expr(expr->args, param_index[idx].mode_param); in match_create() 44 arg_expr = get_argument_from_call_expr(expr->args, param_index[idx].name_param); in match_create()
|
H A D | check_input_free_device.c | 43 arg = get_argument_from_call_expr(expr->args, 0); in match_input_unregister() 52 arg = get_argument_from_call_expr(expr->args, 0); in match_input_free()
|
H A D | check_release_resource.c | 37 arg_expr = get_argument_from_call_expr(expr->args, arg_no); in match_request() 55 arg_expr = get_argument_from_call_expr(expr->args, arg_no); in match_release()
|
H A D | check_string_len.c | 124 arg = get_argument_from_call_expr(call->args, *arg_nr); in handle_format() 184 expr = get_argument_from_call_expr(call->args, arg); in get_formatted_string_size_helper() 227 dest = get_argument_from_call_expr(call->args, params->buf_or_limit); in match_not_limited()
|
H A D | check_info_leak.c | 55 dest = get_argument_from_call_expr(expr->args, 0); in match_strcpy() 71 src = get_argument_from_call_expr(expr->args, 1); in match_copy_to_user()
|
H A D | check_kmalloc_wrong_size.c | 58 arg = get_argument_from_call_expr(call->args, 0); in match_alloc() 79 arg = get_argument_from_call_expr(call->args, arg_nr); in match_calloc()
|
H A D | smatch_common_functions.c | 27 str = get_argument_from_call_expr(call->args, 0); in match_strlen() 53 limit = get_argument_from_call_expr(call->args, 1); in match_strnlen()
|
H A D | check_dev_queue_xmit.c | 79 arg = get_argument_from_call_expr(expr->args, 0); in match_kfree_skb() 89 arg = get_argument_from_call_expr(expr->args, PTR_INT(param)); in match_xmit()
|
H A D | check_held_dev.c | 40 arg_expr = get_argument_from_call_expr(expr->args, 0); in match_dev_hold() 48 arg_expr = get_argument_from_call_expr(expr->args, 0); in match_dev_put()
|
H A D | check_capable.c | 32 arg = get_argument_from_call_expr(expr->args, 0); in match_capable() 48 arg = get_argument_from_call_expr(expr->args, 1); in match_ns_capable()
|
H A D | smatch_assigned_expr.c | 124 arg = get_argument_from_call_expr(expr->args, param); in record_param_assignment() 125 right = get_argument_from_call_expr(expr->args, right_param); in record_param_assignment()
|
H A D | check_frees_param_strict.c | 70 arg = get_argument_from_call_expr(expr->args, PTR_INT(param)); in match_free() 100 arg = get_argument_from_call_expr(expr->args, param); in set_param_freed()
|
H A D | smatch_strings.c | 65 dest = get_argument_from_call_expr(expr->args, 0); in match_strcpy() 66 src = get_argument_from_call_expr(expr->args, 1); in match_strcpy()
|