[Webkit-unassigned] [Bug 158795] New: Crash if function has too many parameters

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 15 10:24:06 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=158795

            Bug ID: 158795
           Summary: Crash if function has too many parameters
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: andre.bargull at gmail.com

SVN: rev202088
Build with: perl Tools/Scripts/build-jsc --gtk --debug


The following test case crashes JSC:
---
eval(`(function(${"a,".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
---

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160615/ed33b533/attachment.html>


More information about the webkit-unassigned mailing list