public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/zstd] f45: avoid false failure on s390
@ 2026-11-24 20:56 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-11-24 20:56 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/zstd
            Branch : f45
            Commit : 1a83c7c4b691a16495d5aa7557e5a4ce9a7d64f0
            Author : Pádraig Brady <P@draigBrady.com>
            Date   : 2026-11-24T20:03:28+00:00
            Stats  : +24/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/zstd/c/1a83c7c4b691a16495d5aa7557e5a4ce9a7d64f0?branch=f45

            Log:
            avoid false failure on s390

* zstd.spec: Skip a couple of fuzzer tests assuming little endian.

---
diff --git a/zstd-1.6.0-s390x-ddict-tests.patch b/zstd-1.6.0-s390x-ddict-tests.patch
new file mode 100644
index 0000000..d683d02
--- /dev/null
+++ b/zstd-1.6.0-s390x-ddict-tests.patch
@@ -0,0 +1,21 @@
+--- a/tests/fuzzer.c
++++ b/tests/fuzzer.c
+@@ -6717,6 +6717,10 @@
+         }
+         DISPLAYLEVEL(3, "OK \n");
+ 
++#ifdef __s390x__
++        /* The dictionary IDs in these two tests assume little-endian byte order. */
++        DISPLAYLEVEL(3, "Skipping two DDict hashset tests on s390x\n");
++#else
+         DISPLAYLEVEL(3, "test%3i : DDict hashset OOB T283341343 (ASAN) : ", testNb++);
+         {
+             /* Simplified repro for T283341343 - relies on ASAN to catch OOB read.
+@@ -6899,6 +6903,7 @@
+         _oob_write_skip2: ;
+         }
+         DISPLAYLEVEL(3, "OK (ASAN would report OOB write if vulnerable)\n");
++#endif
+ 
+         DISPLAYLEVEL(3, "test%3i : DDict hashset is dropped by reset and refDDict(NULL) : ", testNb++);
+         {   /* After a parameter reset or refDDict(NULL), a frame must not select

diff --git a/zstd.spec b/zstd.spec
index 5909278..ec3a8fa 100644
--- a/zstd.spec
+++ b/zstd.spec
@@ -25,6 +25,8 @@ License:        BSD-3-Clause OR GPL-2.0-only
 URL:            https://github.com/facebook/zstd
 Source0:        https://github.com/facebook/zstd/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 
+Patch1:         zstd-1.6.0-s390x-ddict-tests.patch
+
 BuildRequires:  cmake
 BuildRequires:  make
 BuildRequires:  gcc %{?with_gtest:gtest-devel}
@@ -67,7 +69,7 @@ Header files for Zstd library.
 Static variant of the Zstd library.
 
 %prep
-%setup -q
+%autosetup -p1
 find -name .gitignore -delete
 
 %build

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-24 20:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-24 20:56 [rpms/zstd] f45: avoid false failure on s390 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox