Skip to content

Commit 4bf755e

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 <neis@chromium.org> Commit-Queue: Nico Hartmann <nicohartmann@chromium.org> Reviewed-by: Nico Hartmann <nicohartmann@chromium.org> Cr-Commit-Position: refs/heads/master@{#74033} Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
1 parent bc38ef7 commit 4bf755e

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
@@ -75,7 +75,7 @@ class TypeCache final {
7575
Type::Union(kPositiveIntegerOrMinusZero, Type::NaN(), zone());
7676

7777
Type const kAdditiveSafeInteger =
78-
CreateRange(-4503599627370496.0, 4503599627370496.0);
78+
CreateRange(-4503599627370495.0, 4503599627370495.0);
7979
Type const kSafeInteger = CreateRange(-kMaxSafeInteger, kMaxSafeInteger);
8080
Type const kAdditiveSafeIntegerOrMinusZero =
8181
Type::Union(kAdditiveSafeInteger, Type::MinusZero(), zone());

0 commit comments

Comments
 (0)