Skip to content

Commit 07a72e2

Browse files
pleathMikeHolman
authored andcommitted
[CVE-2018-8467] Edge - Chakra type confusion - Google, Inc.
1 parent 70aa49a commit 07a72e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Backend/GlobOptFields.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1915,6 +1915,10 @@ GlobOpt::UpdateObjPtrValueType(IR::Opnd * opnd, IR::Instr * instr)
19151915
}
19161916
}
19171917
break;
1918+
case Js::TypeIds_NativeIntArray:
1919+
case Js::TypeIds_NativeFloatArray:
1920+
// Do not mark these values as definite to protect against array conversion
1921+
break;
19181922
case Js::TypeIds_Array:
19191923
// Because array can change type id, we can only make it definite if we are doing array check hoist
19201924
// so that implicit call will be installed between the array checks.

0 commit comments

Comments
 (0)