Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment