diff --git a/0001-Fix-an-runtime-error-reported-by-undefind-sanitizer.patch b/0001-Fix-an-runtime-error-reported-by-undefind-sanitizer.patch deleted file mode 100644 index adc0116f50c6a6076f85b4ef786f6c6ffaa02821..0000000000000000000000000000000000000000 --- a/0001-Fix-an-runtime-error-reported-by-undefind-sanitizer.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 96d775860fb7e404d6acaf7e8dfbd171cfbcee15 Mon Sep 17 00:00:00 2001 -From: Han Han -Date: Mon, 20 Jun 2022 16:45:19 +0800 -Subject: [PATCH] Fix an runtime error reported by undefind sanitizer - -Fix the following error when compiling with undefined sanitizer: - -./lsusb -names.c:36:29: runtime error: left shift of 16 by 27 places cannot be represented in type 'int' - -Signed-off-by: Han Han ---- - names.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/names.c b/names.c -index c8cdd02..beae8f8 100644 ---- a/names.c -+++ b/names.c -@@ -33,7 +33,7 @@ - - static unsigned int hashnum(unsigned int num) - { -- unsigned int mask1 = HASH1 << 27, mask2 = HASH2 << 27; -+ unsigned int mask1 = (unsigned int)HASH1 << 27, mask2 = (unsigned int)HASH2 << 27; - - for (; mask1 >= HASH1; mask1 >>= 1, mask2 >>= 1) - if (num & mask1) --- -2.37.0.windows.1 diff --git a/usbutils-014.tar.xz b/usbutils-014.tar.xz deleted file mode 100644 index c74784230016748f6958df96e9b088e20efeba6e..0000000000000000000000000000000000000000 Binary files a/usbutils-014.tar.xz and /dev/null differ diff --git a/usbutils-015.tar.xz b/usbutils-015.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..840f98994b6359a9ea07df57aa6942ec0014d531 Binary files /dev/null and b/usbutils-015.tar.xz differ diff --git a/usbutils.spec b/usbutils.spec index 19ee8dc8c840ded81fa089f323b9f64cc8fd2227..eb8f79ee064df3911459b2020d5bf45bf7a0b804 100644 --- a/usbutils.spec +++ b/usbutils.spec @@ -1,6 +1,6 @@ Name: usbutils -Version: 014 -Release: 2 +Version: 015 +Release: 1 Summary: Linux utilities for USB device License: GPLv2+ URL: http://www.linux-usb.org/ @@ -9,7 +9,6 @@ Source0: https://www.kernel.org/pub/linux/utils/usb/usbutils/%{name}-%{version}. Source1: GPL-2.0.txt Source2: GPL-3.0.txt -Patch1: 0001-Fix-an-runtime-error-reported-by-undefind-sanitizer.patch BuildRequires: libusbx-devel systemd-devel gcc autoconf automake libtool Requires: hwdata @@ -46,6 +45,9 @@ install -D -m 644 %{SOURCE2} %{buildroot}%{_defaultlicensedir}/%{name}/GPL-3.0.t %{_mandir}/*/* %changelog +* Tue Feb 7 2023 zhanghongtao - 015-1 +- update package to usbutils-015 + * Tue Nov 1 2022 lihaoxiang - 014-2 - fix an runtime error reported by undefined sanitizer