Closed CreativePSofficial closed 1 year ago
Missing check before inserting iterator to charList could cause the end/oob iterator to be inserted to the list - as the iterator gets advanced one last time within the loop, leading to undefined behavior when the insert occurs in outer scope.
LGTM, thanks
Missing check before inserting iterator to charList could cause the end/oob iterator to be inserted to the list - as the iterator gets advanced one last time within the loop, leading to undefined behavior when the insert occurs in outer scope.