Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152024137
D53767.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
582 B
Referenced Files
None
Subscribers
None
D53767.id.diff
View Options
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c
--- a/sys/kern/kern_prot.c
+++ b/sys/kern/kern_prot.c
@@ -603,8 +603,8 @@
if (error != 0)
return (error);
/* These fields have exactly the same sizes and positions. */
- memcpy(&wcred, &wcred32, &wcred32.setcred32_copy_end -
- &wcred32.setcred32_copy_start);
+ memcpy(&wcred, &wcred32, __rangeof(struct setcred32,
+ setcred32_copy_start, setcred32_copy_end));
/* Remaining fields are pointers and need PTRIN*(). */
PTRIN_CP(wcred32, wcred, sc_supp_groups);
PTRIN_CP(wcred32, wcred, sc_label);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 13, 4:20 AM (44 m, 29 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31316738
Default Alt Text
D53767.id.diff (582 B)
Attached To
Mode
D53767: setcred(): Fix 32-bit compatibility copy-in
Attached
Detach File
Event Timeline
Log In to Comment