Alex Coyte
905a67375a
hscollider: example test cases
2018-01-19 06:48:56 -05:00
Matthew Barr
934d6f2dad
cmake: support MinSizeRel config
2018-01-19 06:33:54 -05:00
Matthew Barr
50ea83cb26
Move cpuid checks inline.
...
During fat runtime function resolution there was a chance that the PLT
might not be initialised in time for us to call the cpuid check
functions. Moving them inline means there is no PLT to worry about.
Fixes #78
2018-01-19 06:32:18 -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
090632f61a
ext param - more consistent depth check
2018-01-19 06:24:21 -05:00
Justin Viiret
1450dc9993
doc: remove stray '+'
2018-01-19 06:21:41 -05:00
Matthew Barr
95c316afcc
find_matches: don't create ridiculous accept paths
2018-01-19 06:20:37 -05:00
Justin Viiret
d926e56a48
doc: make Wikipedia hyperlinks anonymous
2018-01-19 06:18:01 -05:00
Justin Viiret
ef7d920f79
doc: make doxygen filter out HS_CDECL
2018-01-19 06:17:43 -05:00
Justin Viiret
58eda9155d
doc: use doxygen @p to refer to parameters
2018-01-19 06:17:22 -05:00
Justin Viiret
f9af9f85b2
doc: clarify description of streaming API
2018-01-19 06:16:59 -05:00
Justin Viiret
def9636d01
doc: document that hs_close_stream frees memory
...
Add explicit documentation that hs_close_stream() will free the stream
state after returning any matches.
2018-01-19 06:16:14 -05:00
Matthew Barr
4fc11cfc65
Hamming: GraphTruth and corpus gen support
2018-01-19 06:12:28 -05:00
Matthew Barr
1891f14755
Add support for Hamming distance approx matching
2018-01-19 06:11:43 -05:00
Matthew Barr
5827bd1c2b
icc: disable warning about constant expression
2018-01-19 06:11:10 -05:00
Matthew Barr
2f17ef032c
hsbench: sqlite output support
2018-01-19 06:07:55 -05:00
Matthew Barr
193bdb628e
sqlite: disable -Werror so warnings don't kill the build
2018-01-19 06:05:03 -05:00
Xiang Wang
0df8bf471c
Merge branch master into develop
2018-01-19 05:57:38 -05:00
Matthew Barr
aff7242ad3
Migrated from github.com/01org to github.com/intel
2017-10-26 09:40:40 +11:00
Matthew Barr
3d235f4474
cmake: add a dummy c++ file to force linkage
...
The hs dylib when built with Xcode wasn't being linked to C++ runtime
libs. Fixes #69
2017-09-29 14:52:11 +10:00
Matthew Barr
3dcd51c272
Merge branch develop into master
v4.6.0
2017-09-22 15:20:28 +10:00
Matthew Barr
3fa1236f09
Bump version number for release
2017-09-22 15:17:56 +10:00
Matthew Barr
b2e09d78b0
changelog: updates for 4.6.0 release
2017-09-22 15:17:56 +10:00
Matthew Barr
5021d7ab78
De-const the empty maps.
...
Clang 3.8 complains about attempting to default init const objects
without a user-provided constructor.
2017-09-22 15:17:56 +10:00
Matthew Barr
1a81263744
Check for unused typedef warning and disable
...
This affects older versions of Boost (1.58), and we were only disabling the
warning for g++.
Fixes #62 .
2017-09-18 15:23:57 +10:00
Hong, Yang A
ae918116ab
find_better_daddy: position change
2017-09-18 13:31:09 +10:00
Matthew Barr
dd286323a9
Don't let haigs into Tamarama
2017-09-18 13:29:34 +10:00
Justin Viiret
ba0bf0c991
rose_build_add_mask: improve findMaskLiteral perf
2017-09-18 13:29:34 +10:00
Matthew Barr
3b63a95f01
Handle any exceptions while constructing compiler elements
...
Specifically, NG has a Rose which has a LeftEng which has a depth, which can
throw an error on construction. If we put these in the try-catch we don't
have to worry so much in future.
2017-09-18 13:29:34 +10:00
Matthew Barr
5fc2c803a2
teddy: alignment decl should match defn
...
Spotted by coverity. #174512
2017-09-18 13:29:34 +10:00
Justin Viiret
af519f3190
hwlm_build: default for HWLMProto::make_small
...
Silences Coverity warning.
2017-09-18 13:29:34 +10:00
Justin Viiret
19e95b0314
rose_build_matchers: init LitFragment fields
...
Silences Coverity warning about squash, delay_squash.
2017-09-18 13:29:34 +10:00
Alex Coyte
a1fdc3afcf
dedupeLeftfixesVariableLag: refactor, more blockmode deduping
2017-09-18 13:29:34 +10:00
Alex Coyte
d6c050abd6
maintain castle report information
2017-09-18 13:29:34 +10:00
Justin Viiret
ea2e85ac87
ng_squash: switch to using unordered_map
...
Also some cleaning up, small performance improvements.
2017-09-18 13:29:34 +10:00
Alex Coyte
ace592e247
tidy mergeCastleSuffixes
2017-09-18 13:29:34 +10:00
Alex Coyte
6f452668ec
refactor mergeCastleLeftfixes
2017-09-18 13:29:34 +10:00
Alex Coyte
cee0b722a3
reimplement hasSameEngineType()
2017-09-18 13:29:34 +10:00
Justin Viiret
7fe53fec10
partitioned_set: use lower_bound(), not scan
2017-09-18 13:29:34 +10:00
Matthew Barr
bc27d6ae4b
msvc: disable more warnings
2017-09-18 13:29:33 +10:00
Matthew Barr
29e1aae3fb
Use an unsigned byte, not char
2017-09-18 13:29:33 +10:00
Justin Viiret
012b347284
ue2_literal: define npos in ue2string.cpp
2017-09-18 13:29:33 +10:00
Justin Viiret
85c8822dd1
fdr_compile: simplify lambda use
...
This was failing to compile on MSVC.
2017-09-18 13:29:33 +10:00
Justin Viiret
b694fed727
mcclellancompile: simplify calc_min_dist_from_bob
2017-09-18 13:29:33 +10:00
Justin Viiret
58c3de0d33
mcclellancompile: don't copy dstate unnecessarily
2017-09-18 13:29:33 +10:00
Justin Viiret
3b392d6b70
accel_dfa_build_strat: make extend() faster
2017-09-18 13:29:33 +10:00
Justin Viiret
3f36665e39
unit: add PrintTo for ue2_literal
2017-09-18 13:26:18 +10:00