diff options
author | John Wiegley <johnw@newartisans.com> | 2023-03-07 16:35:51 -0800 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2023-03-08 09:28:26 +0800 |
commit | 8f734a92432145f919790ebe0f524196bf168366 (patch) | |
tree | be3abd6aebbeece109cd6e6f204ba05cd8d25f95 /src | |
parent | 927c383a3327a1cc6bf53b8821f32bc58ab445ac (diff) | |
download | fork-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')
-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)); |