aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/hyperscan/src/parser/utf8_validate.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/parser/utf8_validate.cpp
parent183828b85d8da109522e46c6c7720664d8552e4e (diff)
downloadydb-47b2ba312324ddf016c210b2a7072b9cbb0719ee.tar.gz
Update contrib/libs/hyperscan to 5.4.2
Diffstat (limited to 'contrib/libs/hyperscan/src/parser/utf8_validate.cpp')
-rw-r--r--contrib/libs/hyperscan/src/parser/utf8_validate.cpp4
1 files changed, 2 insertions, 2 deletions
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;