1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-29 23:01:16 +03:00

🐛 fixing CBOR's indefinity length strings #961

Beside the fix discussed in #961, we also had to re-adjust a test case. It seems that it was failing before, and I "fixed" it to work with the broken implementation...
This commit is contained in:
Niels Lohmann
2018-02-06 20:43:03 +01:00
parent 556e30f759
commit 8b457ace25
5 changed files with 21 additions and 6 deletions

View File

@ -5768,8 +5768,7 @@ class binary_reader
string_t result;
while (get() != 0xFF)
{
unexpect_eof();
result.push_back(static_cast<char>(current));
result.append(get_cbor_string());
}
return result;
}