Open jason-c-daniels opened 7 years ago
Regarding sprintf
-- this function is only used in 3 places:
Aria tries to keep strictly to C89. If a specific compiler refuses to compile because sprintf
is being used I would be willing to add a an ifdef-wrapped define (or something to this effect) to pacify these warnings/errors, but to keep in line with the project's goal of minimalism and C89 compatibility I wouldn't be willing to replace these functions with the C99/11 alternatives.
I'll work up an #ifdef macro to do this and submit a pull request, since VS2015 with security checking is what's barking about this. I pulled aria into it for memory profiling for potential leak detection. (I found none)
Use Case: Consuming applications need to be as secure as possible. They can be no more secure than their least secure component. By securing the features using these functions you improve the security of client applications.
Estimated Impact:
Cons: There will be some extra coding will need to be done around fopen_s as it returns an error code value. Pros: