mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
2.3 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/kde/kdegraphics/post-3.3.2-kdegraphics.diff
  9. # ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- ./kpdf/xpdf/Gfx.cc 2 Sep 2004 21:30:18 -0000 1.4.4.1
  20. +++ ./kpdf/xpdf/Gfx.cc 22 Dec 2004 12:05:50 -0000 1.4.4.2
  21. @@ -2654,7 +2654,9 @@ void Gfx::doImage(Object *ref, Stream *s
  22. haveMask = gFalse;
  23. dict->lookup("Mask", &maskObj);
  24. if (maskObj.isArray()) {
  25. - for (i = 0; i < maskObj.arrayGetLength(); ++i) {
  26. + for (i = 0;
  27. + i < maskObj.arrayGetLength() && i < 2*gfxColorMaxComps;
  28. + ++i) {
  29. maskObj.arrayGet(i, &obj1);
  30. maskColors[i] = obj1.getInt();
  31. obj1.free();
  32. diff -b -p -u -r1.3.4.1 -r1.3.4.2
  33. --- ./kpdf/xpdf/GfxState.cc 2 Sep 2004 21:30:18 -0000 1.3.4.1
  34. +++ ./kpdf/xpdf/GfxState.cc 22 Dec 2004 12:05:50 -0000 1.3.4.2
  35. @@ -708,6 +708,11 @@ GfxColorSpace *GfxICCBasedColorSpace::pa
  36. }
  37. nCompsA = obj2.getInt();
  38. obj2.free();
  39. + if (nCompsA > gfxColorMaxComps) {
  40. + error(-1, "ICCBased color space with too many (%d > %d) components",
  41. + nCompsA, gfxColorMaxComps);
  42. + nCompsA = gfxColorMaxComps;
  43. + }
  44. if (dict->lookup("Alternate", &obj2)->isNull() ||
  45. !(altA = GfxColorSpace::parse(&obj2))) {
  46. switch (nCompsA) {
  47. @@ -1054,7 +1059,7 @@ GfxColorSpace *GfxDeviceNColorSpace::par
  48. }
  49. nCompsA = obj1.arrayGetLength();
  50. if (nCompsA > gfxColorMaxComps) {
  51. - error(-1, "DeviceN color space with more than %d > %d components",
  52. + error(-1, "DeviceN color space with too many (%d > %d) components",
  53. nCompsA, gfxColorMaxComps);
  54. nCompsA = gfxColorMaxComps;
  55. }