Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
16585a6d23
!27 Update to 5.4.2 for fix CVE-2023-28711
From: @wk333 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2023-09-01 09:06:58 +00:00
wk333
f0e7f88e83 Update to 5.4.2 for fix CVE-2023-28711 2023-09-01 15:40:29 +08:00
openeuler-ci-bot
12d83135d8
!18 Fix CVE-2022-29486
From: @wk333 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2023-04-21 02:25:57 +00:00
wk333
20a88f7ecd Fix CVE-2022-29486 2023-04-20 17:22:57 +08:00
openeuler-ci-bot
f4b8c7c542
!15 [sync] PR-14: Sync upstream bugfix and enable regression test
From: @openeuler-sync-bot 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2022-10-28 03:15:54 +00:00
liqingqing_1229
226c6767cb sync upstream bugfix and enable unit test
(cherry picked from commit 2c9b70670a49b2c39d12d3d1c42ae3e597d27e96)
2022-10-26 17:15:39 +08:00
openeuler-ci-bot
fdce4a1ab6 !13 [sync] PR-12: Update to 5.4.0
From: @openeuler-sync-bot
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-12-05 05:34:11 +00:00
sdlzx
758e818e3e Update to 5.4.0
(cherry picked from commit 3f760043933ad4bd2b4a560930a590f1f27f9dda)
2021-12-03 10:08:14 +08:00
openeuler-ci-bot
4164129016 !10 fix failure caused by GCC upgrade to GCC-10
From: @aslfjk
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-08-05 03:37:24 +00:00
王勇
655a10b289 fix failure caused by GCC upgrade to GCC-10
[why]
set default value when ${GNUCC_ARCH} is NULL
2021-08-04 17:44:16 +08:00
6 changed files with 182 additions and 10587 deletions

View File

@ -1,25 +0,0 @@
From f92e690190b51eb6bada384174887501f4c3f43f Mon Sep 17 00:00:00 2001
From: wang_yue111 <648774160@qq.com>
Date: Sat, 24 Jul 2021 10:21:03 +0800
Subject: [PATCH] fix build error on X86
---
cmake/build_wrapper.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmake/build_wrapper.sh b/cmake/build_wrapper.sh
index 1962813..895610c 100755
--- a/cmake/build_wrapper.sh
+++ b/cmake/build_wrapper.sh
@@ -17,7 +17,7 @@ KEEPSYMS=$(mktemp -p /tmp keep.syms.XXXXX)
LIBC_SO=$("$@" --print-file-name=libc.so.6)
cp ${KEEPSYMS_IN} ${KEEPSYMS}
# get all symbols from libc and turn them into patterns
-nm -f p -g -D ${LIBC_SO} | sed -s 's/\([^ ]*\).*/^\1$/' >> ${KEEPSYMS}
+nm -f p -g -D ${LIBC_SO} | sed -s 's/\([^ @]*\).*/^\1$/' >> ${KEEPSYMS}
# build the object
"$@"
# rename the symbols in the object
--
2.23.0

37
Fix-hyperscan-gcc10.patch Normal file
View File

@ -0,0 +1,37 @@
From f6f765b3c022cbf01c86dac7f9875cf18e9f9980 Mon Sep 17 00:00:00 2001
From: sdlzx <hdu_sdlzx@163.com>
Date: Wed, 6 Oct 2021 10:25:36 +0800
Subject: [PATCH] Fix hyperscan build error
The command "gcc -Q --help=target" outputs nothing during obs build,
so we manually set "GNUCC_ARCH" to "native" to avoid string manipulation errors.
Signed-off-by: sdlzx <hdu_sdlzx@163.com>
---
CMakeLists.txt | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b5f8fb4..5cf41ef 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -197,9 +197,13 @@ else()
execute_process(COMMAND ${CMAKE_C_COMPILER} ${EXEC_ARGS}
OUTPUT_VARIABLE _GCC_OUTPUT)
string(FIND "${_GCC_OUTPUT}" "march" POS)
- string(SUBSTRING "${_GCC_OUTPUT}" ${POS} -1 _GCC_OUTPUT)
- string(REGEX REPLACE "march=[ \t]*([^ \n]*)[ \n].*" "\\1"
- GNUCC_ARCH "${_GCC_OUTPUT}")
+ if (POS EQUAL -1)
+ set (GNUCC_ARCH "native")
+ else()
+ string(SUBSTRING "${_GCC_OUTPUT}" ${POS} -1 _GCC_OUTPUT)
+ string(REGEX REPLACE "march=[ \t]*([^ \n]*)[ \n].*" "\\1"
+ GNUCC_ARCH "${_GCC_OUTPUT}")
+ endif()
# test the parsed flag
set (EXEC_ARGS ${CC_ARG1} -E - -mtune=${GNUCC_ARCH})
--
2.31.1

Binary file not shown.

BIN
hyperscan-5.4.2.tar.gz Normal file

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
Name: hyperscan Name: hyperscan
Version: 5.2.1 Version: 5.4.2
Release: 3 Release: 1
Summary: High-performance regular expression matching library Summary: High-performance regular expression matching library
License: BSD License: BSD
@ -8,7 +8,7 @@ URL: https://www.hyperscan.io/
Source0: https://github.com/intel/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source0: https://github.com/intel/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: hyperscan-aarch64-support.patch Patch0: hyperscan-aarch64-support.patch
Patch1: Fix-build-errot-on-x86_64.patch Patch1: Fix-hyperscan-gcc10.patch
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: boost-devel BuildRequires: boost-devel
@ -51,7 +51,15 @@ This package provides the libraries, include files and other resources
needed for developing Hyperscan applications. needed for developing Hyperscan applications.
%prep %prep
%autosetup -n %{name}-%{version} -p1 %setup -q -n %{name}-%{version}
cd %{_builddir}/%{name}-%{version}
mv src/util/simd_utils.h src/util/simd_x86.h
sed -i 's/SIMD_UTILS/SIMD_X86/' src/util/simd_x86.h
sed -i 's/_mm_set_epi32/set32x4/' src/util/state_compress.c
sed -i 's/_mm_set_epi64x/set64x2/' src/util/state_compress.c
sed -i 's/_mm_srli_si128/rshiftbyte_m128/' src/util/state_compress.c
cd -
%autopatch -p1
%build %build
%cmake -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_AND_SHARED:BOOL=OFF . %cmake -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_AND_SHARED:BOOL=OFF .
@ -60,6 +68,9 @@ needed for developing Hyperscan applications.
%install %install
%make_install %make_install
%check
./bin/unit-hyperscan
%files %files
%doc %{_defaultdocdir}/%{name}/examples/README.md %doc %{_defaultdocdir}/%{name}/examples/README.md
%doc %{_defaultdocdir}/%{name}/examples/*.cc %doc %{_defaultdocdir}/%{name}/examples/*.cc
@ -74,6 +85,21 @@ needed for developing Hyperscan applications.
%{_includedir}/hs/ %{_includedir}/hs/
%changelog %changelog
* Fri Sep 01 2023 wangkai <13474090681@163.com> - 5.4.2-1
- Update to 5.4.2 for fix CVE-2023-28711
* Thu Apr 20 2023 wangkai <13474090681@163.com> - 5.4.0-3
- Fix CVE-2022-29486
* Thu Oct 20 2022 Liu Zixian <liuzixian4@huawei.com> - 5.4.0-2
- Sync upstream bugfix and enable regression test
* Wed Oct 06 2021 sdlzx <hdu_sdlzx@163.com> - 5.4.0-1
- Update to 5.4.0
* Wed Aug 04 2021 wangyong <wangyong187@huawei.com> - 5.2.1-4
- Fix build error caused by GCC upgrade to GCC-10
* Sat Jul 24 2021 wangyue <wangyue92@huawei.com> - 5.2.1-3 * Sat Jul 24 2021 wangyue <wangyue92@huawei.com> - 5.2.1-3
- Fix build error on X86 - Fix build error on X86