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

Fix a possible panic in clock subscription #7386

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

alexcrichton
Copy link
Member

Change an a - b expression to a.saturating_sub(b) to handle the case when a clock is subscribed to an instance/duration in the past.

Change an `a - b` expression to `a.saturating_sub(b)` to handle the case
when a clock is subscribed to an instance/duration in the past.
@alexcrichton alexcrichton requested a review from a team as a code owner October 26, 2023 21:26
@alexcrichton alexcrichton requested review from fitzgen and removed request for a team October 26, 2023 21:26
@alexcrichton
Copy link
Member Author

This fixes a spurious test failure found here

@fitzgen fitzgen added this pull request to the merge queue Oct 26, 2023
@github-actions github-actions bot added the wasi Issues pertaining to WASI label Oct 26, 2023
Merged via the queue into bytecodealliance:main with commit fa6fcd9 Oct 26, 2023
18 checks passed
@alexcrichton alexcrichton deleted the fix-clock-panic branch October 26, 2023 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wasi Issues pertaining to WASI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants