...
Code Block | ||
---|---|---|
| ||
char *loop_ptr; int *int_ptr; int *loop_function(void *v_pointer) { /* ... */ return v_pointer; } int_ptr = loop_function(loop_ptr); |
...
Because the input parameter directly influences the return value, and loopFunctionloop_function()
returns an int *
, the formal parameter v_pointer
is redeclared to only accept int *
.
Code Block | ||
---|---|---|
| ||
int *loop_ptr; int *int_ptr; int *loopFunctionloop_function(int *v_pointer) { /* ... */ return v_pointer; } int_ptr = loopFunctionloop_function(loop_ptr); |
Risk Assessment
...