gstreamer1-1.26.0-1.fc43

List of Findings

Error: SHELLCHECK_WARNING (CWE-398): [#def1]
/usr/lib/rpm/gstreamer1.prov:23:1: warning[SC2112]: 'function' keyword is non-standard. Delete it.
#   21|   	xargs file -L 2>/dev/null | grep "ELF" | cut -d: -f1 )
#   22|   
#   23|-> function getmark()
#   24|   {
#   25|   	lib64=`if file -L $1 2>/dev/null | \

Error: SHELLCHECK_WARNING: [#def2]
/usr/lib/rpm/gstreamer1.prov:25:90: warning[SC3037]: In POSIX sh, echo flags are undefined.
#   23|   function getmark()
#   24|   {
#   25|-> 	lib64=`if file -L $1 2>/dev/null | \
#   26|   		grep "ELF 64-bit" >/dev/null; then echo -n "$mark64"; fi`
#   27|   }

Error: SHELLCHECK_WARNING (CWE-398): [#def3]
/usr/lib/rpm/gstreamer1.prov:29:1: warning[SC2112]: 'function' keyword is non-standard. Delete it.
#   27|   }
#   28|   
#   29|-> function libdir()
#   30|   {
#   31|   	buildlibdir=`dirname $1`

Error: SHELLCHECK_WARNING: [#def4]
/usr/lib/rpm/gstreamer1.prov:39:8: warning[SC3037]: In POSIX sh, echo flags are undefined.
#   37|   	libdir $so
#   38|   	LD_LIBRARY_PATH=$buildlibdir gst-inspect-1.0 --print-plugin-auto-install-info --rpm $so 2> /dev/null | while read line ; do
#   39|-> 		echo -n "$line";
#   40|   		echo -n "$lib64"
#   41|   		echo

Error: SHELLCHECK_WARNING: [#def5]
/usr/lib/rpm/gstreamer1.prov:40:8: warning[SC3037]: In POSIX sh, echo flags are undefined.
#   38|   	LD_LIBRARY_PATH=$buildlibdir gst-inspect-1.0 --print-plugin-auto-install-info --rpm $so 2> /dev/null | while read line ; do
#   39|   		echo -n "$line";
#   40|-> 		echo -n "$lib64"
#   41|   		echo
#   42|   	done

Error: CPPCHECK_WARNING (CWE-909): [#def6]
gstreamer-1.26.0/libs/gst/base/gstmemindex.c:376: error[uninitStructMember]: Uninitialized struct member: data.lower
#  374|     if (entry == NULL && !data.exact) {
#  375|       if (method == GST_INDEX_LOOKUP_BEFORE)
#  376|->       entry = data.lower;
#  377|       else if (method == GST_INDEX_LOOKUP_AFTER) {
#  378|         entry = data.higher;

Error: CPPCHECK_WARNING (CWE-909): [#def7]
gstreamer-1.26.0/libs/gst/base/gstmemindex.c:378: error[uninitStructMember]: Uninitialized struct member: data.higher
#  376|         entry = data.lower;
#  377|       else if (method == GST_INDEX_LOOKUP_AFTER) {
#  378|->       entry = data.higher;
#  379|       }
#  380|     }

Error: CPPCHECK_WARNING (CWE-476): [#def8]
gstreamer-1.26.0/libs/gst/check/libcheck/check_print.c:195: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: path_name
#  193|       } else {
#  194|         path_name = strdup (tr->file);
#  195|->       path_name[slash - tr->file] = 0;  /* Terminate the temporary string. */
#  196|         file_name = slash + 1;
#  197|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def9]
gstreamer-1.26.0/redhat-linux-build/../gst/gstallocator.c:114:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gstreamer-1.26.0/redhat-linux-build/../gst/gstallocator.c:92:1: enter_function: entry to ‘_fallback_mem_copy’
gstreamer-1.26.0/redhat-linux-build/../gst/gstallocator.c:99:6: branch_false: following ‘false’ branch...
gstreamer-1.26.0/redhat-linux-build/../gst/gstallocator.c:102:6: branch_false: ...to here
gstreamer-1.26.0/redhat-linux-build/../gst/gstallocator.c:110:10: call_function: calling ‘gst_allocator_alloc’ from ‘_fallback_mem_copy’
gstreamer-1.26.0/redhat-linux-build/../gst/gstallocator.c:110:10: return_function: returning to ‘_fallback_mem_copy’ from ‘gst_allocator_alloc’
gstreamer-1.26.0/redhat-linux-build/../gst/gstallocator.c:112:6: branch_true: following ‘true’ branch...
gstreamer-1.26.0/redhat-linux-build/../gst/gstallocator.c:113:5: branch_true: ...to here
gstreamer-1.26.0/redhat-linux-build/../gst/gstallocator.c:114:5: danger: dereference of NULL ‘gst_allocator_alloc(allocator, (long unsigned int)size, & params)’
#  112|     if (!gst_memory_map (copy, &dinfo, GST_MAP_WRITE)) {
#  113|       GST_CAT_WARNING (GST_CAT_MEMORY, "could not write map memory %p", copy);
#  114|->     gst_allocator_free (copy->allocator, copy);
#  115|       gst_memory_unmap (mem, &sinfo);
#  116|       return NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def10]
gstreamer-1.26.0/redhat-linux-build/../gst/gstbufferpool.c:807:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gstreamer-1.26.0/redhat-linux-build/../gst/gstbufferpool.c:797:1: enter_function: entry to ‘gst_buffer_pool_has_option’
gstreamer-1.26.0/redhat-linux-build/../gst/gstbufferpool.c:802:3: branch_false: following ‘false’ branch (when ‘pool’ is non-NULL)...
gstreamer-1.26.0/redhat-linux-build/../gst/gstbufferpool.c:802:3: branch_false: ...to here
gstreamer-1.26.0/redhat-linux-build/../gst/gstbufferpool.c:802:3: branch_true: following ‘true’ branch...
gstreamer-1.26.0/redhat-linux-build/../gst/gstbufferpool.c:803:3: branch_true: ...to here
gstreamer-1.26.0/redhat-linux-build/../gst/gstbufferpool.c:803:3: branch_true: following ‘true’ branch (when ‘option’ is non-NULL)...
gstreamer-1.26.0/redhat-linux-build/../gst/gstbufferpool.c:805:13: branch_true: ...to here
gstreamer-1.26.0/redhat-linux-build/../gst/gstbufferpool.c:805:13: call_function: calling ‘gst_buffer_pool_get_options’ from ‘gst_buffer_pool_has_option’
gstreamer-1.26.0/redhat-linux-build/../gst/gstbufferpool.c:805:13: return_function: returning to ‘gst_buffer_pool_has_option’ from ‘gst_buffer_pool_get_options’
gstreamer-1.26.0/redhat-linux-build/../gst/gstbufferpool.c:807:22: release_memory: ‘0’ is NULL
gstreamer-1.26.0/redhat-linux-build/../gst/gstbufferpool.c:807:15: danger: dereference of NULL ‘gst_buffer_pool_get_options(pool) + (long unsigned int)i * 8’
#  805|     options = gst_buffer_pool_get_options (pool);
#  806|   
#  807|->   for (i = 0; options[i]; i++) {
#  808|       if (g_str_equal (options[i], option))
#  809|         return TRUE;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def11]
gstreamer-1.26.0/redhat-linux-build/../gst/gstcaps.c:2271:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘src’
gstreamer-1.26.0/redhat-linux-build/../gst/gstcaps.c:2230:1: enter_function: entry to ‘gst_caps_subtract’
gstreamer-1.26.0/redhat-linux-build/../gst/gstcaps.c:2238:3: branch_true: following ‘true’ branch (when ‘minuend’ is non-NULL)...
gstreamer-1.26.0/redhat-linux-build/../gst/gstcaps.c:2239:3: branch_true: ...to here
gstreamer-1.26.0/redhat-linux-build/../gst/gstcaps.c:2239:3: branch_true: following ‘true’ branch (when ‘subtrahend’ is non-NULL)...
gstreamer-1.26.0/redhat-linux-build/../gst/gstcaps.c:2241:7: branch_true: ...to here
gstreamer-1.26.0/redhat-linux-build/../gst/gstcaps.c:2241:7: branch_false: following ‘false’ branch...
gstreamer-1.26.0/redhat-linux-build/../gst/gstcaps.c:2245:7: branch_false: ...to here
gstreamer-1.26.0/redhat-linux-build/../gst/gstcaps.c:2245:6: branch_false: following ‘false’ branch...
gstreamer-1.26.0/redhat-linux-build/../gst/gstcaps.c:2254:3: branch_true: following ‘true’ branch...
gstreamer-1.26.0/redhat-linux-build/../gst/gstcaps.c:2258:9: branch_true: ...to here
gstreamer-1.26.0/redhat-linux-build/../gst/gstcaps.c:2258:9: call_function: calling ‘_gst_caps_copy’ from ‘gst_caps_subtract’
gstreamer-1.26.0/redhat-linux-build/../gst/gstcaps.c:2258:9: return_function: returning to ‘gst_caps_subtract’ from ‘_gst_caps_copy’
gstreamer-1.26.0/redhat-linux-build/../gst/gstcaps.c:2259:15: branch_true: following ‘true’ branch...
gstreamer-1.26.0/redhat-linux-build/../gst/gstcaps.c:2262:11: branch_true: ...to here
gstreamer-1.26.0/redhat-linux-build/../gst/gstcaps.c:2266:8: branch_false: following ‘false’ branch (when ‘dest’ is NULL)...
gstreamer-1.26.0/redhat-linux-build/../gst/gstcaps.c:2270:12: branch_false: ...to here
gstreamer-1.26.0/redhat-linux-build/../gst/gstcaps.c:2271:14: danger: dereference of NULL ‘src’
# 2269|       }
# 2270|       dest = gst_caps_new_empty ();
# 2271|->     srclen = GST_CAPS_LEN (src);
# 2272|       for (j = 0; j < srclen; j++) {
# 2273|         min = gst_caps_get_structure_unchecked (src, j);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def12]
gstreamer-1.26.0/redhat-linux-build/../gst/gstidstr-private.h:234:21: warning[-Wanalyzer-null-argument]: use of NULL ‘s1’ where non-null expected
gstreamer-1.26.0/redhat-linux-build/../gst/gstcapsfeatures.c:1180:1: enter_function: entry to ‘gst_caps_features_remove_id_str’
gstreamer-1.26.0/redhat-linux-build/../gst/gstcapsfeatures.c:1185:3: branch_true: following ‘true’ branch (when ‘features’ is non-NULL)...
gstreamer-1.26.0/redhat-linux-build/../gst/gstcapsfeatures.c:1186:3: branch_true: ...to here
gstreamer-1.26.0/redhat-linux-build/../gst/gstcapsfeatures.c:1187:3: branch_true: following ‘true’ branch (when ‘feature’ is non-NULL)...
gstreamer-1.26.0/redhat-linux-build/../gst/gstcapsfeatures.c:1189:7: branch_true: ...to here
gstreamer-1.26.0/redhat-linux-build/../gst/gstcapsfeatures.c:1190:15: branch_true: following ‘true’ branch (when ‘i < n’)...
gstreamer-1.26.0/redhat-linux-build/../gst/gstcapsfeatures.c:1191:25: branch_true: ...to here
gstreamer-1.26.0/redhat-linux-build/../gst/gstcapsfeatures.c:1191:25: call_function: calling ‘gst_caps_features_get_nth_id_str’ from ‘gst_caps_features_remove_id_str’
gstreamer-1.26.0/redhat-linux-build/../gst/gstcapsfeatures.c:1191:25: return_function: returning to ‘gst_caps_features_remove_id_str’ from ‘gst_caps_features_get_nth_id_str’
gstreamer-1.26.0/redhat-linux-build/../gst/gstcapsfeatures.c:1193:9: call_function: calling ‘_gst_id_str_is_equal_inline’ from ‘gst_caps_features_remove_id_str’
#  232|   
#  233|     // Covers the short_string case and equal pointer_string pointers
#  234|->   if (sp1 == sp2 || memcmp (sp1, sp2, sizeof (*sp1)) == 0)
#  235|       return TRUE;
#  236|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def13]
gstreamer-1.26.0/redhat-linux-build/../gst/gstiterator.c:564:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gstreamer-1.26.0/redhat-linux-build/../gst/gstiterator.c:548:1: enter_function: entry to ‘gst_iterator_filter’
gstreamer-1.26.0/redhat-linux-build/../gst/gstiterator.c:553:3: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
gstreamer-1.26.0/redhat-linux-build/../gst/gstiterator.c:554:3: branch_true: ...to here
gstreamer-1.26.0/redhat-linux-build/../gst/gstiterator.c:554:3: branch_true: following ‘true’ branch (when ‘func’ is non-NULL)...
gstreamer-1.26.0/redhat-linux-build/../gst/gstiterator.c:556:34: branch_true: ...to here
gstreamer-1.26.0/redhat-linux-build/../gst/gstiterator.c:556:34: call_function: calling ‘gst_iterator_new’ from ‘gst_iterator_filter’
gstreamer-1.26.0/redhat-linux-build/../gst/gstiterator.c:556:34: return_function: returning to ‘gst_iterator_filter’ from ‘gst_iterator_new’
gstreamer-1.26.0/redhat-linux-build/../gst/gstiterator.c:564:3: danger: dereference of NULL ‘gst_iterator_new(176, *it.type, *it.lock, *it.master_cookie, & filter_copy, & filter_next, 0, & filter_resync, & filter_free)’
#  562|         (GstIteratorFreeFunction) filter_free);
#  563|   
#  564|->   result->master_lock = it->lock;
#  565|     it->lock = NULL;
#  566|     result->func = func;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def14]
gstreamer-1.26.0/redhat-linux-build/../gst/gstiterator.c:827:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gstreamer-1.26.0/redhat-linux-build/../gst/gstiterator.c:811:1: enter_function: entry to ‘gst_iterator_new_single’
gstreamer-1.26.0/redhat-linux-build/../gst/gstiterator.c:816:7: call_function: calling ‘gst_iterator_new’ from ‘gst_iterator_new_single’
gstreamer-1.26.0/redhat-linux-build/../gst/gstiterator.c:816:7: return_function: returning to ‘gst_iterator_new_single’ from ‘gst_iterator_new’
gstreamer-1.26.0/redhat-linux-build/../gst/gstiterator.c:824:6: branch_true: following ‘true’ branch (when ‘object’ is non-NULL)...
gstreamer-1.26.0/redhat-linux-build/../gst/gstiterator.c:825:5: branch_true: ...to here
gstreamer-1.26.0/redhat-linux-build/../gst/gstiterator.c:827:5: danger: dereference of NULL ‘gst_iterator_new(152, type, 0, & _single_object_dummy_cookie, & gst_single_object_iterator_copy, & gst_single_object_iterator_next, 0, & gst_single_object_iterator_resync, & gst_single_object_iterator_free)’
#  825|       g_value_init (&result->object, type);
#  826|       g_value_copy (object, &result->object);
#  827|->     result->empty = FALSE;
#  828|     } else {
#  829|       result->empty = TRUE;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
gstreamer-1.26.0/redhat-linux-build/../gst/gstiterator.c:829:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gstreamer-1.26.0/redhat-linux-build/../gst/gstiterator.c:811:1: enter_function: entry to ‘gst_iterator_new_single’
gstreamer-1.26.0/redhat-linux-build/../gst/gstiterator.c:816:7: call_function: calling ‘gst_iterator_new’ from ‘gst_iterator_new_single’
gstreamer-1.26.0/redhat-linux-build/../gst/gstiterator.c:816:7: return_function: returning to ‘gst_iterator_new_single’ from ‘gst_iterator_new’
gstreamer-1.26.0/redhat-linux-build/../gst/gstiterator.c:824:6: branch_false: following ‘false’ branch (when ‘object’ is NULL)...
gstreamer-1.26.0/redhat-linux-build/../gst/gstiterator.c:829:5: branch_false: ...to here
gstreamer-1.26.0/redhat-linux-build/../gst/gstiterator.c:829:5: danger: dereference of NULL ‘gst_iterator_new(152, type, 0, & _single_object_dummy_cookie, & gst_single_object_iterator_copy, & gst_single_object_iterator_next, 0, & gst_single_object_iterator_resync, & gst_single_object_iterator_free)’
#  827|       result->empty = FALSE;
#  828|     } else {
#  829|->     result->empty = TRUE;
#  830|     }
#  831|     result->visited = FALSE;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def16]
gstreamer-1.26.0/redhat-linux-build/../gst/gstmessage.c:407:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘message’
gstreamer-1.26.0/redhat-linux-build/../gst/gstmessage.c:742:1: enter_function: entry to ‘gst_message_new_info_with_details’
gstreamer-1.26.0/redhat-linux-build/../gst/gstmessage.c:748:6: branch_false: following ‘false’ branch (when ‘debug’ is NULL)...
 branch_false: ...to here
gstreamer-1.26.0/redhat-linux-build/../gst/gstmessage.c:756:13: call_function: calling ‘gst_message_new_custom’ from ‘gst_message_new_info_with_details’
gstreamer-1.26.0/redhat-linux-build/../gst/gstmessage.c:756:13: return_function: returning to ‘gst_message_new_info_with_details’ from ‘gst_message_new_custom’
gstreamer-1.26.0/redhat-linux-build/../gst/gstmessage.c:757:6: branch_true: following ‘true’ branch (when ‘details’ is non-NULL)...
gstreamer-1.26.0/redhat-linux-build/../gst/gstmessage.c:758:5: branch_true: ...to here
gstreamer-1.26.0/redhat-linux-build/../gst/gstmessage.c:758:5: call_function: calling ‘message_set_details’ from ‘gst_message_new_info_with_details’
#  405|     GValue v = G_VALUE_INIT;
#  406|   
#  407|->   if (GST_MESSAGE_STRUCTURE (message) == NULL) {
#  408|       const gchar *message_name = gst_message_type_get_name (message->type);
#  409|       g_return_if_fail (message_name);

Error: GCC_ANALYZER_WARNING (CWE-835): [#def17]
gstreamer-1.26.0/redhat-linux-build/../gst/gstminiobject.c:328:12: warning[-Wanalyzer-infinite-loop]: infinite loop
gstreamer-1.26.0/redhat-linux-build/../gst/gstminiobject.c:430:1: enter_function: entry to ‘gst_mini_object_make_writable’
#  326|       /* As long as the struct was not allocated yet and either someone else
#  327|        * locked it or our priv_state is out of date, try to lock it */
#  328|->     while (priv_state != PRIV_DATA_STATE_PARENTS_OR_QDATA &&
#  329|           (priv_state == PRIV_DATA_STATE_LOCKED ||
#  330|               !g_atomic_int_compare_and_exchange ((gint *) & object->priv_uint,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
gstreamer-1.26.0/redhat-linux-build/../gst/gstsample.c:71:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gstreamer-1.26.0/redhat-linux-build/../gst/gstsample.c:63:1: enter_function: entry to ‘_gst_sample_copy’
gstreamer-1.26.0/redhat-linux-build/../gst/gstsample.c:67:10: branch_true: following ‘true’ branch...
gstreamer-1.26.0/redhat-linux-build/../gst/gstsample.c:68:24: branch_true: ...to here
gstreamer-1.26.0/redhat-linux-build/../gst/gstsample.c:67:10: call_function: calling ‘gst_sample_new’ from ‘_gst_sample_copy’
gstreamer-1.26.0/redhat-linux-build/../gst/gstsample.c:67:10: return_function: returning to ‘_gst_sample_copy’ from ‘gst_sample_new’
gstreamer-1.26.0/redhat-linux-build/../gst/gstsample.c:70:6: branch_true: following ‘true’ branch...
gstreamer-1.26.0/redhat-linux-build/../gst/gstsample.c:71:25: branch_true: ...to here
gstreamer-1.26.0/redhat-linux-build/../gst/gstsample.c:71:5: danger: dereference of NULL ‘gst_sample_new(*sample.buffer, *sample.caps, &*sample.segment,  <unknown>)’
#   69|   
#   70|     if (sample->buffer_list) {
#   71|->     copy->buffer_list = gst_buffer_list_ref (sample->buffer_list);
#   72|       gst_mini_object_add_parent (GST_MINI_OBJECT_CAST (copy->buffer_list),
#   73|           GST_MINI_OBJECT_CAST (copy));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def19]
gstreamer-1.26.0/redhat-linux-build/../gst/gsttoc.c:430:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gstreamer-1.26.0/redhat-linux-build/../gst/gsttoc.c:421:1: enter_function: entry to ‘gst_toc_entry_copy’
gstreamer-1.26.0/redhat-linux-build/../gst/gsttoc.c:426:3: branch_true: following ‘true’ branch (when ‘entry’ is non-NULL)...
gstreamer-1.26.0/redhat-linux-build/../gst/gsttoc.c:428:41: branch_true: ...to here
gstreamer-1.26.0/redhat-linux-build/../gst/gsttoc.c:428:9: call_function: calling ‘gst_toc_entry_new’ from ‘gst_toc_entry_copy’
gstreamer-1.26.0/redhat-linux-build/../gst/gsttoc.c:428:9: return_function: returning to ‘gst_toc_entry_copy’ from ‘gst_toc_entry_new’
gstreamer-1.26.0/redhat-linux-build/../gst/gsttoc.c:430:3: danger: dereference of NULL ‘gst_toc_entry_new(*entry.type, *entry.uid)’
#  428|     ret = gst_toc_entry_new (entry->type, entry->uid);
#  429|   
#  430|->   ret->start = entry->start;
#  431|     ret->stop = entry->stop;
#  432|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def20]
gstreamer-1.26.0/redhat-linux-build/../gst/gsttoc.c:465:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gstreamer-1.26.0/redhat-linux-build/../gst/gsttoc.c:454:1: enter_function: entry to ‘gst_toc_copy’
gstreamer-1.26.0/redhat-linux-build/../gst/gsttoc.c:459:3: branch_true: following ‘true’ branch (when ‘toc’ is non-NULL)...
gstreamer-1.26.0/redhat-linux-build/../gst/gsttoc.c:461:22: branch_true: ...to here
gstreamer-1.26.0/redhat-linux-build/../gst/gsttoc.c:461:9: call_function: calling ‘gst_toc_new’ from ‘gst_toc_copy’
gstreamer-1.26.0/redhat-linux-build/../gst/gsttoc.c:461:9: return_function: returning to ‘gst_toc_copy’ from ‘gst_toc_new’
gstreamer-1.26.0/redhat-linux-build/../gst/gsttoc.c:463:6: branch_true: following ‘true’ branch...
gstreamer-1.26.0/redhat-linux-build/../gst/gsttoc.c:465:5: danger: dereference of NULL ‘gst_toc_new(*toc.scope)’
#  463|     if (GST_IS_TAG_LIST (toc->tags)) {
#  464|       list = gst_tag_list_copy (toc->tags);
#  465|->     gst_tag_list_unref (ret->tags);
#  466|       ret->tags = list;
#  467|     }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def21]
gstreamer-1.26.0/redhat-linux-build/../gst/gsttoc.c:469:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gstreamer-1.26.0/redhat-linux-build/../gst/gsttoc.c:454:1: enter_function: entry to ‘gst_toc_copy’
gstreamer-1.26.0/redhat-linux-build/../gst/gsttoc.c:459:3: branch_true: following ‘true’ branch (when ‘toc’ is non-NULL)...
gstreamer-1.26.0/redhat-linux-build/../gst/gsttoc.c:461:22: branch_true: ...to here
gstreamer-1.26.0/redhat-linux-build/../gst/gsttoc.c:461:9: call_function: calling ‘gst_toc_new’ from ‘gst_toc_copy’
gstreamer-1.26.0/redhat-linux-build/../gst/gsttoc.c:461:9: return_function: returning to ‘gst_toc_copy’ from ‘gst_toc_new’
gstreamer-1.26.0/redhat-linux-build/../gst/gsttoc.c:469:18: call_function: calling ‘gst_toc_deep_copy_toc_entries’ from ‘gst_toc_copy’
gstreamer-1.26.0/redhat-linux-build/../gst/gsttoc.c:469:18: return_function: returning to ‘gst_toc_copy’ from ‘gst_toc_deep_copy_toc_entries’
gstreamer-1.26.0/redhat-linux-build/../gst/gsttoc.c:469:3: danger: dereference of NULL ‘gst_toc_new(*toc.scope)’
#  467|     }
#  468|   
#  469|->   ret->entries = gst_toc_deep_copy_toc_entries (toc->entries);
#  470|   
#  471|     return ret;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def22]
gstreamer-1.26.0/redhat-linux-build/../gst/gsttracerrecord.c:115:7: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
gstreamer-1.26.0/redhat-linux-build/../gst/gsttracerrecord.c:101:1: enter_function: entry to ‘gst_tracer_record_build_format’
gstreamer-1.26.0/redhat-linux-build/../gst/gsttracerrecord.c:108:3: branch_true: following ‘true’ branch (when ‘__result != 0’)...
gstreamer-1.26.0/redhat-linux-build/../gst/gsttracerrecord.c:111:3: branch_true: ...to here
gstreamer-1.26.0/redhat-linux-build/../gst/gsttracerrecord.c:115:7: danger: argument 1 (‘<unknown>’) NULL where non-null expected
#  113|     /* cut off '.class' suffix */
#  114|     name = g_strdup (name);
#  115|->   p = strrchr (name, '.');
#  116|     g_assert (p != NULL);
#  117|     *p = '\0';

Error: GCC_ANALYZER_WARNING (CWE-835): [#def23]
gstreamer-1.26.0/redhat-linux-build/../libs/gst/check/gsttestclock.c:339:10: warning[-Wanalyzer-infinite-loop]: infinite loop
gstreamer-1.26.0/redhat-linux-build/../libs/gst/check/gsttestclock.c:332:1: enter_function: entry to ‘gst_test_clock_dispose’
gstreamer-1.26.0/redhat-linux-build/../libs/gst/check/gsttestclock.c:339:10: danger: infinite loop here
gstreamer-1.26.0/redhat-linux-build/../libs/gst/check/gsttestclock.c:339:10: branch_true: if it ever follows ‘true’ branch, it will always do so...
gstreamer-1.26.0/redhat-linux-build/../libs/gst/check/gsttestclock.c:340:27: branch_true: ...to here
#  337|     GST_OBJECT_LOCK (test_clock);
#  338|   
#  339|->   while (priv->entry_contexts != NULL) {
#  340|       GstClockEntryContext *ctx = priv->entry_contexts->data;
#  341|       gst_test_clock_remove_entry (test_clock, ctx->clock_entry);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def24]
gstreamer-1.26.0/redhat-linux-build/../libs/gst/check/libcheck/check_pack.c:327:7: warning[-Wanalyzer-null-argument]: use of NULL ‘buf’ where non-null expected
gstreamer-1.26.0/redhat-linux-build/../libs/gst/check/libcheck/check_pack.c:314:1: enter_function: entry to ‘ppack’
gstreamer-1.26.0/redhat-linux-build/../libs/gst/check/libcheck/check_pack.c:316:9: release_memory: ‘buf’ is NULL
gstreamer-1.26.0/redhat-linux-build/../libs/gst/check/libcheck/check_pack.c:320:7: call_function: calling ‘pack’ from ‘ppack’
gstreamer-1.26.0/redhat-linux-build/../libs/gst/check/libcheck/check_pack.c:320:7: return_function: returning to ‘ppack’ from ‘pack’
gstreamer-1.26.0/redhat-linux-build/../libs/gst/check/libcheck/check_pack.c:322:6: branch_false: following ‘false’ branch...
gstreamer-1.26.0/redhat-linux-build/../libs/gst/check/libcheck/check_pack.c:327:7: branch_false: ...to here
gstreamer-1.26.0/redhat-linux-build/../libs/gst/check/libcheck/check_pack.c:327:7: release_memory: ‘buf’ is NULL
gstreamer-1.26.0/redhat-linux-build/../libs/gst/check/libcheck/check_pack.c:327:7: release_memory: ‘buf’ is NULL
gstreamer-1.26.0/redhat-linux-build/../libs/gst/check/libcheck/check_pack.c:327:7: danger: argument 1 (‘buf’) NULL where non-null expected
#  325|     pthread_cleanup_push (ppack_cleanup, &ck_mutex_lock);
#  326|     pthread_mutex_lock (&ck_mutex_lock);
#  327|->   r = fwrite (buf, 1, n, fdes);
#  328|     fflush (fdes);
#  329|     pthread_mutex_unlock (&ck_mutex_lock);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def25]
gstreamer-1.26.0/redhat-linux-build/../libs/gst/net/gstptpclock.c:2636:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
gstreamer-1.26.0/redhat-linux-build/../libs/gst/net/gstptpclock.c:2627:1: enter_function: entry to ‘count_directories’
gstreamer-1.26.0/redhat-linux-build/../libs/gst/net/gstptpclock.c:2633:3: branch_true: following ‘true’ branch...
gstreamer-1.26.0/redhat-linux-build/../libs/gst/net/gstptpclock.c:2635:9: call_function: inlined call to ‘g_strdup_inline’ from ‘count_directories’
gstreamer-1.26.0/redhat-linux-build/../libs/gst/net/gstptpclock.c:2636:9: danger: argument 1 (‘<unknown>’) NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
# 2634|   
# 2635|     tmp = g_strdup (filepath);
# 2636|->   len = strlen (tmp);
# 2637|   
# 2638|     /* ignore UNC share paths entirely */

Error: GCC_ANALYZER_WARNING (CWE-465): [#def26]
gstreamer-1.26.0/redhat-linux-build/../plugins/elements/gstconcat.c:787:6: warning[-Wanalyzer-deref-before-check]: check of ‘event’ for NULL after already dereferencing it
gstreamer-1.26.0/redhat-linux-build/../plugins/elements/gstconcat.c:766:10: branch_false: following ‘false’ branch (when ‘sinkpad’ is non-NULL)...
gstreamer-1.26.0/redhat-linux-build/../plugins/elements/gstconcat.c:787:7: branch_false: ...to here
gstreamer-1.26.0/redhat-linux-build/../plugins/elements/gstconcat.c:787:6: danger: pointer ‘event’ is checked for NULL here but it was already dereferenced at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  785|     }
#  786|   
#  787|->   if (event) {
#  788|       g_mutex_lock (&self->lock);
#  789|       if (self->adjust_base && self->format == GST_FORMAT_TIME) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
gstreamer-1.26.0/redhat-linux-build/../plugins/elements/gstfakesrc.c:806:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gstreamer-1.26.0/redhat-linux-build/../plugins/elements/gstfakesrc.c:795:1: enter_function: entry to ‘gst_fake_src_create’
gstreamer-1.26.0/redhat-linux-build/../plugins/elements/gstfakesrc.c:805:9: call_function: calling ‘gst_fake_src_create_buffer’ from ‘gst_fake_src_create’
gstreamer-1.26.0/redhat-linux-build/../plugins/elements/gstfakesrc.c:805:9: return_function: returning to ‘gst_fake_src_create’ from ‘gst_fake_src_create_buffer’
gstreamer-1.26.0/redhat-linux-build/../plugins/elements/gstfakesrc.c:806:3: danger: dereference of NULL ‘gst_fake_src_create_buffer(basesrc, & size)’
#  804|   
#  805|     buf = gst_fake_src_create_buffer (src, &size);
#  806|->   GST_BUFFER_OFFSET (buf) = offset;
#  807|   
#  808|     if (src->datarate > 0) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def28]
gstreamer-1.26.0/redhat-linux-build/../plugins/elements/gstinputselector.c:1253:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘active_sinkpad’
gstreamer-1.26.0/redhat-linux-build/../plugins/elements/gstinputselector.c:1055:1: enter_function: entry to ‘gst_selector_pad_chain’
gstreamer-1.26.0/redhat-linux-build/../plugins/elements/gstinputselector.c:1074:6: branch_false: following ‘false’ branch...
gstreamer-1.26.0/redhat-linux-build/../plugins/elements/gstinputselector.c:1079:3: branch_false: ...to here
gstreamer-1.26.0/redhat-linux-build/../plugins/elements/gstinputselector.c:1082:7: branch_false: following ‘false’ branch...
gstreamer-1.26.0/redhat-linux-build/../plugins/elements/gstinputselector.c:1083:20: call_function: inlined call to ‘gst_input_selector_get_active_sinkpad’ from ‘gst_selector_pad_chain’
gstreamer-1.26.0/redhat-linux-build/../plugins/elements/gstinputselector.c:1087:6: branch_true: following ‘true’ branch...
gstreamer-1.26.0/redhat-linux-build/../plugins/elements/gstinputselector.c:1090:8: branch_true: ...to here
gstreamer-1.26.0/redhat-linux-build/../plugins/elements/gstinputselector.c:1093:10: branch_true: following ‘true’ branch...
gstreamer-1.26.0/redhat-linux-build/../plugins/elements/gstinputselector.c:1100:16: branch_true: following ‘true’ branch...
gstreamer-1.26.0/redhat-linux-build/../plugins/elements/gstinputselector.c:1108:11: call_function: calling ‘gst_selector_pad_chain’ from ‘gst_selector_pad_chain’
# 1251|   ignore:
# 1252|     {
# 1253|->     gboolean active_pad_pushed = GST_SELECTOR_PAD_CAST (active_sinkpad)->pushed;
# 1254|   
# 1255|       GST_DEBUG_OBJECT (pad, "Pad not active, discard buffer %p", buf);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
gstreamer-1.26.0/redhat-linux-build/../plugins/tracers/gststats.c:209:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pad’
gstreamer-1.26.0/redhat-linux-build/../plugins/tracers/gststats.c:219:1: enter_function: entry to ‘get_pad_stats’
gstreamer-1.26.0/redhat-linux-build/../plugins/tracers/gststats.c:237:7: branch_true: following ‘true’ branch...
gstreamer-1.26.0/redhat-linux-build/../plugins/tracers/gststats.c:238:24: branch_true: ...to here
gstreamer-1.26.0/redhat-linux-build/../plugins/tracers/gststats.c:238:24: call_function: calling ‘get_real_pad_parent’ from ‘get_pad_stats’
gstreamer-1.26.0/redhat-linux-build/../plugins/tracers/gststats.c:238:24: return_function: returning to ‘get_pad_stats’ from ‘get_real_pad_parent’
gstreamer-1.26.0/redhat-linux-build/../plugins/tracers/gststats.c:239:8: branch_false: following ‘false’ branch...
gstreamer-1.26.0/redhat-linux-build/../plugins/tracers/gststats.c:245:7: branch_false: ...to here
gstreamer-1.26.0/redhat-linux-build/../plugins/tracers/gststats.c:245:7: branch_true: following ‘true’ branch (when ‘is_new != 0’)...
gstreamer-1.26.0/redhat-linux-build/../plugins/tracers/gststats.c:246:5: branch_true: ...to here
gstreamer-1.26.0/redhat-linux-build/../plugins/tracers/gststats.c:246:5: call_function: calling ‘log_new_pad_stats’ from ‘get_pad_stats’
#  207|         stats->index, stats->parent_ix, GST_OBJECT_NAME (pad),
#  208|         G_OBJECT_TYPE_NAME (pad), GST_IS_GHOST_PAD (pad),
#  209|->       GST_PAD_DIRECTION (pad));
#  210|   }
#  211|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def30]
gstreamer-1.26.0/redhat-linux-build/../tools/gst-stats.c:728:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  726|         gchar fullname[30 + 1];
#  727|   
#  728|->       g_snprintf (fullname, 30, "%s.%s", elem_stats->name, stats->name);
#  729|   
#  730|         printf

Error: GCC_ANALYZER_WARNING (CWE-476): [#def31]
gstreamer-1.26.0/redhat-linux-build/../tools/gst-stats.c:816:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gstreamer-1.26.0/redhat-linux-build/../tools/gst-stats.c:809:1: enter_function: entry to ‘accum_element_stats’
gstreamer-1.26.0/redhat-linux-build/../tools/gst-stats.c:813:6: branch_true: following ‘true’ branch...
gstreamer-1.26.0/redhat-linux-build/../tools/gst-stats.c:814:37: branch_true: ...to here
gstreamer-1.26.0/redhat-linux-build/../tools/gst-stats.c:814:37: call_function: calling ‘get_element_stats’ from ‘accum_element_stats’
gstreamer-1.26.0/redhat-linux-build/../tools/gst-stats.c:814:37: return_function: returning to ‘accum_element_stats’ from ‘get_element_stats’
gstreamer-1.26.0/redhat-linux-build/../tools/gst-stats.c:816:5: danger: dereference of NULL ‘get_element_stats(*(GstElementStats *)value.parent_ix)’
#  814|       GstElementStats *parent_stats = get_element_stats (stats->parent_ix);
#  815|   
#  816|->     parent_stats->num_events += stats->num_events;
#  817|       parent_stats->num_messages += stats->num_messages;
#  818|       parent_stats->num_queries += stats->num_queries;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def32]
gstreamer-1.26.0/redhat-linux-build/gst/parse/grammar.tab.c:2343:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
gstreamer-1.26.0/redhat-linux-build/gst/parse/grammar.tab.c:2301:6: branch_true: following ‘true’ branch...
gstreamer-1.26.0/redhat-linux-build/gst/parse/grammar.tab.c:2307:28: branch_true: ...to here
gstreamer-1.26.0/redhat-linux-build/gst/parse/grammar.tab.c:2330:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
gstreamer-1.26.0/redhat-linux-build/gst/parse/grammar.tab.c:2332:7: branch_false: ...to here
gstreamer-1.26.0/redhat-linux-build/gst/parse/grammar.tab.c:2341:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
gstreamer-1.26.0/redhat-linux-build/gst/parse/grammar.tab.c:2343:9: branch_false: ...to here
gstreamer-1.26.0/redhat-linux-build/gst/parse/grammar.tab.c:2343:9: danger: use of uninitialized value ‘yyss’ here
# 2341|           if (! yyptr)
# 2342|             YYNOMEM;
# 2343|->         YYSTACK_RELOCATE (yyss_alloc, yyss);
# 2344|           YYSTACK_RELOCATE (yyvs_alloc, yyvs);
# 2345|   #  undef YYSTACK_RELOCATE

Error: GCC_ANALYZER_WARNING (CWE-457): [#def33]
gstreamer-1.26.0/redhat-linux-build/gst/parse/grammar.tab.c:2470:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
gstreamer-1.26.0/redhat-linux-build/gst/parse/grammar.tab.c:2301:6: branch_false: following ‘false’ branch...
gstreamer-1.26.0/redhat-linux-build/gst/parse/grammar.tab.c:2365:6: branch_false: ...to here
gstreamer-1.26.0/redhat-linux-build/gst/parse/grammar.tab.c:2365:6: branch_false: following ‘false’ branch (when ‘yystate != 16’)...
gstreamer-1.26.0/redhat-linux-build/gst/parse/grammar.tab.c:2368:3: branch_false: ...to here
gstreamer-1.26.0/redhat-linux-build/gst/parse/grammar.tab.c:2380:6: branch_true: following ‘true’ branch (when ‘yyn == -20’)...
gstreamer-1.26.0/redhat-linux-build/gst/parse/grammar.tab.c:2381:5: branch_true: ...to here
gstreamer-1.26.0/redhat-linux-build/gst/parse/grammar.tab.c:2450:6: branch_false: following ‘false’ branch (when ‘yyn != 0’)...
gstreamer-1.26.0/redhat-linux-build/gst/parse/grammar.tab.c:2452:3: branch_false: ...to here
gstreamer-1.26.0/redhat-linux-build/gst/parse/grammar.tab.c:2470:3: danger: use of uninitialized value ‘*<unknown>’ here
# 2468|        unconditionally makes the parser a bit smaller, and it avoids a
# 2469|        GCC warning that YYVAL may be used uninitialized.  */
# 2470|->   yyval = yyvsp[1-yylen];
# 2471|   
# 2472|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
gstreamer-1.26.0/redhat-linux-build/gst/parse/lex.priv_gst_parse_yy.c:2107:2: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
gstreamer-1.26.0/redhat-linux-build/gst/parse/lex.priv_gst_parse_yy.c:1986:10: enter_function: entry to ‘priv_gst_parse_yyrestart’
gstreamer-1.26.0/redhat-linux-build/gst/parse/lex.priv_gst_parse_yy.c:1993:13: call_function: calling ‘priv_gst_parse_yy_create_buffer’ from ‘priv_gst_parse_yyrestart’
gstreamer-1.26.0/redhat-linux-build/gst/parse/lex.priv_gst_parse_yy.c:1993:13: return_function: returning to ‘priv_gst_parse_yyrestart’ from ‘priv_gst_parse_yy_create_buffer’
gstreamer-1.26.0/redhat-linux-build/gst/parse/lex.priv_gst_parse_yy.c:1996:16: branch_false: following ‘false’ branch...
gstreamer-1.26.0/redhat-linux-build/gst/parse/lex.priv_gst_parse_yy.c:1996:16: branch_false: ...to here
gstreamer-1.26.0/redhat-linux-build/gst/parse/lex.priv_gst_parse_yy.c:1996:16: call_function: calling ‘priv_gst_parse_yy_init_buffer’ from ‘priv_gst_parse_yyrestart’
# 2105|   {
# 2106|   	int oerrno = errno;
# 2107|->     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
# 2108|   
# 2109|   	yy_flush_buffer( b , yyscanner);

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-80.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namegstreamer1-1.26.0-1.fc43
store-results-to/tmp/tmpmbzlwtfk/gstreamer1-1.26.0-1.fc43.tar.xz
time-created2025-04-25 12:56:54
time-finished2025-04-25 12:59:52
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpmbzlwtfk/gstreamer1-1.26.0-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpmbzlwtfk/gstreamer1-1.26.0-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9