Debian Codegraph @

matio-1.5.30/NEWS

raw
1 Changes in 1.5.30 (6 January 2026)
2 * Fixed const-correctness of input arguments of Mat_VarCreateStruct
3 * Deprecated usage of Mat_VarCreateStruct in favor of Mat_VarCreateStruct2
4 (CVE-2025-50343)
5 * Several other fixes, for example for memory leaks
6
7 Changes in 1.5.29 (10 November 2025)
8 * Fixed printing rank-1-variable in Mat_VarPrint
9 * Fixed array index out of bounds in Mat_VarPrint when printing UTF-8 character
10 data (CVE-2025-2337)
11 * Fixed heap-based buffer overflow in strdup_vprintf (CVE-2025-2338)
12 * Changed Mat_VarPrint to print all values of rank-2-variable
13 * Confirmed compatibility with HDF5 v2.0.0
14 * autoconf: Updated config.sub and config.guess
15 * CMake: Enabled dependency resolution via Conan 2.x for CMake >= 3.24
16 * CMake: Enabled parallel testing
17 * CMake: Deprecated option MATIO_USE_CONAN:BOOL for Conan 1.x
18 * Several other fixes, for example for access violations in Mat_VarPrint
19
20 Changes in 1.5.28 (30 October 2024)
21 * Fixed bug writing MAT_T_INT8/MAT_T_UINT8 encoded character array to
22 compressed v5 MAT file (regression of v1.5.12)
23 * Fixed bug reading all-zero sparse array of v4 MAT file (regression of v1.5.18)
24 * Updated C99 snprintf.c
25 * CMake: Enabled testing
26 * CMake: Fixed build with Visual Studio >= 17.10 and Conan 1.x
27 * Several other fixes, for example for access violations in Mat_VarPrint
28
29 Changes in 1.5.27 (20 April 2024)
30 * Fixed const-correctness of input arguments of API functions
31 * Fixed const-correctness of return type of Mat_GetDir
32 * Fixed bug duplicating function class (with deep copy) in Mat_VarDuplicate
33 * Fixed little endian detection for __aarch64__
34 * Fixed LFS support on MinGW 64-bit builds
35 * Fixed support of Unicode filenames on Windows
36 * Fixed detection of HDF5 version for UTF-8 based file name of HDF5 MAT file
37 * Fixed stack-based buffer overflow when reading (crafted) HDF5 MAT file
38 * Fixed build on Solaris
39 * Fixed build with Rust bindings and LLVM >= 16
40 * CMake: Fixed MinGW linker error with libc (regression of v1.5.24)
41 * CMake: Enabled static analysis with Cppcheck
42
43 Changes in 1.5.26 (12 November 2023)
44 * Fixed testsuite (regression of v1.5.25)
45
46 Changes in 1.5.25 (10 November 2023)
47 * Fixed reading struct array with null padded class name from HDF5 MAT file
48 * Fixed memory leak in Mat_VarFree for function class
49 * CMake: Silence MSVC compiler warnings
50
51 Changes in 1.5.24 (28 October 2023)
52 * Added predicated iteration API functions Mat_VarReadNextInfoPredicate and
53 Mat_VarReadNextPredicate to speed-up reading variables from HDF5 MAT file
54 * Added new API function Mat_GetFileAccessMode to retrieve the file access mode
55 of a MAT file
56 * Changed: Mat_VarDelete returns error if MAT file is opened in read-only mode
57 * Changed: Reduced memory foot-print of matvar_t.internal
58 * Fixed read performance of cell/struct array from HDF5 MAT file
59 * Fixed reference counting of HDF5 MAT file in Mat_VarDuplicate
60 * Fixed file access mode of created v4 MAT file
61 * Fixed read performance of Mat_GetDir for HDF5 MAT file
62 * Fixed bug reading struct array from v5 MAT file
63 * Fixed bug adding field to struct array of v5 MAT file
64 * Fixed heap-based buffer overflow when reading HDF5 MAT file
65 * Confirmed compatibility with HDF5 v1.14.x
66 * autoconf: Enabled system extensions
67 * autoconf: Fixed getopt_long check
68 * autoconf: Fixed pkg-config file for static linking
69 * CMake: Updated cmake-conan to version 0.18.1
70 * CMake: Fixed version comparison
71 * CMake: Fixed properties for CMake < 3.11
72 * CMake: Fixed linker error on OpenBSD
73 * CMake: Fixed checks of linker options
74 * Several other fixes, for example for memory leaks
75
76 Changes in 1.5.23 (31 March 2022)
77 * Updated cmake-conan to version 0.18.0
78 * Fixed testsuite (regression of v1.5.22)
79
80 Changes in 1.5.22 (25 March 2022)
81 * Added support for reading large MAT file
82 * Updated cmake-conan to version 0.17.0
83 * Fixed CMake build with Conan (MATIO_USE_CONAN:BOOL=ON)
84 * Fixed data type when reading 16-bit character data from HDF5 MAT file
85 * Fixed heap-based buffer overflows when reading (crafted) MAT file
86 (CVE-2020-36428, CVE-2021-36977)
87 * Confirmed compatibility with HDF5 v1.13.0 and v1.13.1
88 * Several other fixes, for example for memory leaks (CVE-2022-1515)
89
90 Changes in 1.5.21 (25 March 2021)
91 * Fixed: Avoid usage of strlen when creating MAT_T_UTF8 encoded character array
92 (regression of v1.5.20)
93 * Fixed reading of compression flag from HDF5 MAT file
94
95 Changes in 1.5.20 (21 March 2021)
96 * Added support for writing MAT_T_UTF8 encoded character array to HDF5 MAT file
97 (by conversion to UTF-16 if in BMP)
98 * Updated cmake-conan to version 0.16.1
99 * Fixed bug with size_t arguments of logging function calls
100 * Fixed bug reading past EOF from (crafted) MAT file
101 * Fixed bug writing MAT_T_UTF8 encoded character array to v5 MAT file
102 * Fixed printing of MAT_T_UTF8 encoded character array
103 * Several other fixes, for example for memory leaks
104
105 Changes in 1.5.19 (6 November 2020)
106 * Fixed support for CMake (>= v3.19.0) build system
107 * Fixed bug reading variable from v4 MAT file (regression of v1.5.18)
108
109 Changes in 1.5.18 (17 September 2020)
110 * Added support of HDF5 v1.12.x
111 * Added support for UTF-8 encoded file name on Windows (MSVC)
112 (requires HDF5 >= v1.11.6 for HDF5 MAT file)
113 * Added support for reading uncompressed v5 MAT file generated by SWAN
114 * Added error codes to public interface
115 * Added support for CMake build system
116 * Fixed read performance of numeric array from compressed v5 MAT file
117 * Fixed support for VS2005 and VS2008 (MSVC) (regression of v1.5.15)
118 * Fixed mktemp linker warning when using GNU linker
119 * Fixed bug writing struct array to uncompressed v5 MAT file on big endian
120 architecture (regression of v1.5.10)
121 * Fixed bug writing cell array to uncompressed v5 MAT file on big endian architecture
122 * Fixed bug reading variable name from v4 MAT file (CVE-2019-17533)
123 * Fixed bug reading variable name from (crafted) compressed v5 MAT file
124 (CVE-2020-19497)
125 * Fixed bug reading dimensions from (crafted) compressed v5 MAT file (CVE-2019-20017,
126 CVE-2019-20018, CVE-2019-20020, CVE-2019-20052)
127
128 Changes in 1.5.17 (18 July 2019)
129 * Fixed bug reading struct array with packed field names from v5 MAT file
130 * Fixed bug reading past EOF from (crafted) uncompressed v5 MAT file
131
132 Changes in 1.5.16 (25 June 2019)
133 * Fixed error handling on integer addition/multiplication overflows (CVE-2019-13107)
134
135 Changes in 1.5.15 (29 March 2019)
136 * Added new API function Mat_GetHeader to retrieve header string of a MAT file
137 * Fixed integer multiplication overflows when calculating total number of
138 elements from (crafted) MAT file
139 * Fixed bug reading character array from (compressed) v5 MAT file (regression
140 of v1.5.14)
141 * Fixed number of variables for repeated calls of Mat_GetDir
142 * Fixed memory leak in Mat_VarFree for function class
143
144 Changes in 1.5.14 (11 March 2019)
145 * Deprecated usage of Mat_VarWriteInfo/Mat_VarWriteData in favor of
146 Mat_VarWrite/Mat_VarWriteAppend
147 * Fixed bug reading dimensions from (crafted) compressed v5 MAT file (CVE-2019-9026,
148 CVE-2019-9027, CVE-2019-9028, CVE-2019-9029, CVE-2019-9030, CVE-2019-9031, CVE-2019-9032,
149 CVE-2019-9033, CVE-2019-9034, CVE-2019-9035, CVE-2019-9036, CVE-2019-9038)
150 * Fixed bug reading name (> 24 characters) from v5 MAT file (regression of v1.5.13)
151 * Fixed bug printing datatype in Mat_VarPrint (CVE-2019-9037)
152
153 Changes in 1.5.13 (22 October 2018)
154 * Fixed bug calculating size for zero-rank variables in Mat_VarGetSize
155 * Fixed bug reading dimensions from (crafted) v5 MAT file
156 * Fixed bug reading tag and class from (crafted) v5 MAT file
157 * Fixed integer multiplication overflows
158 * Fixed HDF5 compatibility in Mat_Open and Mat_Create for HDF5 > v1.10.1
159
160 Changes in 1.5.12 (7 March 2018)
161 * Updated Mat_VarWriteAppend: Added support to append a variable to a previously written
162 struct array in HDF5 MAT file
163 * Fixed bug reading MAT_T_UINT16 encoded character array from HDF5 MAT file
164 * Fixed bug reading MAT_T_UTF16 encoded character array from compressed v5 MAT file
165 * Fixed bug writing MAT_T_UTF16 encoded character array to HDF5 MAT file
166 * Fixed buffer overflow in Mat_VarGetCells/Mat_VarGetStructs
167
168 Changes in 1.5.11 (22 October 2017)
169 * Added new API function Mat_VarWriteAppend to append a numeric array to a
170 previously written variable in HDF5 MAT file
171 * Fixed bug calculating sizes of cell/struct array with empty cells/fields in Mat_VarGetSize
172 * Fixed bug writing cell/struct array with empty cells/fields to v5 MAT file
173 * Fixed bug writing cell/struct array with empty cells/fields to HDF5 MAT file
174 * Fixed read performance of cell/struct array with empty cells/fields from v5 MAT file
175 * Fixed read performance of numeric array from uncompressed v5 MAT file
176 * Fixed testsuite (if configured with the MATLAB application)
177 * Updated man pages
178
179 Changes in 1.5.10 (14 February 2017)
180 * Added new API function Mat_GetDir to retrieve all variable names of a MAT file
181 * Fixed performance of repeated calls to Mat_VarWrite (regression of v1.5.7)
182 * Fixed bugs reading (hyperslabs of) numeric array where the variable data type
183 differs from the desired output data type
184 * Increased testsuite coverage
185
186 Changes in 1.5.9 (22 October 2016)
187 * Fixed resource leak when reading character array from HDF5 MAT file
188 * Fixed bug writing struct to HDF5 MAT file: Mat_VarWrite never returned 0 on success
189 * Fixed bug writing sparse logical array to HDF5 MAT file
190 * Fixed bug calculating array sizes of struct, cell, complex and sparse array in Mat_VarGetSize
191 * Fixed bug duplicating sparse array with empty data in Mat_VarDuplicate
192 * Fixed segmentation fault when reading compressed v5 MAT file with opaque class
193 * Updated support of HDF5 v1.10.x: No longer depend on deprecated v1.8.x symbols
194
195 Changes in 1.5.8 (30 June 2016)
196 * Fixed bug writing array to v4 MAT file on big endian architecture (regression of v1.5.7)
197
198 Changes in 1.5.7 (22 June 2016)
199 * Added support for MAT_T_UTF16 when reading character array from v5 MAT file
200 * Added support of HDF5 v1.10.x (with deprecated v1.8.x symbols exported)
201 * Added warning on unsupported character data types when reading v5 MAT file
202 * Added error check if variable already exists when writing to MAT file
203 * Fixed support of custom log functions: Moved log levels to the public interface
204 * Fixed bug creating v4 and v5 MAT file: Open in write+update mode
205 * Fixed bug creating v5 and HDF5 MAT file: Set BOF marker to 128
206 * Fixed bug in Mat_VarDelete: Rewind file before looping over variables
207 * Fixed bug writing cell array with empty struct fields to compressed v5 MAT file
208 * Fixed bug reading empty character array from HDF5 MAT file
209 * Fixed bug iterating through links in a group of HDF5 MAT file
210 * Fixed bug iterating on #subsystem# group of HDF5 MAT file
211 * Fixed compilation out of source directory
212 * Fixed C++ compilation on MinGW
213 * Restructured testsuite
214 * Fixed testsuite if hdf5 dependency is missing
215 * Increased testsuite coverage
216 * Various fixes for variable scopes that cause compilers to issue diagnostics
217
218 Changes in 1.5.6 (23 February 2016)
219 * Fixed bug writing array to v4 MAT file on big endian architecture
220 * Fixed bug writing header with more than 127 characters to v5 or HDF5 MAT file
221
222 Changes in 1.5.5 (19 February 2016)
223 * Added support of reading sparse array from v4 MAT file
224 * Added support of writing sparse array to v4 MAT file
225 * Added support of writing character array to v4 MAT file
226 * Added support of autogen.sh on Darwin
227 * Added missing Visual Studio project files for test_mat
228 * Added missing Visual Studio resource file
229 * Enabled C++ compilation
230 * Updated snprintf.c to C99 snprintf v1.1
231 * Increased testsuite coverage
232 * Fixed bug writing complex array to v4 MAT file
233 * Fixed bug writing cell containing a struct with fields but empty array to compressed v5 MAT file
234 * Fixed bug reading hyperslabs of cells and struct fields from compressed v5 MAT file (regression of v1.5.3)
235 * Fixed bug writing empty character array to uncompressed v5 MAT file
236 * Fixed bug reading cells and struct fields from HDF5 MAT file
237 * Fixed bug printing array dimensions in Mat_VarPrint on MinGW
238 * Fixed bug calculating array sizes of structs in Mat_VarGetSize
239 * Fixed bug duplicating sparse array in Mat_VarDuplicate
240 * Fixed testsuite if zlib/hdf5 dependencies are missing
241 * Several other fixes, especially for memory leaks
242
243 Changes in 1.5.3 (11 January 2016)
244 * Added support for writing numeric array to v4 MAT file
245 * Added Visual Studio project for test_mat
246 * Added new API functions Mat_CalcSingleSubscript2 and Mat_CalcSubscripts2 that
247 work on size_t type
248 * Fixed memory consumption reading compressed v5 MAT file
249 * Fixed bug writing compressed v5 MAT file
250 * Fixed bug in Mat_VarReadNextInfo5 where freed variable was not set to NULL
251 * Fixed several bugs in Mat_VarDelete
252 * Fixed bug writing empty struct to HDF5 MAT file
253 * Fixed bug writing character array to HDF5 MAT file
254 * Fixed bug writing character array to compressed v5 MAT file
255 * Updated Visual Studio solution and project files to work with newer HDF5 and
256 Visual Studio versions
257 * Various fixes for unused variables, unnecessary initializations, etc. that
258 cause compilers to issue diagnostics
259 * Several other fixes, especially for memory leaks
260
261 Changes in 1.5.2 (31 July 2013)
262 * Added support for linear data read for v4 and HDF5 MAT file
263 * Fixed bug reading slices of variables in matdump
264 * Fixed feof calls so they compile on platforms that dereference the argument in a macro
265 * More robust checking that file is MAT file and eliminates some segmentation faults
266 * Various fixes for unused variables, unnecessary initializations, etc. that
267 cause compilers to issue diagnostics
268 * Several other fixes
269
270 Changes in 1.5.1 (10 March 2013)
271 * Fixed bug writing compressed HDF5 file
272 * Fixed bug reading cell array elements written with a non-empty variable name
273 * Fixed bug writing complex sparse matrices as struct fields or cell elements to
274 uncompressed v5 MAT file
275 * Fixed a number of potential issues identified via static analysis
276 * Fixed uninitialized pointers when creating structures through
277 Mat_VarCreateStruct, and fix a bug in the struct API testsuite
278 * Fixed extended sparse support in v7.3 MAT file
279 * Added 64-bit integer support for v5 MAT file
280 * Added missing support for reading hyperslabs from HDF5 MAT file
281 * Added variable indexing notation support to matdump to display subsets of
282 variables
283 * Added tests for extended sparse support in testsuite
284 * Added missing enumerations or default case in switch statements
285
286 Changes in 1.5.0 (15 April 2012)
287 * Changed licensing from the GNU Lesser General Public License to the BSD-2-Clause License
288 * Added support for reading/writing HDF5 MAT file
289 * Bug fixes for compressed variables that caused issues with matio reading them
290 * Upgraded dimensions in matvar_t structure to size_t enabling support for large arrays
291 * Added a testsuite
292
293 Changes in 1.3.2 (28 October 2006)
294 * Added support for writing compressed character classes, structures, cell arrays, and sparse arrays
295 * Added some tests to the test_mat program: write_compressed_cell, write_compressed_sparse
296 * Added 64-bit signed/unsigned integer support
297 * Fixed bugs in reading slabs of N-dimensional data
298
299 Changes in 1.3.1 (7 September 2006)
300 * Added some internal documentation to the library
301 * Defined two documentation groups public and internal
302 * Disabled the building of test programs by default and added a configure option to build them
303 * Fixed installation path of data and documentation
304 * Fixed bugs where file pointers were left open if allocating memory failed in Mat_Open and Mat_Create
305
306 Changes in 1.3.0 (30 June 2006)
307 * Cleaned out matio.h and made most preprocessor define's into enum's
308 * Moved complex arrays from single pointer with real part followed by imaginary
309 part to a struct with a pointer to the real part and a pointer to the
310 imaginary part (Previous implementation was just plain ignorant)
311 * Changed v4 MAT file code from MAT_V4 to MAT_FT_MAT4 to match the v5 identifier
312 * Added function Mat_VarCalloc to allocate and initialize all fields of the
313 matvar_t structure
314 Bug Fixes in 1.3.0 (30 June 2006)
315 * WriteCompressedData did not initialize the data tag (data_tag variable)
316 * WriteStructField wrote the array name tag as a 2 byte integer followed by 2
317 padding bytes. Correct implementation writes the array name tag as a 4 byte
318 integer.
319 * Write5 wrote the array name tag as a 2 byte integer followed by 2
320 padding bytes when the name was more than 4 characters. Correct
321 implementation writes the array name tag as a 4 byte integer.
322 * Write5 had a hard-coded uncompressed variable size of 448 when writing
323 compressed data.
324 * WriteInfo5 wrote the array name tag as a 2 byte integer followed by 2
325 padding bytes when the name was more than 4 characters. Correct
326 implementation writes the array name tag as a 4 byte integer.
327 * Mat_Create wrote the endian sequence incorrectly.
328 * Mat_VarCreate set the number of bytes incorrectly for structures.
329 * Mat_VarCreate fixed the data size of the character class to 1. That didn't
330 allow for multi-byte characters.
331
332 Changes in 1.1.6 (20 March 2006)
333 * Added sparse class to compressed variable
334 Bug Fixes in 1.1.6 (20 March 2006)
335 * Fixed release bug in reading double class data
336 * Fixed various compressed variable writing bugs
337 * Fixed a bug in Mat_VarCreate for sparse variables
338
339 Changes in 1.1.4 (9 February 2006)
340 * Changed licensing from the GNU General Public License to the GNU Lesser
341 General Public License
342 * Added support for reading numeric v4 MAT file
343 * Added support for sparse datatypes other than double. Although MATLAB does
344 not support these types, other free software does.
345 * Writing compressed variables is supported for numeric arrays. Future versions
346 will implement character, sparse, cell, and structure arrays.
347 * A Fortran 90/95 interface has been incorporated. Not all functions are
348 implemented yet, but more will come and it is at least functional now.
349 Hopefully feedback will help guide the Fortran interface development.
350 * Replaced preprocessor defines for types, classes, etc. with enum's.
351 Bug Fixes in 1.1.4 (9 January 2006)
352 * Mat_VarReadData did not handle complex data.