summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/wcscpy.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2005-04-13 03:46:28 +0000
committerderaadt <deraadt@openbsd.org>2005-04-13 03:46:28 +0000
commitc71fb469030dd0c1ab1abf47ac0571d46a57757a (patch)
tree1165e55245ab3dad86a8c3ebf6ea3a42aef50544 /lib/libc/string/wcscpy.c
parentTweak set source option testing. Don't offer nfs if no active interface (diff)
downloadwireguard-openbsd-c71fb469030dd0c1ab1abf47ac0571d46a57757a.tar.xz
wireguard-openbsd-c71fb469030dd0c1ab1abf47ac0571d46a57757a.zip
very unlikely overflow. but sticking to the idiom is important: thereby,
example by example, we teach people how to actually use snprintf. because it is clear (especially judging by code coming from netbsd hint hint perhaps if i say it like this they will finally learn) that people are not paying attention, and replacing one security problem with another. in the early days we replaced buffer the typical ANSI-C standardized function buffer overflows (by which I mean strcpy, strcat, and sprintf) with non-overflowing ones -- range checking varients. We knew we were fixing a major problem. The damn overflows. But we did not have time in all cases to handle the next problem we were not handling: string truncation. Now we need to (I hope not slowly) start fixing the string truncations. Anyone going to help?
Diffstat (limited to 'lib/libc/string/wcscpy.c')
0 files changed, 0 insertions, 0 deletions