Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174623805
D17914.id50243.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
579 B
Referenced Files
None
Subscribers
None
D17914.id50243.diff
View Options
Index: head/sys/netinet/ip_reass.c
===================================================================
--- head/sys/netinet/ip_reass.c
+++ head/sys/netinet/ip_reass.c
@@ -228,6 +228,16 @@
ip->ip_off = htons(ntohs(ip->ip_off) << 3);
/*
+ * Make sure the fragment lies within a packet of valid size.
+ */
+ if (ntohs(ip->ip_len) + ntohs(ip->ip_off) > IP_MAXPACKET) {
+ IPSTAT_INC(ips_toolong);
+ IPSTAT_INC(ips_fragdropped);
+ m_freem(m);
+ return (NULL);
+ }
+
+ /*
* Attempt reassembly; if it succeeds, proceed.
* ip_reass() will return a different mbuf.
*/
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 5, 6:26 PM (15 s ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40224019
Default Alt Text
D17914.id50243.diff (579 B)
Attached To
Mode
D17914: Check for an overly large fragment.
Attached
Detach File
Event Timeline
Log In to Comment