Commit c35d1d42 authored by Mark Haines's avatar Mark Haines
Browse files

Check that the end of input hasn't been reached when unpickling a list

parent 158f7ee8
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment