summaryrefslogtreecommitdiff
blob: 1ca6a704f2209b5efd5ace3310654fa67da519b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Fix from upstream to fix overflow.

http://bugs.gentoo.org/99487

--- netem/paretonormal.c
+++ netem/paretonormal.c
@@ -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));