]> git.pld-linux.org Git - packages/GiNaC.git/commitdiff
- don't step outside iterator
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 3 Aug 2004 19:14:46 +0000 (19:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    GiNaC-segv.patch -> 1.1

GiNaC-segv.patch [new file with mode: 0644]

diff --git a/GiNaC-segv.patch b/GiNaC-segv.patch
new file mode 100644 (file)
index 0000000..97f7bc1
--- /dev/null
@@ -0,0 +1,20 @@
+--- GiNaC-1.2.1/ginac/inifcns_nstdsums.cpp.orig        2004-03-18 15:03:24.000000000 +0100
++++ GiNaC-1.2.1/ginac/inifcns_nstdsums.cpp     2004-08-03 20:35:56.041327089 +0200
+@@ -218,7 +218,7 @@
+               res = res + (*it) * factor;
+               it++; // should we check it? or rely on initsize? ...
+               i++;
+-      } while (res != resbuf);
++      } while ((res != resbuf) && (i <= Xn[0].size()));
+       return res;
+ }
+@@ -255,7 +255,7 @@
+               res = res + (*it) * factor;
+               it++; // should we check it? or rely on initsize? ...
+               i++;
+-      } while (res != resbuf);
++      } while ((res != resbuf) && ((i - 1) <= Xn[n-2].size()));
+       return res;
+ }
This page took 0.073026 seconds and 4 git commands to generate.