Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F135240669
D38744.id117877.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
593 B
Referenced Files
None
Subscribers
None
D38744.id117877.diff
View Options
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c
--- a/sbin/ping/ping.c
+++ b/sbin/ping/ping.c
@@ -1150,7 +1150,7 @@
ssize_t icmp_data_raw_len;
double triptime;
int dupflag, i, j, recv_len;
- uint8_t hlen;
+ int8_t hlen;
uint16_t seq;
static int old_rrlen;
static char old_rr[MAX_IPOPTLEN];
@@ -1171,7 +1171,7 @@
hlen = (l & 0x0f) << 2;
/* Reject IP packets with a short header */
- if (hlen < sizeof(struct ip)) {
+ if (hlen < (int8_t) sizeof(struct ip)) {
if (options & F_VERBOSE)
warn("IHL too short (%d bytes) from %s", hlen,
inet_ntoa(from->sin_addr));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 8, 9:31 PM (7 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25049116
Default Alt Text
D38744.id117877.diff (593 B)
Attached To
Mode
D38744: ping: Fix integer underflow resuling in a ping -R segfault
Attached
Detach File
Event Timeline
Log In to Comment