Skip to content

fix: prevent u64 underflow panic in online instance count#656

Open
bravesasha wants to merge 1 commit intoDstack-TEE:masterfrom
bravesasha:patch-2
Open

fix: prevent u64 underflow panic in online instance count#656
bravesasha wants to merge 1 commit intoDstack-TEE:masterfrom
bravesasha:patch-2

Conversation

@bravesasha
Copy link
Copy Markdown
Contributor

Bare subtraction now - *ts panics in debug builds and silently wraps around in release builds when a peer reports a future timestamp due to clock skew. Use saturating_sub to handle this safely.

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.

1 participant