ensure empty values are not deserialized

re #434
This commit is contained in:
Joao Paulo Magalhaes
2024-06-06 14:37:26 +01:00
parent e432c2f390
commit 2249cc1df6
6 changed files with 198 additions and 12 deletions

View File

@@ -3221,7 +3221,7 @@ QWxsIHRoYXQgZ2xpdHRlcnMgaXMgbm90IGdvbGQu: All that glitters is not gold.
result.resize(len); // trim to the length of the decoded buffer
CHECK(result == c.text);
//
// Note also these are just syntatic wrappers to simplify client code.
// Note also these are just syntactic wrappers to simplify client code.
// You can call into the lower level functions without much effort:
result.clear(); // this is not needed. We do it just to show that the first call can fail.
ryml::csubstr encoded = tree[c.base64].key();