From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E207E138350 for ; Sun, 22 Mar 2020 20:41:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A165DE0943; Sun, 22 Mar 2020 20:41:40 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 70D16E0943 for ; Sun, 22 Mar 2020 20:41:40 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7CB7434F755 for ; Sun, 22 Mar 2020 20:41:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 31985AF for ; Sun, 22 Mar 2020 20:41:35 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1584909642.e14cdf830a18d8131293545eec9b658d08acfdfd.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/unixODBC/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-db/unixODBC/files/unixODBC-2.3.5-CVE-2018-7485.patch X-VCS-Directories: dev-db/unixODBC/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: e14cdf830a18d8131293545eec9b658d08acfdfd X-VCS-Branch: master Date: Sun, 22 Mar 2020 20:41:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a4181d8c-bd12-46de-9627-46ad6f4a2365 X-Archives-Hash: 4effa7e67d746f61244bc927a333e941 commit: e14cdf830a18d8131293545eec9b658d08acfdfd Author: Michael Mair-Keimberger gmail com> AuthorDate: Sun Mar 22 18:52:45 2020 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Mar 22 20:40:42 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e14cdf83 dev-db/unixODBC: remove unused patch(es) Signed-off-by: Michael Mair-Keimberger gmail.com> Closes: https://github.com/gentoo/gentoo/pull/15060 Signed-off-by: Andreas Sturmlechner gentoo.org> .../files/unixODBC-2.3.5-CVE-2018-7485.patch | 135 --------------------- 1 file changed, 135 deletions(-) diff --git a/dev-db/unixODBC/files/unixODBC-2.3.5-CVE-2018-7485.patch b/dev-db/unixODBC/files/unixODBC-2.3.5-CVE-2018-7485.patch deleted file mode 100644 index 2c4178cda48..00000000000 --- a/dev-db/unixODBC/files/unixODBC-2.3.5-CVE-2018-7485.patch +++ /dev/null @@ -1,135 +0,0 @@ -From 45ef78e037f578b15fc58938a3a3251655e71d6f Mon Sep 17 00:00:00 2001 -From: Nick Gorham -Date: Mon, 8 Jan 2018 11:12:39 +0000 -Subject: [PATCH] New Pre Source - -diff --git a/DriverManager/SQLGetDiagRecW.c b/DriverManager/SQLGetDiagRecW.c -index a6368d7..be89120 100644 ---- a/DriverManager/SQLGetDiagRecW.c -+++ b/DriverManager/SQLGetDiagRecW.c -@@ -98,6 +98,8 @@ - - static char const rcsid[]= "$RCSfile: SQLGetDiagRecW.c,v $"; - -+extern int __is_env( EHEAD * head ); /* in SQLGetDiagRec.c */ -+ - static SQLRETURN extract_sql_error_rec_w( EHEAD *head, - SQLWCHAR *sqlstate, - SQLINTEGER rec_number, -diff --git a/DriverManager/SQLSetDescField.c b/DriverManager/SQLSetDescField.c -index 333d786..0e2f67c 100644 ---- a/DriverManager/SQLSetDescField.c -+++ b/DriverManager/SQLSetDescField.c -@@ -306,7 +306,7 @@ SQLRETURN SQLSetDescField( SQLHDESC descriptor_handle, - return function_return_nodrv( SQL_HANDLE_DESC, descriptor, SQL_ERROR ); - } - -- if ( field_identifier == SQL_DESC_COUNT && (SQLINTEGER)value < 0 ) -+ if ( field_identifier == SQL_DESC_COUNT && (intptr_t)value < 0 ) - { - __post_internal_error( &descriptor -> error, - ERROR_07009, NULL, -@@ -315,9 +315,9 @@ SQLRETURN SQLSetDescField( SQLHDESC descriptor_handle, - return function_return_nodrv( SQL_HANDLE_DESC, descriptor, SQL_ERROR ); - } - -- if ( field_identifier == SQL_DESC_PARAMETER_TYPE && value != SQL_PARAM_INPUT -- && value != SQL_PARAM_OUTPUT && value != SQL_PARAM_INPUT_OUTPUT && -- value != SQL_PARAM_INPUT_OUTPUT_STREAM && value != SQL_PARAM_OUTPUT_STREAM ) -+ if ( field_identifier == SQL_DESC_PARAMETER_TYPE && (intptr_t)value != SQL_PARAM_INPUT -+ && (intptr_t)value != SQL_PARAM_OUTPUT && (intptr_t)value != SQL_PARAM_INPUT_OUTPUT && -+ (intptr_t)value != SQL_PARAM_INPUT_OUTPUT_STREAM && (intptr_t)value != SQL_PARAM_OUTPUT_STREAM ) - { - __post_internal_error( &descriptor -> error, - ERROR_HY105, NULL, -diff --git a/DriverManager/SQLSetDescFieldW.c b/DriverManager/SQLSetDescFieldW.c -index 5e066ac..45125ff 100644 ---- a/DriverManager/SQLSetDescFieldW.c -+++ b/DriverManager/SQLSetDescFieldW.c -@@ -288,7 +288,7 @@ SQLRETURN SQLSetDescFieldW( SQLHDESC descriptor_handle, - return function_return_nodrv( SQL_HANDLE_DESC, descriptor, SQL_ERROR ); - } - -- if ( field_identifier == SQL_DESC_COUNT && (SQLINTEGER)value < 0 ) -+ if ( field_identifier == SQL_DESC_COUNT && (intptr_t)value < 0 ) - { - __post_internal_error( &descriptor -> error, - ERROR_07009, NULL, -@@ -297,9 +297,9 @@ SQLRETURN SQLSetDescFieldW( SQLHDESC descriptor_handle, - return function_return_nodrv( SQL_HANDLE_DESC, descriptor, SQL_ERROR ); - } - -- if ( field_identifier == SQL_DESC_PARAMETER_TYPE && value != SQL_PARAM_INPUT -- && value != SQL_PARAM_OUTPUT && value != SQL_PARAM_INPUT_OUTPUT && -- value != SQL_PARAM_INPUT_OUTPUT_STREAM && value != SQL_PARAM_OUTPUT_STREAM ) -+ if ( field_identifier == SQL_DESC_PARAMETER_TYPE && (intptr_t)value != SQL_PARAM_INPUT -+ && (intptr_t)value != SQL_PARAM_OUTPUT && (intptr_t)value != SQL_PARAM_INPUT_OUTPUT && -+ (intptr_t)value != SQL_PARAM_INPUT_OUTPUT_STREAM && (intptr_t)value != SQL_PARAM_OUTPUT_STREAM ) - { - __post_internal_error( &descriptor -> error, - ERROR_HY105, NULL, -diff --git a/exe/iusql.c b/exe/iusql.c -index aac5329..484a889 100644 ---- a/exe/iusql.c -+++ b/exe/iusql.c -@@ -413,7 +413,6 @@ static int ExecuteSQL( SQLHDBC hDbc, char *szSQL, char cDelimiter, int bColumnNa - if ( bVerbose ) DumpODBCLog( hEnv, hDbc, hStmt ); - fprintf( stderr, "[ISQL]ERROR: Could not SQLExecDirect\n" ); - SQLFreeStmt( hStmt, SQL_DROP ); -- free(szSepLine); - return 0; - } - } -diff --git a/odbcinst/SQLCreateDataSource.c b/odbcinst/SQLCreateDataSource.c -index a9fa735..83a1e9e 100644 ---- a/odbcinst/SQLCreateDataSource.c -+++ b/odbcinst/SQLCreateDataSource.c -@@ -26,7 +26,7 @@ char* _multi_string_alloc_and_copy( LPCWSTR in ) - - if ( !in ) - { -- return in; -+ return NULL; - } - - while ( in[ len ] != 0 || in[ len + 1 ] != 0 ) -@@ -55,7 +55,7 @@ char* _single_string_alloc_and_copy( LPCWSTR in ) - - if ( !in ) - { -- return in; -+ return NULL; - } - - while ( in[ len ] != 0 ) -@@ -83,7 +83,7 @@ SQLWCHAR* _multi_string_alloc_and_expand( LPCSTR in ) - - if ( !in ) - { -- return in; -+ return NULL; - } - - while ( in[ len ] != 0 || in[ len + 1 ] != 0 ) -@@ -112,7 +112,7 @@ SQLWCHAR* _single_string_alloc_and_expand( LPCSTR in ) - - if ( !in ) - { -- return in; -+ return NULL; - } - - while ( in[ len ] != 0 ) -diff --git a/odbcinst/SQLWriteFileDSN.c b/odbcinst/SQLWriteFileDSN.c -index c2f987b..e225796 100644 ---- a/odbcinst/SQLWriteFileDSN.c -+++ b/odbcinst/SQLWriteFileDSN.c -@@ -21,7 +21,7 @@ BOOL SQLWriteFileDSN( LPCSTR pszFileName, - - if ( pszFileName[0] == '/' ) - { -- strncpy( szFileName, sizeof(szFileName) - 5, pszFileName ); -+ strncpy( szFileName, pszFileName, sizeof(szFileName) - 5 ); - } - else - {