<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>136947</bug_id>
          
          <creation_ts>2014-09-19 02:26:14 -0700</creation_ts>
          <short_desc>Null pointer dereference in WebCore::StyleProperties::findPropertyIndex</short_desc>
          <delta_ts>2016-08-03 17:04:35 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>116980</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Renata Hodovan">rhodovan.u-szeged</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>kling</cc>
    
    <cc>ltilve</cc>
    
    <cc>rego</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1036098</commentid>
    <comment_count>0</comment_count>
      <attachid>238364</attachid>
    <who name="Renata Hodovan">rhodovan.u-szeged</who>
    <bug_when>2014-09-19 02:26:14 -0700</bug_when>
    <thetext>Created attachment 238364
Test case

The crashing test case:

&lt;!DOCTYPE html&gt;
&lt;style&gt;
* {
    position:absolute;
}
&lt;/style&gt;
&lt;script&gt;
onload = function() {
    document.designMode = &apos;on&apos;;
    document.execCommand(&quot;selectAll&quot;, false, null);
    document.execCommand(&quot;insertParagraph&quot;, true, null);
    document.execCommand(&quot;useCSS&quot;, true, false);
    document.execCommand(&quot;insertOrderedList&quot;, false, null);
    document.execCommand(&quot;insertOrderedList&quot;, false, null);
    document.execCommand(&quot;insertOrderedList&quot;, false, null);
    document.execCommand(&quot;undo&quot;, false, null);
    document.execCommand(&quot;insertOrderedList&quot;, false, null);
    document.execCommand(&quot;redo&quot;,  false, null);
}
&lt;/script&gt;
&lt;li&gt;
    &lt;b&gt;
        &lt;embed&gt;&lt;/embed&gt;
    &lt;/b&gt;
&lt;/li&gt;



The backtrace:

0x00007ffff2fb9711 in WebCore::StyleProperties::findPropertyIndex (this=0x0, propertyID=WebCore::CSSPropertyFontWeight) at ../../Source/WebCore/css/StyleProperties.h:291
291	    if (m_isMutable)
#0  0x00007ffff2fb9711 in WebCore::StyleProperties::findPropertyIndex (this=0x0, propertyID=WebCore::CSSPropertyFontWeight) at ../../Source/WebCore/css/StyleProperties.h:291
#1  0x00007ffff2fb61d8 in WebCore::StyleProperties::getPropertyCSSValue (this=0x0, propertyID=WebCore::CSSPropertyFontWeight) at ../../Source/WebCore/css/StyleProperties.cpp:578
#2  0x00007ffff2fb330c in WebCore::StyleProperties::getPropertyValue (this=0x0, propertyID=WebCore::CSSPropertyFontWeight) at ../../Source/WebCore/css/StyleProperties.cpp:120
#3  0x00007ffff31fd21a in WebCore::RemoveCSSPropertyCommand::doApply (this=0x8931f0) at ../../Source/WebCore/editing/RemoveCSSPropertyCommand.cpp:53
#4  0x00007ffff31a9549 in WebCore::SimpleEditCommand::doReapply (this=0x8931f0) at ../../Source/WebCore/editing/EditCommand.cpp:117
#5  0x00007ffff318d82d in WebCore::EditCommandComposition::reapply (this=0x96ecb0) at ../../Source/WebCore/editing/CompositeEditCommand.cpp:146
#6  0x00007ffff2a35584 in WebKit::WebPage::reapplyEditCommand (this=0xaff070, stepID=0x4) at ../../Source/WebKit2/WebProcess/WebPage/WebPage.cpp:3112
#7  0x00007ffff2b92dee in IPC::callMemberFunctionImpl&lt;WebKit::WebPage, void (WebKit::WebPage::*)(unsigned long), std::tuple&lt;unsigned long&gt;, 0ul&gt;(WebKit::WebPage*, void (WebKit::WebPage::*)(unsigned long), std::tuple&lt;unsigned long&gt;&amp;&amp;, std::index_sequence&lt;0ul&gt;) (object=0xaff070, function=(void (WebKit::WebPage::*)(WebKit::WebPage * const, unsigned long)) 0x7ffff2a3552e &lt;WebKit::WebPage::reapplyEditCommand(unsigned long)&gt;, args=&lt;unknown type in /home/reni/data/REPOS/webkit/WebKitBuild/Debug/lib/libwebkit2gtk-4.0.so.37, CU 0x6da7251, DIE 0x6e79cc3&gt;) at ../../Source/WebKit2/Platform/IPC/HandleMessage.h:16
#8  0x00007ffff2b90c7e in IPC::callMemberFunction&lt;WebKit::WebPage, void (WebKit::WebPage::*)(unsigned long), std::tuple&lt;unsigned long&gt;, std::make_index_sequence&lt;1ul&gt; &gt;(std::tuple&lt;unsigned long&gt;&amp;&amp;, WebKit::WebPage*, void (WebKit::WebPage::*)(unsigned long)) (args=&lt;unknown type in /home/reni/data/REPOS/webkit/WebKitBuild/Debug/lib/libwebkit2gtk-4.0.so.37, CU 0x6da7251, DIE 0x6e79cc3&gt;, object=0xaff070, function=(void (WebKit::WebPage::*)(WebKit::WebPage * const, unsigned long)) 0x7ffff2a3552e &lt;WebKit::WebPage::reapplyEditCommand(unsigned long)&gt;) at ../../Source/WebKit2/Platform/IPC/HandleMessage.h:22
#9  0x00007ffff2b8cc6f in IPC::handleMessage&lt;Messages::WebPage::ReapplyEditCommand, WebKit::WebPage, void (WebKit::WebPage::*)(unsigned long)&gt; (decoder=..., object=0xaff070, function=(void (WebKit::WebPage::*)(WebKit::WebPage * const, unsigned long)) 0x7ffff2a3552e &lt;WebKit::WebPage::reapplyEditCommand(unsigned long)&gt;) at ../../Source/WebKit2/Platform/IPC/HandleMessage.h:120
#10 0x00007ffff2b87f28 in WebKit::WebPage::didReceiveWebPageMessage (this=0xaff070, decoder=...) at DerivedSources/WebKit2/WebPageMessageReceiver.cpp:612
#11 0x00007ffff2a362b0 in WebKit::WebPage::didReceiveMessage (this=0xaff070, connection=0xaa8200, decoder=...) at ../../Source/WebKit2/WebProcess/WebPage/WebPage.cpp:3505
#12 0x00007ffff2752042 in IPC::MessageReceiverMap::dispatchMessage (this=0x8ec6e8, connection=0xaa8200, decoder=...) at ../../Source/WebKit2/Platform/IPC/MessageReceiverMap.cpp:87
#13 0x00007ffff29203f9 in WebKit::WebProcess::didReceiveMessage (this=0x8ec600, connection=0xaa8200, decoder=...) at ../../Source/WebKit2/WebProcess/WebProcess.cpp:599
#14 0x00007ffff27411be in IPC::Connection::dispatchMessage (this=0xaa8200, decoder=...) at ../../Source/WebKit2/Platform/IPC/Connection.cpp:809
#15 0x00007ffff274128a in IPC::Connection::dispatchMessage (this=0xaa8200, message=...) at ../../Source/WebKit2/Platform/IPC/Connection.cpp:828
#16 0x00007ffff273d30d in IPC::Connection::SyncMessageState::dispatchMessages (this=0xacd600, allowedConnection=0x0) at ../../Source/WebKit2/Platform/IPC/Connection.cpp:201
#17 0x00007ffff273f51d in IPC::Connection::waitForSyncReply (this=0xaa8200, syncRequestID=0x7, timeout=..., syncSendFlags=0x0) at ../../Source/WebKit2/Platform/IPC/Connection.cpp:537
#18 0x00007ffff273ef7a in IPC::Connection::sendSyncMessage (this=0xaa8200, syncRequestID=0x7, encoder=..., timeout=..., syncSendFlags=0x0) at ../../Source/WebKit2/Platform/IPC/Connection.cpp:478
#19 0x00007ffff29e8cbb in IPC::Connection::sendSync&lt;Messages::WebPageProxy::ExecuteUndoRedo&gt;(Messages::WebPageProxy::ExecuteUndoRedo&amp;&amp;, Messages::WebPageProxy::ExecuteUndoRedo::Reply&amp;&amp;, unsigned long, std::chrono::duration&lt;long, std::ratio&lt;1l, 1000l&gt; &gt;, unsigned int) (this=0xaa8200, message=&lt;unknown type in /home/reni/data/REPOS/webkit/WebKitBuild/Debug/lib/libwebkit2gtk-4.0.so.37, CU 0x4136c8e, DIE 0x4204d34&gt;, reply=&lt;unknown type in /home/reni/data/REPOS/webkit/WebKitBuild/Debug/lib/libwebkit2gtk-4.0.so.37, CU 0x4136c8e, DIE 0x4207c50&gt;, destinationID=0x1, timeout=..., syncSendFlags=0x0) at ../../Source/WebKit2/Platform/IPC/Connection.h:359
#20 0x00007ffff29e8030 in IPC::MessageSender::sendSync&lt;Messages::WebPageProxy::ExecuteUndoRedo&gt;(Messages::WebPageProxy::ExecuteUndoRedo&amp;&amp;, Messages::WebPageProxy::ExecuteUndoRedo::Reply&amp;&amp;, unsigned long, std::chrono::duration&lt;long, std::ratio&lt;1l, 1000l&gt; &gt;, unsigned int) (this=0xaff088, message=&lt;unknown type in /home/reni/data/REPOS/webkit/WebKitBuild/Debug/lib/libwebkit2gtk-4.0.so.37, CU 0x4136c8e, DIE 0x4204d34&gt;, reply=&lt;unknown type in /home/reni/data/REPOS/webkit/WebKitBuild/Debug/lib/libwebkit2gtk-4.0.so.37, CU 0x4136c8e, DIE 0x42065fb&gt;, destinationID=0x1, timeout=..., syncSendFlags=0x0) at ../../Source/WebKit2/Platform/IPC/MessageSender.h:66
#21 0x00007ffff29e741a in IPC::MessageSender::sendSync&lt;Messages::WebPageProxy::ExecuteUndoRedo&gt;(Messages::WebPageProxy::ExecuteUndoRedo&amp;&amp;, Messages::WebPageProxy::ExecuteUndoRedo::Reply&amp;&amp;, std::chrono::duration&lt;long, std::ratio&lt;1l, 1000l&gt; &gt;, unsigned int) (this=0xaff088, message=&lt;unknown type in /home/reni/data/REPOS/webkit/WebKitBuild/Debug/lib/libwebkit2gtk-4.0.so.37, CU 0x4136c8e, DIE 0x4204d34&gt;, reply=&lt;unknown type in /home/reni/data/REPOS/webkit/WebKitBuild/Debug/lib/libwebkit2gtk-4.0.so.37, CU 0x4136c8e, DIE 0x4204d39&gt;, timeout=..., syncSendFlags=0x0) at ../../Source/WebKit2/Platform/IPC/MessageSender.h:58
#22 0x00007ffff29e5812 in WebKit::WebEditorClient::redo (this=0x6ffa80) at ../../Source/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.cpp:280
#23 0x00007ffff31bde1e in WebCore::Editor::redo (this=0xa84360) at ../../Source/WebCore/editing/Editor.cpp:1617
#24 0x00007ffff31d3277 in WebCore::executeRedo (frame=...) at ../../Source/WebCore/editing/EditorCommand.cpp:977
#25 0x00007ffff31d5121 in WebCore::Editor::Command::execute (this=0x7fffffffc780, parameter=..., triggeringEvent=0x0) at ../../Source/WebCore/editing/EditorCommand.cpp:1726
#26 0x00007ffff3068d82 in WebCore::Document::execCommand (this=0xabf430, commandName=..., userInterface=0x0, value=...) at ../../Source/WebCore/dom/Document.cpp:4284
#27 0x00007ffff4064ccf in WebCore::jsDocumentPrototypeFunctionExecCommand (exec=0x7fffffffc880) at DerivedSources/WebCore/JSDocument.cpp:4526
#28 0x00007fff9b2060b4 in ?? ()
#29 0x00007fffffffc8e0 in ?? ()
#30 0x00007fffedbda6ae in llint_entry () from /home/reni/data/REPOS/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.0.so.18</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1217283</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2016-08-03 17:04:35 -0700</bug_when>
    <thetext>This problem does not reproduce under GuardMalloc or ASAN under r204037. If you believe there is still a problem, please reopen this bug and provide an updated test case.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>238364</attachid>
            <date>2014-09-19 02:26:14 -0700</date>
            <delta_ts>2014-09-19 02:26:14 -0700</delta_ts>
            <desc>Test case</desc>
            <filename>crash.html</filename>
            <type>text/html</type>
            <size>682</size>
            <attacher name="Renata Hodovan">rhodovan.u-szeged</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxzdHlsZT4KKiB7CiAgICBwb3NpdGlvbjphYnNvbHV0ZTsKfQo8L3N0
eWxlPgo8c2NyaXB0PgpvbmxvYWQgPSBmdW5jdGlvbigpIHsKICAgIGRvY3VtZW50LmRlc2lnbk1v
ZGUgPSAnb24nOwogICAgZG9jdW1lbnQuZXhlY0NvbW1hbmQoInNlbGVjdEFsbCIsIGZhbHNlLCBu
dWxsKTsKICAgIGRvY3VtZW50LmV4ZWNDb21tYW5kKCJpbnNlcnRQYXJhZ3JhcGgiLCB0cnVlLCBu
dWxsKTsKICAgIGRvY3VtZW50LmV4ZWNDb21tYW5kKCJ1c2VDU1MiLCB0cnVlLCBmYWxzZSk7CiAg
ICBkb2N1bWVudC5leGVjQ29tbWFuZCgiaW5zZXJ0T3JkZXJlZExpc3QiLCBmYWxzZSwgbnVsbCk7
CiAgICBkb2N1bWVudC5leGVjQ29tbWFuZCgiaW5zZXJ0T3JkZXJlZExpc3QiLCBmYWxzZSwgbnVs
bCk7CiAgICBkb2N1bWVudC5leGVjQ29tbWFuZCgiaW5zZXJ0T3JkZXJlZExpc3QiLCBmYWxzZSwg
bnVsbCk7CiAgICBkb2N1bWVudC5leGVjQ29tbWFuZCgidW5kbyIsIGZhbHNlLCBudWxsKTsKICAg
IGRvY3VtZW50LmV4ZWNDb21tYW5kKCJpbnNlcnRPcmRlcmVkTGlzdCIsIGZhbHNlLCBudWxsKTsK
ICAgIGRvY3VtZW50LmV4ZWNDb21tYW5kKCJyZWRvIiwgIGZhbHNlLCBudWxsKTsKfQo8L3Njcmlw
dD4KPGxpPgogICAgPGI+CiAgICAgICAgPGVtYmVkPjwvZW1iZWQ+CiAgICA8L2I+CjwvbGk+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>