diff options
author | shadchin <shadchin@yandex-team.com> | 2023-08-15 16:58:37 +0300 |
---|---|---|
committer | shadchin <shadchin@yandex-team.com> | 2023-08-15 18:14:44 +0300 |
commit | 47b2ba312324ddf016c210b2a7072b9cbb0719ee (patch) | |
tree | 23fa416328a842f28afc39d63cafe1b29d6186cb /contrib/libs/hyperscan/src/parser | |
parent | 183828b85d8da109522e46c6c7720664d8552e4e (diff) | |
download | ydb-47b2ba312324ddf016c210b2a7072b9cbb0719ee.tar.gz |
Update contrib/libs/hyperscan to 5.4.2
Diffstat (limited to 'contrib/libs/hyperscan/src/parser')
-rw-r--r-- | contrib/libs/hyperscan/src/parser/logical_combination.cpp | 3 | ||||
-rw-r--r-- | contrib/libs/hyperscan/src/parser/utf8_validate.cpp | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/contrib/libs/hyperscan/src/parser/logical_combination.cpp b/contrib/libs/hyperscan/src/parser/logical_combination.cpp index de017a1108..96c3bd89de 100644 --- a/contrib/libs/hyperscan/src/parser/logical_combination.cpp +++ b/contrib/libs/hyperscan/src/parser/logical_combination.cpp @@ -140,7 +140,8 @@ void ParsedLogical::validateSubIDs(const unsigned *ids, } hs_compile_error_t *compile_err = NULL; hs_expr_info_t *info = NULL; - hs_error_t err = hs_expression_info(expressions[i], flags[i], &info, + hs_error_t err = hs_expression_info(expressions[i], + flags ? flags[i] : 0, &info, &compile_err); if (err != HS_SUCCESS) { hs_free_compile_error(compile_err); diff --git a/contrib/libs/hyperscan/src/parser/utf8_validate.cpp b/contrib/libs/hyperscan/src/parser/utf8_validate.cpp index 50aa06d8e7..54c9755e8a 100644 --- a/contrib/libs/hyperscan/src/parser/utf8_validate.cpp +++ b/contrib/libs/hyperscan/src/parser/utf8_validate.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Intel Corporation + * Copyright (c) 2015-2022, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -72,7 +72,7 @@ bool isValidUtf8(const char *expression, const size_t len) { while (i < len) { DEBUG_PRINTF("byte %zu: 0x%02x\n", i, s[i]); // One octet. - if (s[i] < 0x7f) { + if (s[i] <= 0x7f) { DEBUG_PRINTF("one octet\n"); i++; continue; |