Skip to content

Fix a possible panic in clock subscription#7386

Merged
fitzgen merged 1 commit intobytecodealliance:mainfrom
alexcrichton:fix-clock-panic
Oct 26, 2023
Merged

Fix a possible panic in clock subscription#7386
fitzgen merged 1 commit intobytecodealliance:mainfrom
alexcrichton:fix-clock-panic

Conversation

@alexcrichton
Copy link
Copy Markdown
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
Copy Markdown
Member Author

This fixes a spurious test failure found here

@fitzgen fitzgen enabled auto-merge October 26, 2023 21:38
@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
@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