Skip to content

Commit

Permalink
CVE-2019-0539, CVE-2019-0567 Edge - Chakra: JIT: Type confusion via N…
Browse files Browse the repository at this point in the history
…ewScObjectNoCtor or InitProto - Google, Inc.
  • Loading branch information
Chakra Automation authored and rajatd committed Jan 7, 2019
1 parent d73c5f1 commit 788f17b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/Backend/GlobOptFields.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,15 @@ GlobOpt::ProcessFieldKills(IR::Instr *instr, BVSparse<JitArenaAllocator> *bv, bo
}
break;

case Js::OpCode::InitClass:
case Js::OpCode::InitProto:
case Js::OpCode::NewScObjectNoCtor:
if (inGlobOpt)
{
KillObjectHeaderInlinedTypeSyms(this->currentBlock, false);
}
break;

default:
if (instr->UsesAllFields())
{
Expand Down

0 comments on commit 788f17b

Please sign in to comment.