make deserialization more exception-safe

This commit is contained in:
yariks5s 2024-06-19 13:09:51 +00:00
parent e7ccbd871a
commit 0faab29ad5

View File

@ -199,8 +199,8 @@ public:
cur_data.checkAndUpdateSize(temp_size, arena);
buf.readStrict(cur_data.data, temp_size);
cur_data.data_size = temp_size;
buf.readStrict(cur_data.data, cur_data.data_size);
if constexpr (has_limit)
{