mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
matio: update to 1.5.23.
This commit is contained in:
parent
ca1f4de505
commit
4a2d615606
3 changed files with 5 additions and 50 deletions
|
@ -3921,7 +3921,7 @@ libhidrd_opt.so.0 hidrd-0.2.0_1
|
||||||
libhidrd_strm.so.0 hidrd-0.2.0_1
|
libhidrd_strm.so.0 hidrd-0.2.0_1
|
||||||
libhidrd_fmt.so.0 hidrd-0.2.0_1
|
libhidrd_fmt.so.0 hidrd-0.2.0_1
|
||||||
libjcat.so.1 libjcat-0.1.2_1
|
libjcat.so.1 libjcat-0.1.2_1
|
||||||
libmatio.so.9 matio-1.5.17_2
|
libmatio.so.11 matio-1.5.23_1
|
||||||
libportal.so.1 libportal-0.6_1
|
libportal.so.1 libportal-0.6_1
|
||||||
libportal-gtk3.so.1 libportal-gtk3-0.6_1
|
libportal-gtk3.so.1 libportal-gtk3-0.6_1
|
||||||
libportal-gtk4.so.1 libportal-gtk4-0.6_1
|
libportal-gtk4.so.1 libportal-gtk4-0.6_1
|
||||||
|
|
|
@ -1,45 +0,0 @@
|
||||||
From 8138e767bf6df7cccf1664f3a854e596628fdb2d Mon Sep 17 00:00:00 2001
|
|
||||||
From: Nathan Owens <ndowens04@gmail.com>
|
|
||||||
Date: Sat, 28 Dec 2019 18:25:58 -0600
|
|
||||||
Subject: [PATCH] matio: CVE-2019-20020 patch
|
|
||||||
|
|
||||||
Signed-off-by: Nathan Owens <ndowens04@gmail.com>
|
|
||||||
---
|
|
||||||
src/mat5.c | 18 +++++++++++++++++-
|
|
||||||
1 file changed, 17 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/src/mat5.c b/src/mat5.c
|
|
||||||
index abdb351..776f233 100644
|
|
||||||
--- a/src/mat5.c
|
|
||||||
+++ b/src/mat5.c
|
|
||||||
@@ -980,10 +980,26 @@ ReadNextCell( mat_t *mat, matvar_t *matvar )
|
|
||||||
/* Rank and Dimension */
|
|
||||||
if ( uncomp_buf[0] == MAT_T_INT32 ) {
|
|
||||||
int j;
|
|
||||||
+ size_t size;
|
|
||||||
cells[i]->rank = uncomp_buf[1];
|
|
||||||
nbytes -= cells[i]->rank;
|
|
||||||
cells[i]->rank /= 4;
|
|
||||||
- cells[i]->dims = (size_t*)malloc(cells[i]->rank*sizeof(*cells[i]->dims));
|
|
||||||
+ if ( 0 == do_clean && cells[i]->rank > 13 ) {
|
|
||||||
+ int rank = cells[i]->rank;
|
|
||||||
+ cells[i]->rank = 0;
|
|
||||||
+ Mat_Critical("%d is not a valid rank", rank);
|
|
||||||
+ continue;
|
|
||||||
+ }
|
|
||||||
+ err = SafeMul(&size, cells[i]->rank, sizeof(*cells[i]->dims));
|
|
||||||
+ if ( err ) {
|
|
||||||
+ if ( do_clean )
|
|
||||||
+ free(dims);
|
|
||||||
+ Mat_VarFree(cells[i]);
|
|
||||||
+ cells[i] = NULL;
|
|
||||||
+ Mat_Critical("Integer multiplication overflow");
|
|
||||||
+ continue;
|
|
||||||
+ }
|
|
||||||
+ cells[i]->dims = (size_t*)malloc(size);
|
|
||||||
if ( mat->byteswap ) {
|
|
||||||
for ( j = 0; j < cells[i]->rank; j++ )
|
|
||||||
cells[i]->dims[j] = Mat_uint32Swap(dims + j);
|
|
||||||
--
|
|
||||||
2.24.1
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'matio'
|
# Template file for 'matio'
|
||||||
pkgname=matio
|
pkgname=matio
|
||||||
version=1.5.17
|
version=1.5.23
|
||||||
revision=2
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static"
|
configure_args="--disable-static"
|
||||||
hostmakedepends="libtool"
|
hostmakedepends="libtool"
|
||||||
|
@ -10,8 +10,8 @@ short_desc="MATLAB MAT file I/O library"
|
||||||
maintainer="Florian Eich <flrn@nrmncr.net>"
|
maintainer="Florian Eich <flrn@nrmncr.net>"
|
||||||
license="BSD-2-Clause"
|
license="BSD-2-Clause"
|
||||||
homepage="https://github.com/tbeu/matio"
|
homepage="https://github.com/tbeu/matio"
|
||||||
distfiles="https://github.com/tbeu/matio/releases/download/v${version}/${pkgname}-${version}.tar.gz"
|
distfiles="https://github.com/tbeu/matio/releases/download/v${version}/matio-${version}.tar.gz"
|
||||||
checksum=5e455527d370ab297c4abe5a2ab4d599c93ac7c1a0c85d841cc5c22f8221c400
|
checksum=9f91eae661df46ea53c311a1b2dcff72051095b023c612d7cbfc09406c9f4d6e
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
configure_args+=" ac_cv_va_copy=C99"
|
configure_args+=" ac_cv_va_copy=C99"
|
||||||
|
|
Loading…
Add table
Reference in a new issue