Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package zig0.17 for openSUSE:Factory checked in at 2026-12-05 19:10:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/zig0.17 (Old) and /work/SRC/openSUSE:Factory/.zig0.17.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "zig0.17" Sat Dec 5 19:10:10 2026 rev:2 rq:1403071 version:0.17.1 Changes: -------- --- /work/SRC/openSUSE:Factory/zig0.17/zig0.17.changes 2026-10-31 23:08:42.801772535 +0100 +++ /work/SRC/openSUSE:Factory/.zig0.17.new.1340718/zig0.17.changes 2026-12-05 19:11:55.659025501 +0100 @@ -1,0 +2,20 @@ +Thu Nov 26 20:17:29 UTC 2026 - Martin Pluskal <[email protected]> + +- Update to 0.17.1: + * Fix compiler crash and miscompilation regressions in LLVM + codegen, @bitCast, @reduce, x86_64 ABI and vector handling + * Fix build-system dependency fetching, --fork handling and cache + invalidation + * Fix ELF, Mach-O and SPARC linking plus std.Io, HTTP and crypto + edge cases +- CVE-2026-107891: musl regcomp integer overflows could cause + undersized allocations and out-of-bounds heap writes + * fix-CVE-2026-107891-wasi-libc.patch +- Fix _constraints: the test-flavour 12G memory overwrite still + targeted zig0.16:test after the fork; point it at zig0.17:test +- Spec cleanup: + * Drop the unused liburing build dependency + * Normalize the bundled public-domain identifier to + LicenseRef-SUSE-Public-Domain + +------------------------------------------------------------------- Old: ---- zig-0.17.0.tar.xz New: ---- fix-CVE-2026-107891-wasi-libc.patch zig-0.17.1.tar.xz ----------(New B)---------- New: undersized allocations and out-of-bounds heap writes * fix-CVE-2026-107891-wasi-libc.patch - Fix _constraints: the test-flavour 12G memory overwrite still ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ zig0.17.spec ++++++ --- /var/tmp/diff_new_pack.MkxMNB/_old 2026-12-05 19:11:56.883077120 +0100 +++ /var/tmp/diff_new_pack.MkxMNB/_new 2026-12-05 19:11:56.885077204 +0100 @@ -17,7 +17,7 @@ %global version_suffix 0.17 -%global version_current 0.17.0 +%global version_current 0.17.1 %global origname zig%{version_suffix} # @BUILD_FLAVOR@ is substituted TEXTUALLY by obs-build, so it is empty for the # default flavor - hence the %%{nil}. The %%else branch MUST define psuffix or @@ -33,7 +33,7 @@ %endif %global _lto_cflags %{nil} %global __builder ninja -# LLVM 21 is a hard requirement +# LLVM 22 is a hard requirement %define clang_ver 22 %if 0%{?suse_version} >= 1600 %ifnarch aarch64 @@ -58,6 +58,9 @@ Source1: macros.zig Source2: zig%{version_suffix}-rpmlintrc Source99: series +# Source-Binary-Exception: zig-*.tar.xz:zig-*/stage1/zig1.wasm -- bootstrap: stage1 compiler builds zig2 and compiler_rt from source because this CMake build has no packaged-Zig bootstrap input +# Source-Binary-Exception: zig-*.tar.xz:zig-*/lib/std/compress/xz/testdata/*.xz -- test-data: compressed ELF fixtures are only read by xz decoder tests +# Source-Binary-Exception: zig-*.tar.xz:zig-*/lib/std/tar/testdata/*.tar -- test-data: malformed tar fixtures are only read by tar parser tests # PATCH-FIX-OPENSUSE 0000-remove-lld-in-cmakelist.patch boo#1193892 -- openSUSE ships no # lld%%{clang_ver}-devel, so LLD cannot be linked into the compiler. Stop CMake from # looking for it. Patch0/1/2 exist solely to work around that missing package; drop all @@ -86,7 +89,8 @@ # to https://codeberg.org/ziglang/zig, so there is no live upstream reference to give. # Keep _constraints' memory request above the value set here. Patch4: bump_max_rss.patch - +# PATCH-FIX-OPENSUSE fix-CVE-2026-107891-wasi-libc.patch CVE-2026-107891 -- backport af6c78e344 to wasi-libc's separate regcomp.c +Patch5: fix-CVE-2026-107891-wasi-libc.patch BuildRequires: (gcc13-c++ if gcc13) BuildRequires: (gcc14-c++ if gcc14) BuildRequires: (gcc15-c++ if gcc15) @@ -99,14 +103,8 @@ BuildRequires: glibc-devel BuildRequires: glibc-devel-32bit BuildRequires: help2man -BuildRequires: liburing-devel BuildRequires: lld%{?clang_ver} BuildRequires: llvm%{?clang_ver}-devel -# spec-cleaner DEVIATION: it wants to relocate this block below ExclusiveArch, which would -# orphan the only conditional BuildRequires away from every other one. Keep it here. -%if %{with mold} -BuildRequires: mold -%endif BuildRequires: ninja BuildRequires: pkgconfig BuildRequires: zstd @@ -115,6 +113,9 @@ # llvm-config is missing targets for ppc and arm architectures. # ExcludeArch: ppc64 ppc64le %%arm %%ix86 ExclusiveArch: x86_64 aarch64 riscv64 %{mips64} +%if %{with mold} +BuildRequires: mold +%endif # The test flavor ships no binary package at all, so it must not advertise any of # the runtime deps or the zig/zig-implementation providers - OBS reads those for # scheduling even though rpmbuild produces nothing here. @@ -161,7 +162,7 @@ # LGPL-2.1-or-later, ...). A WITH exception is part of the grant and is kept. # 4. An OR is a choice offered to us: only the branch we elect is declared, never the # branch we do not. -# 5. A public domain dedication is declared SUSE-Public-Domain, openSUSE's spelling. +# - A public domain dedication is declared LicenseRef-SUSE-Public-Domain (SPDX LicenseRef). # 6. A grant that cannot be mapped to an id rpmlint accepts is omitted, never replaced by # a near match. # 7. The surviving ids are AND-joined in case insensitive alphabetical order. @@ -193,7 +194,7 @@ # * lib/libc/include/generic-netbsd/sys/acl.h still tags itself BSD-2-Clause-FreeBSD, a # retired id. The "views and conclusions" paragraph that used to distinguish it is not # in the file, so it counts as BSD-2-Clause and no new term is needed. -License: Apache-2.0 WITH LLVM-exception AND APSL-1.1 AND APSL-2.0 AND Beerware AND BSD-1-Clause AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND CDDL-1.0 AND GFDL-1.1-or-later AND GPL-1.0-or-later WITH Linux-syscall-note AND GPL-2.0-only WITH Linux-syscall-note AND GPL-2.0-or-later WITH Linux-syscall-note AND GPL-3.0-or-later WITH GCC-exception-3.1 AND Inner-Net-2.0 AND ISC AND LGPL-2.0-or-later WITH Linux-syscall-note AND LGPL-2.1-only WITH Linux-syscall-note AND LGPL-2.1-or-later AND LGPL-2.1-or-later WITH Linux-syscall-note AND MIT AND MIT-CMU AND NCSA AND RSA-MD AND SUSE-Public-Domain AND ZPL-2.1 +License: Apache-2.0 WITH LLVM-exception AND APSL-1.1 AND APSL-2.0 AND Beerware AND BSD-1-Clause AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND CDDL-1.0 AND GFDL-1.1-or-later AND GPL-1.0-or-later WITH Linux-syscall-note AND GPL-2.0-only WITH Linux-syscall-note AND GPL-2.0-or-later WITH Linux-syscall-note AND GPL-3.0-or-later WITH GCC-exception-3.1 AND Inner-Net-2.0 AND ISC AND LGPL-2.0-or-later WITH Linux-syscall-note AND LGPL-2.1-only WITH Linux-syscall-note AND LGPL-2.1-or-later AND LGPL-2.1-or-later WITH Linux-syscall-note AND MIT AND MIT-CMU AND NCSA AND RSA-MD AND LicenseRef-SUSE-Public-Domain AND ZPL-2.1 Conflicts: zig-libs < %{version_current} Provides: zig-libs = %{version_current} Provides: zig-libs-implementation = %{version_current} @@ -307,7 +308,7 @@ cp -p lib/libcxxabi/LICENSE.TXT bundled-licenses/LICENSE.libcxxabi cp -p lib/libunwind/LICENSE.TXT bundled-licenses/LICENSE.libunwind install -d %{buildroot}%{_docdir}/%{name} -mv %{buildroot}/usr/doc/langref.html \ +mv %{buildroot}%{_prefix}/doc/langref.html \ %{buildroot}%{_docdir}/%{name}/langref.html %endif ++++++ _constraints ++++++ --- /var/tmp/diff_new_pack.MkxMNB/_old 2026-12-05 19:11:56.921078722 +0100 +++ /var/tmp/diff_new_pack.MkxMNB/_new 2026-12-05 19:11:56.925078891 +0100 @@ -18,7 +18,7 @@ --> <overwrite> <conditions> - <package>zig0.16:test</package> + <package>zig0.17:test</package> </conditions> <hardware> <memory> ++++++ fix-CVE-2026-107891-wasi-libc.patch ++++++ --- a/lib/libc/wasi/libc-top-half/musl/src/regex/regcomp.c +++ b/lib/libc/wasi/libc-top-half/musl/src/regex/regcomp.c @@ -1674,6 +1674,12 @@ AST to TNFA compilation routines. */ +/* check if a+b overflows for a,b in [0,INT_MAX] */ +static int check_add(unsigned a, unsigned b) +{ + return a + b > INT_MAX; +} + typedef enum { COPY_RECURSE, COPY_SET_RESULT_PTR @@ -1725,6 +1731,8 @@ /* XXX - e.g. [ab] has only one position but two nodes, so we are creating holes in the state space here. Not fatal, just wastes memory. */ + if (check_add(pos, *pos_add)) + return REG_ESPACE; pos += *pos_add; num_copied++; } @@ -1820,6 +1828,8 @@ break; } } + if (check_add(*pos_add, num_copied)) + return REG_ESPACE; *pos_add += num_copied; return status; } @@ -1864,6 +1874,8 @@ tre_literal_t *lit= node->obj; if (!IS_SPECIAL(lit) || IS_BACKREF(lit)) { + if (check_add(lit->position, pos_add)) + return REG_ESPACE; lit->position += pos_add; if (lit->position > max_pos) max_pos = lit->position; @@ -1992,6 +2004,8 @@ } iter_depth--; + if (check_add(pos_add_total, pos_add - pos_add_last)) + return REG_ESPACE; pos_add_total += pos_add - pos_add_last; if (iter_depth == 0) pos_add = pos_add_total; @@ -2004,6 +2018,8 @@ } } + if (check_add(*position, pos_add_total)) + return REG_ESPACE; *position += pos_add_total; /* `max_pos' should never be larger than `*position' if the above @@ -2705,9 +2721,19 @@ /* Parse context. */ tre_parse_ctx_t parse_ctx; + /* Limits: before tre_expand_ast, int values like position, subid or + * num_tags are bounded by 2x input length, used stack entries are + * bounded by 16x input length. input length is checked upfront to + * avoid overflows before expand. later, values that can grow big are + * bounds checked via check_add and xcalloc. */ + const int input_limit = 1024000; + const int stack_limit = 8*input_limit; + if (strnlen(regex, input_limit) >= input_limit) + return REG_ESPACE; + /* Allocate a stack used throughout the compilation process for various purposes. */ - stack = tre_stack_new(512, 1024000, 128); + stack = tre_stack_new(512, stack_limit, 128); if (!stack) return REG_ESPACE; /* Allocate a fast memory allocator. */ @@ -2795,9 +2821,12 @@ for example "a*" or "ab*". Figure out a simple way to detect this possibility. */ tmp_ast_l = tree; - tmp_ast_r = tre_ast_new_literal(mem, 0, 0, parse_ctx.position++); + tmp_ast_r = tre_ast_new_literal(mem, 0, 0, parse_ctx.position); if (tmp_ast_r == NULL) ERROR_EXIT(REG_ESPACE); + if (check_add(parse_ctx.position, 1)) + ERROR_EXIT(REG_ESPACE); + parse_ctx.position++; tree = tre_ast_new_catenation(mem, tmp_ast_l, tmp_ast_r); if (tree == NULL) @@ -2807,22 +2836,22 @@ if (errcode != REG_OK) ERROR_EXIT(errcode); - counts = xmalloc(sizeof(int) * parse_ctx.position); + counts = xcalloc(sizeof(int), parse_ctx.position); if (counts == NULL) ERROR_EXIT(REG_ESPACE); - offs = xmalloc(sizeof(int) * parse_ctx.position); + offs = xcalloc(sizeof(int), parse_ctx.position); if (offs == NULL) ERROR_EXIT(REG_ESPACE); - for (i = 0; i < parse_ctx.position; i++) - counts[i] = 0; tre_ast_to_tnfa(tree, NULL, counts, NULL); add = 0; for (i = 0; i < parse_ctx.position; i++) { offs[i] = add; + if (check_add(add, counts[i] + 1)) + ERROR_EXIT(REG_ESPACE); add += counts[i] + 1; counts[i] = 0; } ++++++ zig-0.17.0.tar.xz -> zig-0.17.1.tar.xz ++++++ /work/SRC/openSUSE:Factory/zig0.17/zig-0.17.0.tar.xz /work/SRC/openSUSE:Factory/.zig0.17.new.1340718/zig-0.17.1.tar.xz differ: char 13, line 1
