From: Jakub Bogusz Date: Tue, 3 Aug 2004 19:14:46 +0000 (+0000) Subject: - don't step outside iterator X-Git-Tag: auto/ac/GiNaC-1_2_1-2~1 X-Git-Url: https://git.pld-linux.org/?p=packages%2FGiNaC.git;a=commitdiff_plain;h=196bdbfb8fa3667d8e484d3ebee69e9636bce62b - don't step outside iterator Changed files: GiNaC-segv.patch -> 1.1 --- diff --git a/GiNaC-segv.patch b/GiNaC-segv.patch new file mode 100644 index 0000000..97f7bc1 --- /dev/null +++ b/GiNaC-segv.patch @@ -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; + } +