diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/unistring.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/unistring.h b/src/unistring.h index 3daf5357..4a468a98 100644 --- a/src/unistring.h +++ b/src/unistring.h @@ -69,7 +69,8 @@ public: const char * p = input.c_str(); std::size_t len = input.length(); - assert(len < 1024); + // This size should be at least as large as MAX_LINE in context.h + assert(len < 4096); VERIFY(utf8::is_valid(p, p + len)); utf8::unchecked::utf8to32(p, p + len, std::back_inserter(utf32chars)); |