From 20f4ccde96de05cdbd330e6bbb94af363bef486a Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 10 Feb 2011 23:00:36 -0500 Subject: Added some debug code --- src/unistring.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/unistring.h') 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)); } -- cgit v1.2.3