9

fix panic-safety in specialized Zip::next_back by the8472 · Pull Request #86452...

 3 years ago
source link: https://github.com/rust-lang/rust/pull/86452
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Copy link

Contributor

the8472 commented 12 days ago

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


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK