diff -u foomatic-filters-4.0.0/debian/changelog foomatic-filters-4.0.0/debian/changelog --- foomatic-filters-4.0.0/debian/changelog +++ foomatic-filters-4.0.0/debian/changelog @@ -1,3 +1,12 @@ +foomatic-filters (4.0.0-0ubuntu0.2) intrepid-proposed; urgency=low + + * debian/patches/foomatic-rip-segfault-on-jcl-merging.patch: Fixed + segfault of the JCL merging process on long JCL command lists + (LP: #321164). This was also reported on the Intrepid SRU + 4.0.0-0ubuntu0.1 in LP: #318614. + + -- Till Kamppeter Thu, 29 Jan 2009 20:05:49 +0100 + foomatic-filters (4.0.0-0ubuntu0.1) intrepid-proposed; urgency=low * New upstream release (4.0.0 final release, BZR rev 195, all the changes only in patch2: unchanged: --- foomatic-filters-4.0.0.orig/debian/patches/foomatic-rip-segfault-on-jcl-merging.patch +++ foomatic-filters-4.0.0/debian/patches/foomatic-rip-segfault-on-jcl-merging.patch @@ -0,0 +1,20 @@ +diff -Nur -x '*.orig' -x '*~' foomatic-filters-4.0.0/renderer.c foomatic-filters-4.0.0.new/renderer.c +--- foomatic-filters-4.0.0/renderer.c 2009-01-14 20:23:15.000000000 +0100 ++++ foomatic-filters-4.0.0.new/renderer.c 2009-01-29 20:00:23.000000000 +0100 +@@ -134,7 +134,7 @@ + if (cnt >= alloc -1) + { + alloc *= 2; +- result = realloc(result, alloc); ++ result = realloc(result, alloc * sizeof(char *)); + } + result[cnt] = line; + cnt++; +@@ -163,6 +163,7 @@ + while (isspace(*p2)) + p2--; + ++ if (p1 - j1 != p2 - j2) return 0; + return strncmp(j1, j2, p1 - j1 + 1) == 0; + } +