🚀 NEW on We ❤️ Open Source 🚀 C doesn’t provide memory safety by design, so str...

@allthingsopen@mastodon.social

🚀 NEW on We ❤️ Open Source 🚀

C doesn’t provide memory safety by design, so string operations require care.

Jim Hall demonstrates how strcpy and strcat can overflow a buffer, then shows how strlcpy and strlcat constrain writes to the destination size.

allthingsopen.org/articles/str

#WeLoveOpenSource #CProgramming #MemorySafety #OpenSource