mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
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
This commit is contained in:
parent
b75fd48c68
commit
b5ceef8e2e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=126904
@ -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
|
||||
|
@ -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) {
|
@ -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
|
||||
|
@ -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) {
|
Loading…
Reference in New Issue
Block a user