diff options
author | lofi <lofi@FreeBSD.org> | 2005-01-20 15:38:14 +0800 |
---|---|---|
committer | lofi <lofi@FreeBSD.org> | 2005-01-20 15:38:14 +0800 |
commit | 426dc482c1ddb787bee7e48e7227d794928332d6 (patch) | |
tree | d4288e2dd65098983143c7ad1b1897babc428c9e /graphics | |
parent | bc5598805498d825716ab020bae99ab1a978cd35 (diff) | |
download | freebsd-ports-gnome-426dc482c1ddb787bee7e48e7227d794928332d6.tar.gz freebsd-ports-gnome-426dc482c1ddb787bee7e48e7227d794928332d6.tar.zst freebsd-ports-gnome-426dc482c1ddb787bee7e48e7227d794928332d6.zip |
Fix yet another buffer overflow in imported xpdf sources.
References:
http://www.kde.org/info/security/advisory-20050119-1.txt
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-0064
http://www.idefense.com/application/poi/display?id=186&type=vulnerabilities
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/kdegraphics3/Makefile | 2 | ||||
-rw-r--r-- | graphics/kdegraphics3/files/patch-post-3.3.2-kdegraphics-3.diff | 14 | ||||
-rw-r--r-- | graphics/kdegraphics4/Makefile | 2 | ||||
-rw-r--r-- | graphics/kdegraphics4/files/patch-post-3.3.2-kdegraphics-3.diff | 14 |
4 files changed, 30 insertions, 2 deletions
diff --git a/graphics/kdegraphics3/Makefile b/graphics/kdegraphics3/Makefile index 3c749b6d1270..f91ebd314522 100644 --- a/graphics/kdegraphics3/Makefile +++ b/graphics/kdegraphics3/Makefile @@ -8,7 +8,7 @@ PORTNAME= kdegraphics PORTVERSION= ${KDE_VERSION} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= graphics kde MASTER_SITES= ${MASTER_SITE_KDE} MASTER_SITE_SUBDIR= stable/${PORTVERSION:S/.0//}/src diff --git a/graphics/kdegraphics3/files/patch-post-3.3.2-kdegraphics-3.diff b/graphics/kdegraphics3/files/patch-post-3.3.2-kdegraphics-3.diff new file mode 100644 index 000000000000..a222921858bb --- /dev/null +++ b/graphics/kdegraphics3/files/patch-post-3.3.2-kdegraphics-3.diff @@ -0,0 +1,14 @@ +*** kpdf/xpdf/XRef.cc.orig Wed Jan 12 17:10:53 2005 +--- kpdf/xpdf/XRef.cc Wed Jan 12 17:11:22 2005 +*************** +*** 793,798 **** +--- 793,801 ---- + } else { + keyLength = 5; + } ++ if (keyLength > 16) { ++ keyLength = 16; ++ } + permFlags = permissions.getInt(); + if (encVersion >= 1 && encVersion <= 2 && + encRevision >= 2 && encRevision <= 3) { diff --git a/graphics/kdegraphics4/Makefile b/graphics/kdegraphics4/Makefile index 3c749b6d1270..f91ebd314522 100644 --- a/graphics/kdegraphics4/Makefile +++ b/graphics/kdegraphics4/Makefile @@ -8,7 +8,7 @@ PORTNAME= kdegraphics PORTVERSION= ${KDE_VERSION} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= graphics kde MASTER_SITES= ${MASTER_SITE_KDE} MASTER_SITE_SUBDIR= stable/${PORTVERSION:S/.0//}/src diff --git a/graphics/kdegraphics4/files/patch-post-3.3.2-kdegraphics-3.diff b/graphics/kdegraphics4/files/patch-post-3.3.2-kdegraphics-3.diff new file mode 100644 index 000000000000..a222921858bb --- /dev/null +++ b/graphics/kdegraphics4/files/patch-post-3.3.2-kdegraphics-3.diff @@ -0,0 +1,14 @@ +*** kpdf/xpdf/XRef.cc.orig Wed Jan 12 17:10:53 2005 +--- kpdf/xpdf/XRef.cc Wed Jan 12 17:11:22 2005 +*************** +*** 793,798 **** +--- 793,801 ---- + } else { + keyLength = 5; + } ++ if (keyLength > 16) { ++ keyLength = 16; ++ } + permFlags = permissions.getInt(); + if (encVersion >= 1 && encVersion <= 2 && + encRevision >= 2 && encRevision <= 3) { |