]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #86452 - the8472:fix-zip-drop-safety, r=m-ou-se
authorYuki Okushi <jtitor@2k36.org>
Mon, 21 Jun 2021 00:42:17 +0000 (09:42 +0900)
committerGitHub <noreply@github.com>
Mon, 21 Jun 2021 00:42:17 +0000 (09:42 +0900)
commit504c378159c43869c148b4a0396134ab9c17de3e
tree7b880b4c433a6e984b5051a728f1ca7cb4a08c7f
parent13b0f1a29b362523343baa9ad7a38c1b49fbcfae
parentb4734b7c38dc2b9e84dd0358114534f55bd1849e
Rollup merge of #86452 - the8472:fix-zip-drop-safety, r=m-ou-se

fix panic-safety in specialized Zip::next_back

This was unsound since a panic in a.next_back() would result in the
length not being updated which would then lead to the same element
being revisited in the side-effect preserving code.

fixes #86443