Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ublksrv for openSUSE:Factory checked 
in at 2026-06-16 13:58:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ublksrv (Old)
 and      /work/SRC/openSUSE:Factory/.ublksrv.new.1981 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ublksrv"

Tue Jun 16 13:58:06 2026 rev:2 rq:1359659 version:1.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/ublksrv/ublksrv.changes  2026-02-23 
16:11:59.863976859 +0100
+++ /work/SRC/openSUSE:Factory/.ublksrv.new.1981/ublksrv.changes        
2026-06-16 14:05:01.542188507 +0200
@@ -1,0 +2,10 @@
+Mon Jun 15 19:24:32 UTC 2026 - Gabriel Krisman Bertazi 
<[email protected]>
+
+- Hardcode version during compilation for --version (bsc#1268274)
+
+-------------------------------------------------------------------
+Mon Jun 15 17:28:58 UTC 2026 - Gabriel Krisman Bertazi 
<[email protected]>
+
+- Add 0001-targets-fix-potential-buffer-overflow-in-memmove.patch (bsc#1268274)
+
+-------------------------------------------------------------------

New:
----
  0001-targets-fix-potential-buffer-overflow-in-memmove.patch

----------(New B)----------
  New:
- Add 0001-targets-fix-potential-buffer-overflow-in-memmove.patch (bsc#1268274)
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ublksrv.spec ++++++
--- /var/tmp/diff_new_pack.z1LIc7/_old  2026-06-16 14:05:02.478227458 +0200
+++ /var/tmp/diff_new_pack.z1LIc7/_new  2026-06-16 14:05:02.478227458 +0200
@@ -31,6 +31,8 @@
 BuildRequires:  pkgconfig >= 0.9.0
 BuildRequires:  pkgconfig(liburing) >= 2.2
 
+Patch0:                
0001-targets-fix-potential-buffer-overflow-in-memmove.patch
+
 %description
 This is the userspace daemon part(ublksrv) of the ublk framework.
 
@@ -53,6 +55,10 @@
 %prep
 %autosetup -p1
 
+# ublksrv tries to set the version from git but that is not available
+# during packaging.
+sed "s/.*utils\/genver.sh.*/%{version},/" -i configure.ac
+
 %build
 autoreconf -fiv
 %configure

++++++ 0001-targets-fix-potential-buffer-overflow-in-memmove.patch ++++++
>From b09a15d637ed3321d86054b08fe8125d95ec95cb Mon Sep 17 00:00:00 2001
From: Ming Lei <[email protected]>
Date: Wed, 20 Aug 2025 16:35:27 +0000
Subject: [PATCH] targets: fix potential buffer overflow in memmove()

Signed-off-by: Ming Lei <[email protected]>
---
 targets/ublksrv_tgt.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/targets/ublksrv_tgt.cpp b/targets/ublksrv_tgt.cpp
index d3134fa..9fa44e7 100644
--- a/targets/ublksrv_tgt.cpp
+++ b/targets/ublksrv_tgt.cpp
@@ -542,8 +542,8 @@ static char *ublksrv_pop_cmd(int *argc, char *argv[])
                return NULL;
        }
 
-       memmove(&argv[1], &argv[2], *argc * sizeof(argv[0]));
        (*argc)--;
+       memmove(&argv[1], &argv[2], *argc * sizeof(argv[0]));
 
        return cmd;
 }
-- 
2.54.0

Reply via email to