Check that the end of input hasn't been reached when unpickling a list
This commit is contained in:
parent
158f7ee891
commit
c35d1d420f
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ std::uint8_t const * unpickle(
|
|||
) {
|
||||
std::uint32_t size;
|
||||
pos = unpickle(pos, end, size);
|
||||
while (size--) {
|
||||
while (size-- && pos != end) {
|
||||
T * value = list.insert(list.end());
|
||||
pos = unpickle(pos, end, *value);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue