Skip to content
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

[release/9.0] Fix heap corruption issue in PriorityQueue.Remove #107603

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 10, 2024

Backport of #107550 to release/9.0

/cc @eiriktsarpalis

Customer Impact

  • Customer reported
  • Found internally

The newly added PriorityQueue.Remove method has bug which under certain circumstances can result in heap invariants not being preserved. In practice this means that elements can be dequeued out-of-order violating the guarantees of the collection.

Regression

  • Yes
  • No

Testing

Added unit testing validating correctness for inputs where the issue is manifested.

Risk

Low. Makes a targeted change in production code adding an omitted order comparison.

Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-collections
See info in area-owners.md if you want to be subscribed.

@eiriktsarpalis eiriktsarpalis self-assigned this Sep 10, 2024
@eiriktsarpalis eiriktsarpalis added this to the 9.0.0 milestone Sep 10, 2024
@eiriktsarpalis eiriktsarpalis added the Servicing-consider Issue for next servicing release review label Sep 10, 2024
@artl93
Copy link
Contributor

artl93 commented Sep 10, 2024

@eiriktsarpalis - when did this first manifest in the product?

@eiriktsarpalis
Copy link
Member

@eiriktsarpalis - when did this first manifest in the product?

With the introduction of the impacted method -- #93994

@artl93 artl93 added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Collections Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants