matio 1.5.29 (boo#1239678, CVE-2025-2337) (boo#1239677, CVE-2025-2338) #1

Manually merged
dimstar_suse merged 4 commits from AndreasStieger/matio:leap-16.0 into leap-16.0 2026-01-11 18:00:15 +01:00
4 changed files with 53 additions and 35 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cd6a5cc63cd0315021fd2dfeba378726e45047a11cb4450846dca2adffc1632f
size 3070372

3
matio-1.5.29.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d9e5f7a2f2c594eff15f550e34729b01991cdd5a028a558be8ce595b32233afb
size 10191780

View File

@@ -1,3 +1,35 @@
-------------------------------------------------------------------
Wed Dec 31 17:04:24 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
- update to version 1.5.29:
* Fix printing rank-1-variable in Mat_VarPrint
* Fix array index out of bounds in Mat_VarPrint when printing
UTF-8 character data (boo#1239678, CVE-2025-2337)
* Fix heap-based buffer overflow in strdup_vprintf
(boo#1239677, CVE-2025-2338)
* Changed Mat_VarPrint to print all values of rank-2-variable
* Several other fixes, for example for access violations in
Mat_VarPrint
-------------------------------------------------------------------
Sat Dec 21 13:57:33 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
- Update to version 1.5.28:
* Fixed bug writing MAT_T_INT8/MAT_T_UINT8 encoded character
array to compressed v5 MAT file (regression of v1.5.12).
* Fixed bug reading all-zero sparse array of v4 MAT file
(regression of v1.5.18).
* Updated C99 snprintf.c.
* CMake: Enabled testing.
* Several other fixes, for example for access violations in
Mat_VarPrint.
- Drop BuildRequire: p7zip as upstream now uses tar.gz sources
instead.
- Run make check with multiple threads.
- Minor specfile cleanups (e.g. use standard macros where
possible).
- Drop no longer needed specfile hackery.
-------------------------------------------------------------------
Sun May 26 10:28:18 UTC 2024 - jun wang <jgwang@suse.com>

View File

@@ -2,6 +2,7 @@
# spec file for package matio
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 Andreas Stieger <Andreas.Stieger@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,20 +20,14 @@
%define libname lib%{name}
%define major 13
Name: matio
Version: 1.5.27
Version: 1.5.29
Release: 0
Summary: Library for reading and writing MATLAB MAT files
License: BSD-2-Clause
Group: Productivity/Scientific/Other
URL: https://sourceforge.net/projects/matio/
Source0: https://downloads.sourceforge.net/matio/%{name}-%{version}.7z
Source0: https://downloads.sourceforge.net/matio/%{name}-%{version}.tar.gz
BuildRequires: pkgconfig
BuildRequires: zlib-devel >= 1.2.3
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150200
BuildRequires: p7zip-full
%else
BuildRequires: p7zip
%endif
BuildRequires: pkgconfig(zlib) >= 1.2.3
%description
matio is an open-source library for reading and writing MATLAB MAT files.
@@ -42,7 +37,6 @@ access or do not want to rely on MATLAB's shared library.
%package -n %{libname}%{major}
Summary: Library for reading and writing MATLAB MAT files
# Avoid unresolvable errors from multiple providers
Group: System/Libraries
Requires: libhdf5
%description -n %{libname}%{major}
@@ -52,11 +46,11 @@ access or do not want to rely on MATLAB's shared library.
%package -n %{libname}-devel
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(zlib) >= 1.2.3
Requires: %{libname}%{major} = %{version}
Requires: hdf5-devel
Requires: pkgconfig
Requires: zlib-devel
%description -n %{libname}-devel
matio is an open-source library for reading and writing MATLAB MAT files.
@@ -65,7 +59,6 @@ access or do not want to rely on MATLAB's shared library.
%package tools
Summary: Command line tools for %{name}
Group: Productivity/Scientific/Other
Requires: %{libname}%{major} = %{version}
# Avoid unresolvable errors from multiple providers
Requires: libhdf5
@@ -76,49 +69,42 @@ This library is designed for use by programs/libraries that do not have
access or do not want to rely on MATLAB's shared library.
%prep
%setup -q
chmod +x configure
%autosetup -p1
%build
%configure \
--enable-shared \
--disable-static \
--enable-mat73=yes \
--enable-extended-sparse=yes
# remove rpath from libtool
sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?_smp_mflags}
--enable-extended-sparse=yes \
%{nil}
%make_build
%install
%make_install
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
find %{buildroot} -type f -name "*.la" -delete -print
%check
export LD_LIBRARY_PATH=%{_buildroot}/%{name}*/src/.libs/
make check
export LD_LIBRARY_PATH=%{_buildroot}/%{libdir}
%make_build check
%post -n %{libname}%{major} -p /sbin/ldconfig
%postun -n %{libname}%{major} -p /sbin/ldconfig
%ldconfig_scriptlets -n %{libname}%{major}
%files -n %{libname}%{major}
%defattr(-,root,root)
%license COPYING
%doc NEWS README
%{_libdir}/libmatio.so.%{major}*
%{_libdir}/libmatio.so.%{major}{,.*}
%files tools
%defattr(-,root,root)
%license COPYING
%{_bindir}/matdump
%files -n %{libname}-devel
%defattr(-,root,root)
%license COPYING
%{_includedir}/matio.h
%{_includedir}/matio_pubconf.h
%{_libdir}/libmatio.so
%{_libdir}/pkgconfig/matio.pc
%{_mandir}/man3/Mat_*.3.*
%{_mandir}/man3/Mat_*.3%{?ext_man}
%changelog