RC RANDOM CHAOS

c-programming

2 posts

Kees Cook deleted strncpy from the Linux kernel
Article

Kees Cook deleted strncpy from the Linux kernel

Linux 7.2 removed strncpy after six years and about 362 commits. Here are the strscpy, strtomem_pad and memcpy replacements and when to use each.

Linux kernel deleted strncpy across 360 patches
Article

Linux kernel deleted strncpy across 360 patches

Linux 7.2 removed strncpy() from the kernel after six years and 362 commits. What the replacements are and how to port out-of-tree code.