Linux kernel str*cpy() usage: $ for i in '' n l s; do j=str${i}cpy; echo -en "$j\t"; git grep '\b'"$j"'\b' | grep -Ev '^(Documentation|tools)/' | wc -l ; done strcpy 2490 strncpy 865 strlcpy 2361 strscpy 29
-
Show this thread
-
strcpy() conversions _should_ be pretty mechanical. strncpy() has some common "safe" patterns that convert to strscpy() mechanically. strlcpy() needs manual checking to see if the call-site depends on the trailing NUL padding (but of them, it's the "safest", so lower priority).
2 replies 0 retweets 3 likesShow this thread -
Replying to @kees_cook
historically such conversions have error rates in the 5% range... several of which will generate new security holes. buyer be aware basically
1 reply 0 retweets 0 likes
Replying to @fenruspdx
Yup. :( Too bad we can't use __deprecated any more. ;)
5:14 PM - 2 Sep 2018
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.