Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154002158
D7980.id20540.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
529 B
Referenced Files
None
Subscribers
None
D7980.id20540.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
Sun, Apr 26, 9:17 AM (2 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32178027
Default Alt Text
D7980.id20540.diff (529 B)
Attached To
Mode
D7980: fix sooptcopyin on big-endian platforms (e.g. MIPS64EB)
Attached
Detach File
Event Timeline
Log In to Comment