mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-29 19:24:25 +03:00
UTF-8 validation: fix one cotec check corner issue
fix github issue #362
This commit is contained in:
committed by
Konstantinos Margaritis
parent
7c1835c0e7
commit
684f0ce2cb
@@ -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;
|
||||
|
Reference in New Issue
Block a user