Changeset 179783 in webkit


Ignore:
Timestamp:
Feb 7, 2015 12:21:24 PM (9 years ago)
Author:
ap@apple.com
Message:

ASan complains about plugins/snapshotting/snapshot-plugin-not-quite-blocked-by-image.html
https://bugs.webkit.org/show_bug.cgi?id=141352
rdar://problem/19717490

Reviewed by Anders Carlsson.

  • dom/Document.cpp: (WebCore::Document::ensurePlugInsInjectedScript): This string

is not null terminated.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r179776 r179783  
     12015-02-07  Alexey Proskuryakov  <ap@apple.com>
     2
     3        ASan complains about plugins/snapshotting/snapshot-plugin-not-quite-blocked-by-image.html
     4        https://bugs.webkit.org/show_bug.cgi?id=141352
     5        rdar://problem/19717490
     6
     7        Reviewed by Anders Carlsson.
     8
     9        * dom/Document.cpp: (WebCore::Document::ensurePlugInsInjectedScript): This string
     10        is not null terminated.
     11
    1122015-02-06  Zalan Bujtas  <zalan@apple.com>
    213
  • trunk/Source/WebCore/dom/Document.cpp

    r179770 r179783  
    62726272    String jsString = page()->chrome().client().plugInExtraScript();
    62736273    if (!jsString)
    6274         jsString = plugInsJavaScript;
     6274        jsString = String(plugInsJavaScript, sizeof(plugInsJavaScript));
    62756275
    62766276    m_frame->mainFrame().script().evaluateInWorld(ScriptSourceCode(jsString), world);
Note: See TracChangeset for help on using the changeset viewer.