Closed Bug 1785770 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 35508 - FrameSet: Fix an integer overflow

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Depends on 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 35508 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/35508
Details from upstream follow.

Kent Tamura <tkent@chromium.org> wrote:

FrameSet: Fix an integer overflow

crrev.com/1035755 introduced an integer overflow:
(int * int) / int64_t
The type of the multiplication result is |int|, and can overflow.

This CL changes it like:
ClampTo\<int>((int * int64_t) / int64_t)

Bug: 1353277
Change-Id: Ib59d1a16762e139bf882a8619e344914339d535d
Reviewed-on: https://chromium-review.googlesource.com/3836624
WPT-Export-Revision: 6b6871017fc269181b5db2d859a5018f4f04ca49

PR 35508 applied with additional changes from upstream: 572db7f1b6305bc2fcb6e43818ce32a43ce9947b
Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 2 tests and 1 subtests

Status Summary

Firefox

OK : 2
FAIL: 2

Chrome

OK : 2
FAIL: 2

Safari

OK : 2
FAIL: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d7ac8631524d [wpt PR 35508] - FrameSet: Fix an integer overflow, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
You need to log in before you can comment on or make changes to this bug.