Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153665842
D7980.id20616.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
544 B
Referenced Files
None
Subscribers
None
D7980.id20616.diff
View Options
Index: head/sys/kern/uipc_socket.c
===================================================================
--- head/sys/kern/uipc_socket.c
+++ head/sys/kern/uipc_socket.c
@@ -2455,8 +2455,12 @@
*/
if ((valsize = sopt->sopt_valsize) < minlen)
return EINVAL;
- if (valsize > len)
+ if (valsize > len) {
+#if _BYTE_ORDER == _BIG_ENDIAN
+ sopt->sopt_val = (void *)((uintptr_t)sopt->sopt_val + (valsize - len));
+#endif
sopt->sopt_valsize = valsize = len;
+ }
if (sopt->sopt_td != NULL)
return (copyin(sopt->sopt_val, buf, valsize));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 23, 6:44 PM (1 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32038912
Default Alt Text
D7980.id20616.diff (544 B)
Attached To
Mode
D7980: fix sooptcopyin on big-endian platforms (e.g. MIPS64EB)
Attached
Detach File
Event Timeline
Log In to Comment