Newly introduced defects

List of Defects

Error: CLANG_WARNING: [#def1]
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst-libs/gst/allocators/gstfdmemory.c:74:3: warning[unix.Malloc]: Use of memory after it is freed
#   72|     g_mutex_clear (&mem->lock);
#   73|     g_free (mem);
#   74|->   GST_DEBUG ("%p: freed", mem);
#   75|   #endif
#   76|   }

Error: CPPCHECK_WARNING: [#def2]
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst-libs/gst/allocators/gstshmallocator.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def3]
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst-libs/gst/app/gstapputils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def4]
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst-libs/gst/audio/gstaudiometa.c:532:38: warning[core.UndefinedBinaryOperatorResult]: The left operand of '+' is a garbage value
#  530|           max_offset = MAX (max_offset, offsets[i]);
#  531|           for (j = 0; j < info->channels; j++) {
#  532|->           if (i != j && !(offsets[j] + plane_size <= offsets[i]
#  533|                     || offsets[i] + plane_size <= offsets[j])) {
#  534|               g_critical ("GstAudioMeta properties would cause channel memory "

Error: CPPCHECK_WARNING: [#def5]
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst-libs/gst/audio/gstdsd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def6]
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst-libs/gst/gl/gstglcolorconvert.c: scope_hint: In function ‘gst_gl_color_convert_fixate_format_target’
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst-libs/gst/gl/gstglcolorconvert.c:1506:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘target’
# 1504|       gst_structure_set (outs, "format", G_TYPE_STRING,
# 1505|           GST_VIDEO_FORMAT_INFO_NAME (out_info), NULL);
# 1506|->   if (target)
# 1507|       gst_structure_set (outs, "texture-target", G_TYPE_STRING,
# 1508|           gst_gl_texture_target_to_string (target), NULL);

Error: CPPCHECK_WARNING: [#def7]
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst-libs/gst/gl/gstglformat.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def8]
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst-libs/gst/gl/gstglupload.c:1614:27: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 1612|        * entry to avoid repeated lookups if all mems[i] point to the same memory.
# 1613|        */
# 1614|->     dmabuf->eglimage[i] = gst_egl_image_cache_lookup (dmabuf->eglimage_cache,
# 1615|           mems[i], i, &previous_mem, &cache_entry);
# 1616|       if (dmabuf->eglimage[i]) {

Error: CLANG_WARNING: [#def9]
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst-libs/gst/rtsp/gstrtspconnection.c:1313:5: warning[unix.Malloc]: Attempt to free released memory
# 1311|       GST_ERROR ("failed to setup tunneling");
# 1312|       g_free (connection_uri);
# 1313|->     g_free (request_uri);
# 1314|       return res;
# 1315|     }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def10]
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst-libs/gst/video/video-format.c: scope_hint: In function ‘unpack_TILED’
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst-libs/gst/video/video-format.c:4898:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/gstreamer-1.0/gst/gst.h:27: included_from: Included from here.
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst-libs/gst/video/video-format.h:23: included_from: Included from here.
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst-libs/gst/video/video-format.c:29: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst-libs/gst/video/video-format.c:8136:3: note: in expansion of macro ‘g_return_val_if_fail’
# 4896|       unpack_width = MIN (width - x, tile_width - x);
# 4897|   
# 4898|->     tile_finfo->unpack_func (tile_finfo, flags, line, tdata, tstride, x, y,
# 4899|           unpack_width);
# 4900|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def11]
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst-libs/gst/video/video-format.c: scope_hint: In function ‘pack_TILED’
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst-libs/gst/video/video-format.c:4948:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst-libs/gst/video/video-format.c:8136:3: note: in expansion of macro ‘g_return_val_if_fail’
# 4946|       pack_width = MIN (width, tile_width);
# 4947|   
# 4948|->     tile_finfo->pack_func (tile_finfo, flags, line, sstride, tdata, tstride,
# 4949|           chroma_site, y, pack_width);
# 4950|   

Error: CPPCHECK_WARNING: [#def12]
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst-libs/gst/video/video-info-dma.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def13]
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst/dsd/gstdsdconvert.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def14]
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst/dsd/gstdsdconvert.c: scope_hint: In function ‘gst_dsd_convert_transform’
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst/dsd/gstdsdconvert.c:337:51: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘out_dsd_plane_ofs_meta’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/gstreamer-1.0/gst/gst.h:27: included_from: Included from here.
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst/dsd/gstdsdconvert.h:22: included_from: Included from here.
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst/dsd/gstdsdconvert.c:24: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst/dsd/gstdsdconvert.c:283:3: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst/dsd/gstdsdconvert.c:284:3: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst/dsd/gstdsdconvert.c:284:3: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/gstreamer-1.0/gst/gstinfo.h:725:7: note: in expansion of macro ‘G_UNLIKELY’
/usr/include/gstreamer-1.0/gst/gstinfo.h:1340:41: note: in expansion of macro ‘GST_CAT_LEVEL_LOG’
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst/dsd/gstdsdconvert.c:286:3: note: in expansion of macro ‘GST_LOG_OBJECT’
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst/dsd/gstdsdconvert.h:24: included_from: Included from here.
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst/dsd/gstdsdconvert.c:305:7: note: in expansion of macro ‘GST_DSD_INFO_LAYOUT’
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst/dsd/gstdsdconvert.c:326:7: note: in expansion of macro ‘GST_DSD_INFO_LAYOUT’
#  335|       gint channel_idx;
#  336|   
#  337|->     out_dsd_plane_ofs_meta->num_bytes_per_channel =
#  338|           num_dsd_bytes / num_channels;
#  339|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst/playback/gstdecodebin3.c:1239:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘stream’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst/playback/gstdecodebin3.c:1879:3: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/gstreamer-1.0/gst/gstinfo.h:725:7: note: in expansion of macro ‘G_UNLIKELY’
/usr/include/gstreamer-1.0/gst/gstinfo.h:1340:41: note: in expansion of macro ‘GST_CAT_LEVEL_LOG’
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst/playback/gstdecodebin3.c:1881:3: note: in expansion of macro ‘GST_LOG_OBJECT’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/gstreamer-1.0/gst/gstinfo.h:725:7: note: in expansion of macro ‘G_UNLIKELY’
/usr/include/gstreamer-1.0/gst/gstinfo.h:1339:41: note: in expansion of macro ‘GST_CAT_LEVEL_LOG’
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst/playback/gstdecodebin3.c:1233:3: note: in expansion of macro ‘GST_DEBUG_OBJECT’
# 1237|   
# 1238|     /* Unlink from slot */
# 1239|->   if (stream->srcpad) {
# 1240|       GstPad *peer;
# 1241|       peer = gst_pad_get_peer (stream->srcpad);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def16]
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst/playback/gstdecodebin3.c: scope_hint: In function ‘gst_decodebin_input_link_to_slot’
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst/playback/gstdecodebin3.c:3760:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 3758|         gst_decodebin_get_slot_for_input_stream_locked (dbin, input_stream);
# 3759|   
# 3760|->   if (slot->input != NULL && slot->input != input_stream) {
# 3761|       GST_ERROR_OBJECT (slot->dbin, "Input stream is already linked to a slot");
# 3762|       return;

Error: CLANG_WARNING: [#def17]
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst/playback/gststreamsynchronizer.c:1052:3: warning[unix.Malloc]: Use of memory after it is freed
# 1050|     gst_stream_synchronizer_release_stream (self, stream);
# 1051|   
# 1052|->   gst_syncstream_unref (stream);
# 1053|     GST_STREAM_SYNCHRONIZER_UNLOCK (self);
# 1054|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst/playback/gsturidecodebin3.c: scope_hint: In function ‘switch_and_activate_input_locked’
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst/playback/gsturidecodebin3.c:1222:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*new_item.main_item’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/gstreamer-1.0/gst/gst.h:27: included_from: Included from here.
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst/playback/gsturidecodebin3.c:34: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/gstreamer-1.0/gst/gstinfo.h:725:7: note: in expansion of macro ‘G_UNLIKELY’
/usr/include/gstreamer-1.0/gst/gstinfo.h:1339:41: note: in expansion of macro ‘GST_CAT_LEVEL_LOG’
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst/playback/gsturidecodebin3.c:1381:5: note: in expansion of macro ‘GST_DEBUG_OBJECT’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/gstreamer-1.0/gst/gstinfo.h:725:7: note: in expansion of macro ‘G_UNLIKELY’
/usr/include/gstreamer-1.0/gst/gstinfo.h:1339:41: note: in expansion of macro ‘GST_CAT_LEVEL_LOG’
gstreamer1-plugins-base-1.24.5-build/gst-plugins-base-1.24.5/gst/playback/gsturidecodebin3.c:1210:5: note: in expansion of macro ‘GST_DEBUG_OBJECT’
# 1220|   
# 1221|     pending_about_to_finish = new_item->pending_about_to_finish;
# 1222|->   if (new_item->main_item->handler->pending_buffering_msg) {
# 1223|       pending_buffering_msg = new_item->main_item->handler->pending_buffering_msg;
# 1224|       new_item->main_item->handler->pending_buffering_msg = NULL;

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-187.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namegstreamer1-plugins-base-1.22.9-1.fc40
diffbase-store-results-to/tmp/tmpvc0tlt42/gstreamer1-plugins-base-1.22.9-1.fc40.tar.xz
diffbase-time-created2024-07-03 13:02:07
diffbase-time-finished2024-07-03 13:09:59
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpvc0tlt42/gstreamer1-plugins-base-1.22.9-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpvc0tlt42/gstreamer1-plugins-base-1.22.9-1.fc40.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-187.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namegstreamer1-plugins-base-1.24.5-1.fc41
store-results-to/tmp/tmpa97kmsvx/gstreamer1-plugins-base-1.24.5-1.fc41.tar.xz
time-created2024-07-03 13:10:21
time-finished2024-07-03 13:18:02
titleNewly introduced defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpa97kmsvx/gstreamer1-plugins-base-1.24.5-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpa97kmsvx/gstreamer1-plugins-base-1.24.5-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9