Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177580029
D38744.1794792417.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
593 B
Referenced Files
None
Subscribers
None
D38744.1794792417.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
Mon, Nov 16, 1:26 AM (22 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41752818
Default Alt Text
D38744.1794792417.diff (593 B)
Attached To
Mode
D38744: ping: Fix integer underflow resuling in a ping -R segfault
Attached
Detach File
Event Timeline