summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/string.3
diff options
context:
space:
mode:
authormillert <>1999-06-17 16:28:58 +0000
committermillert <>1999-06-17 16:28:58 +0000
commit119cda95bf950cdcba7a16178e7f48fdf84f58d0 (patch)
tree037ab4c3eafb97e4121e9fc27cbb82dbcc5a3b6d /src/lib/libc/string/string.3
parent05fa287fa4090ddc8e0efcfeec475b38bf9445e0 (diff)
downloadopenbsd-119cda95bf950cdcba7a16178e7f48fdf84f58d0.tar.gz
openbsd-119cda95bf950cdcba7a16178e7f48fdf84f58d0.tar.bz2
openbsd-119cda95bf950cdcba7a16178e7f48fdf84f58d0.zip
When finding the end of dst, never traverse more than siz bytes. This
keeps us from misbehaving if the user gives us a src string that is not NUL-terminated. This is one of those "should not happen" cases but it is good to play it safe. Pointed out by Casper Dik <casper@holland.sun.com>
Diffstat (limited to 'src/lib/libc/string/string.3')
0 files changed, 0 insertions, 0 deletions