diff options
author | Jason Helfman <jgh@FreeBSD.org> | 2012-05-30 22:26:15 +0000 |
---|---|---|
committer | Jason Helfman <jgh@FreeBSD.org> | 2012-05-30 22:26:15 +0000 |
commit | 8efd38a2acd90422d224e1fa1d4f626f7860bf65 (patch) | |
tree | 49ddd7bd48b77fbe1cf65ae4b8980a1a8da8399f /databases/postgresql83-server | |
parent | - Mark BROKEN on 7.X: fails to extract (diff) |
- Address postgresql*-servers for crypt vulnerability (CVE-2012-2143)
http://www.postgresql.org/about/news/1397/
With hat: pgsql
Notes
Notes:
svn path=/head/; revision=297840
Diffstat (limited to 'databases/postgresql83-server')
-rw-r--r-- | databases/postgresql83-server/Makefile | 2 | ||||
-rw-r--r-- | databases/postgresql83-server/files/patch-crypt-des.c | 12 |
2 files changed, 13 insertions, 1 deletions
diff --git a/databases/postgresql83-server/Makefile b/databases/postgresql83-server/Makefile index f93de7faac03..6a3dca1ccb8a 100644 --- a/databases/postgresql83-server/Makefile +++ b/databases/postgresql83-server/Makefile @@ -6,7 +6,7 @@ # DISTVERSION?= 8.3.18 -PORTREVISION?= 0 +PORTREVISION?= 1 PKGNAMESUFFIX?= -server MAINTAINER?= pgsql@FreeBSD.org diff --git a/databases/postgresql83-server/files/patch-crypt-des.c b/databases/postgresql83-server/files/patch-crypt-des.c new file mode 100644 index 000000000000..ce61aaa5b2b7 --- /dev/null +++ b/databases/postgresql83-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)) |