FreeBSD Bugzilla – Attachment 83397 Details for
Bug 119129
[libc] [patch] __stack_chk_guard setup is bogus in src/lib/libc/sys/stack_protector.c
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
kern_mib.c.diff
kern_mib.c.diff (text/x-diff), 927 bytes, created by
Antoine Brodin
on 2007-12-30 11:21:47 UTC
(
hide
)
Description:
kern_mib.c.diff
Filename:
MIME Type:
Creator:
Antoine Brodin
Created:
2007-12-30 11:21:47 UTC
Size:
927 bytes
patch
obsolete
>Index: kern_mib.c >=================================================================== >RCS file: /home/ncvs/src/sys/kern/kern_mib.c,v >retrieving revision 1.85 >diff -u -p -r1.85 kern_mib.c >--- kern_mib.c 4 Dec 2007 12:28:07 -0000 1.85 >+++ kern_mib.c 30 Dec 2007 10:48:44 -0000 >@@ -153,14 +153,18 @@ SYSCTL_INT(_hw, HW_PAGESIZE, pagesize, C > static int > sysctl_kern_arnd(SYSCTL_HANDLER_ARGS) > { >- u_long val; >+ char buf[256]; >+ size_t len; > >- arc4rand(&val, sizeof(val), 0); >- return (sysctl_handle_long(oidp, &val, 0, req)); >+ len = req->oldlen; >+ if (len > sizeof(buf)) >+ len = sizeof(buf); >+ arc4rand(buf, len, 0); >+ return (SYSCTL_OUT(req, buf, len)); > } > >-SYSCTL_PROC(_kern, KERN_ARND, arandom, CTLFLAG_RD, >- 0, 0, sysctl_kern_arnd, "L", "arc4rand"); >+SYSCTL_PROC(_kern, KERN_ARND, arandom, CTLTYPE_OPAQUE | CTLFLAG_RD, >+ NULL, 0, sysctl_kern_arnd, "", "arc4rand"); > > static int > sysctl_hw_physmem(SYSCTL_HANDLER_ARGS)
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 119129
: 83397