<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Crash if function has too many parameters"
   href="https://bugs.webkit.org/show_bug.cgi?id=158795">158795</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Crash if function has too many parameters
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Local Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>JavaScriptCore
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>andre.bargull&#64;gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>SVN: rev202088
Build with: perl Tools/Scripts/build-jsc --gtk --debug


The following test case crashes JSC:
---
eval(`(function(${&quot;a,&quot;.repeat(0xFFFF)}a){})()`)
---


Stack trace:
---
#0  0x00007ffff69ed762 in llint_entry () from /home/andre/svn/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.0.so.18
#1  0x00007ffff69f26a1 in llint_entry () from /home/andre/svn/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.0.so.18
#2  0x00007ffff69ec3f9 in vmEntryToJavaScript () from /home/andre/svn/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.0.so.18
#3  0x00007ffff69903dc in JSC::JITCode::execute (this=0x7ffff0da34d8, vm=0x7fffb09f1000, protoCallFrame=0x7fffffffc0a0)
    at ../../Source/JavaScriptCore/jit/JITCode.cpp:80
#4  0x00007ffff694f224 in JSC::Interpreter::execute (this=0x7ffff0def058, eval=0x7fffaf1fbee0, callFrame=0x7fffffffcb20, thisValue=..., scope=0x7fffaf1d0cd0)
    at ../../Source/JavaScriptCore/interpreter/Interpreter.cpp:1235
#5  0x00007ffff694ab49 in JSC::eval (callFrame=0x7fffffffcb20) at ../../Source/JavaScriptCore/interpreter/Interpreter.cpp:196
#6  0x00007ffff69e724c in JSC::(anonymous namespace)::llint_slow_path_call_eval (exec=0x7fffffffcba0, pc=0x7fffafdf2528)
    at ../../Source/JavaScriptCore/llint/LLIntSlowPaths.cpp:1448
#7  0x00007ffff69f2e90 in llint_entry () from /home/andre/svn/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.0.so.18
#8  0x00007ffff69ec3f9 in vmEntryToJavaScript () from /home/andre/svn/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.0.so.18
#9  0x00007ffff69903dc in JSC::JITCode::execute (this=0x7ffff0da3348, vm=0x7fffb09f1000, protoCallFrame=0x7fffffffcd80)
    at ../../Source/JavaScriptCore/jit/JITCode.cpp:80
#10 0x00007ffff694d779 in JSC::Interpreter::execute (this=0x7ffff0def058, program=0x7fffaf1fbf70, callFrame=0x7fffaf1e7940, thisObj=0x7fffaf1afb40)
    at ../../Source/JavaScriptCore/interpreter/Interpreter.cpp:961
#11 0x00007ffff6b3aa2b in JSC::evaluate (exec=0x7fffaf1e7940, source=..., thisValue=..., returnedException=...)
    at ../../Source/JavaScriptCore/runtime/Completion.cpp:107
#12 0x000000000043ac2b in runWithScripts (globalObject=0x7fffaf1e7900, scripts=..., uncaughtExceptionName=..., dump=false, module=false)
    at ../../Source/JavaScriptCore/jsc.cpp:2101
#13 0x000000000043bcc2 in runJSC (vm=0x7fffb09f1000, options=...) at ../../Source/JavaScriptCore/jsc.cpp:2348
#14 0x000000000043c1e5 in jscmain (argc=2, argv=0x7fffffffdba8) at ../../Source/JavaScriptCore/jsc.cpp:2401
#15 0x0000000000439e79 in main (argc=2, argv=0x7fffffffdba8) at ../../Source/JavaScriptCore/jsc.cpp:1983
---</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>