🐛 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
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
5 changed files with 21 additions and 6 deletions

View file

@ -948,8 +948,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;
}