Here's an example of a buffer overflow. At best, this will just break your progr...

@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

allthingsopen.org/articles/str