public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mariadb-connector-c] f44: Rebase to 3.4.11
@ 2026-11-19  2:31 Michal Schorm
  0 siblings, 0 replies; only message in thread
From: Michal Schorm @ 2026-11-19  2:31 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/mariadb-connector-c
            Branch : f44
            Commit : f2a255d2c956595a3f390170213d9b952b3d454f
            Author : Michal Schorm <mschorm@redhat.com>
            Date   : 2026-10-24T21:30:19+02:00
            Stats  : +7/-69 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/mariadb-connector-c/c/f2a255d2c956595a3f390170213d9b952b3d454f?branch=f44

            Log:
            Rebase to 3.4.11

Version 3.4.11 - Released 2026-09-29
  Release notes: https://mariadb.com/docs/release-notes/connectors/c/3.4/3.4.11
  Changelog: https://mariadb.com/kb/en/mariadb-connector-c-3-4-11-changelog/

Version 3.4.10 was not published standalone - it was shipped only within MariaDB Community Server releases
  All fixes carry into version 3.4.11
  Release notes: https://mariadb.com/docs/release-notes/connectors/c/3.4/3.4.10
  Changelog: https://mariadb.com/kb/en/mariadb-connector-c-3-4-10-changelog/

SPECfile changes:
- drop new entries in %changelog - fully utilize %autochangelog instead

File changes:
- Drop 'conc-821-fix-bind-result-length.patch': CONC-821 fixed upstream
  (commits 0fb69426 + ead038dc); upstream fix also resolves NULL-fetch
  path that the downstream revert did not address
- Refresh 'testsuite.patch' for 3.4.11

Breaking changes:
  CONC-821: 'mysql_stmt_bind_result()' no longer zeroes '*length' for
  temporal and variable-length types — callers that relied on the
  zeroing must now check '*is_null' before reading '*length'

CVEs:
  CVE-2026-107819: CONC-846: Cleartext password leakage during TLS hostname verification

Security:
  CONC-835: Pre-auth memory exhaustion in packet reassembly (no CVE assigned)
  CONC-838: PBKDF2 CPU stall in parsec auth plugin (no CVE assigned)
  CONC-850: Out-of-bounds reads in 'parse_server_packet' for GSSAPI (no CVE assigned)

Maintainer notes:
- All Fedora dependencies were rebuilt in COPR to check for FTBFS caused by the breaking change.
  No FTBFS caused by mariadb-connector-c identified.

Resolves: rhbz#2527954

Co-Authored-By: Claude AI <noreply@anthropic.com>

---
diff --git a/conc-821-fix-bind-result-length.patch b/conc-821-fix-bind-result-length.patch
deleted file mode 100644
index d01cb66..0000000
--- a/conc-821-fix-bind-result-length.patch
+++ /dev/null
@@ -1,55 +0,0 @@
-From: Michal Schorm <mschorm@redhat.com>
-Subject: [PATCH] Revert pack_len-based length init in mysql_stmt_bind_result()
-
-Revert the replacement of the per-type switch with a pack_len lookup
-in mysql_stmt_bind_result(), introduced in commit 40806da9.
-
-The pack_len approach zeroes *bind.length for all types with negative
-pack_len, which includes temporal types (MYSQL_PS_SKIP_RESULT_W_LEN)
-and string/blob types (MYSQL_PS_SKIP_RESULT_STR). The old switch
-correctly set temporal types to sizeof(MYSQL_TIME) and left
-string/blob types untouched (default: break).
-
-The zeroing breaks any client relying on the documented *bind.length
-value for temporal or variable-length result columns:
-- Qt QMYSQL driver produces invalid QDateTime (year 2106, time 00:00:00)
-- Diesel (Rust) truncation-based re-fetch returns empty data
-- Any C-API client checking *bind.length per API documentation
-
-The NULL-column path fix in mthd_stmt_fetch_to_bind() (the actual
-CONC-812 fix) is NOT affected by this revert.
-
-Upstream: https://jira.mariadb.org/browse/CONC-821
-Related: https://github.com/diesel-rs/diesel/discussions/5091
-
----
- libmariadb/mariadb_stmt.c | 9 ---------
- 1 file changed, 9 deletions(-)
-
-diff -up a/libmariadb/mariadb_stmt.c b/libmariadb/mariadb_stmt.c
---- a/libmariadb/mariadb_stmt.c
-+++ b/libmariadb/mariadb_stmt.c
-@@ -1438,15 +1438,7 @@
-     if (!stmt->bind[i].error)
-       stmt->bind[i].error= &stmt->bind[i].error_value;
-
--    if (mysql_ps_fetch_functions[stmt->bind[i].buffer_type].pack_len >= 0)
--    {
--      *stmt->bind[i].length= stmt->bind[i].length_value= mysql_ps_fetch_functions[stmt->bind[i].buffer_type].pack_len;
--    } else {
--      *stmt->bind[i].length= stmt->bind[i].length_value= 0;
--    }
--
-     /* set length values for numeric types */
--/*
-     switch(bind[i].buffer_type) {
-     case MYSQL_TYPE_NULL:
-       *stmt->bind[i].length= stmt->bind[i].length_value= 0;
-@@ -1476,7 +1468,6 @@
-     default:
-       break;
-     }
--*/
-   }
-   stmt->bind_result_done= 1;
-   CLEAR_CLIENT_STMT_ERROR(stmt);

diff --git a/mariadb-connector-c.spec b/mariadb-connector-c.spec
index a69ab2b..f3d3608 100644
--- a/mariadb-connector-c.spec
+++ b/mariadb-connector-c.spec
@@ -14,8 +14,8 @@
 
 
 Name:           mariadb-connector-c
-Version:        3.4.9
-Release:        3%{?with_debug:.debug}%{?dist}
+Version:        3.4.11
+Release:        1%{?with_debug:.debug}%{?dist}
 Summary:        MariaDB Native Client library (C driver)
 License:        LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01 AND LicenseRef-Fedora-Public-Domain
 Source0:        https://archive.mariadb.org/connector-c-%{version}/%{name}-%{version}-src.tar.gz
@@ -28,10 +28,6 @@ URL:            https://mariadb.org/
 Patch1:         testsuite.patch
 %endif
 
-# Downstream fix attempt for https://jira.mariadb.org/browse/CONC-821
-# No upstream fix as of 2026-06-28 (checked 3.4 branch and PRs)
-Patch2:         conc-821-fix-bind-result-length.patch
-
 BuildRequires:  cmake
 BuildRequires:  gcc
 BuildRequires:  libzstd-devel
@@ -275,7 +271,4 @@ install -D -p -m 0644 %{name}.conf %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{nam
 #      Need to ensure, that the testsuite will also run properly on 'fedpkg local' buid, not damaging the host machine
 
 %changelog
-* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.9-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
-
 %autochangelog

diff --git a/sources b/sources
index d134dde..697281b 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (mariadb-connector-c-3.4.9-src.tar.gz) = 92377a63e98db723b7160525e0c4f4af72c781cae7306e0ff91a915c8e7fd92a161f4fce87476fb1af4fda29997c666d0867650ce18fe5273a25b7f1872166e4
+SHA512 (mariadb-connector-c-3.4.11-src.tar.gz) = 1892499af42f03d1202a2ebd9f415d3281210c6552ea95740f0de132db5a4f2aa9aa12d6cf7400b55fec17d1f0c64f78c2b0540190c0bdc3521dd26ca52d769b

diff --git a/testsuite.patch b/testsuite.patch
index 57c3bf5..4ea6850 100644
--- a/testsuite.patch
+++ b/testsuite.patch
@@ -1,9 +1,9 @@
---- mariadb-connector-c-3.4.1-src/unittest/libmariadb/CMakeLists.txt	2024-08-03 16:38:02.000000000 +0200
-+++ mariadb-connector-c-3.4.1-src/unittest/libmariadb/CMakeLists.txt_patched	2024-08-22 23:52:11.773978003 +0200
-@@ -95,3 +95,6 @@ FOREACH(FILE ${ADDITIONAL_FILES})
+--- mariadb-connector-c-3.4.11-src/unittest/libmariadb/CMakeLists.txt	2026-09-22 12:00:00.000000000 +0200
++++ mariadb-connector-c-3.4.11-src/unittest/libmariadb/CMakeLists.txt_patched	2026-10-10 12:00:00.000000000 +0200
+@@ -108,3 +108,6 @@ FOREACH(FILE ${ADDITIONAL_FILES})
                   COPYONLY)
  ENDFOREACH()
- 
+
 +INSTALL(TARGETS ${API_TESTS} DESTINATION ${SHAREDIR}/mariadb-connector-c/tests COMPONENT Tests)
 +INSTALL(FILES ${CC_BINARY_DIR}/unittest/mytap/libcctap.so PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE DESTINATION ${INSTALL_LIBDIR}/mariadb/connector-c/tests COMPONENT Tests)
 +INSTALL(FILES ${CC_BINARY_DIR}/unittest/libmariadb/CTestTestfile.cmake DESTINATION ${SHAREDIR}/mariadb-connector-c/tests COMPONENT Tests)

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-19  2:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-19  2:31 [rpms/mariadb-connector-c] f44: Rebase to 3.4.11 Michal Schorm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox