61 Commits

Author SHA1 Message Date
G.E
91d9631c97 fixed some const issues 2024-04-24 00:04:59 +03:00
G.E
01dee390a9 ddressing some cppcheck warnings. yes this will be cleaned up in a
following commit. tests pass.
2024-04-23 19:08:24 +03:00
G.E.
773d57d890 added copyright info for modified src files 2024-04-11 09:49:43 +03:00
isildur-g
523db6051d maybe netbsd is more pedantic about this? 2024-03-06 17:05:55 +01:00
Konstantinos Margaritis
5e1972efce remove redundant moves 2024-01-17 17:15:32 +02:00
Mitchell Wasson
9c139c3a6d Correct set_source_files_properties usage
The use of `CMAKE_BINARY_DIR` and `CMAKE_CURRENT_BINARY_DIR` when
specifying files to set_source_files_properties caused problems
when this project is used from another CMake project.

More specifically, these variables aren't set to the expected path,
and the properties are attempted to be set for non-existant files.

This was benign before vectorscan 5.4.8 as the only properties
set were warning suppression flags.

Starting with 5.4.9, `-funsigned-char` was applied to Ragel outputs
using this method. The result is projects depending on Vectorscan
through Cmake do not have this compile flag properly applied.
2023-10-31 09:35:50 -06:00
Konstantinos Margaritis
9a174745e4 more std::move fixes 2023-10-03 21:01:51 +03:00
Konstantinos Margaritis
0d2f9ccbaa Fix 'unqualified call to std::move' errors in clang 15+ 2023-10-03 20:24:39 +03:00
Hong, Yang A
dc78dc1633 sanitiser bugfix 2023-09-05 13:56:24 +03:00
Hong, Yang A
978105a4c0 klocwork: fix risk issues 2023-09-05 13:45:33 +03:00
Konstantinos Margaritis
dbdbfe9473 Set Ragel.rl char type to unsigned, #135 2023-03-21 18:07:06 +00:00
Konstantinos Margaritis
361feb64e3
Merge pull request #124 from VectorCamp/develop
Merge develop to master
2022-09-13 15:52:20 +03:00
Liu Zixian
c597f69c59 fix build with glibc-2.34
SIGTSKSZ is no long a constant after glibc 2.34
https://sourceware.org/pipermail/libc-alpha/2021-August/129718.html
2022-08-29 15:37:59 +03:00
Jan Henning
85a77e3eff Bump scripts to python3 2022-05-19 16:25:08 +02:00
Konstantinos Margaritis
08357a096c remove Windows/ICC support 2021-10-12 11:51:34 +03:00
Konstantinos Margaritis
e35b88f2c8 use STL make_unique, remove wrapper header, breaks C++17 compilation 2021-10-12 11:51:34 +03:00
Chang, Harry
52f658ac55 Fix Klocwork scan issues. 2021-01-25 14:13:13 +02:00
Wang Xiang W
7d21fc157c hsbench: add CSV dump support 2021-01-25 14:13:13 +02:00
Hong, Yang A
f1db5b71d8 tools/fuzz: add test scripts for synthetic pattern generation. 2020-05-25 14:22:18 +00:00
Hong, Yang A
ec68facfaa hsbench: add hyphen support for -T option 2020-05-25 13:47:53 +00:00
Wang Xiang W
934473f406 hscollider: fix UTF8 check for patterns 2020-05-25 13:47:53 +00:00
Nan Xiao
954719597b Processing VLAN packets in pcapCorpus.py
Signed-off-by: Nan Xiao <xiaonan830818@gmail.com>
2020-01-20 14:18:06 +00:00
Hong, Yang A
e811a8dbb8 tools: fix compile issue for RELEASE_BUILD code
Fixes github issue #186
2019-10-30 15:19:48 +00:00
Bobby Martin
e395cd3166 Add windows DLL support
(with AVX2 flag removed currently)
2019-08-13 14:52:38 +08:00
Hong, Yang A
23e5f06594 add new Literal API for pure literal expressions:
Design compile time api hs_compile_lit() and hs_compile_lit_multi()
to handle pure literal pattern sets. Corresponding option --literal-on
is added for hyperscan testing suites. Extended parameters and part of
flags are not supported for this api.
2019-08-13 14:51:38 +08:00
Chang, Harry
1f4c10a58d Logical combination: support EOD match from purely negative case. 2019-08-13 14:50:07 +08:00
Carlo Marcelo Arenas Belón
7ea4e06275 tools: hscollider FTBS in alpine linux
alpine uses musl instead of glibc and therefore doesn't have backtrace()
as part of its libc.

POSIX mandates that _exit() be defined through unistd.h which used to be
included together with execinfo.h when backtrace() was detected and
therefore it happened to build fine for linux or freebsd (when using
libexecinfo from the system or ports).

since there was a macro already defined to test for unistd.h use that
instead and decouple this dependency, so that the code could be built
even when no backtrace() is provided (as expected also in OpenBSD)
2019-08-13 14:49:59 +08:00
Wang, Xiang W
229f3d5080 tools: add catches for C++ exceptions 2019-01-21 09:59:37 +08:00
Wang, Xiang W
63e7d89fcc build: avoid pcre error for hscollider when using installed PCRE package
Fixes github issue #127
2019-01-21 09:59:05 +08:00
Wang, Xiang W
5ad56093f8 hscollider: fix back inserter error for windows 2019-01-21 09:58:49 +08:00
Wang, Xiang W
c8ec0d0ec2 chimera: add pkgconfig install files 2018-07-09 12:10:12 -04:00
Lu, Qi
5a0885d235 Windows porting: port hyperscan and chimera tools to windows. 2018-07-09 11:40:43 -04:00
Wang, Xiang W
bf87f8c003 chimera: hybrid of Hyperscan and PCRE 2018-07-09 11:30:35 -04:00
Chang, Harry
8a1c497f44 Logical Combination of patterns. 2018-06-27 14:04:57 +08:00
Wang, Xiang W
08b00f6149 hscollider: fix input length for UTF8 check 2018-06-27 14:04:53 +08:00
Matthew Barr
277ee016a5 pcre: do not explode if pcre is missing 2018-01-19 07:07:32 -05:00
Alex Coyte
905a67375a hscollider: example test cases 2018-01-19 06:48:56 -05:00
Alex Coyte
3da5fc7cf3 hscollider: allow conversion of FileCorpora unique_ptr to Corpora 2018-01-19 06:28:15 -05:00
Justin Viiret
720ec745c1 hscheck: tool to test regex compilation
hscheck accepts a file of regular expressions in the form:

    ID:/regex/flags

and tests whether they can be compiled with Hyperscan, reporting the
error if compilation fails.
2018-01-19 06:27:49 -05:00
Alex Coyte
1330265ced hscollider: tool for testing Hyperscan match behaviour against PCRE 2018-01-19 06:26:43 -05:00
Alex Coyte
fae8d21127 Introduce hsdump development tool for producing information during compilation.
This tool is intended to assist Hyperscan developers with development and
debugging by providing insights into the generated bytecode.
2018-01-19 06:25:51 -05:00
Matthew Barr
2f17ef032c hsbench: sqlite output support 2018-01-19 06:07:55 -05:00
Matthew Barr
aff7242ad3 Migrated from github.com/01org to github.com/intel 2017-10-26 09:40:40 +11:00
Matthew Barr
b259283d6b cmake: set isystem flag for older cmake 2017-08-21 11:27:20 +10:00
Matthew Barr
3d58ce83bd hsbench: use a memstream instead of a temp file 2017-08-21 11:19:20 +10:00
Alex Coyte
5f6291529f hsbench: add stream compress functionality 2017-08-21 11:19:11 +10:00
Matthew Barr
f739314696 hsbench: cpuset portability 2017-06-15 15:41:30 +10:00
Matthew Barr
79b42cff58 hsbench: make output more clear 2017-06-15 15:41:30 +10:00
Matthew Barr
47ec449f85 hsbench: fix flag handling 2017-06-15 15:41:30 +10:00
Matthew Barr
aad55e1b72 Use env to get python bin, don't hard code path 2017-06-09 10:12:03 +10:00