Skip to content
New issue

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

Consider using _s variants of string functions #34

Open
sean-gilliam opened this issue Oct 20, 2019 · 0 comments
Open

Consider using _s variants of string functions #34

sean-gilliam opened this issue Oct 20, 2019 · 0 comments
Labels
security security flaw related bug

Comments

@sean-gilliam
Copy link
Collaborator

Since bare strcpy, sprintf, strcat, and their ilk are prone to security risks like buffer overflows and the like,
While we're updating the code, we should consider using the more secure _s variants of string functions (strcpy_s, sprintf_s, strcat_s, etc)

https://en.cppreference.com/w/c/string/byte/strcpy

https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/strcpy-s-wcscpy-s-mbscpy-s?view=vs-2019

@sean-gilliam sean-gilliam added the security security flaw related bug label Oct 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security security flaw related bug
Projects
None yet
Development

No branches or pull requests

1 participant