fast/mediastream/RTCPeerConnection-* tests crashing under ASan
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 31 Oct 2016 08:32:34 +0000 (08:32 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 31 Oct 2016 08:32:34 +0000 (08:32 +0000)
https://bugs.webkit.org/show_bug.cgi?id=164215

Patch by Youenn Fablet <youenn@apple.com> on 2016-10-31
Reviewed by Philippe Normand.

Covered by ASAN bot tests.

* platform/mediastream/SDPProcessorScriptResource.cpp:
(WebCore::SDPProcessorScriptResource::scriptString):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@208140 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/mediastream/SDPProcessorScriptResource.cpp

index 054b34e..b98d015 100644 (file)
@@ -1,3 +1,15 @@
+2016-10-31  Youenn Fablet  <youenn@apple.com>
+
+        fast/mediastream/RTCPeerConnection-* tests crashing under ASan
+        https://bugs.webkit.org/show_bug.cgi?id=164215
+
+        Reviewed by Philippe Normand.
+
+        Covered by ASAN bot tests.
+
+        * platform/mediastream/SDPProcessorScriptResource.cpp:
+        (WebCore::SDPProcessorScriptResource::scriptString):
+
 2016-10-28  Philippe Normand  <pnormand@igalia.com>
 
         [OpenWebRTC] Initialize library one time only
index 36e6eff..669ed2a 100644 (file)
@@ -42,7 +42,7 @@ namespace SDPProcessorScriptResource {
 
 const String& scriptString()
 {
-    static NeverDestroyed<const String> script = String(sdpJavaScript);
+    static NeverDestroyed<const String> script(sdpJavaScript, sizeof(sdpJavaScript));
     return script;
 }