* [gentoo-commits] repo/gentoo:master commit in: dev-libs/libmspack/files/
@ 2017-11-03 1:04 Maciej Mrozowski
0 siblings, 0 replies; 3+ messages in thread
From: Maciej Mrozowski @ 2017-11-03 1:04 UTC (permalink / raw
To: gentoo-commits
commit: df1387eae217481b44a32fd9fe04919def2099f3
Author: Maciej Mrozowski <reavertm <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 3 01:04:02 2017 +0000
Commit: Maciej Mrozowski <reavertm <AT> gentoo <DOT> org>
CommitDate: Fri Nov 3 01:04:49 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df1387ea
dev-libs/libmspack: Fix "Fix tests" patch, bug 636110
Package-Manager: Portage-2.3.8, Repoman-2.3.4
.../files/libmspack-0.6_alpha-fix-tests.patch | 86 +---------------------
1 file changed, 2 insertions(+), 84 deletions(-)
diff --git a/dev-libs/libmspack/files/libmspack-0.6_alpha-fix-tests.patch b/dev-libs/libmspack/files/libmspack-0.6_alpha-fix-tests.patch
index 2f010d87a37..22b0461ae7e 100644
--- a/dev-libs/libmspack/files/libmspack-0.6_alpha-fix-tests.patch
+++ b/dev-libs/libmspack/files/libmspack-0.6_alpha-fix-tests.patch
@@ -1,36 +1,7 @@
-From deb65056f436a4ce06946c4dde270f533e3cab4d Mon Sep 17 00:00:00 2001
-From: Stuart Caie <kyzer@cabextract.org.uk>
-Date: Mon, 16 Oct 2017 13:59:05 +0100
-Subject: [PATCH] Fix cabd_test.c test and msdecompile_md5 script
-
----
- libmspack/ChangeLog | 10 +++++++++
- libmspack/test/cabd_test.c | 3 ++-
- libmspack/test/msdecompile_md5 | 47 +++++++++++++++++++++---------------------
- 3 files changed, 36 insertions(+), 24 deletions(-)
-
-diff --git a/libmspack/ChangeLog b/libmspack/ChangeLog
-index 6861b19..4aef85f 100644
---- a/libmspack/ChangeLog
-+++ b/libmspack/ChangeLog
-@@ -1,3 +1,13 @@
-+2017-10-16 Stuart Caie <kyzer@cabextract.org.uk>
-+
-+ * test/cabd_test.c: update the short string tests to expect not only
-+ MSPACK_ERR_DATAFORMAT but also MSPACK_ERR_READ, because of the recent
-+ change to cabd_read_string(). Thanks to maitreyee43 for spotting this.
-+
-+ * test/msdecompile_md5: update the setup instructions for this script,
-+ and also change the script so it works with current Wine. Again, thanks
-+ to maitreyee43 for trying to use it and finding it not working.
-+
- 2017-08-13 Stuart Caie <kyzer@cabextract.org.uk>
-
- * src/chmextract.c: support MinGW one-arg mkdir(). Thanks to AntumDeluge
diff --git a/libmspack/test/cabd_test.c b/libmspack/test/cabd_test.c
index 5e8851c..abed65c 100644
---- a/libmspack/test/cabd_test.c
-+++ b/libmspack/test/cabd_test.c
+--- a/test/cabd_test.c
++++ b/test/cabd_test.c
@@ -186,7 +186,8 @@ void cabd_open_test_05() {
for (i = 0; i < (sizeof(str_files)/sizeof(char *)); i++) {
cab = cabd->open(cabd, str_files[i]);
@@ -41,56 +12,3 @@ index 5e8851c..abed65c 100644
}
/* lack of data blocks should NOT be a problem for merely reading */
-diff --git a/libmspack/test/msdecompile_md5 b/libmspack/test/msdecompile_md5
-index a1d3b4b..9efbfac 100755
---- a/libmspack/test/msdecompile_md5
-+++ b/libmspack/test/msdecompile_md5
-@@ -1,24 +1,25 @@
--#!/usr/bin/perl -w
--# put hh.exe, hhctrl.ocx and itss.dll into this directory
--# for this script to work. You can get them by downloading
--# the HTML Help Workshop from Microsoft and then doing:
--# $ cabextract -F 'hh*' htmlhelp.exe
--# $ cabextract -F itircl.dll hhupd.exe
--# $ cabextract -F itss.dll hhupd.exe
--# $ cp -a itircl.dll ~/.wine/drive_c/windows/system32/
--# $ cp -a itss.dll ~/.wine/drive_c/windows/system32/
--# $ wine regsvr32 /s 'C:\WINDOWS\SYSTEM32\itircl.dll'
--# $ wine regsvr32 /s 'C:\WINDOWS\SYSTEM32\itss.dll'
-+#!/bin/sh
-+# This script needs the following setup to work:
-+# - hh.exe and hhctrl.ocx copied to Wine's system32
-+# - itss.dll and itircl.dll installed as Wine DLLs
-+#
-+# Download the HTML Help Workshop (htmlhelp.exe) from Microsoft:
-+#
-+# https://msdn.microsoft.com/en-us/library/windows/desktop/ms669985(v=vs.85).aspx
-+#
-+# and then run these commands:
-+#
-+# cabextract htmlhelp.exe -F hhupd.exe
-+# cabextract hhupd.exe -F hh.exe
-+# cabextract hhupd.exe -F hhctrl.ocx
-+# cabextract hhupd.exe -F itircl.dll
-+# cabextract hhupd.exe -F itss.dll
-+# mv hh.exe hhctrl.ocx itircl.dll itss.dll ~/.wine/drive_c/windows/system32/
-+# wine regsvr32 /s 'c:\windows\system32\itircl.dll'
-+# wine regsvr32 /s 'c:\windows\system32\itss.dll'
-
--use strict;
--use File::Temp qw(tempdir);
--
--die "Usage: $0 <file.chm>\n" unless @ARGV == 1;
--my $hh = $0; $hh =~ s{[^/]+$}{hh.exe};
--my $dir = tempdir("./.tempXXXX", CLEANUP => 1);
--
--$ENV{LANG} = 'C';
--$ENV{WINEDLLOVERRIDES}='hhctrl.ocx,itss=n';
--print "*** $ARGV[0]\n";
--system("wine $hh -decompile $dir $ARGV[0] 1>&2 && " .
-- "cd $dir && find * -type f -print0 | xargs -0 md5sum");
-+dir=`mktemp -d`
-+echo "*** $1"
-+LANG=C WINEDLLOVERRIDES='hhctrl.ocx=n' wine hh -decompile $dir "$1"
-+cd $dir && find * -type f -exec md5sum {} +
-+rm -rf $dir
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/libmspack/files/
@ 2018-05-05 1:26 Aaron Bauman
0 siblings, 0 replies; 3+ messages in thread
From: Aaron Bauman @ 2018-05-05 1:26 UTC (permalink / raw
To: gentoo-commits
commit: 07f1f53c96e552cdb6c318b4dfdf420f9f2886f2
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Sat Apr 28 07:57:18 2018 +0000
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
CommitDate: Sat May 5 01:22:47 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07f1f53c
dev-libs/libmspack: remove unused patch
Closes: https://github.com/gentoo/gentoo/pull/8178
.../files/libmspack-0.5_alpha-CVE-2017-6419.patch | 41 ----------------------
1 file changed, 41 deletions(-)
diff --git a/dev-libs/libmspack/files/libmspack-0.5_alpha-CVE-2017-6419.patch b/dev-libs/libmspack/files/libmspack-0.5_alpha-CVE-2017-6419.patch
deleted file mode 100644
index 1b81fdcbfcd..00000000000
--- a/dev-libs/libmspack/files/libmspack-0.5_alpha-CVE-2017-6419.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From a83773682e856ad6529ba6db8d1792e6d515d7f1 Mon Sep 17 00:00:00 2001
-From: Mickey Sola <msola@sourcefire.com>
-Date: Wed, 29 Mar 2017 14:55:26 -0400
-Subject: [PATCH] fixing potential OOB window write when unpacking chm files
-
----
- libclamav/libmspack-0.5alpha/mspack/lzxd.c | 11 +++++++++--
- libclamav/libmspack.c | 6 +++++-
- 2 files changed, 14 insertions(+), 3 deletions(-)
-
-diff --git a/libclamav/libmspack-0.5alpha/mspack/lzxd.c b/libclamav/libmspack-0.5alpha/mspack/lzxd.c
-index 2281e7b9d..45105a583 100644
---- a/mspack/lzxd.c
-+++ b/mspack/lzxd.c
-@@ -766,8 +766,13 @@ int lzxd_decompress(struct lzxd_stream *lzx, off_t out_bytes) {
- case LZX_BLOCKTYPE_UNCOMPRESSED:
- /* as this_run is limited not to wrap a frame, this also means it
- * won't wrap the window (as the window is a multiple of 32k) */
-+ if (window_posn + this_run > lzx->window_size) {
-+ D(("match ran over window boundary"))
-+ return lzx->error = MSPACK_ERR_DECRUNCH;
-+ }
- rundest = &window[window_posn];
- window_posn += this_run;
-+
- while (this_run > 0) {
- if ((i = i_end - i_ptr) == 0) {
- READ_IF_NEEDED;
-@@ -888,8 +893,10 @@ void lzxd_free(struct lzxd_stream *lzx) {
- struct mspack_system *sys;
- if (lzx) {
- sys = lzx->sys;
-- sys->free(lzx->inbuf);
-- sys->free(lzx->window);
-+ if(lzx->inbuf)
-+ sys->free(lzx->inbuf);
-+ if(lzx->window)
-+ sys->free(lzx->window);
- sys->free(lzx);
- }
- }
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/libmspack/files/
@ 2019-04-20 1:29 Aaron Bauman
0 siblings, 0 replies; 3+ messages in thread
From: Aaron Bauman @ 2019-04-20 1:29 UTC (permalink / raw
To: gentoo-commits
commit: cb0e40e1cbee88737d78e59df4a62cf1a23963c9
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Sun Apr 7 14:48:26 2019 +0000
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
CommitDate: Sat Apr 20 01:28:35 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb0e40e1
dev-libs/libmspack: remove unused patches
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/11627
Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>
.../files/libmspack-0.6_alpha-fix-tests.patch | 14 --------------
.../libmspack-0.7.1_alpha-fix-parallel-build.patch | 20 --------------------
2 files changed, 34 deletions(-)
diff --git a/dev-libs/libmspack/files/libmspack-0.6_alpha-fix-tests.patch b/dev-libs/libmspack/files/libmspack-0.6_alpha-fix-tests.patch
deleted file mode 100644
index 22b0461ae7e..00000000000
--- a/dev-libs/libmspack/files/libmspack-0.6_alpha-fix-tests.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-diff --git a/libmspack/test/cabd_test.c b/libmspack/test/cabd_test.c
-index 5e8851c..abed65c 100644
---- a/test/cabd_test.c
-+++ b/test/cabd_test.c
-@@ -186,7 +186,8 @@ void cabd_open_test_05() {
- for (i = 0; i < (sizeof(str_files)/sizeof(char *)); i++) {
- cab = cabd->open(cabd, str_files[i]);
- TEST(cab == NULL);
-- TEST(cabd->last_error(cabd) == MSPACK_ERR_DATAFORMAT);
-+ TEST(cabd->last_error(cabd) == MSPACK_ERR_DATAFORMAT ||
-+ cabd->last_error(cabd) == MSPACK_ERR_READ);
- }
-
- /* lack of data blocks should NOT be a problem for merely reading */
diff --git a/dev-libs/libmspack/files/libmspack-0.7.1_alpha-fix-parallel-build.patch b/dev-libs/libmspack/files/libmspack-0.7.1_alpha-fix-parallel-build.patch
deleted file mode 100644
index 38935a8d26f..00000000000
--- a/dev-libs/libmspack/files/libmspack-0.7.1_alpha-fix-parallel-build.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-From 43099fb1bba26792fe98b4157c950db9c333134d Mon Sep 17 00:00:00 2001
-From: Stuart Caie <kyzer@cabextract.org.uk>
-Date: Tue, 16 Oct 2018 11:25:24 +0100
-Subject: [PATCH] Fix parallel builds by adding adding libmschmd.la explicitly
- to test_chmd_test_DEPENDENCIES
-
----
-diff --git a/libmspack/Makefile.am b/libmspack/Makefile.am
-index ba19535..6130bc2 100644
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -89,7 +89,7 @@ test_chmd_order_SOURCES = test/chmd_order.c test/md5.c test/md5.h \
- test_chmd_order_LDADD = libmschmd.la
- test_chmd_test_SOURCES = test/chmd_test.c libmschmd.la
- test_chmd_test_LDADD = libmschmd.la
--test_chmd_test_DEPENDENCIES = test/test_files/chmd/cve-2015-4467-reset-interval-zero.chm
-+test_chmd_test_DEPENDENCIES = libmschmd.la test/test_files/chmd/cve-2015-4467-reset-interval-zero.chm
- test_chminfo_SOURCES = test/chminfo.c libmschmd.la
- test_chminfo_LDADD = libmschmd.la
- test_kwajd_test_SOURCES = test/kwajd_test.c libmspack.la
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-04-20 23:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-05 1:26 [gentoo-commits] repo/gentoo:master commit in: dev-libs/libmspack/files/ Aaron Bauman
-- strict thread matches above, loose matches on Subject: below --
2019-04-20 1:29 Aaron Bauman
2017-11-03 1:04 Maciej Mrozowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox