summaryrefslogtreecommitdiff
path: root/src/unistring.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2023-03-07 16:35:51 -0800
committerMartin Michlmayr <tbm@cyrius.com>2023-03-08 09:28:26 +0800
commit8f734a92432145f919790ebe0f524196bf168366 (patch)
treebe3abd6aebbeece109cd6e6f204ba05cd8d25f95 /src/unistring.h
parent927c383a3327a1cc6bf53b8821f32bc58ab445ac (diff)
downloadfork-ledger-8f734a92432145f919790ebe0f524196bf168366.tar.gz
fork-ledger-8f734a92432145f919790ebe0f524196bf168366.tar.bz2
fork-ledger-8f734a92432145f919790ebe0f524196bf168366.zip
Increase string size limit in src/unistring.h assert
Diffstat (limited to 'src/unistring.h')
-rw-r--r--src/unistring.h3
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));