Skip to content

Constrain durations into a range that will produce valid Temporal dates before passing to ICU4X#615

Merged
jedel1043 merged 1 commit intoboa-dev:mainfrom
Manishearth:early-duration-range
Nov 1, 2025
Merged

Constrain durations into a range that will produce valid Temporal dates before passing to ICU4X#615
jedel1043 merged 1 commit intoboa-dev:mainfrom
Manishearth:early-duration-range

Conversation

@Manishearth
Copy link
Copy Markdown
Contributor

We have some panics we should be avoiding here

unicode-org/icu4x#7206

Copy link
Copy Markdown
Member

@jedel1043 jedel1043 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@jedel1043 jedel1043 force-pushed the early-duration-range branch from 097b731 to 2c629ac Compare November 1, 2025 02:06
@jedel1043 jedel1043 merged commit c7795ef into boa-dev:main Nov 1, 2025
8 checks passed
aarongable pushed a commit to chromium/chromium that referenced this pull request Nov 1, 2025
This uplifts boa-dev/temporal#615. It ought to
prevent debug assertions and pathologically slow behavior when
attempting to do date arithmetic with very large durations. These
durations are too large to produce a valid in-range date anyway, so we
can proactively error when we see them.

With this patch I *believe* we should be fuzzer-error free, but of
course we'll only know after running the fuzzer for a while.

Change-Id: Id2426776556b4451335b7d0f775b43b3c5b92ac7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7108948
Commit-Queue: Manish Goregaokar <manishearth@google.com>
Reviewed-by: Łukasz Anforowicz <lukasza@chromium.org>
Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
Auto-Submit: Manish Goregaokar <manishearth@google.com>
Cr-Commit-Position: refs/heads/main@{#1539036}
jmajnert pushed a commit to jmajnert/chromium that referenced this pull request Nov 6, 2025
This uplifts boa-dev/temporal#615. It ought to
prevent debug assertions and pathologically slow behavior when
attempting to do date arithmetic with very large durations. These
durations are too large to produce a valid in-range date anyway, so we
can proactively error when we see them.

With this patch I *believe* we should be fuzzer-error free, but of
course we'll only know after running the fuzzer for a while.

Change-Id: Id2426776556b4451335b7d0f775b43b3c5b92ac7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7108948
Commit-Queue: Manish Goregaokar <manishearth@google.com>
Reviewed-by: Łukasz Anforowicz <lukasza@chromium.org>
Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
Auto-Submit: Manish Goregaokar <manishearth@google.com>
Cr-Commit-Position: refs/heads/main@{#1539036}
@Manishearth Manishearth deleted the early-duration-range branch December 19, 2025 20:31
mohd-akram pushed a commit to gsource-mirror/chromium-src-third_party-rust that referenced this pull request Jan 9, 2026
This uplifts boa-dev/temporal#615. It ought to
prevent debug assertions and pathologically slow behavior when
attempting to do date arithmetic with very large durations. These
durations are too large to produce a valid in-range date anyway, so we
can proactively error when we see them.

With this patch I *believe* we should be fuzzer-error free, but of
course we'll only know after running the fuzzer for a while.

Change-Id: Id2426776556b4451335b7d0f775b43b3c5b92ac7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7108948
Commit-Queue: Manish Goregaokar <manishearth@google.com>
Reviewed-by: Łukasz Anforowicz <lukasza@chromium.org>
Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
Auto-Submit: Manish Goregaokar <manishearth@google.com>
Cr-Commit-Position: refs/heads/main@{#1539036}
NOKEYCHECK=True
GitOrigin-RevId: 50036dd5bea6438c17c68c50d6ea31a3f5c7ab5f
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.

2 participants