Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rsync for openSUSE:Factory checked in at 2023-09-12 21:02:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rsync (Old) and /work/SRC/openSUSE:Factory/.rsync.new.1766 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rsync" Tue Sep 12 21:02:00 2023 rev:84 rq:1109241 version:3.2.7 Changes: -------- --- /work/SRC/openSUSE:Factory/rsync/rsync.changes 2023-08-01 14:15:35.671510427 +0200 +++ /work/SRC/openSUSE:Factory/.rsync.new.1766/rsync.changes 2023-09-12 21:02:01.518339181 +0200 @@ -1,0 +2,17 @@ +Wed Sep 6 09:19:36 UTC 2023 - Thorsten Kukuk <ku...@suse.com> + +- Use "slp" for bcond, not "openslp", like we use for all other + packages, too. +- Disable slp patch and configure option if bcond slp is disabled. + +------------------------------------------------------------------- +Tue Sep 5 12:07:57 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- add fortified-strlcpy-fix.patch (bsc#1214616) + +------------------------------------------------------------------- +Tue Sep 5 11:11:04 UTC 2023 - Fabian Vogt <fv...@suse.com> + +- Disable openslp support on new distros (bsc#1214884) + +------------------------------------------------------------------- New: ---- fortified-strlcpy-fix.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rsync.spec ++++++ --- /var/tmp/diff_new_pack.BBxqwJ/_old 2023-09-12 21:02:04.222435634 +0200 +++ /var/tmp/diff_new_pack.BBxqwJ/_new 2023-09-12 21:02:04.222435634 +0200 @@ -28,6 +28,12 @@ %bcond_with gcc11 %endif +%if 0%{?suse_version} < 1600 +%bcond_without slp +%else +%bcond_with slp +%endif + Name: rsync Version: 3.2.7 Release: 0 @@ -49,13 +55,13 @@ Source12: %{name}.keyring Source13: rsyncd Patch0: rsync-no-libattr.patch +Patch1: fortified-strlcpy-fix.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: c++_compiler BuildRequires: libacl-devel BuildRequires: liblz4-devel BuildRequires: libzstd-devel -BuildRequires: openslp-devel BuildRequires: pkgconfig BuildRequires: popt-devel BuildRequires: systemd-rpm-macros @@ -66,6 +72,9 @@ %if %{with gcc11} BuildRequires: gcc11-c++ %endif +%if %{with slp} +BuildRequires: openslp-devel +%endif BuildRequires: pkgconfig(openssl) Requires(post): grep Requires(post): sed @@ -85,7 +94,9 @@ %setup -q -b 1 rm -f zlib/*.h zlib/*.c +%if %{with slp} patch -p1 < patches/slp.diff +%endif %autopatch -p1 @@ -108,7 +119,9 @@ %ifarch x86_64 --enable-simd \ %endif +%if %{with slp} --enable-slp \ +%endif --enable-acl-support \ --enable-xattr-support %make_build reconfigure ++++++ fortified-strlcpy-fix.patch ++++++ >From 1f83963f59960150e8c46112daa8411324c1f209 Mon Sep 17 00:00:00 2001 From: Jiri Slaby <jsl...@suse.cz> Date: Fri, 18 Aug 2023 08:26:20 +0200 Subject: [PATCH] exclude: fix crashes with fortified strlcpy() Fortified (-D_FORTIFY_SOURCE=2 for gcc) builds make strlcpy() crash when its third parameter (size) is larger than the buffer: $ rsync -FFXHav '--filter=merge global-rsync-filter' Align-37-43/ xxx sending incremental file list *** buffer overflow detected ***: terminated It's in the exclude code in setup_merge_file(): strlcpy(y, save, MAXPATHLEN); Note the 'y' pointer was incremented, so it no longer points to memory with MAXPATHLEN "owned" bytes. Fix it by remembering the number of copied bytes into the 'save' buffer and use that instead of MAXPATHLEN which is clearly incorrect. Fixes #511. --- exclude.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/exclude.c b/exclude.c index ffe55b167..1a5de3b9e 100644 --- a/exclude.c +++ b/exclude.c @@ -720,7 +720,8 @@ static BOOL setup_merge_file(int mergelist_num, filter_rule *ex, parent_dirscan = True; while (*y) { char save[MAXPATHLEN]; - strlcpy(save, y, MAXPATHLEN); + /* copylen is strlen(y) which is < MAXPATHLEN. +1 for \0 */ + size_t copylen = strlcpy(save, y, MAXPATHLEN) + 1; *y = '\0'; dirbuf_len = y - dirbuf; strlcpy(x, ex->pattern, MAXPATHLEN - (x - buf)); @@ -734,7 +735,7 @@ static BOOL setup_merge_file(int mergelist_num, filter_rule *ex, lp->head = NULL; } lp->tail = NULL; - strlcpy(y, save, MAXPATHLEN); + strlcpy(y, save, copylen); while ((*x++ = *y++) != '/') {} } parent_dirscan = False;