public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/libmspack] rawhide: - updated to 0.11alpha
Date: Wed, 21 Oct 2026 11:35:32 GMT	[thread overview]
Message-ID: <179258253229.1.10804542124890646584.rpms-libmspack-ce3afda7200a@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/libmspack
            Branch : rawhide
            Commit : ce3afda7200a546c05736d081c5966b8b3f8360a
            Author : Dan Horák <dan@danny.cz>
            Date   : 2026-10-21T13:35:03+02:00
            Stats  : +89/-6 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/libmspack/c/ce3afda7200a546c05736d081c5966b8b3f8360a?branch=rawhide

            Log:
            - updated to 0.11alpha

- fix CVE-2026-110602 (rhbz#2558186)
- add %check section

---
diff --git a/4d868504114346aa767d435fbb89a8b76603493f.patch b/4d868504114346aa767d435fbb89a8b76603493f.patch
new file mode 100644
index 0000000..0dae6fc
--- /dev/null
+++ b/4d868504114346aa767d435fbb89a8b76603493f.patch
@@ -0,0 +1,71 @@
+From 4d868504114346aa767d435fbb89a8b76603493f Mon Sep 17 00:00:00 2001
+From: Stuart Caie <kyzer@cabextract.org.uk>
+Date: Mon, 15 Jun 2026 16:33:33 +0000
+Subject: [PATCH] kwajd_read_headers(): initialise pointers before returning
+ any error
+
+---
+ libmspack/ChangeLog                       |   7 +++++++
+ libmspack/mspack/kwajd.c                  |   7 +++++--
+ libmspack/test/kwajd_test.c               |   6 ++++++
+ libmspack/test/test_files/kwajd/blank.kwj | Bin 0 -> 14 bytes
+ libmspack/test/test_files/kwajd/empty.kwj |   0
+ 5 files changed, 18 insertions(+), 2 deletions(-)
+ create mode 100644 libmspack/test/test_files/kwajd/blank.kwj
+ create mode 100644 libmspack/test/test_files/kwajd/empty.kwj
+
+diff --git a/libmspack/mspack/kwajd.c b/libmspack/mspack/kwajd.c
+index 30caa89..ede91dd 100644
+--- a/libmspack/mspack/kwajd.c
++++ b/libmspack/mspack/kwajd.c
+@@ -160,6 +160,11 @@ static int kwajd_read_headers(struct mspack_system *sys,
+     unsigned char buf[16];
+     int i;
+ 
++
++    /* initialise pointers */
++    hdr->filename = NULL;
++    hdr->extra    = NULL;
++
+     /* read in the header */
+     if (sys->read(fh, &buf[0], kwajh_SIZEOF) != kwajh_SIZEOF) {
+         return MSPACK_ERR_READ;
+@@ -177,8 +182,6 @@ static int kwajd_read_headers(struct mspack_system *sys,
+     hdr->data_offset  = EndGetI16(&buf[kwajh_DataOffset]);
+     hdr->headers      = EndGetI16(&buf[kwajh_Flags]);
+     hdr->length       = 0;
+-    hdr->filename     = NULL;
+-    hdr->extra        = NULL;
+     hdr->extra_length = 0;
+ 
+     /* optional headers */
+diff --git a/libmspack/test/kwajd_test.c b/libmspack/test/kwajd_test.c
+index 9425bf3..6fe771a 100644
+--- a/libmspack/test/kwajd_test.c
++++ b/libmspack/test/kwajd_test.c
+@@ -31,6 +31,12 @@ void kwajd_open_test_01() {
+     TEST(hdr->filename == NULL);
+     kwajd->close(kwajd, hdr);
+ 
++    TEST(!kwajd->open(kwajd, TESTFILE("empty.kwj")));
++    TEST(kwajd->last_error(kwajd) == MSPACK_ERR_READ);
++
++    TEST(!kwajd->open(kwajd, TESTFILE("blank.kwj")));
++    TEST(kwajd->last_error(kwajd) == MSPACK_ERR_SIGNATURE);
++
+ #define GOOD(testfile, fname)                             \
+     TEST(hdr = kwajd->open(kwajd, testfile));             \
+     TEST(hdr->filename && !strcmp(fname, hdr->filename)); \
+diff --git a/libmspack/test/test_files/kwajd/blank.kwj b/libmspack/test/test_files/kwajd/blank.kwj
+new file mode 100644
+index 0000000000000000000000000000000000000000..80023568107ecf6dd6095def597ce5eac83da921
+GIT binary patch
+literal 14
+KcmZQzKn4H+4gdiF
+
+literal 0
+HcmV?d00001
+
+diff --git a/libmspack/test/test_files/kwajd/empty.kwj b/libmspack/test/test_files/kwajd/empty.kwj
+new file mode 100644
+index 0000000..e69de29

diff --git a/libmspack.spec b/libmspack.spec
index 2b55ee1..0aa0db9 100644
--- a/libmspack.spec
+++ b/libmspack.spec
@@ -1,17 +1,21 @@
 Name:           libmspack
-Version:        0.10.1
-Release:        0.17.alpha%{?dist}
+Version:        0.11
+Release:        0.1.alpha%{?dist}
 Summary:        Library for CAB and related files compression and decompression
 
 # CRC32 is LicenseRef-Fedora-UltraPermissive
 License:        LGPL-2.1-only AND LicenseRef-Fedora-UltraPermissive AND MIT
 URL:            http://www.cabextract.org.uk/libmspack/
 Source0:        http://www.cabextract.org.uk/libmspack/%{name}-%{version}alpha.tar.gz
-#Source0:        https://github.com/kyz/libmspack/archive/v%{version}alpha/%{name}-v%{version}alpha.tar.gz
+#Source0:        https://github.com/kyz/libmspack/archive/v%%{version}alpha/%%{name}-v%%{version}alpha.tar.gz
+# https://bugzilla.redhat.com/show_bug.cgi?id=2558186
+# backported from https://github.com/kyz/libmspack/commit/4d868504114346aa767d435fbb89a8b76603493f
+Patch0:         4d868504114346aa767d435fbb89a8b76603493f.patch
 
 BuildRequires:  doxygen
 BuildRequires:  gcc
-BuildRequires: make
+BuildRequires:  make
+BuildRequires:  git
 
 # Temporarily while building from github tarball:
 #BuildRequires:  autoconf, automake, libtool
@@ -32,7 +36,8 @@ for developing applications that use %{name}.
 
 
 %prep
-%setup -q -n %{name}-%{version}alpha
+# use git style for the binary content in the patch
+%autosetup -n %{name}-%{version}alpha -p2 -S git
 
 chmod a-x mspack/mspack.h
 
@@ -66,7 +71,9 @@ rm -f html/installdox
 popd
 
 
-%ldconfig_scriptlets
+%check
+make check
+
 
 %files
 %doc README TODO ChangeLog AUTHORS
@@ -81,6 +88,11 @@ popd
 
 
 %changelog
+* Wed Oct 21 2026 Dan Horák <dan[at]danny.cz> - 0.11-0.1.alpha
+- updated to 0.11alpha
+- fix CVE-2026-110602 (rhbz#2558186)
+- add %check section
+
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.1-0.17.alpha
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

                 reply	other threads:[~2026-10-21 11:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179258253229.1.10804542124890646584.rpms-libmspack-ce3afda7200a@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox