Newly introduced defects
List of Defects
Error: CPPCHECK_WARNING: [#def1]
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/ext/adaptivedemux2/hls/gsthlsdemux-playlist-loader.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2]
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/ext/adaptivedemux2/hls/gsthlsdemux-preloader.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def3]
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/ext/adaptivedemux2/hls/gsthlsdemux-stream.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def4]
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/ext/adaptivedemux2/hls/gsthlsdemux-stream.c:1648:9: warning[core.NullDereference]: Access to field 'partial_segments' results in a dereference of a null pointer (loaded from variable 'file')
# 1646|
# 1647| if (hlsdemux_stream->in_partial_segments) {
# 1648|-> if (file->partial_segments == NULL) {
# 1649| /* I think this can only happen if we reloaded the playlist
# 1650| * and the segment we were in the middle of playing from
Error: CLANG_WARNING: [#def5]
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/ext/adaptivedemux2/hls/gsthlsdemux-stream.c:1689:9: warning[core.NullDereference]: Access to field 'stream_time' results in a dereference of a null pointer (loaded from variable 'file')
# 1687| } else {
# 1688| GST_DEBUG_OBJECT (stream, "Current segment stream_time %" GST_STIME_FORMAT,
# 1689|-> GST_STIME_ARGS (file->stream_time));
# 1690| discont = file->discont || stream->discont
# 1691| || hlsdemux_stream->pending_discont;
Error: CLANG_WARNING: [#def6]
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/ext/adaptivedemux2/hls/gsthlsdemux-stream.c:1690:15: warning[core.NullDereference]: Access to field 'discont' results in a dereference of a null pointer (loaded from variable 'file')
# 1688| GST_DEBUG_OBJECT (stream, "Current segment stream_time %" GST_STIME_FORMAT,
# 1689| GST_STIME_ARGS (file->stream_time));
# 1690|-> discont = file->discont || stream->discont
# 1691| || hlsdemux_stream->pending_discont;
# 1692| }
Error: CLANG_WARNING: [#def7]
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/ext/adaptivedemux2/hls/gsthlsdemux.c:722:62: warning[core.NullDereference]: Access to field 'name' results in a dereference of a null pointer (loaded from variable 'variant')
# 720|
# 721| GST_INFO_OBJECT (hlsdemux,
# 722|-> "Manifest processed, initial variant selected : `%s`", variant->name);
# 723| gst_hls_demux_set_current_variant (hlsdemux, variant);
# 724|
Error: CLANG_WARNING: [#def8]
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/ext/adaptivedemux2/hls/m3u8.c:1220:5: warning[deadcode.DeadStores]: Value stored to 'partial_duration' is never read
# 1218| date_time = NULL; /* Ownership was passed to the partial segment */
# 1219| duration = 0;
# 1220|-> partial_duration = 0;
# 1221| title = NULL; /* Ownership was passed to the partial segment */
# 1222| discontinuity = FALSE;
Error: CLANG_WARNING: [#def9]
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/ext/adaptivedemux2/hls/m3u8.c:1222:5: warning[deadcode.DeadStores]: Value stored to 'discontinuity' is never read
# 1220| partial_duration = 0;
# 1221| title = NULL; /* Ownership was passed to the partial segment */
# 1222|-> discontinuity = FALSE;
# 1223| size = offset = -1;
# 1224| g_ptr_array_add (self->segments, file);
Error: CLANG_WARNING: [#def10]
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/ext/adaptivedemux2/hls/m3u8.c:1225:5: warning[deadcode.DeadStores]: Value stored to 'previous' is never read
# 1223| size = offset = -1;
# 1224| g_ptr_array_add (self->segments, file);
# 1225|-> previous = file;
# 1226| }
# 1227|
Error: CLANG_WARNING: [#def11]
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/ext/adaptivedemux2/hls/m3u8.c:1566:38: warning[core.NullDereference]: Access to field 'stream_time' results in a dereference of a null pointer (loaded from variable 'seg')
# 1564| cand->stream_time <= ts + (partial_targetduration / 2)) {
# 1565| GST_DEBUG ("choosing full segment %d", seg_idx);
# 1566|-> seek_result->stream_time = seg->stream_time;
# 1567| seek_result->segment = gst_m3u8_media_segment_ref (seg);
# 1568| seek_result->found_partial_segment = FALSE;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/ext/adaptivedemux2/hls/m3u8.c: scope_hint: In function ‘gst_hls_media_playlist_find_position’
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/ext/adaptivedemux2/hls/m3u8.c:1566:41: 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.
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/ext/adaptivedemux2/hls/m3u8.c:30: 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:1355:41: note: in expansion of macro ‘GST_CAT_LEVEL_LOG’
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/ext/adaptivedemux2/hls/m3u8.c:1565:11: note: in expansion of macro ‘GST_DEBUG’
# 1564| cand->stream_time <= ts + (partial_targetduration / 2)) {
# 1565| GST_DEBUG ("choosing full segment %d", seg_idx);
# 1566|-> seek_result->stream_time = seg->stream_time;
# 1567| seek_result->segment = gst_m3u8_media_segment_ref (seg);
# 1568| seek_result->found_partial_segment = FALSE;
Error: CPPCHECK_WARNING: [#def13]
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/ext/jack/gstjackloader.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def14]
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/ext/libpng/gstpngenc.c:408:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'row_pointers'
# 406| gst_allocator_alloc (NULL, MAX (4096, GST_VIDEO_INFO_SIZE (info)), NULL);
# 407| if (!pngenc->output_mem) {
# 408|-> GST_ERROR_OBJECT (pngenc, "Failed to allocate memory");
# 409| return GST_FLOW_ERROR;
# 410| }
Error: CLANG_WARNING: [#def15]
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/ext/qt/gstqsgmaterial.cc:124:31: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 122|
# 123| for (guint i = 0; i < finfo->n_planes; i++) {
# 124|-> this->tex_uniforms[i] = program()->uniformLocation(tex_names[i]);
# 125| GST_TRACE ("%p tex uniform %i for tex %s", this, this->tex_uniforms[i], tex_names[i]);
# 126| }
Error: CLANG_WARNING: [#def16]
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/ext/qt/qtitem.cc:324:21: warning[core.CallAndMessage]: Called C++ object pointer is null
# 322| }
# 323|
# 324|-> if ((old_buffer = tex->getBuffer(&was_bound))) {
# 325| if (old_buffer == this->priv->buffer) {
# 326| /* same buffer */
Error: CLANG_WARNING: [#def17]
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/ext/qt6/gstqsg6material.cc:170:45: warning[core.UndefinedBinaryOperatorResult]: The right operand of '/' is a garbage value
# 168| depth[i] = (1 << uinfo->depth[i]) - 1;
# 169|
# 170|-> matrix_offset_components (m, -offset[0] / (float) depth[0],
# 171| -offset[1] / (float) depth[1], -offset[2] / (float) depth[2]);
# 172| matrix_scale_components (m, depth[0] / ((float) scale[0]),
Error: CLANG_WARNING: [#def18]
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/ext/qt6/gstqsg6material.cc:171:20: warning[core.UndefinedBinaryOperatorResult]: The right operand of '/' is a garbage value
# 169|
# 170| matrix_offset_components (m, -offset[0] / (float) depth[0],
# 171|-> -offset[1] / (float) depth[1], -offset[2] / (float) depth[2]);
# 172| matrix_scale_components (m, depth[0] / ((float) scale[0]),
# 173| depth[1] / ((float) scale[1]), depth[2] / ((float) scale[2]));
Error: CLANG_WARNING: [#def19]
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/ext/qt6/gstqsg6material.cc:171:51: warning[core.UndefinedBinaryOperatorResult]: The right operand of '/' is a garbage value
# 169|
# 170| matrix_offset_components (m, -offset[0] / (float) depth[0],
# 171|-> -offset[1] / (float) depth[1], -offset[2] / (float) depth[2]);
# 172| matrix_scale_components (m, depth[0] / ((float) scale[0]),
# 173| depth[1] / ((float) scale[1]), depth[2] / ((float) scale[2]));
Error: CLANG_WARNING: [#def20]
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/ext/qt6/qt6glitem.cc:321:21: warning[core.CallAndMessage]: Called C++ object pointer is null
# 319| }
# 320|
# 321|-> if ((old_buffer = tex->getBuffer(&was_bound))) {
# 322| if (old_buffer == this->priv->buffer) {
# 323| /* same buffer */
Error: CLANG_WARNING: [#def21]
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/ext/qt6/qt6glrenderer.cc:314:9: warning[core.NullDereference]: Access to field 'state' results in a dereference of a null pointer (loaded from field 'm_sharedRenderData')
# 312|
# 313| g_mutex_lock (&m_sharedRenderData->lock);
# 314|-> if (m_sharedRenderData->state == STATE_ERROR) {
# 315| g_set_error (error, GST_RESOURCE_ERROR, GST_RESOURCE_ERROR_NOT_FOUND,
# 316| "In an error state from a previous attempt");
Error: GCC_ANALYZER_WARNING (CWE-688): [#def22]
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/gst/goom2k1/goom_core.c: scope_hint: In function ‘goom2k1_set_resolution’
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/gst/goom2k1/goom_core.c:76:3: warning[-Wanalyzer-null-argument]: use of NULL ‘*goomdata.pixel’ where non-null expected
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/gst/goom2k1/goom_core.c:22:1: note: in expansion of macro ‘goom_init’
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/gst/goom2k1/goom_core.c:36:3: note: in expansion of macro ‘goom_set_resolution’
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/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: CPPCHECK_WARNING: [#def23]
gstreamer1-plugins-good-1.24.5-build/gst-plugins-good-1.24.5/tests/check/elements/rtph264.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
diffbase-analyzer-version-clang | 18.1.7 |
diffbase-analyzer-version-cppcheck | 2.14.2 |
diffbase-analyzer-version-gcc | 14.1.1 |
diffbase-analyzer-version-gcc-analyzer | 14.1.1 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-enabled-plugins | clang, cppcheck, gcc, shellcheck |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-82.us-west-2.compute.internal |
diffbase-mock-config | fedora-41-x86_64 |
diffbase-project-name | gstreamer1-plugins-good-1.22.9-3.fc40 |
diffbase-store-results-to | /tmp/tmpfpl_1are/gstreamer1-plugins-good-1.22.9-3.fc40.tar.xz |
diffbase-time-created | 2024-07-03 13:05:31 |
diffbase-time-finished | 2024-07-03 13:17:12 |
diffbase-tool | csmock |
diffbase-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' |
diffbase-tool-version | csmock-3.5.3-1.el9 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-82.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | gstreamer1-plugins-good-1.24.5-1.fc41 |
store-results-to | /tmp/tmp1uzxy_ey/gstreamer1-plugins-good-1.24.5-1.fc41.tar.xz |
time-created | 2024-07-03 13:17:31 |
time-finished | 2024-07-03 13:29:14 |
title | Newly introduced defects |
tool | csmock |
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' |
tool-version | csmock-3.5.3-1.el9 |