diff options
author | jgh <jgh@FreeBSD.org> | 2012-05-31 06:26:15 +0800 |
---|---|---|
committer | jgh <jgh@FreeBSD.org> | 2012-05-31 06:26:15 +0800 |
commit | d940d41ceddb74c55c1c35f2b87acbb89b0678cc (patch) | |
tree | e6b813a6eff0c87b9dafff2885b3c050bb563a90 /databases/postgresql91-server | |
parent | 4563798ddcc68c5820df877eba19914fc35cfc45 (diff) | |
download | freebsd-ports-graphics-d940d41ceddb74c55c1c35f2b87acbb89b0678cc.tar.gz freebsd-ports-graphics-d940d41ceddb74c55c1c35f2b87acbb89b0678cc.tar.zst freebsd-ports-graphics-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/postgresql91-server')
-rw-r--r-- | databases/postgresql91-server/Makefile | 1 | ||||
-rw-r--r-- | databases/postgresql91-server/files/patch-crypt-des.c | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/databases/postgresql91-server/Makefile b/databases/postgresql91-server/Makefile index 1926a6033ab..a68ad29b992 100644 --- a/databases/postgresql91-server/Makefile +++ b/databases/postgresql91-server/Makefile @@ -7,6 +7,7 @@ PORTNAME?= postgresql DISTVERSION?= 9.1.3 +PORTREVISION?= 1 CATEGORIES?= databases MASTER_SITES= ${MASTER_SITE_PGSQL} MASTER_SITE_SUBDIR= source/v${DISTVERSION} diff --git a/databases/postgresql91-server/files/patch-crypt-des.c b/databases/postgresql91-server/files/patch-crypt-des.c new file mode 100644 index 00000000000..ce61aaa5b2b --- /dev/null +++ b/databases/postgresql91-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)) |