Fixed defects

List of Defects

Error: CLANG_WARNING: [#def1]
gstreamer1-plugins-good-1.22.9-build/gst-plugins-good-1.22.9/ext/adaptivedemux2/dash/gstmpdhelper.c:89:16: warning[deadcode.DeadStores]: Value stored to 'name' during its initialization is never read
#   87|   {
#   88|     GstStructure *s;
#   89|->   const gchar *name = "";
#   90|     const gchar *codec_name = NULL;
#   91|   

Error: CLANG_WARNING: [#def2]
gstreamer1-plugins-good-1.22.9-build/gst-plugins-good-1.22.9/ext/adaptivedemux2/dash/gstmpdhelper.c:117:16: warning[deadcode.DeadStores]: Value stored to 'name' during its initialization is never read
#  115|   {
#  116|     GstStructure *s;
#  117|->   const gchar *name = "";
#  118|     const gchar *codec_name = NULL;
#  119|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def3]
gstreamer1-plugins-good-1.22.9-build/gst-plugins-good-1.22.9/gst/goom2k1/goom_core.c: scope_hint: In function ‘goom2k1_set_resolution’
gstreamer1-plugins-good-1.22.9-build/gst-plugins-good-1.22.9/gst/goom2k1/goom_core.c:76:3: warning[-Wanalyzer-null-argument]: use of NULL ‘*goomdata.p1’ where non-null expected
gstreamer1-plugins-good-1.22.9-build/gst-plugins-good-1.22.9/gst/goom2k1/goom_core.c:22:1: note: in expansion of macro ‘goom_init’
gstreamer1-plugins-good-1.22.9-build/gst-plugins-good-1.22.9/gst/goom2k1/goom_core.c:36:3: note: in expansion of macro ‘goom_set_resolution’
gstreamer1-plugins-good-1.22.9-build/gst-plugins-good-1.22.9/gst/goom2k1/goom_core.c:53:1: note: in expansion of macro ‘goom_set_resolution’
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#   74|     goomdata->resoly = resy;
#   75|   
#   76|->   memset (goomdata->pixel, 0, buffsize * sizeof (guint32) + 128);
#   77|     memset (goomdata->back, 0, buffsize * sizeof (guint32) + 128);
#   78|   }

Error: COMPILER_WARNING: [#def4]
gstreamer1-plugins-good-1.22.9-build/gst-plugins-good-1.22.9/gst/rtp/gstrtph264pay.c:1258:1: warning[-Wenum-int-mismatch]: conflicting types for ‘gst_rtp_h264_pay_payload_nal_bundle’ due to enum/integer mismatch; have ‘gboolean(GstRTPBasePayload *, GstBuffer *, GstClockTime,  GstClockTime,  gboolean,  gboolean,  gboolean,  guint8)’ {aka ‘int(struct _GstRTPBasePayload *, struct _GstBuffer *, long unsigned int,  long unsigned int,  int,  int,  int,  unsigned char)’}
# 1258 | gst_rtp_h264_pay_payload_nal_bundle (GstRTPBasePayload * basepayload,
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gstreamer1-plugins-good-1.22.9-build/gst-plugins-good-1.22.9/gst/rtp/gstrtph264pay.c:865:1: note: previous declaration of ‘gst_rtp_h264_pay_payload_nal_bundle’ with type ‘GstFlowReturn(GstRTPBasePayload *, GstBuffer *, GstClockTime,  GstClockTime,  gboolean,  gboolean,  gboolean,  guint8)’ {aka ‘GstFlowReturn(struct _GstRTPBasePayload *, struct _GstBuffer *, long unsigned int,  long unsigned int,  int,  int,  int,  unsigned char)’}
#  865 | gst_rtp_h264_pay_payload_nal_bundle (GstRTPBasePayload * basepayload,
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1256|   
# 1257|   static gboolean
# 1258|-> gst_rtp_h264_pay_payload_nal_bundle (GstRTPBasePayload * basepayload,
# 1259|       GstBuffer * paybuf, GstClockTime dts, GstClockTime pts, gboolean end_of_au,
# 1260|       gboolean delta_unit, gboolean discont, guint8 nal_header)

Error: COMPILER_WARNING: [#def5]
gstreamer1-plugins-good-1.22.9-build/gst-plugins-good-1.22.9/gst/rtp/gstrtph265pay.c:1355:1: warning[-Wenum-int-mismatch]: conflicting types for ‘gst_rtp_h265_pay_payload_nal_bundle’ due to enum/integer mismatch; have ‘gboolean(GstRTPBasePayload *, GstBuffer *, GstClockTime,  GstClockTime,  gboolean,  gboolean,  guint8,  const guint8 *, int)’ {aka ‘int(struct _GstRTPBasePayload *, struct _GstBuffer *, long unsigned int,  long unsigned int,  int,  int,  unsigned char,  const unsigned char *, int)’}
# 1355 | gst_rtp_h265_pay_payload_nal_bundle (GstRTPBasePayload * basepayload,
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gstreamer1-plugins-good-1.22.9-build/gst-plugins-good-1.22.9/gst/rtp/gstrtph265pay.c:934:22: note: previous declaration of ‘gst_rtp_h265_pay_payload_nal_bundle’ with type ‘GstFlowReturn(GstRTPBasePayload *, GstBuffer *, GstClockTime,  GstClockTime,  gboolean,  gboolean,  guint8,  const guint8 *, int)’ {aka ‘GstFlowReturn(struct _GstRTPBasePayload *, struct _GstBuffer *, long unsigned int,  long unsigned int,  int,  int,  unsigned char,  const unsigned char *, int)’}
#  934 | static GstFlowReturn gst_rtp_h265_pay_payload_nal_bundle (GstRTPBasePayload *
#      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1353|   
# 1354|   static gboolean
# 1355|-> gst_rtp_h265_pay_payload_nal_bundle (GstRTPBasePayload * basepayload,
# 1356|       GstBuffer * paybuf, GstClockTime dts, GstClockTime pts,
# 1357|       gboolean marker, gboolean delta_unit, guint8 nal_type,

Error: CPPCHECK_WARNING: [#def6]
gstreamer1-plugins-good-1.22.9-build/gst-plugins-good-1.22.9/tests/check/elements/souphttpsrc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def7]
gstreamer1-plugins-good-1.22.9-build/gst-plugins-good-1.22.9/tests/check/elements/souphttpsrc.c:581:3: warning[unix.Malloc]: Potential leak of memory pointed to by 'buf'
#  579|   
#  580|   leave:
#  581|->   soup_server_message_set_status (msg, status, NULL);
#  582|     g_free (uri);
#  583|   }

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-82.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namegstreamer1-plugins-good-1.24.5-1.fc41
diffbase-store-results-to/tmp/tmp1uzxy_ey/gstreamer1-plugins-good-1.24.5-1.fc41.tar.xz
diffbase-time-created2024-07-03 13:17:31
diffbase-time-finished2024-07-03 13:29:14
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp1uzxy_ey/gstreamer1-plugins-good-1.24.5-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp1uzxy_ey/gstreamer1-plugins-good-1.24.5-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-82.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namegstreamer1-plugins-good-1.22.9-3.fc40
store-results-to/tmp/tmpfpl_1are/gstreamer1-plugins-good-1.22.9-3.fc40.tar.xz
time-created2024-07-03 13:05:31
time-finished2024-07-03 13:17:12
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpfpl_1are/gstreamer1-plugins-good-1.22.9-3.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpfpl_1are/gstreamer1-plugins-good-1.22.9-3.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9