🐛 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:
parent
556e30f759
commit
8b457ace25
5 changed files with 21 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue