mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-20 10:56:40 +03:00
rose/hwlm: limit literals to eight bytes
Rework HWLM to work over literals of eight bytes ("medium length"),
doing confirm in the Rose interpreter.
This commit is contained in:
committed by
Matthew Barr
parent
5c9c540424
commit
07a6b6510c
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015-2016, Intel Corporation
|
||||
* Copyright (c) 2015-2017, Intel Corporation
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
@@ -58,6 +58,17 @@ namespace ue2 {
|
||||
|
||||
#define ROSE_LONG_LITERAL_THRESHOLD_MIN 33
|
||||
|
||||
/**
|
||||
* \brief The largest allowable "short" literal fragment which can be given to
|
||||
* a literal matcher directly.
|
||||
*
|
||||
* Literals longer than this will be truncated to their suffix and confirmed in
|
||||
* the Rose interpreter, either as "medium length" literals which can be
|
||||
* confirmed from history, or "long literals" which make use of the streaming
|
||||
* table support.
|
||||
*/
|
||||
#define ROSE_SHORT_LITERAL_LEN_MAX 8
|
||||
|
||||
struct BoundaryReports;
|
||||
struct CastleProto;
|
||||
struct CompileContext;
|
||||
|
||||
Reference in New Issue
Block a user