Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177581008
D7980.1794794060.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
529 B
Referenced Files
None
Subscribers
None
D7980.1794794060.diff
View Options
Index: sys/kern/uipc_socket.c
===================================================================
--- sys/kern/uipc_socket.c
+++ 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
Mon, Nov 16, 1:54 AM (10 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41754884
Default Alt Text
D7980.1794794060.diff (529 B)
Attached To
Mode
D7980: fix sooptcopyin on big-endian platforms (e.g. MIPS64EB)
Attached
Detach File
Event Timeline