From 8f734a92432145f919790ebe0f524196bf168366 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 7 Mar 2023 16:35:51 -0800 Subject: Increase string size limit in src/unistring.h assert --- src/unistring.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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)); -- cgit v1.2.3