Thu Jul 26 08:37:40 2018 UTC ()
libmspack: update to 0.7alpha.

2018-04-26  Stuart Caie <kyzer@cabextract.org.uk>

	* read_chunk(): the test that chunk numbers are in bounds was off
	by one, so read_chunk() returned a pointer taken from outside
	allocated memory that usually crashes libmspack when accessed.
	Thanks to Hanno B旦ck for finding the issue and providing a sample.

	* chmd_read_headers(): reject files with blank filenames. Thanks
	again to Hanno B旦ck for finding the issue and providing a sample file.

2018-02-06  Stuart Caie <kyzer@cabextract.org.uk>

	* chmd.c: fixed an off-by-one error in the TOLOWER() macro, reported
	by Dmitry Glavatskikh. Thanks Dmitry!

2017-11-26  Stuart Caie <kyzer@cabextract.org.uk>

	* kwajd_read_headers(): fix up the logic of reading the filename and
	extension headers to avoid a one or two byte overwrite. Thanks to
	Jakub Wilk for finding the issue.

	* test/kwajd_test.c: add tests for KWAJ filename.ext handling

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
	for reporting this.

2017-08-13  Stuart Caie <kyzer@cabextract.org.uk>

	* read_spaninfo(): a CHM file can have no ResetTable and have a
	negative length in SpanInfo, which then feeds a negative output length
	to lzxd_init(), which then sets frame_size to a value of your choosing,
	the lower 32 bits of output length, larger than LZX_FRAME_SIZE. If the
	first LZX block is uncompressed, this writes data beyond the end of the
	window. This issue was raised by ClamAV as CVE-2017-6419.  Thanks to
	Sebastian Andrzej Siewior for finding this by chance!

	* lzxd_init(), lzxd_set_output_length(), mszipd_init(): due to the issue
	mentioned above, these functions now reject negative lengths

2017-08-05  Stuart Caie <kyzer@cabextract.org.uk>

	* cabd_read_string(): add missing error check on result of read().
	If an mspack_system implementation returns an error, it's interpreted
	as a huge positive integer, which leads to reading past the end of the
	stack-based buffer. Thanks to Sebastian Andrzej Siewior for explaining
	the problem. This issue was raised by ClamAV as CVE-2017-11423

2016-04-20  Stuart Caie <kyzer@cabextract.org.uk>

	* configure.ac: change my email address to kyzer@cabextract.org.uk

2015-05-10  Stuart Caie <kyzer@4u.net>

	* cabd_read_string(): correct rejection of empty strings. Thanks to
	Hanno B旦ck for finding the issue and providing a sample file.

2015-05-10  Stuart Caie <kyzer@4u.net>

	* Makefile.am: Add subdir-objects option as suggested by autoreconf.

	* configure.ac: Add AM_PROG_AR as suggested by autoreconf.

2015-01-29  Stuart Caie <kyzer@4u.net>

	* system.h: if C99 inttypes.h exists, use its PRI{d,u}{32,64} macros.
	Thanks to Johnathan Kollasch for the suggestion.


(wiz)
diff -r1.2 -r1.3 pkgsrc/archivers/libmspack/Makefile
diff -r1.2 -r1.3 pkgsrc/archivers/libmspack/distinfo
diff -r1.1 -r1.2 pkgsrc/archivers/libmspack/PLIST

cvs diff -r1.2 -r1.3 pkgsrc/archivers/libmspack/Makefile (expand / switch to unified diff)

--- pkgsrc/archivers/libmspack/Makefile 2017/08/01 14:58:51 1.2
+++ pkgsrc/archivers/libmspack/Makefile 2018/07/26 08:37:40 1.3
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1# $NetBSD: Makefile,v 1.2 2017/08/01 14:58:51 wiz Exp $ 1# $NetBSD: Makefile,v 1.3 2018/07/26 08:37:40 wiz Exp $
2 2
3DISTNAME= libmspack-0.5alpha 3DISTNAME= libmspack-0.7alpha
4CATEGORIES= devel 4CATEGORIES= devel
5MASTER_SITES= https://www.cabextract.org.uk/libmspack/ 5MASTER_SITES= https://www.cabextract.org.uk/libmspack/
6 6
7MAINTAINER= pkgsrc-users@NetBSD.org 7MAINTAINER= pkgsrc-users@NetBSD.org
8HOMEPAGE= https://www.cabextract.org.uk/libmspack/ 8HOMEPAGE= https://www.cabextract.org.uk/libmspack/
9COMMENT= Archiver for Microsoft format CAB, CHM, WIM, LIT, HLP, KWAJ and SZDD 9COMMENT= Archiver for Microsoft format CAB, CHM, WIM, LIT, HLP, KWAJ and SZDD
10LICENSE= gnu-lgpl-v2.1 10LICENSE= gnu-lgpl-v2.1
11 11
12GNU_CONFIGURE= yes 12GNU_CONFIGURE= yes
13USE_LIBTOOL= yes 13USE_LIBTOOL= yes
14USE_TOOLS+= pkg-config 14USE_TOOLS+= pkg-config
15 15
16PKGCONFIG_OVERRIDE+= libmspack.pc.in 16PKGCONFIG_OVERRIDE+= libmspack.pc.in

cvs diff -r1.2 -r1.3 pkgsrc/archivers/libmspack/distinfo (expand / switch to unified diff)

--- pkgsrc/archivers/libmspack/distinfo 2017/03/23 17:06:45 1.2
+++ pkgsrc/archivers/libmspack/distinfo 2018/07/26 08:37:40 1.3
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.2 2017/03/23 17:06:45 joerg Exp $ 1$NetBSD: distinfo,v 1.3 2018/07/26 08:37:40 wiz Exp $
2 2
3SHA1 (libmspack-0.5alpha.tar.gz) = 226f19b1fc58e820671a1749983b06896e108cc4 3SHA1 (libmspack-0.7alpha.tar.gz) = 47d03d757c1cc22fa1203bf6ca1f54af4d181038
4RMD160 (libmspack-0.5alpha.tar.gz) = b1aae1671cfa5fa7b830bed6255d52da513337e4 4RMD160 (libmspack-0.7alpha.tar.gz) = 0e2ead79bc744d72ae301701f3ce1e9e0dcdab9e
5SHA512 (libmspack-0.5alpha.tar.gz) = 6d4efa0f43c43185ef91c97c1518aa70f09109d7332cda7e12019e146ec9cb0f2065fb1b57683b48bae9a7eaf8e82eb94096644c6d25c56d45878f630b719231 5SHA512 (libmspack-0.7alpha.tar.gz) = 0b59e4bb90bdab3eb3fcb9cff7e85ce0f3f2878aac259fa8b1ebed9ef14d2c03b33072dd5645f8e72f0c9b89a73c9a27ef6d86aed2aafb517ac43b6bc912c75a
6Size (libmspack-0.5alpha.tar.gz) = 654193 bytes 6Size (libmspack-0.7alpha.tar.gz) = 486173 bytes

cvs diff -r1.1 -r1.2 pkgsrc/archivers/libmspack/PLIST (expand / switch to unified diff)

--- pkgsrc/archivers/libmspack/PLIST 2016/10/09 03:11:25 1.1
+++ pkgsrc/archivers/libmspack/PLIST 2018/07/26 08:37:40 1.2
@@ -1,4 +1,8 @@ @@ -1,4 +1,8 @@
1@comment $NetBSD: PLIST,v 1.1 2016/10/09 03:11:25 ryoon Exp $ 1@comment $NetBSD: PLIST,v 1.2 2018/07/26 08:37:40 wiz Exp $
 2bin/cabrip
 3bin/chmextract
 4bin/msexpand
 5bin/oabextract
2include/mspack.h 6include/mspack.h
3lib/libmspack.la 7lib/libmspack.la
4lib/pkgconfig/libmspack.pc 8lib/pkgconfig/libmspack.pc