From f35072ddd8e66862b1e5240276e86029e08b290b Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Fri, 9 Aug 2013 10:02:38 +0200 Subject: [WK1] NPStream::headers not initialized https://bugs.webkit.org/show_bug.cgi?id=119574 Reviewed by Alexey Proskuryakov. Initialize the header field. According to user feedback that should solve some cases of random crashes when loading plugins on Mac and Windows. * plugins/PluginStream.cpp: (WebCore::PluginStream::PluginStream): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153828 268f45cc-cd09-0410-ab3c-d52691b4dbfc Task-number: QTBUG-32181 Change-Id: I45410e618cf0337ac1b2c8c4bafa572e8e1e0d19 Reviewed-by: Simon Hausmann --- src/3rdparty/webkit/Source/WebCore/plugins/PluginStream.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/3rdparty/webkit/Source/WebCore/plugins/PluginStream.cpp b/src/3rdparty/webkit/Source/WebCore/plugins/PluginStream.cpp index efb0415..a267c00 100644 --- a/src/3rdparty/webkit/Source/WebCore/plugins/PluginStream.cpp +++ b/src/3rdparty/webkit/Source/WebCore/plugins/PluginStream.cpp @@ -76,6 +76,7 @@ PluginStream::PluginStream(PluginStreamClient* client, Frame* frame, const Resou m_stream.end = 0; m_stream.notifyData = 0; m_stream.lastmodified = 0; + m_stream.headers = 0; streams().add(&m_stream, m_instance); } -- cgit v0.12