Skip to content

Commit a2df831

Browse files
GeorgNeismibrunin
authored andcommitted
[Backport] CVE-2021-21230: Type Confusion in V8
Cherry-pick of patch originally reviewed on https://chromium-review.googlesource.com/c/v8/v8/+/2835705: Fix off-by-one error in kAdditiveSafeInteger Bug: chromium:1198705 Change-Id: I6b3ad82754e1ca72701ce57f16c4f085f8c87f77 Auto-Submit: Georg Neis <[email protected]> Commit-Queue: Nico Hartmann <[email protected]> Reviewed-by: Nico Hartmann <[email protected]> Cr-Commit-Position: refs/heads/master@{#74033} Reviewed-by: Allan Sandfeld Jensen <[email protected]>
1 parent 7d388ce commit a2df831

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chromium/v8/src/compiler/type-cache.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class V8_EXPORT_PRIVATE TypeCache final {
8080
Type::Union(kPositiveIntegerOrMinusZero, Type::NaN(), zone());
8181

8282
Type const kAdditiveSafeInteger =
83-
CreateRange(-4503599627370496.0, 4503599627370496.0);
83+
CreateRange(-4503599627370495.0, 4503599627370495.0);
8484
Type const kSafeInteger = CreateRange(-kMaxSafeInteger, kMaxSafeInteger);
8585
Type const kAdditiveSafeIntegerOrMinusZero =
8686
Type::Union(kAdditiveSafeInteger, Type::MinusZero(), zone());

0 commit comments

Comments
 (0)