aboutsummaryrefslogtreecommitdiffstats
path: root/databases/postgresql90-server
diff options
context:
space:
mode:
authorjgh <jgh@FreeBSD.org>2012-05-31 06:26:15 +0800
committerjgh <jgh@FreeBSD.org>2012-05-31 06:26:15 +0800
commitd940d41ceddb74c55c1c35f2b87acbb89b0678cc (patch)
treee6b813a6eff0c87b9dafff2885b3c050bb563a90 /databases/postgresql90-server
parent4563798ddcc68c5820df877eba19914fc35cfc45 (diff)
downloadfreebsd-ports-gnome-d940d41ceddb74c55c1c35f2b87acbb89b0678cc.tar.gz
freebsd-ports-gnome-d940d41ceddb74c55c1c35f2b87acbb89b0678cc.tar.zst
freebsd-ports-gnome-d940d41ceddb74c55c1c35f2b87acbb89b0678cc.zip
- Address postgresql*-servers for crypt vulnerability (CVE-2012-2143)
http://www.postgresql.org/about/news/1397/ With hat: pgsql
Diffstat (limited to 'databases/postgresql90-server')
-rw-r--r--databases/postgresql90-server/Makefile2
-rw-r--r--databases/postgresql90-server/files/patch-crypt-des.c12
2 files changed, 13 insertions, 1 deletions
diff --git a/databases/postgresql90-server/Makefile b/databases/postgresql90-server/Makefile
index 814b8a329554..1987b2981c66 100644
--- a/databases/postgresql90-server/Makefile
+++ b/databases/postgresql90-server/Makefile
@@ -6,7 +6,7 @@
#
DISTVERSION?= 9.0.7
-PORTREVISION= 1
+PORTREVISION= 2
PKGNAMESUFFIX?= -server
MAINTAINER?= pgsql@FreeBSD.org
diff --git a/databases/postgresql90-server/files/patch-crypt-des.c b/databases/postgresql90-server/files/patch-crypt-des.c
new file mode 100644
index 000000000000..ce61aaa5b2b7
--- /dev/null
+++ b/databases/postgresql90-server/files/patch-crypt-des.c
@@ -0,0 +1,12 @@
+--- ./contrib/pgcrypto/crypt-des.c
++++ ./contrib/pgcrypto/crypt-des.c
+@@ -670,7 +670,8 @@ px_crypt_des(const char *key, const char *setting)
+ q = (uint8 *) keybuf;
+ while (q - (uint8 *) keybuf - 8)
+ {
+- if ((*q++ = *key << 1))
++ *q++ = *key << 1;
++ if (*key != '\0')
+ key++;
+ }
+ if (des_setkey((char *) keybuf))