[packages/php-pecl-msgpack] - rel 3
arekm
arekm at pld-linux.org
Fri Oct 23 17:46:37 CEST 2026
commit f997f12c959c08730de19f4e2bb2a1a0ede4505e
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Oct 23 17:46:08 2026 +0200
- rel 3
class-object-layout.patch | 15 +++++++++++++++
php-pecl-msgpack.spec | 4 +++-
2 files changed, 18 insertions(+), 1 deletion(-)
---
diff --git a/php-pecl-msgpack.spec b/php-pecl-msgpack.spec
index 5dfedaa..3fa986e 100644
--- a/php-pecl-msgpack.spec
+++ b/php-pecl-msgpack.spec
@@ -10,7 +10,7 @@ Summary: PHP extension for interfacing with MessagePack
Name: %{php_name}-pecl-%{modname}
# For PHP < 7, see 0.5.x branch
Version: 3.0.1
-Release: 2
+Release: 3
License: PHP 3.01
Group: Development/Languages/PHP
Source0: https://pecl.php.net/get/%{modname}-%{version}.tgz
@@ -18,6 +18,7 @@ Source0: https://pecl.php.net/get/%{modname}-%{version}.tgz
Patch0: enum-unserialize-segfault.patch
Patch1: unserialize-crash-hardening.patch
Patch2: unserialize-uint64-32bit.patch
+Patch3: class-object-layout.patch
URL: https://pecl.php.net/package/msgpack/
BuildRequires: %{php_name}-devel >= 4:7.0.0
BuildRequires: rpmbuild(macros) >= 1.666
@@ -55,6 +56,7 @@ mv %{modname}-%{version}/* .
%patch -P0 -p1
%patch -P1 -p1
%patch -P2 -p1
+%patch -P3 -p1
# https://github.com/msgpack/msgpack-php/issues/110 (these self-skip on php >= 7.1)
rm tests/040*.phpt
diff --git a/class-object-layout.patch b/class-object-layout.patch
new file mode 100644
index 0000000..b7ff689
--- /dev/null
+++ b/class-object-layout.patch
@@ -0,0 +1,15 @@
+MessagePack objects wrote force_f32 past the end of their allocation: zend_object
+must be the last member (properties_table is a trailing array). Not fixed upstream.
+
+--- msgpack-3.0.1.orig/msgpack_class.c
++++ msgpack-3.0.1/msgpack_class.c
+@@ -10,8 +10,8 @@
+ typedef struct {
+ long php_only;
+ zend_bool assoc;
+- zend_object object;
+ zend_bool force_f32;
++ zend_object object;
+ } php_msgpack_base_t;
+
+ typedef struct {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-msgpack.git/commitdiff/f997f12c959c08730de19f4e2bb2a1a0ede4505e
More information about the pld-cvs-commit
mailing list