string-functions

标签

Cards List
#string-functions

Linux 移除 strncpy

Hacker News Top · 2026-06-26 缓存

Linux 内核历经六年、超过 360 个补丁,终于移除了危险的 strncpy 函数,改用 strscpy 等更安全的替代方案,确保 NULL 终止。

0 人收藏 0 人点赞
← 返回首页

提交意见反馈