<?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>187087</bug_id>
          
          <creation_ts>2018-06-27 00:39:13 -0700</creation_ts>
          <short_desc>[GStreamer] Coverity scan issues</short_desc>
          <delta_ts>2018-06-27 01:17:16 -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>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tomas Popela">tpopela</reporter>
          <assigned_to name="Tomas Popela">tpopela</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>calvaris</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1436878</commentid>
    <comment_count>0</comment_count>
    <who name="Tomas Popela">tpopela</who>
    <bug_when>2018-06-27 00:39:13 -0700</bug_when>
    <thetext>Error: UNINIT_CTOR (CWE-456):
/usr/include/gstreamer-1.0/gst/video/video-frame.h:73: member_decl: Class member declaration for &quot;info&quot;.
webkitgtk-2.20.3/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:203: uninit_member: Non-static class member field &quot;m_videoFrame.info&quot; is not initialized in this constructor nor in any functions that it calls.
/usr/include/gstreamer-1.0/gst/video/video-frame.h:74: member_decl: Class member declaration for &quot;flags&quot;.
webkitgtk-2.20.3/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:203: uninit_member: Non-static class member field &quot;m_videoFrame.flags&quot; is not initialized in this constructor nor in any functions that it calls.
/usr/include/gstreamer-1.0/gst/video/video-frame.h:76: member_decl: Class member declaration for &quot;buffer&quot;.
webkitgtk-2.20.3/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:203: uninit_member: Non-static class member field &quot;m_videoFrame.buffer&quot; is not initialized in this constructor nor in any functions that it calls.
/usr/include/gstreamer-1.0/gst/video/video-frame.h:77: member_decl: Class member declaration for &quot;meta&quot;.
webkitgtk-2.20.3/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:203: uninit_member: Non-static class member field &quot;m_videoFrame.meta&quot; is not initialized in this constructor nor in any functions that it calls.
/usr/include/gstreamer-1.0/gst/video/video-frame.h:78: member_decl: Class member declaration for &quot;id&quot;.
webkitgtk-2.20.3/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:203: uninit_member: Non-static class member field &quot;m_videoFrame.id&quot; is not initialized in this constructor nor in any functions that it calls.
/usr/include/gstreamer-1.0/gst/video/video-frame.h:80: member_decl: Class member declaration for &quot;data&quot;.
webkitgtk-2.20.3/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:203: uninit_member: Non-static class member field &quot;m_videoFrame.data&quot; is not initialized in this constructor nor in any functions that it calls.
/usr/include/gstreamer-1.0/gst/video/video-frame.h:81: member_decl: Class member declaration for &quot;map&quot;.
webkitgtk-2.20.3/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:203: uninit_member: Non-static class member field &quot;m_videoFrame.map&quot; is not initialized in this constructor nor in any functions that it calls.
/usr/include/gstreamer-1.0/gst/video/video-frame.h:84: member_decl: Class member declaration for &quot;_gst_reserved&quot;.
webkitgtk-2.20.3/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:203: uninit_member: Non-static class member field &quot;m_videoFrame._gst_reserved&quot; is not initialized in this constructor nor in any functions that it calls.
webkitgtk-2.20.3/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:232: member_decl: Class member declaration for &quot;m_flags&quot;.
webkitgtk-2.20.3/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:203: uninit_member: Non-static class member &quot;m_flags&quot; is not initialized in this constructor nor in any functions that it calls.
#  201|           GstVideoInfo videoInfo;
#  202|           if (UNLIKELY(!getSampleVideoInfo(sample, videoInfo)))
#  203|-&gt;             return;
#  204|   
#  205|           m_size = IntSize(GST_VIDEO_INFO_WIDTH(&amp;videoInfo), GST_VIDEO_INFO_HEIGHT(&amp;videoInfo));

Error: UNINIT_CTOR (CWE-456):
webkitgtk-2.20.3/Source/WebCore/platform/graphics/gstreamer/mse/SourceBufferPrivateGStreamer.h:88: member_decl: Class member declaration for &quot;m_sourceBufferPrivateClient&quot;.
webkitgtk-2.20.3/Source/WebCore/platform/graphics/gstreamer/mse/SourceBufferPrivateGStreamer.cpp:62: uninit_member: Non-static class member &quot;m_sourceBufferPrivateClient&quot; is not initialized in this constructor nor in any functions that it calls.
#   60|       , m_client(client.get())
#   61|   {
#   62|-&gt; }
#   63|   
#   64|   void SourceBufferPrivateGStreamer::setClient(SourceBufferPrivateClient* client)

Error: UNINIT_CTOR (CWE-456):
webkitgtk-2.20.3/Source/WebCore/platform/graphics/gstreamer/VideoSinkGStreamer.cpp:138: member_decl: Class member declaration for &quot;currentCaps&quot;.
webkitgtk-2.20.3/Source/WebCore/platform/graphics/gstreamer/VideoSinkGStreamer.cpp:128: uninit_member: Non-static class member &quot;currentCaps&quot; is not initialized in this constructor nor in any functions that it calls.
#  126|       {
#  127|           gst_video_info_init(&amp;info);
#  128|-&gt;     }
#  129|   
#  130|       ~_WebKitVideoSinkPrivate()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1436879</commentid>
    <comment_count>1</comment_count>
      <attachid>343699</attachid>
    <who name="Tomas Popela">tpopela</who>
    <bug_when>2018-06-27 00:42:06 -0700</bug_when>
    <thetext>Created attachment 343699
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1436887</commentid>
    <comment_count>2</comment_count>
      <attachid>343699</attachid>
    <who name="Tomas Popela">tpopela</who>
    <bug_when>2018-06-27 01:17:12 -0700</bug_when>
    <thetext>Comment on attachment 343699
Patch

Clearing flags on attachment: 343699

Committed r233248: &lt;https://trac.webkit.org/changeset/233248&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1436888</commentid>
    <comment_count>3</comment_count>
    <who name="Tomas Popela">tpopela</who>
    <bug_when>2018-06-27 01:17:16 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>343699</attachid>
            <date>2018-06-27 00:42:06 -0700</date>
            <delta_ts>2018-06-27 01:17:12 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-187087-20180627094205.patch</filename>
            <type>text/plain</type>
            <size>3049</size>
            <attacher name="Tomas Popela">tpopela</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjMzMjQ2CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggZDE0NDc2ZjM3ZjU5NWNi
OGVkYWZmOTFjNzMyM2U4YTZkNDhiZTMxYS4uNzM3OTk3YmI2MmRlY2IxMTBjOWQ3NzM0ZDBhZTU4
M2UwNmNiOWFjZSAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQC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