1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-27 17:28:41 +00:00

Increase limit of serialized long strings

This commit is contained in:
kwolekr 2015-07-14 03:22:16 -04:00
parent 5006ce8260
commit 515e7028ac
2 changed files with 10 additions and 4 deletions

View file

@ -426,8 +426,8 @@ inline video::SColor readARGB8(std::istream &is)
More serialization stuff
*/
// 8 MB is a conservative limit. Increase later if problematic.
#define LONG_STRING_MAX (8 * 1024 * 1024)
// 64 MB ought to be enough for anybody - Billy G.
#define LONG_STRING_MAX (64 * 1024 * 1024)
// Creates a string with the length as the first two bytes
std::string serializeString(const std::string &plain);