mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-18 02:00:36 +03:00
hscollider: fix input length for UTF8 check
This commit is contained in:
committed by
Chang, Harry
parent
f877f14641
commit
08b00f6149
@@ -29,10 +29,12 @@
|
||||
#ifndef PARSER_UTF8_VALIDATE_H
|
||||
#define PARSER_UTF8_VALIDATE_H
|
||||
|
||||
#include <cstddef> // size_t
|
||||
|
||||
namespace ue2 {
|
||||
|
||||
/** \brief Validate that the given expression is well-formed UTF-8. */
|
||||
bool isValidUtf8(const char *expression);
|
||||
bool isValidUtf8(const char *expression, const size_t len);
|
||||
|
||||
} // namespace ue2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user