Skip to content

[5.0][stdlib] _HashTable.copyContents: Fix out of bounds access #20771

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 28, 2018

Conversation

lorentey
Copy link
Member

(Cherry-picked from #20762, reviewed by @aschwaighofer)

There is a distressing typo in _HashTable that causes bitmap copy operations to copy up to 64 times more memory than necessary. This sometimes leads to the copy operation overrunning the tail-allocated buffer.

https://bugs.swift.org/browse/SR-9348

@lorentey lorentey requested a review from a team as a code owner November 26, 2018 21:04
@lorentey
Copy link
Member Author

@swift-ci test

@airspeedswift airspeedswift merged commit 41823e6 into swiftlang:swift-5.0-branch Nov 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants