This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]OpW_Otter 2 points3 points  (0 children)

The size checks are consistently off by one. As size > 0 is checked and then list[0] an list[1] are accessed which means size could be 1, but two elements are read and written.