[WPE] Fix a potential crash in the platform pasteboard when reading a string
Created attachment 316442 [details] Patch
Comment on attachment 316442 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=316442&action=review > Source/WebCore/platform/wpe/PlatformPasteboardWPE.cpp:67 > - struct wpe_pasteboard_string string; > + struct wpe_pasteboard_string string = { nullptr, 0 }; > wpe_pasteboard_get_string(m_pasteboard, type.utf8().data(), &string); > > String returnValue(string.data, string.length); Early return should be used, returning String(), in case string.length is still zero after wpe_pasteboard_get_string() call.
Created attachment 316443 [details] Patch
Comment on attachment 316443 [details] Patch Clearing flags on attachment: 316443 Committed r219943: <http://trac.webkit.org/changeset/219943>
All reviewed patches have been landed. Closing bug.