FreeBSD Bugzilla – Attachment 196373 Details for
Bug 230764
devel/libevent: Don't use arc4random_addrandom
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
libevent.diff (text/plain), 1.19 KB, created by
Xin LI
on 2018-08-20 05:05:25 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Xin LI
Created:
2018-08-20 05:05:25 UTC
Size:
1.19 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 477619) >+++ Makefile (working copy) >@@ -3,7 +3,7 @@ > > PORTNAME= libevent > PORTVERSION= 2.1.8 >-PORTREVISION= 1 >+PORTREVISION= 2 > DISTVERSIONPREFIX= release- > DISTVERSIONSUFFIX= -stable > CATEGORIES= devel >Index: files/patch-evutil__rand.c >=================================================================== >--- files/patch-evutil__rand.c (nonexistent) >+++ files/patch-evutil__rand.c (working copy) >@@ -0,0 +1,13 @@ >+--- evutil_rand.c.orig 2017-01-25 23:37:15 UTC >++++ evutil_rand.c >+@@ -195,8 +195,10 @@ evutil_secure_rng_get_bytes(void *buf, size_t n) >+ void >+ evutil_secure_rng_add_bytes(const char *buf, size_t n) >+ { >++#ifdef arc4random_addrandom >+ arc4random_addrandom((unsigned char*)buf, >+ n>(size_t)INT_MAX ? INT_MAX : (int)n); >++#endif >+ } >+ >+ void > >Property changes on: files/patch-evutil__rand.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 230764
: 196373