diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2014-11-18 18:34:51 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2014-11-18 18:34:51 +0000 |
commit | 3b600c8cda5162a35498707861cdecf72008b043 (patch) | |
tree | ac4b5e47cb1fd677f5cc0f5af46539a3d850d393 | |
parent | 1cac51cf951d2a6fbd32888f94c1f9bad50683af (diff) |
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); |