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.

73 lines
2.5 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/rene/xpdf/xpdf-3.00pl2.patch.xpdf
  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. *** ./xpdf/Gfx.cc Sun Dec 12 16:04:43 2004
  20. --- ./xpdf/Gfx.cc Sun Dec 12 16:05:16 2004
  21. ***************
  22. *** 2654,2660 ****
  23. haveMask = gFalse;
  24. dict->lookup("Mask", &maskObj);
  25. if (maskObj.isArray()) {
  26. ! for (i = 0; i < maskObj.arrayGetLength(); ++i) {
  27. maskObj.arrayGet(i, &obj1);
  28. maskColors[i] = obj1.getInt();
  29. obj1.free();
  30. --- 2654,2662 ----
  31. haveMask = gFalse;
  32. dict->lookup("Mask", &maskObj);
  33. if (maskObj.isArray()) {
  34. ! for (i = 0;
  35. ! i < maskObj.arrayGetLength() && i < 2*gfxColorMaxComps;
  36. ! ++i) {
  37. maskObj.arrayGet(i, &obj1);
  38. maskColors[i] = obj1.getInt();
  39. obj1.free();
  40. *** ./xpdf/GfxState.cc Sun Dec 12 16:04:48 2004
  41. --- ./xpdf/GfxState.cc Sun Dec 12 16:06:38 2004
  42. ***************
  43. *** 708,713 ****
  44. --- 708,718 ----
  45. }
  46. nCompsA = obj2.getInt();
  47. obj2.free();
  48. + if (nCompsA > gfxColorMaxComps) {
  49. + error(-1, "ICCBased color space with too many (%d > %d) components",
  50. + nCompsA, gfxColorMaxComps);
  51. + nCompsA = gfxColorMaxComps;
  52. + }
  53. if (dict->lookup("Alternate", &obj2)->isNull() ||
  54. !(altA = GfxColorSpace::parse(&obj2))) {
  55. switch (nCompsA) {
  56. ***************
  57. *** 1054,1060 ****
  58. }
  59. nCompsA = obj1.arrayGetLength();
  60. if (nCompsA > gfxColorMaxComps) {
  61. ! error(-1, "DeviceN color space with more than %d > %d components",
  62. nCompsA, gfxColorMaxComps);
  63. nCompsA = gfxColorMaxComps;
  64. }
  65. --- 1059,1065 ----
  66. }
  67. nCompsA = obj1.arrayGetLength();
  68. if (nCompsA > gfxColorMaxComps) {
  69. ! error(-1, "DeviceN color space with too many (%d > %d) components",
  70. nCompsA, gfxColorMaxComps);
  71. nCompsA = gfxColorMaxComps;
  72. }