public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Remi Collet <remi@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/php-extras] eln: rebase to 8.3.15
Date: Wed, 28 Oct 2026 15:08:55 GMT	[thread overview]
Message-ID: <179320013504.1.4059763240516095278.rpms-php-extras-5bc4d6923d3b@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/php-extras
            Branch : eln
            Commit : 5bc4d6923d3bc1fa9b773b35eab90d532f284a0e
            Author : Remi Collet <remi@fedoraproject.org>
            Date   : 2025-01-23T14:31:11+01:00
            Stats  : +7/-118 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/php-extras/c/5bc4d6923d3bc1fa9b773b35eab90d532f284a0e?branch=eln

            Log:
            rebase to 8.3.15

rebase to 8.3.15
rebase to 8.3.15
rebase to 8.3.15
rebase to 8.3.15

---
diff --git a/.gitignore b/.gitignore
index afe0795..714e391 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 clog
 /php-8.0.*.tar.xz
 /php-8.3.12.tar.xz
+/php-8.3.15.tar.xz

diff --git a/php-cve-2024-11236.patch b/php-cve-2024-11236.patch
deleted file mode 100644
index a9bef04..0000000
--- a/php-cve-2024-11236.patch
+++ /dev/null
@@ -1,111 +0,0 @@
-From e20734c704acb87728feadf97fb10a21f006f88a Mon Sep 17 00:00:00 2001
-From: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
-Date: Thu, 24 Oct 2024 22:02:17 +0200
-Subject: [PATCH] Fix GHSA-5hqh-c84r-qjcv: Integer overflow in the dblib quoter
- causing OOB writes
-
----
- ext/pdo_dblib/dblib_driver.c                 | 10 ++++++--
- ext/pdo_dblib/tests/GHSA-5hqh-c84r-qjcv.phpt | 24 ++++++++++++++++++++
- 2 files changed, 32 insertions(+), 2 deletions(-)
- create mode 100644 ext/pdo_dblib/tests/GHSA-5hqh-c84r-qjcv.phpt
-
-diff --git a/ext/pdo_dblib/dblib_driver.c b/ext/pdo_dblib/dblib_driver.c
-index 02ec2466a05fb..d7620307aa85b 100644
---- a/ext/pdo_dblib/dblib_driver.c
-+++ b/ext/pdo_dblib/dblib_driver.c
-@@ -148,7 +148,7 @@ static zend_string* dblib_handle_quoter(pdo_dbh_t *dbh, const zend_string *unquo
- 	bool use_national_character_set = 0;
- 	size_t i;
- 	char *q;
--	size_t quotedlen = 0;
-+	size_t quotedlen = 0, extralen = 0;
- 	zend_string *quoted_str;
- 
- 	if (H->assume_national_character_set_strings) {
-@@ -163,7 +163,7 @@ static zend_string* dblib_handle_quoter(pdo_dbh_t *dbh, const zend_string *unquo
- 
- 	/* Detect quoted length, adding extra char for doubled single quotes */
- 	for (i = 0; i < ZSTR_LEN(unquoted); i++) {
--		if (ZSTR_VAL(unquoted)[i] == '\'') ++quotedlen;
-+		if (ZSTR_VAL(unquoted)[i] == '\'') ++extralen;
- 		++quotedlen;
- 	}
- 
-@@ -171,6 +171,12 @@ static zend_string* dblib_handle_quoter(pdo_dbh_t *dbh, const zend_string *unquo
- 	if (use_national_character_set) {
- 		++quotedlen; /* N prefix */
- 	}
-+
-+	if (UNEXPECTED(quotedlen > ZSTR_MAX_LEN - extralen)) {
-+		return NULL;
-+	}
-+
-+	quotedlen += extralen;
- 	quoted_str = zend_string_alloc(quotedlen, 0);
- 	q = ZSTR_VAL(quoted_str);
- 	if (use_national_character_set) {
-diff --git a/ext/pdo_dblib/tests/GHSA-5hqh-c84r-qjcv.phpt b/ext/pdo_dblib/tests/GHSA-5hqh-c84r-qjcv.phpt
-new file mode 100644
-index 0000000000000..431c61951ee2a
---- /dev/null
-+++ b/ext/pdo_dblib/tests/GHSA-5hqh-c84r-qjcv.phpt
-@@ -0,0 +1,24 @@
-+--TEST--
-+GHSA-5hqh-c84r-qjcv (Integer overflow in the dblib quoter causing OOB writes)
-+--EXTENSIONS--
-+pdo_dblib
-+--SKIPIF--
-+<?php
-+if (PHP_INT_SIZE != 4) die("skip for 32bit platforms only");
-+if (PHP_OS_FAMILY === "Windows") die("skip not for Windows because the virtual address space for application is only 2GiB");
-+if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
-+require __DIR__ . '/config.inc';
-+getDbConnection();
-+?>
-+--INI--
-+memory_limit=-1
-+--FILE--
-+<?php
-+
-+require __DIR__ . '/config.inc';
-+$db = getDbConnection();
-+var_dump($db->quote(str_repeat("'", 2147483646)));
-+
-+?>
-+--EXPECT--
-+bool(false)
-From 2518ec1118dfc4dd10826bd26a8b7d51f4f8c538 Mon Sep 17 00:00:00 2001
-From: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
-Date: Thu, 24 Oct 2024 22:02:36 +0200
-Subject: [PATCH] Fix GHSA-5hqh-c84r-qjcv: Integer overflow in the firebird
- quoter causing OOB writes
-
----
- ext/pdo_firebird/firebird_driver.c | 6 +++++-
- 1 file changed, 5 insertions(+), 1 deletion(-)
-
-diff --git a/ext/pdo_firebird/firebird_driver.c b/ext/pdo_firebird/firebird_driver.c
-index e570b684c5a4b..4f8cd83d7b8ab 100644
---- a/ext/pdo_firebird/firebird_driver.c
-+++ b/ext/pdo_firebird/firebird_driver.c
-@@ -664,7 +664,7 @@ static zend_long firebird_handle_doer(pdo_dbh_t *dbh, const zend_string *sql) /*
- /* called by the PDO SQL parser to add quotes to values that are copied into SQL */
- static zend_string* firebird_handle_quoter(pdo_dbh_t *dbh, const zend_string *unquoted, enum pdo_param_type paramtype)
- {
--	int qcount = 0;
-+	size_t qcount = 0;
- 	char const *co, *l, *r;
- 	char *c;
- 	size_t quotedlen;
-@@ -678,6 +678,10 @@ static zend_string* firebird_handle_quoter(pdo_dbh_t *dbh, const zend_string *un
- 	/* count the number of ' characters */
- 	for (co = ZSTR_VAL(unquoted); (co = strchr(co,'\'')); qcount++, co++);
- 
-+	if (UNEXPECTED(ZSTR_LEN(unquoted) + 2 > ZSTR_MAX_LEN - qcount)) {
-+		return NULL;
-+	}
-+
- 	quotedlen = ZSTR_LEN(unquoted) + qcount + 2;
- 	quoted_str = zend_string_alloc(quotedlen, 0);
- 	c = ZSTR_VAL(quoted_str);

diff --git a/php-extras.spec b/php-extras.spec
index ac9e31f..1dd364e 100644
--- a/php-extras.spec
+++ b/php-extras.spec
@@ -14,15 +14,13 @@
 
 Name:       php-extras
 Summary:    Additional PHP extensions from the standard PHP distribution
-Version:    8.3.12
-Release:    3%{?dist}
+Version:    8.3.15
+Release:    1%{?dist}
 License:    PHP-3.01
 URL:        https://www.php.net/
 Source0:    https://www.php.net/distributions/php-%{version}.tar.xz
 
 # Security patches
-# From 8.3.14
-Patch100:   php-cve-2024-11236.patch
 
 BuildRequires: (php-devel >= 8.3 with php-devel < 8.4)
 BuildRequires:  php-pdo
@@ -142,8 +140,6 @@ low-level PHP extension for the libsodium cryptographic library.
 %prep
 %setup -q -n php-%{version}
 
-%patch -P100 -p1 -b .cve11236
-
 
 %build
 for mod in \
@@ -313,6 +309,9 @@ done
 %endif
 
 %changelog
+* Thu Jan 23 2025 Remi Collet <rcollet@redhat.com> - 8.3.15-1
+- rebase to 8.3.15
+
 * Fri Nov 29 2024 Remi Collet <rcollet@redhat.com> - 8.3.12-3
 - Fix Integer overflow in the dblib/firebird quoter causing OOB writes
   CVE-2024-11236

diff --git a/sources b/sources
index ef12d37..34477b4 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (php-8.3.12.tar.xz) = 2c4b440fa52950c75934559e977f39a179d1ad9edf8a17fe1b9ff89b58fbcafffb1bc1d59b6df46a9631554f0255c9271d906238c59287c799d195459be3e6a3
+SHA512 (php-8.3.15.tar.xz) = 43057cca0a6c2187f7991dfbf9743495784f0fa4d0336f08392036ecc2b6f83c7155737ebef3af6144a79eca557bf84cba4aedd34e0d19c701249ca4e8fa86d0

                 reply	other threads:[~2026-10-28 15:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179320013504.1.4059763240516095278.rpms-php-extras-5bc4d6923d3b@fedoraproject.org \
    --to=remi@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox