Skip to content

Commit

Permalink
[CVE-2018-8467] Edge - Chakra type confusion - Google, Inc.
Browse files Browse the repository at this point in the history
  • Loading branch information
pleath authored and MikeHolman committed Sep 11, 2018
1 parent 70aa49a commit 07a72e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Backend/GlobOptFields.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1915,6 +1915,10 @@ GlobOpt::UpdateObjPtrValueType(IR::Opnd * opnd, IR::Instr * instr)
}
}
break;
case Js::TypeIds_NativeIntArray:
case Js::TypeIds_NativeFloatArray:
// Do not mark these values as definite to protect against array conversion
break;
case Js::TypeIds_Array:
// Because array can change type id, we can only make it definite if we are doing array check hoist
// so that implicit call will be installed between the array checks.
Expand Down

0 comments on commit 07a72e2

Please sign in to comment.