summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-08-23 23:54:56 +0000
committerMike Frysinger <vapier@gentoo.org>2005-08-23 23:54:56 +0000
commit898cf495c7d310a7c29310de94ef1d02e3517872 (patch)
tree4a2b52eefdc476e979a7c8ba075f47a40bd8c4bc
parentMarked ~amd64. (diff)
downloadhistorical-898cf495c7d310a7c29310de94ef1d02e3517872.tar.gz
historical-898cf495c7d310a7c29310de94ef1d02e3517872.tar.bz2
historical-898cf495c7d310a7c29310de94ef1d02e3517872.zip
use upstream fix
-rw-r--r--sys-apps/iproute2/files/iproute2-2.6.11.20050330-stack.patch15
1 files changed, 7 insertions, 8 deletions
diff --git a/sys-apps/iproute2/files/iproute2-2.6.11.20050330-stack.patch b/sys-apps/iproute2/files/iproute2-2.6.11.20050330-stack.patch
index a6130d754730..1ca6a704f220 100644
--- a/sys-apps/iproute2/files/iproute2-2.6.11.20050330-stack.patch
+++ b/sys-apps/iproute2/files/iproute2-2.6.11.20050330-stack.patch
@@ -1,16 +1,15 @@
-Add some overflow checks.
-
-Patch by solar.
+Fix from upstream to fix overflow.
http://bugs.gentoo.org/99487
--- netem/paretonormal.c
+++ netem/paretonormal.c
-@@ -55,6 +55,7 @@
+@@ -51,7 +51,7 @@
+ {
+ int i,n;
+ double x;
+- double table[TABLESIZE];
++ double table[TABLESIZE+1];
for (x = -10.0; x < 10.05; x += .00005) {
i = rint(TABLESIZE*normal(x, 0.0, 1.0));
-+ if (i > TABLESIZE) continue;
- table[i] = x;
- }
- printf(