🐛 add missing EOF check
This commit is contained in:
parent
a9117828e1
commit
1339d6b683
2 changed files with 8 additions and 0 deletions
|
@ -2016,6 +2016,10 @@ class binary_reader
|
|||
for (std::size_t i = 0; i < size; ++i)
|
||||
{
|
||||
get();
|
||||
if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::ubjson, "number")))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
number_vector.push_back(current);
|
||||
}
|
||||
|
||||
|
|
|
@ -9516,6 +9516,10 @@ class binary_reader
|
|||
for (std::size_t i = 0; i < size; ++i)
|
||||
{
|
||||
get();
|
||||
if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::ubjson, "number")))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
number_vector.push_back(current);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue