2007-01-15 23:22:28 +00:00
|
|
|
#
|
2011-11-19 21:04:58 +00:00
|
|
|
# spec file for package libmspack
|
2007-01-15 23:22:28 +00:00
|
|
|
#
|
2024-01-22 17:18:36 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2007-01-15 23:22:28 +00:00
|
|
|
#
|
2009-06-18 23:01:26 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-11-08 06:41:32 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:22:28 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2012-07-18 17:55:28 +00:00
|
|
|
# "alpha" in the version string just says that it is an alpha version.
|
|
|
|
%define _version %{version}alpha
|
Accepting request 565794 from home:mnhauke:branches:devel:libraries:c_c++
- Update to version 0.6
* 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.
* lzxd_init(), lzxd_set_output_length(), mszipd_init(): due to the
issue mentioned above, these functions now reject negative lengths
* 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.
This issue was raised by ClamAV as CVE-2017-11423
- Add subpackage for helper tools
- Run spec-cleaner
- Update to version 0.6
OBS-URL: https://build.opensuse.org/request/show/565794
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmspack?expand=0&rev=26
2018-01-16 14:34:02 +00:00
|
|
|
Name: libmspack
|
2023-02-08 09:47:51 +00:00
|
|
|
Version: 0.11
|
Accepting request 565794 from home:mnhauke:branches:devel:libraries:c_c++
- Update to version 0.6
* 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.
* lzxd_init(), lzxd_set_output_length(), mszipd_init(): due to the
issue mentioned above, these functions now reject negative lengths
* 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.
This issue was raised by ClamAV as CVE-2017-11423
- Add subpackage for helper tools
- Run spec-cleaner
- Update to version 0.6
OBS-URL: https://build.opensuse.org/request/show/565794
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmspack?expand=0&rev=26
2018-01-16 14:34:02 +00:00
|
|
|
Release: 0
|
2007-01-15 23:22:28 +00:00
|
|
|
Summary: Library That Implements Different Microsoft Compressions
|
2018-07-27 08:22:28 +00:00
|
|
|
License: LGPL-2.1-only
|
2018-01-17 10:14:27 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-07-27 08:22:28 +00:00
|
|
|
URL: https://www.cabextract.org.uk/libmspack/
|
|
|
|
Source: https://www.cabextract.org.uk/libmspack/%{name}-%{_version}.tar.gz
|
2014-04-04 14:49:17 +00:00
|
|
|
Source2: baselibs.conf
|
Accepting request 565794 from home:mnhauke:branches:devel:libraries:c_c++
- Update to version 0.6
* 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.
* lzxd_init(), lzxd_set_output_length(), mszipd_init(): due to the
issue mentioned above, these functions now reject negative lengths
* 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.
This issue was raised by ClamAV as CVE-2017-11423
- Add subpackage for helper tools
- Run spec-cleaner
- Update to version 0.6
OBS-URL: https://build.opensuse.org/request/show/565794
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmspack?expand=0&rev=26
2018-01-16 14:34:02 +00:00
|
|
|
BuildRequires: pkgconfig
|
2007-01-15 23:22:28 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The purpose of libmspack is to provide both compression and
|
|
|
|
decompression of some loosely related file formats used by Microsoft.
|
|
|
|
Currently the most common formats are implemented.
|
|
|
|
|
2008-01-17 22:38:41 +00:00
|
|
|
%package -n libmspack0
|
|
|
|
Summary: Library That Implements Different Microsoft Compressions
|
Accepting request 565794 from home:mnhauke:branches:devel:libraries:c_c++
- Update to version 0.6
* 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.
* lzxd_init(), lzxd_set_output_length(), mszipd_init(): due to the
issue mentioned above, these functions now reject negative lengths
* 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.
This issue was raised by ClamAV as CVE-2017-11423
- Add subpackage for helper tools
- Run spec-cleaner
- Update to version 0.6
OBS-URL: https://build.opensuse.org/request/show/565794
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmspack?expand=0&rev=26
2018-01-16 14:34:02 +00:00
|
|
|
Group: System/Libraries
|
2008-01-17 22:38:41 +00:00
|
|
|
|
|
|
|
%description -n libmspack0
|
|
|
|
The purpose of libmspack is to provide both compression and
|
|
|
|
decompression of some loosely related file formats used by Microsoft.
|
|
|
|
Currently the most common formats are implemented.
|
|
|
|
|
2007-01-15 23:22:28 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Static libraries, header files and documentation for libmspack
|
|
|
|
Group: Development/Libraries/C and C++
|
2008-01-17 22:38:41 +00:00
|
|
|
Requires: libmspack0 = %{version}
|
2007-01-15 23:22:28 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The libmspack-devel package contains the header files and static
|
|
|
|
libraries necessary for developing programs using libmspack.
|
|
|
|
|
2018-11-08 06:41:32 +00:00
|
|
|
%package -n mspack-examples
|
Accepting request 565794 from home:mnhauke:branches:devel:libraries:c_c++
- Update to version 0.6
* 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.
* lzxd_init(), lzxd_set_output_length(), mszipd_init(): due to the
issue mentioned above, these functions now reject negative lengths
* 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.
This issue was raised by ClamAV as CVE-2017-11423
- Add subpackage for helper tools
- Run spec-cleaner
- Update to version 0.6
OBS-URL: https://build.opensuse.org/request/show/565794
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmspack?expand=0&rev=26
2018-01-16 14:34:02 +00:00
|
|
|
Summary: Library That Implements Different Microsoft Compressions
|
2018-11-08 06:41:32 +00:00
|
|
|
# Name up to 0.9 (SLE 15 *, Leap 15 *):
|
2018-01-19 07:08:08 +00:00
|
|
|
Group: Productivity/File utilities
|
2018-11-08 06:41:32 +00:00
|
|
|
Provides: mspack-tools = %{version}
|
|
|
|
Obsoletes: mspack-tools < %{version}
|
Accepting request 565794 from home:mnhauke:branches:devel:libraries:c_c++
- Update to version 0.6
* 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.
* lzxd_init(), lzxd_set_output_length(), mszipd_init(): due to the
issue mentioned above, these functions now reject negative lengths
* 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.
This issue was raised by ClamAV as CVE-2017-11423
- Add subpackage for helper tools
- Run spec-cleaner
- Update to version 0.6
OBS-URL: https://build.opensuse.org/request/show/565794
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmspack?expand=0&rev=26
2018-01-16 14:34:02 +00:00
|
|
|
|
2018-11-08 06:41:32 +00:00
|
|
|
%description -n mspack-examples
|
Accepting request 565794 from home:mnhauke:branches:devel:libraries:c_c++
- Update to version 0.6
* 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.
* lzxd_init(), lzxd_set_output_length(), mszipd_init(): due to the
issue mentioned above, these functions now reject negative lengths
* 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.
This issue was raised by ClamAV as CVE-2017-11423
- Add subpackage for helper tools
- Run spec-cleaner
- Update to version 0.6
OBS-URL: https://build.opensuse.org/request/show/565794
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmspack?expand=0&rev=26
2018-01-16 14:34:02 +00:00
|
|
|
The purpose of libmspack is to provide both compression and
|
|
|
|
decompression of some loosely related file formats used by Microsoft.
|
|
|
|
Currently the most common formats are implemented.
|
|
|
|
|
|
|
|
This subpacke provides useful programs that make use of libmspack.
|
2018-11-08 06:41:32 +00:00
|
|
|
* cabd_memory - An implementation of the mspack_system interface using
|
|
|
|
only memory
|
|
|
|
* cabrip - Extracts any CAB files embedded in another file.
|
|
|
|
* chmextract - Extracts all files in a CHM file to disk.
|
|
|
|
* msexpand - Expands an SZDD or KWAJ file.
|
|
|
|
* multifh - An implementation of the mspack_system interface which
|
|
|
|
can access many things: regular disk files, already
|
|
|
|
opened stdio FILE* file pointers, open file
|
|
|
|
descriptors, blocks of memory
|
|
|
|
* oabextract - Extracts an Exchange Offline Address Book (.LZX) file.
|
Accepting request 565794 from home:mnhauke:branches:devel:libraries:c_c++
- Update to version 0.6
* 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.
* lzxd_init(), lzxd_set_output_length(), mszipd_init(): due to the
issue mentioned above, these functions now reject negative lengths
* 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.
This issue was raised by ClamAV as CVE-2017-11423
- Add subpackage for helper tools
- Run spec-cleaner
- Update to version 0.6
OBS-URL: https://build.opensuse.org/request/show/565794
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmspack?expand=0&rev=26
2018-01-16 14:34:02 +00:00
|
|
|
|
2007-01-15 23:22:28 +00:00
|
|
|
%prep
|
2010-12-28 23:16:18 +00:00
|
|
|
%setup -q -n %{name}-%{_version}
|
2007-01-15 23:22:28 +00:00
|
|
|
|
|
|
|
%build
|
2008-01-17 22:38:41 +00:00
|
|
|
%configure\
|
|
|
|
--disable-static
|
2023-02-08 09:47:51 +00:00
|
|
|
%make_build
|
2007-01-15 23:22:28 +00:00
|
|
|
|
|
|
|
%install
|
Accepting request 565794 from home:mnhauke:branches:devel:libraries:c_c++
- Update to version 0.6
* 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.
* lzxd_init(), lzxd_set_output_length(), mszipd_init(): due to the
issue mentioned above, these functions now reject negative lengths
* 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.
This issue was raised by ClamAV as CVE-2017-11423
- Add subpackage for helper tools
- Run spec-cleaner
- Update to version 0.6
OBS-URL: https://build.opensuse.org/request/show/565794
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmspack?expand=0&rev=26
2018-01-16 14:34:02 +00:00
|
|
|
%make_install
|
2018-11-08 06:41:32 +00:00
|
|
|
cd examples
|
|
|
|
install -d %{buildroot}%{_bindir}
|
2023-02-08 09:47:51 +00:00
|
|
|
../libtool --mode=install %{_bindir}/install -c cabd_memory cabrip chmextract msexpand multifh oabextract %{buildroot}%{_bindir}
|
Accepting request 565794 from home:mnhauke:branches:devel:libraries:c_c++
- Update to version 0.6
* 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.
* lzxd_init(), lzxd_set_output_length(), mszipd_init(): due to the
issue mentioned above, these functions now reject negative lengths
* 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.
This issue was raised by ClamAV as CVE-2017-11423
- Add subpackage for helper tools
- Run spec-cleaner
- Update to version 0.6
OBS-URL: https://build.opensuse.org/request/show/565794
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmspack?expand=0&rev=26
2018-01-16 14:34:02 +00:00
|
|
|
rm %{buildroot}%{_libdir}/*.*a
|
2007-01-15 23:22:28 +00:00
|
|
|
|
2018-11-08 06:41:32 +00:00
|
|
|
%check
|
2023-02-08 09:47:51 +00:00
|
|
|
%make_build check
|
2018-11-08 06:41:32 +00:00
|
|
|
|
2008-01-17 22:38:41 +00:00
|
|
|
%post -n libmspack0 -p /sbin/ldconfig
|
|
|
|
%postun -n libmspack0 -p /sbin/ldconfig
|
2007-01-15 23:22:28 +00:00
|
|
|
|
2018-11-08 06:41:32 +00:00
|
|
|
%files -n mspack-examples
|
|
|
|
%{_bindir}/cabd_memory
|
Accepting request 565794 from home:mnhauke:branches:devel:libraries:c_c++
- Update to version 0.6
* 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.
* lzxd_init(), lzxd_set_output_length(), mszipd_init(): due to the
issue mentioned above, these functions now reject negative lengths
* 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.
This issue was raised by ClamAV as CVE-2017-11423
- Add subpackage for helper tools
- Run spec-cleaner
- Update to version 0.6
OBS-URL: https://build.opensuse.org/request/show/565794
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmspack?expand=0&rev=26
2018-01-16 14:34:02 +00:00
|
|
|
%{_bindir}/cabrip
|
|
|
|
%{_bindir}/chmextract
|
|
|
|
%{_bindir}/msexpand
|
2018-11-08 06:41:32 +00:00
|
|
|
%{_bindir}/multifh
|
Accepting request 565794 from home:mnhauke:branches:devel:libraries:c_c++
- Update to version 0.6
* 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.
* lzxd_init(), lzxd_set_output_length(), mszipd_init(): due to the
issue mentioned above, these functions now reject negative lengths
* 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.
This issue was raised by ClamAV as CVE-2017-11423
- Add subpackage for helper tools
- Run spec-cleaner
- Update to version 0.6
OBS-URL: https://build.opensuse.org/request/show/565794
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmspack?expand=0&rev=26
2018-01-16 14:34:02 +00:00
|
|
|
%{_bindir}/oabextract
|
|
|
|
|
2008-01-17 22:38:41 +00:00
|
|
|
%files -n libmspack0
|
2018-07-27 08:22:28 +00:00
|
|
|
%license COPYING.LIB
|
|
|
|
# NEWS is empty
|
|
|
|
%doc AUTHORS ChangeLog README TODO
|
Accepting request 565794 from home:mnhauke:branches:devel:libraries:c_c++
- Update to version 0.6
* 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.
* lzxd_init(), lzxd_set_output_length(), mszipd_init(): due to the
issue mentioned above, these functions now reject negative lengths
* 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.
This issue was raised by ClamAV as CVE-2017-11423
- Add subpackage for helper tools
- Run spec-cleaner
- Update to version 0.6
OBS-URL: https://build.opensuse.org/request/show/565794
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmspack?expand=0&rev=26
2018-01-16 14:34:02 +00:00
|
|
|
%{_libdir}/*.so.*
|
2007-01-15 23:22:28 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_libdir}/*.so
|
2010-12-28 23:16:18 +00:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2007-01-15 23:22:28 +00:00
|
|
|
%{_includedir}/*
|
|
|
|
|
2008-01-17 22:38:41 +00:00
|
|
|
%changelog
|