mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-18 10:10:35 +03:00
scratch: remove quick validity check
Roll back fix for github issue #350 About Scratch Usage: For compile time, scratch space is strongly recommended to be allocated immediately after database generation. For runtime, besides using scratch for corresponding database, Hyperscan also allows user to use larger scratch space allocated for another database. When multiple concurrent threads need to use the same databases and a new scratch space is required, cloning the largest one is always safe. This is realized based on API hs_scratch_size() and hs_clone_scratch(). Behaviors beyond above are discouraged and results are undefined.
This commit is contained in:
committed by
Konstantinos Margaritis
parent
5131c37698
commit
e4ffd75282
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017-2022, Intel Corporation
|
||||
* Copyright (c) 2017-2023, Intel Corporation
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
@@ -116,7 +116,6 @@ size_t JOIN(sc_, FN_SUFFIX)(const struct RoseEngine *rose,
|
||||
= ((STREAM_QUAL char *)stream) + sizeof(struct hs_stream);
|
||||
|
||||
COPY_FIELD(stream->offset);
|
||||
COPY_FIELD(stream->crc32);
|
||||
ASSIGN(stream->rose, rose);
|
||||
|
||||
COPY(stream_body + ROSE_STATE_OFFSET_STATUS_FLAGS, 1);
|
||||
|
||||
Reference in New Issue
Block a user