Here's an example of a buffer overflow. At best, this will just break your progr...
The FreeDOS Project @freedosproject@fosstodon.org
Here's an example of a buffer overflow. At best, this will just break your program. At worst, this could be a security issue.
You can prevent buffer overflows in several ways. This example shows working with strings using strlcat and strlcpy -- both are in Open Watcom C on #FreeDOS and gcc on #Linux
https://allthingsopen.org/articles/strlcat-strlcpy-prevent-buffer-overflows