diff options
Diffstat (limited to 'graphics/kdegraphics3/files')
-rw-r--r-- | graphics/kdegraphics3/files/patch-kpdf-part.cpp | 14 | ||||
-rw-r--r-- | graphics/kdegraphics3/files/patch-post-3.5.1-kdegraphics-CVE-2006-0301.diff | 50 |
2 files changed, 0 insertions, 64 deletions
diff --git a/graphics/kdegraphics3/files/patch-kpdf-part.cpp b/graphics/kdegraphics3/files/patch-kpdf-part.cpp deleted file mode 100644 index bf1e59e4f47b..000000000000 --- a/graphics/kdegraphics3/files/patch-kpdf-part.cpp +++ /dev/null @@ -1,14 +0,0 @@ ---- kpdf/part.cpp 2006/01/18 21:57:05 499855 -+++ kpdf/part.cpp 2006/01/23 23:11:54 501814 -@@ -697,6 +697,11 @@ - KURL saveURL = KFileDialog::getSaveURL( url().isLocalFile() ? url().url() : url().fileName(), QString::null, widget() ); - if ( saveURL.isValid() && !saveURL.isEmpty() ) - { -+ if (saveURL == url()) -+ { -+ KMessageBox::information( widget(), i18n("You are trying to overwrite \"%1\" with itself. This is not allowed. Please save it in another location.").arg(saveURL.filename()) ); -+ return; -+ } - if ( KIO::NetAccess::exists( saveURL, false, widget() ) ) - { - if (KMessageBox::warningContinueCancel( widget(), i18n("A file named \"%1\" already exists. Are you sure you want to overwrite it?").arg(saveURL.filename()), QString::null, i18n("Overwrite")) != KMessageBox::Continue) diff --git a/graphics/kdegraphics3/files/patch-post-3.5.1-kdegraphics-CVE-2006-0301.diff b/graphics/kdegraphics3/files/patch-post-3.5.1-kdegraphics-CVE-2006-0301.diff deleted file mode 100644 index e2e19b511dd7..000000000000 --- a/graphics/kdegraphics3/files/patch-post-3.5.1-kdegraphics-CVE-2006-0301.diff +++ /dev/null @@ -1,50 +0,0 @@ ---- kpdf/xpdf/splash/SplashXPathScanner.cc (Revision 505052) -+++ kpdf/xpdf/splash/SplashXPathScanner.cc (Arbeitskopie) -@@ -186,7 +186,7 @@ GBool SplashXPathScanner::getNextSpan(in - } - - void SplashXPathScanner::computeIntersections(int y) { -- SplashCoord ySegMin, ySegMax, xx0, xx1; -+ SplashCoord xSegMin, xSegMax, ySegMin, ySegMax, xx0, xx1; - SplashXPathSeg *seg; - int i, j; - -@@ -236,19 +236,27 @@ void SplashXPathScanner::computeIntersec - } else if (seg->flags & splashXPathVert) { - xx0 = xx1 = seg->x0; - } else { -- if (ySegMin <= y) { -- // intersection with top edge -- xx0 = seg->x0 + ((SplashCoord)y - seg->y0) * seg->dxdy; -+ if (seg->x0 < seg->x1) { -+ xSegMin = seg->x0; -+ xSegMax = seg->x1; - } else { -- // x coord of segment endpoint with min y coord -- xx0 = (seg->flags & splashXPathFlip) ? seg->x1 : seg->x0; -+ xSegMin = seg->x1; -+ xSegMax = seg->x0; - } -- if (ySegMax >= y + 1) { -- // intersection with bottom edge -- xx1 = seg->x0 + ((SplashCoord)y + 1 - seg->y0) * seg->dxdy; -- } else { -- // x coord of segment endpoint with max y coord -- xx1 = (seg->flags & splashXPathFlip) ? seg->x0 : seg->x1; -+ // intersection with top edge -+ xx0 = seg->x0 + ((SplashCoord)y - seg->y0) * seg->dxdy; -+ // intersection with bottom edge -+ xx1 = seg->x0 + ((SplashCoord)y + 1 - seg->y0) * seg->dxdy; -+ // the segment may not actually extend to the top and/or bottom edges -+ if (xx0 < xSegMin) { -+ xx0 = xSegMin; -+ } else if (xx0 > xSegMax) { -+ xx0 = xSegMax; -+ } -+ if (xx1 < xSegMin) { -+ xx1 = xSegMin; -+ } else if (xx1 > xSegMax) { -+ xx1 = xSegMax; - } - } - if (xx0 < xx1) { |