mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-29 19:24:25 +03:00
Fix all ASAN issues in vectorscan
This commit is contained in:
@@ -99,7 +99,7 @@ TEST(CustomAllocator, TwoAlignedCompileError) {
|
||||
ASSERT_NE(nullptr, compile_err);
|
||||
EXPECT_STREQ("Allocator returned misaligned memory.", compile_err->message);
|
||||
hs_free_compile_error(compile_err);
|
||||
hs_set_database_allocator(nullptr, nullptr);
|
||||
hs_set_misc_allocator(nullptr, nullptr);
|
||||
}
|
||||
|
||||
TEST(CustomAllocator, TwoAlignedDatabaseInfo) {
|
||||
|
@@ -36,6 +36,9 @@
|
||||
#include"util/supervector/supervector.hpp"
|
||||
#include "nfa/limex_shuffle.hpp"
|
||||
|
||||
#ifdef setbit
|
||||
#undef setbit
|
||||
#endif
|
||||
|
||||
namespace {
|
||||
|
||||
|
@@ -33,6 +33,10 @@
|
||||
#include "util/bytecode_ptr.h"
|
||||
#include "util/simd_utils.h"
|
||||
|
||||
#ifdef setbit
|
||||
#undef setbit
|
||||
#endif
|
||||
|
||||
using namespace std;
|
||||
using namespace ue2;
|
||||
|
||||
|
Reference in New Issue
Block a user