Date: Sun, 23 Jan 2022 19:33:16 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: b2bd4ad8c484 - main - ftp/pure-ftpd: Fix SIGSEGV with PostgeSQL backend Message-ID: <202201231933.20NJXG3B034607@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=b2bd4ad8c484a613957005212289963a6b249445 commit b2bd4ad8c484a613957005212289963a6b249445 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-01-23 18:26:38 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-01-23 19:09:47 +0000 ftp/pure-ftpd: Fix SIGSEGV with PostgeSQL backend - Bump PORTREVISION for package change PR: 261358 Reported by: Artyom Davidov <ard_1@mail.ru> Obtained from: https://github.com/jedisct1/pure-ftpd/commit/c3f0f3c91d86939e6fabf5f65c6c6fc964e6032e --- ftp/pure-ftpd/Makefile | 1 + ftp/pure-ftpd/files/patch-src-log_pgsql.c | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/ftp/pure-ftpd/Makefile b/ftp/pure-ftpd/Makefile index 560d2b6b215b..ef8908ca1aca 100644 --- a/ftp/pure-ftpd/Makefile +++ b/ftp/pure-ftpd/Makefile @@ -2,6 +2,7 @@ PORTNAME= pure-ftpd PORTVERSION= 1.0.50 +PORTREVISION= 1 CATEGORIES= ftp MASTER_SITES= https://github.com/jedisct1/pure-ftpd/releases/download/${PORTVERSION}/ \ https://download.pureftpd.org/pub/pure-ftpd/releases/ diff --git a/ftp/pure-ftpd/files/patch-src-log_pgsql.c b/ftp/pure-ftpd/files/patch-src-log_pgsql.c new file mode 100644 index 000000000000..b8b6a3b9ae92 --- /dev/null +++ b/ftp/pure-ftpd/files/patch-src-log_pgsql.c @@ -0,0 +1,29 @@ +Obtained from: https://github.com/jedisct1/pure-ftpd/commit/c3f0f3c91d86939e6fabf5f65c6c6fc964e6032e + +--- src/log_pgsql.c.orig 2021-11-23 21:36:05 UTC ++++ src/log_pgsql.c +@@ -278,7 +278,6 @@ static int pw_pgsql_connect(PGconn ** const id_sql_ser + *id_sql_server = NULL; + + if ((escaped_server = pw_pgsql_escape_conninfo(server)) == NULL || +- (escaped_port = pw_pgsql_escape_conninfo(port)) == NULL || + (escaped_db = pw_pgsql_escape_conninfo(db)) == NULL || + (escaped_user = pw_pgsql_escape_conninfo(user)) == NULL || + (escaped_pw = pw_pgsql_escape_conninfo(pw)) == NULL) { +@@ -296,7 +295,7 @@ static int pw_pgsql_connect(PGconn ** const id_sql_ser + } + if (SNCHECK(snprintf(conninfo, sizeof_conninfo, + PGSQL_CONNECT_FMTSTRING, +- escaped_server, escaped_port, escaped_db, ++ escaped_server, port, escaped_db, + escaped_user, escaped_pw), sizeof_conninfo)) { + goto bye; + } +@@ -314,7 +313,6 @@ static int pw_pgsql_connect(PGconn ** const id_sql_ser + bye: + free(conninfo); + free(escaped_server); +- free(escaped_port); + free(escaped_db); + free(escaped_user); + free(escaped_pw);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202201231933.20NJXG3B034607>