aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/hyperscan/src/hs.cpp
diff options
context:
space:
mode:
authorshadchin <shadchin@yandex-team.com>2023-08-15 16:58:37 +0300
committershadchin <shadchin@yandex-team.com>2023-08-15 18:14:44 +0300
commit47b2ba312324ddf016c210b2a7072b9cbb0719ee (patch)
tree23fa416328a842f28afc39d63cafe1b29d6186cb /contrib/libs/hyperscan/src/hs.cpp
parent183828b85d8da109522e46c6c7720664d8552e4e (diff)
downloadydb-47b2ba312324ddf016c210b2a7072b9cbb0719ee.tar.gz
Update contrib/libs/hyperscan to 5.4.2
Diffstat (limited to 'contrib/libs/hyperscan/src/hs.cpp')
-rw-r--r--contrib/libs/hyperscan/src/hs.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/contrib/libs/hyperscan/src/hs.cpp b/contrib/libs/hyperscan/src/hs.cpp
index eac588891c..ae9cdf1468 100644
--- a/contrib/libs/hyperscan/src/hs.cpp
+++ b/contrib/libs/hyperscan/src/hs.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015-2020, Intel Corporation
+ * Copyright (c) 2015-2021, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -514,6 +514,12 @@ hs_error_t hs_expression_info_int(const char *expression, unsigned int flags,
return HS_COMPILER_ERROR;
}
+ if (flags & HS_FLAG_COMBINATION) {
+ *error = generateCompileError("Invalid parameter: unsupported "
+ "logical combination expression", -1);
+ return HS_COMPILER_ERROR;
+ }
+
*info = nullptr;
*error = nullptr;