diff options
author | root <root@rshg054.dnsready.net> | 2012-07-15 00:03:24 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-07-15 00:03:24 +0000 |
commit | 1ed995034acd07688fe8e78b1d40901bcc662155 (patch) | |
tree | ef6aab8713a3545c265159f9cd92499df5f289b4 /core/iputils/iputils-20101006-ping-integer-overflow.patch | |
parent | e0f65a739c6445de07de1585e72c230958d8f011 (diff) |
Sun Jul 15 00:03:24 UTC 2012
Diffstat (limited to 'core/iputils/iputils-20101006-ping-integer-overflow.patch')
-rw-r--r-- | core/iputils/iputils-20101006-ping-integer-overflow.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/iputils/iputils-20101006-ping-integer-overflow.patch b/core/iputils/iputils-20101006-ping-integer-overflow.patch new file mode 100644 index 000000000..720e5e888 --- /dev/null +++ b/core/iputils/iputils-20101006-ping-integer-overflow.patch @@ -0,0 +1,11 @@ +--- iputils-s20101006/ping_common.c 2010-10-06 13:59:20.000000000 +0200 ++++ iputils-s20101006-patched/ping_common.c 2012-03-09 16:42:46.878151032 +0100 +@@ -590,7 +590,7 @@ + + /* If we are here, recvmsg() is unable to wait for + * required timeout. */ +- if (1000*next <= 1000000/(int)HZ) { ++ if (((uint64_t)1000*next) <= (uint64_t)1000000/(int)HZ) { + /* Very short timeout... So, if we wait for + * something, we sleep for MININTERVAL. + * Otherwise, spin! */ |