1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 23_security3.dpatch by <hamish@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Red Hat-supplied patch for CAN-2006-0301
8
diff -urNad xpdf-3.01~/splash/Splash.cc xpdf-3.01/splash/Splash.cc
9
--- xpdf-3.01~/splash/Splash.cc 2006-02-01 20:41:14.000000000 +1100
10
+++ xpdf-3.01/splash/Splash.cc 2006-02-01 20:41:41.000000000 +1100
15
+ if ( (unsigned) x >= (unsigned) bitmap->getWidth() ||
16
+ (unsigned) y >= (unsigned) bitmap->getHeight())
19
if (noClip || state->clip->test(x, y)) {
20
if (alpha != 1 || softMask || state->blendFunc) {
21
blendFunc = state->blendFunc ? state->blendFunc : &blendNormal;
22
@@ -1198,6 +1202,11 @@
26
+ if ((unsigned) x0 >= (unsigned) bitmap->getWidth() ||
27
+ (unsigned) x1 >= (unsigned) bitmap->getWidth() ||
28
+ (unsigned) y >= (unsigned) bitmap->getHeight())
31
if (alpha != 1 || softMask || state->blendFunc) {
32
blendFunc = state->blendFunc ? state->blendFunc : &blendNormal;
34
@@ -1828,6 +1837,11 @@
38
+ if ((unsigned) x0 >= (unsigned) bitmap->getWidth() ||
39
+ (unsigned) x1 >= (unsigned) bitmap->getWidth() ||
40
+ (unsigned) y >= (unsigned) bitmap->getHeight())
43
switch (bitmap->mode) {
45
p = &bitmap->data[y * bitmap->rowSize + (x0 >> 3)];