Fix all ASAN issues in vectorscan

This commit is contained in:
Danila Kutenin
2022-02-18 17:14:51 +00:00
parent 2819dc3d1b
commit 9af996b936
10 changed files with 262 additions and 75 deletions

View File

@@ -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) {

View File

@@ -36,6 +36,9 @@
#include"util/supervector/supervector.hpp"
#include "nfa/limex_shuffle.hpp"
#ifdef setbit
#undef setbit
#endif
namespace {

View File

@@ -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;