We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
70 sk_fname = malloc(strlen(method_name) + strlen(".sk")); .... 78 strcpy(sk_fname, method_name); 79 strcat(sk_fname, ".sk");
Here, the size of sk_fname is only enough to contain method_name and ".sk" but not the zero at the end of ".sk".
sk_fname
method_name
To Reproduce This is a coding error.
Suggested Fix
- sk_fname = malloc(strlen(method_name) + strlen(".sk")); + sk_fname = malloc(strlen(method_name) + strlen(".sk") + 1);
The text was updated successfully, but these errors were encountered:
Thanks for the report! Created #1887 to fix.
Sorry, something went wrong.
SWilson4
Successfully merging a pull request may close this issue.
Describe the bug
Here, the size of
sk_fname
is only enough to containmethod_name
and ".sk" but not the zero at the end of ".sk".To Reproduce
This is a coding error.
Suggested Fix
The text was updated successfully, but these errors were encountered: