summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorcanacar <canacar@openbsd.org>2007-11-03 19:06:07 +0000
committercanacar <canacar@openbsd.org>2007-11-03 19:06:07 +0000
commitf124c27691f63b5b7531e2cc5b8c64f528cb6ec7 (patch)
tree03a28d69cc33341a42435230062e650445c7396c /lib/libc
parentfix fp div by zero in a target dependent way; problem reported by (diff)
downloadwireguard-openbsd-f124c27691f63b5b7531e2cc5b8c64f528cb6ec7.tar.xz
wireguard-openbsd-f124c27691f63b5b7531e2cc5b8c64f528cb6ec7.zip
Fix setting values to buffers by obeying the conversion rules.
The values are truncated or zero extended as required. The spec is somewhat ambigious on strings and integers requiring truncation "before copy" so we try to be safe and zero terminate the buffer in case the source is string. Reported by ckuethe@, diagnosis, initial diff and feedback by kettenis@ ok kettenis@, beck@, weingart@, robert@, gwk@, ckuethe@
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions