New issue
Advanced search Search tips

Issue 652430 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Oct 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 1
Type: Bug



Sign in to add a comment

Bytecodes::SizeForUnsignedOperand(static_cast<uint32_t>(entry)) == OperandSize::

Project Member Reported by ClusterFuzz, Oct 3 2016

Issue description

Detailed report: https://cluster-fuzz.appspot.com/testcase?key=6614848094076928

Fuzzer: mbarbella_js_mutation
Job Type: linux_asan_d8_ignition_dbg
Platform Id: linux

Crash Type: CHECK failure
Crash Address: 
Crash State:
  Bytecodes::SizeForUnsignedOperand(static_cast<uint32_t>(entry)) == OperandSize::
  
Regressed: V8: r39636:39637

Minimized Testcase (0.47 Kb):
Download: https://cluster-fuzz.appspot.com/download/AMIfv9679NktmO-pZ19j4N5kGq9SY18u6RQJlU3e83vmEYioEE209ub0mN1eeYorsd_t7oxz36JCbhyRdC-c5GKuLeWk0LlI-Ri4MVt_v1GlSXOXuJfx392Rm5FX9E36545gMfx3KxSphLb-jAf6H4SgJMXAoxujug?testcase_id=6614848094076928
try {
( {
}());
} catch(e) {; }
function __f_19(length) {
  var __v_9 = "(function () {\n" +
            "  for (var __v_8 = 0; __v_8 <= " + length + "; __v_8++) {\n" +
            "    switch(__v_8) {\n";
  for (var __v_8 = 0; __v_8 < length; __v_8++) {
    __v_9 += "    case " + __v_8 + ": __v_9 += 2; break;\n";
  }
  __v_9 += "    default: __v_9 += 1;\n" +
         "    }\n" +
         "  }\n" +
         "})";
  return eval(__v_9);
}
__v_7 = 2838;
__v_10 = __f_19(__v_7);


Issue manually filed by: mmohammad

See https://dev.chromium.org/Home/chromium-security/bugs/reproducing-clusterfuzz-bugs for more information.
 
Owner: rmcilroy@chromium.org
Status: Assigned (was: Untriaged)
looks this is the suspected cl:

https://chromium.googlesource.com/v8/v8/+/e5ac75c6354f6dbe0fbe217f857750ab9fb0bd45%5E%21/src/interpreter/bytecode-array-writer.cc

rmcilroy @ could you please look into this.please feel free to re-assigned back if needed. thanks in advance !
Project Member

Comment 2 by bugdroid1@chromium.org, Oct 7 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/v8/v8.git/+/2c9b5844f982172aaa978563b557275fdf82f8c2

commit 2c9b5844f982172aaa978563b557275fdf82f8c2
Author: rmcilroy <rmcilroy@chromium.org>
Date: Fri Oct 07 14:54:58 2016

[Interpreter] Remove an invalid DCHECK.

A wide jump can be patched with a non-wide jump target operand, so the
DCHECK added in r39637 was wrong.

BUG= chromium:652430 

Review-Url: https://codereview.chromium.org/2400203002
Cr-Commit-Position: refs/heads/master@{#40090}

[modify] https://crrev.com/2c9b5844f982172aaa978563b557275fdf82f8c2/src/interpreter/bytecode-array-writer.cc

Status: Fixed (was: Assigned)
Project Member

Comment 4 by ClusterFuzz, Oct 7 2016

ClusterFuzz has detected this issue as fixed in range 40089:40090.

Detailed report: https://cluster-fuzz.appspot.com/testcase?key=6614848094076928

Fuzzer: mbarbella_js_mutation
Job Type: linux_asan_d8_ignition_dbg
Platform Id: linux

Crash Type: CHECK failure
Crash Address: 
Crash State:
  Bytecodes::SizeForUnsignedOperand(static_cast<uint32_t>(entry)) == OperandSize::
  
Regressed: V8: r39636:39637
Fixed: V8: r40089:40090

Minimized Testcase (0.47 Kb):
Download: https://cluster-fuzz.appspot.com/download/AMIfv9679NktmO-pZ19j4N5kGq9SY18u6RQJlU3e83vmEYioEE209ub0mN1eeYorsd_t7oxz36JCbhyRdC-c5GKuLeWk0LlI-Ri4MVt_v1GlSXOXuJfx392Rm5FX9E36545gMfx3KxSphLb-jAf6H4SgJMXAoxujug?testcase_id=6614848094076928
try {
( {
}());
} catch(e) {; }
function __f_19(length) {
  var __v_9 = "(function () {\n" +
            "  for (var __v_8 = 0; __v_8 <= " + length + "; __v_8++) {\n" +
            "    switch(__v_8) {\n";
  for (var __v_8 = 0; __v_8 < length; __v_8++) {
    __v_9 += "    case " + __v_8 + ": __v_9 += 2; break;\n";
  }
  __v_9 += "    default: __v_9 += 1;\n" +
         "    }\n" +
         "  }\n" +
         "})";
  return eval(__v_9);
}
__v_7 = 2838;
__v_10 = __f_19(__v_7);


See https://dev.chromium.org/Home/chromium-security/bugs/reproducing-clusterfuzz-bugs for more information.

If you suspect that the result above is incorrect, try re-doing that job on the test case report page.
Project Member

Comment 5 by sheriffbot@chromium.org, Nov 22 2016

Labels: -Restrict-View-EditIssue
Removing EditIssue view restrictions from ClusterFuzz filed bugs. If you believe that this issue should still be restricted, please reapply the label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment