🚀 NEW on We ❤️ Open Source 🚀 C doesn’t provide memory safety by design, so str...
All Things Open @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.
https://allthingsopen.org/articles/strlcat-strlcpy-prevent-buffer-overflows