Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142506952
D19966.id56390.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
570 B
Referenced Files
None
Subscribers
None
D19966.id56390.diff
View Options
Index: head/sys/netinet6/ip6_output.c
===================================================================
--- head/sys/netinet6/ip6_output.c
+++ head/sys/netinet6/ip6_output.c
@@ -2221,8 +2221,11 @@
sizeof(optval));
if (error)
break;
- if ((optval % 2) != 0) {
- /* the API assumes even offset values */
+ if (optval < -1 || (optval % 2) != 0) {
+ /*
+ * The API assumes non-negative even offset
+ * values or -1 as a special value.
+ */
error = EINVAL;
} else if (so->so_proto->pr_protocol ==
IPPROTO_ICMPV6) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 21, 11:53 AM (14 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27802420
Default Alt Text
D19966.id56390.diff (570 B)
Attached To
Mode
D19966: Improve input validation for IPPROTO_IPV6 level socket option IPV6_CHECKSUM
Attached
Detach File
Event Timeline
Log In to Comment