Skip to content

Conversation

@ya1gaurav
Copy link

Added to avoid possible Null Pointer dereference.

Added to avoid possible Null Pointer dereference.
In case if condition ad line 776 is false, value of errp_arg will be NULL which is dereference in call v_execute_function (S_name, u_variable, erpp_arg); at line 802. this  causes crash.
sprintf can cause buffer overflow problem as it does not check length of src. snprintf takes only given no of bytes and hence avoids buffer overflow problem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant