summaryrefslogtreecommitdiff
path: root/src/unistring.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/unistring.h')
-rw-r--r--src/unistring.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unistring.h b/src/unistring.h
index 979ce08b..577e0da4 100644
--- a/src/unistring.h
+++ b/src/unistring.h
@@ -69,6 +69,7 @@ public:
const char * p = input.c_str();
std::size_t len = input.length();
+ assert(len < 1024);
VERIFY(utf8::is_valid(p, p + len));
utf8::unchecked::utf8to32(p, p + len, std::back_inserter(utf32chars));
}