diff options
author | 2014-11-18 18:34:50 +0000 | |
---|---|---|
committer | 2014-11-18 18:34:50 +0000 | |
commit | 7dcd9d9193ee40628318faa6a1f2d0d7da9737bf (patch) | |
tree | 2116ad1480829ffc34b86698d080ce1b96bce21d | |
parent | sync (diff) | |
download | wireguard-openbsd-7dcd9d9193ee40628318faa6a1f2d0d7da9737bf.tar.xz wireguard-openbsd-7dcd9d9193ee40628318faa6a1f2d0d7da9737bf.zip |
Add __attribute__((__bounded__)) to arc4random_buf().
ok deraadt@ tedu@
-rw-r--r-- | sys/sys/systm.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/sys/systm.h b/sys/sys/systm.h index 2285c077cbc..9587c7a586f 100644 --- a/sys/sys/systm.h +++ b/sys/sys/systm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: systm.h,v 1.103 2014/11/18 02:37:31 tedu Exp $ */ +/* $OpenBSD: systm.h,v 1.104 2014/11/18 18:34:50 miod Exp $ */ /* $NetBSD: systm.h,v 1.50 1996/06/09 04:55:09 briggs Exp $ */ /*- @@ -215,7 +215,8 @@ int copyin(const void *, void *, size_t) __attribute__ ((__bounded__(__buffer__,2,3))); int copyout(const void *, void *, size_t); -void arc4random_buf(void *, size_t); +void arc4random_buf(void *, size_t) + __attribute__ ((__bounded__(__buffer__,1,2))); u_int32_t arc4random(void); u_int32_t arc4random_uniform(u_int32_t); |