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

Prevent TimeStamps from being modified #821

Merged
merged 1 commit into from
Jun 22, 2024

Commits on Jun 22, 2024

  1. Prevent TimeStamps from being modified

    Our `TimeStamp` type is internally an `Instant`. The representation of
    `Instant` depends on the platform, but for many platforms it internally
    consists of unsigned numbers. For WASI its worse, because the moment the
    WASI VM starts, the time starts at 0. This means any subtraction from
    the time results in a numeric underflow and might panic. To prevent this
    from happening, `TimeStamp`s can no longer be manually modified, they
    always represent valid points in time.
    CryZe committed Jun 22, 2024
    Configuration menu
    Copy the full SHA
    5bd5a66 View commit details
    Browse the repository at this point in the history