sprintf
is unsafe because it doesn’t check the length of the destination buffer. This can cause the function to overflow the destination buffer when the result of the format string is unexpectedly long, leading to security issues and application instability.
1 response to What’s wrong with sprintf anyways?