vlc-3.0.21-21.fc43

List of Findings

Error: COMPILER_WARNING (CWE-252): [#def1]
vlc-3.0.21/bin/rootwrap.c: scope_hint: In function ‘main’
vlc-3.0.21/bin/rootwrap.c:251:5: warning[-Wunused-result]: ignoring return value of ‘setuid’ declared with attribute ‘warn_unused_result’
#  251 |     setuid (uid);
#      |     ^~~~~~~~~~~~
#  249|           exit (1);
#  250|       }
#  251|->     setuid (uid);
#  252|   
#  253|       if (!setuid (0)) /* sanity check: we cannot get root back */

Error: CPPCHECK_WARNING (CWE-401): [#def2]
vlc-3.0.21/include/vlc_arrays.h:37: error[memleak]: Memory leak: ret
#   35|   {
#   36|       void *ret = realloc( ptr, size );
#   37|->     return ret ? ret : ptr;
#   38|   }
#   39|   

Error: COMPILER_WARNING: [#def3]
vlc-3.0.21/include/vlc_common.h:787: included_from: Included from here.
vlc-3.0.21/include/vlc_arrays.h:93:13: warning[-Wshadow=compatible-local]: declaration of ‘i_index’ shadows a previous local
#   93 |         int i_index;                            \
#      |             ^~~~~~~
vlc-3.0.21/src/stream_output/stream_output.c:507:9: note: in expansion of macro ‘TAB_REMOVE’
#  507 |         TAB_REMOVE( p_mux->i_nb_inputs, p_mux->pp_inputs, p_input );
#      |         ^~~~~~~~~~
vlc-3.0.21/src/stream_output/stream_output.c:490:9: note: shadowed declaration is here
#  490 |     int i_index;
#      |         ^~~~~~~
#   91|   #define TAB_REMOVE( count, tab, p )             \
#   92|     do {                                          \
#   93|->         int i_index;                            \
#   94|           TAB_FIND( count, tab, p, i_index );     \
#   95|           if( i_index >= 0 )                      \

Error: COMPILER_WARNING: [#def4]
vlc-3.0.21/include/vlc_common.h:787: included_from: Included from here.
vlc-3.0.21/modules/misc/addons/fsstorage.c: scope_hint: In function ‘FileBelongsToManagedAddon’
vlc-3.0.21/include/vlc_arrays.h:229:9: warning[-Wshadow=compatible-local]: declaration of ‘fe_idx’ shadows a previous local
#  229 |     int fe_idx; \
#      |         ^~~~~~
vlc-3.0.21/modules/misc/addons/fsstorage.c:282:9: note: in expansion of macro ‘FOREACH_ARRAY’
#  282 |         FOREACH_ARRAY( const addon_file_t *p_file, p_entry->files )
#      |         ^~~~~~~~~~~~~
vlc-3.0.21/include/vlc_arrays.h:229:9: note: shadowed declaration is here
#  229 |     int fe_idx; \
#      |         ^~~~~~
vlc-3.0.21/modules/misc/addons/fsstorage.c:279:5: note: in expansion of macro ‘FOREACH_ARRAY’
#  279 |     FOREACH_ARRAY( const addon_entry_t *p_entry, p_finder->entries )
#      |     ^~~~~~~~~~~~~
#  227|   
#  228|   #define FOREACH_ARRAY( item, array ) { \
#  229|->     int fe_idx; \
#  230|       for( fe_idx = 0 ; fe_idx < (array).i_size ; fe_idx++ ) \
#  231|       { \

Error: CPPCHECK_WARNING (CWE-401): [#def5]
vlc-3.0.21/include/vlc_arrays.h:299: error[memleak]: Memory leak: pp
#  297|                                     sizeof( void * ) * (ar->i_count + 1) );
#  298|       if( unlikely(pp == NULL) )
#  299|->         return -1;
#  300|   
#  301|       size_t tail = ar->i_count - idx;

Error: CPPCHECK_WARNING (CWE-401): [#def6]
vlc-3.0.21/include/vlc_arrays.h:322: error[memleak]: Memory leak: pp
#  320|                                     sizeof( void * ) * (ar->i_count + 1) );
#  321|       if( unlikely(pp == NULL) )
#  322|->         return -1;
#  323|   
#  324|       pp[ar->i_count++] = elem;

Error: CPPCHECK_WARNING (CWE-401): [#def7]
vlc-3.0.21/include/vlc_arrays.h:509: error[memleak]: Memory leak: ppsz_ret
#  507|       ppsz_ret = (char**)malloc(sizeof(char *) * (count + 1));
#  508|       if( unlikely(!ppsz_ret) )
#  509|->         return NULL;
#  510|   
#  511|       count = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def8]
vlc-3.0.21/include/vlc_arrays.h:532: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p_entry
#  530|   
#  531|       p_entry = (vlc_dictionary_entry_t *)malloc(sizeof(*p_entry));
#  532|->     p_entry->psz_key = strdup( psz_key );
#  533|       p_entry->p_value = p_value;
#  534|       p_entry->p_next = p_dict->p_entries[i_pos];

Error: CPPCHECK_WARNING (CWE-476): [#def9]
vlc-3.0.21/include/vlc_arrays.h:533: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p_entry
#  531|       p_entry = (vlc_dictionary_entry_t *)malloc(sizeof(*p_entry));
#  532|       p_entry->psz_key = strdup( psz_key );
#  533|->     p_entry->p_value = p_value;
#  534|       p_entry->p_next = p_dict->p_entries[i_pos];
#  535|       p_dict->p_entries[i_pos] = p_entry;

Error: CPPCHECK_WARNING (CWE-476): [#def10]
vlc-3.0.21/include/vlc_arrays.h:534: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p_entry
#  532|       p_entry->psz_key = strdup( psz_key );
#  533|       p_entry->p_value = p_value;
#  534|->     p_entry->p_next = p_dict->p_entries[i_pos];
#  535|       p_dict->p_entries[i_pos] = p_entry;
#  536|       if( rebuild )

Error: CPPCHECK_WARNING (CWE-476): [#def11]
vlc-3.0.21/include/vlc_arrays.h:540: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p_entry
#  538|           /* Count how many items there was */
#  539|           int count;
#  540|->         for( count = 1; p_entry->p_next; count++ )
#  541|               p_entry = p_entry->p_next;
#  542|           if( count > 3 ) /* XXX: this need tuning */

Error: COMPILER_WARNING (CWE-457): [#def12]
vlc-3.0.21/include/vlc_bits.h:202:13: warning[-Wmaybe-uninitialized]: ‘*p_buffer_37’ may be used uninitialized
#  202 |             *s->p |= 1 << ( s->i_left - 1 );
#      |             ^~~~~
#  200|           if( ( i_bits >> i_count )&0x01 )
#  201|           {
#  202|->             *s->p |= 1 << ( s->i_left - 1 );
#  203|           }
#  204|           else

Error: COMPILER_WARNING: [#def13]
vlc-3.0.21/src/libvlc-module.c:36: included_from: Included from here.
vlc-3.0.21/include/vlc_common.h:115:10: warning: ‘unreachable’ redefined
#  115 | # define unreachable() __builtin_unreachable()
#      |          ^~~~~~~~~~~
vlc-3.0.21/include/vlc_fixups.h:97: included_from: Included from here.
vlc-3.0.21/config.h:1000: included_from: Included from here.
vlc-3.0.21/src/libvlc-module.c:31: included_from: Included from here.
/usr/lib/gcc/x86_64-redhat-linux/15/include/stddef.h:468:9: note: this is the location of the previous definition
#  468 | #define unreachable() (__builtin_unreachable ())
#      |         ^~~~~~~~~~~
#  113|   # define likely(p)     __builtin_expect(!!(p), 1)
#  114|   # define unlikely(p)   __builtin_expect(!!(p), 0)
#  115|-> # define unreachable() __builtin_unreachable()
#  116|   #else
#  117|   # define likely(p)     (!!(p))

Error: COMPILER_WARNING (CWE-195): [#def14]
vlc-3.0.21/modules/demux/avi/avi.c: scope_hint: In function ‘Seek’
vlc-3.0.21/include/vlc_common.h:493:33: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int64_t’ {aka ‘long int’} and ‘uint64_t’ {aka ‘long unsigned int’}
#  493 | #   define __MAX(a, b)   ( ((a) > (b)) ? (a) : (b) )
#      |                                 ^
vlc-3.0.21/modules/demux/avi/avi.c:1693:21: note: in expansion of macro ‘__MAX’
# 1693 |             i_pos = __MAX( i_percent * stream_Size( p_demux->s ) / 100,
#      |                     ^~~~~
#  491|   /* __MAX and __MIN: self explanatory */
#  492|   #ifndef __MAX
#  493|-> #   define __MAX(a, b)   ( ((a) > (b)) ? (a) : (b) )
#  494|   #endif
#  495|   #ifndef __MIN

Error: COMPILER_WARNING (CWE-195): [#def15]
vlc-3.0.21/include/vlc_common.h:493:42: warning[-Wsign-compare]: operand of ‘?:’ changes signedness from ‘int64_t’ {aka ‘long int’} to ‘uint64_t’ {aka ‘long unsigned int’} due to unsignedness of other operand
#  493 | #   define __MAX(a, b)   ( ((a) > (b)) ? (a) : (b) )
#      |                                          ^~~
vlc-3.0.21/modules/demux/avi/avi.c:1693:21: note: in expansion of macro ‘__MAX’
# 1693 |             i_pos = __MAX( i_percent * stream_Size( p_demux->s ) / 100,
#      |                     ^~~~~
#  491|   /* __MAX and __MIN: self explanatory */
#  492|   #ifndef __MAX
#  493|-> #   define __MAX(a, b)   ( ((a) > (b)) ? (a) : (b) )
#  494|   #endif
#  495|   #ifndef __MIN

Error: COMPILER_WARNING (CWE-195): [#def16]
vlc-3.0.21/modules/access_output/srt.c: scope_hint: In function ‘Write’
vlc-3.0.21/include/vlc_common.h:496:33: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’
#  496 | #   define __MIN(a, b)   ( ((a) < (b)) ? (a) : (b) )
#      |                                 ^
vlc-3.0.21/modules/access_output/srt.c:260:22: note: in expansion of macro ‘__MIN’
#  260 |         chunk_size = __MIN( block_BytestreamRemaining( &p_sys->block_stream ),
#      |                      ^~~~~
#  494|   #endif
#  495|   #ifndef __MIN
#  496|-> #   define __MIN(a, b)   ( ((a) < (b)) ? (a) : (b) )
#  497|   #endif
#  498|   

Error: COMPILER_WARNING (CWE-195): [#def17]
vlc-3.0.21/include/vlc_common.h:496:48: warning[-Wsign-compare]: operand of ‘?:’ changes signedness from ‘int’ to ‘size_t’ {aka ‘long unsigned int’} due to unsignedness of other operand
#  496 | #   define __MIN(a, b)   ( ((a) < (b)) ? (a) : (b) )
#      |                                                ^~~
vlc-3.0.21/modules/access_output/srt.c:260:22: note: in expansion of macro ‘__MIN’
#  260 |         chunk_size = __MIN( block_BytestreamRemaining( &p_sys->block_stream ),
#      |                      ^~~~~
#  494|   #endif
#  495|   #ifndef __MIN
#  496|-> #   define __MIN(a, b)   ( ((a) < (b)) ? (a) : (b) )
#  497|   #endif
#  498|   

Error: COMPILER_WARNING: [#def18]
vlc-3.0.21/include/vlc_fixups.h:373:27: warning[-Wunterminated-string-initialization]: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (26 chars into 25 available)
#  373 | #define gettext_noop(str) (str)
#      |                           ^
vlc-3.0.21/include/vlc_fixups.h:372:27: note: in expansion of macro ‘gettext_noop’
#  372 | #define N_(str)           gettext_noop (str)
#      |                           ^~~~~~~~~~~~
vlc-3.0.21/modules/demux/mp4/meta.c:91:21: note: in expansion of macro ‘N_’
#   91 |     { ATOM_0xa9cak, N_("Copyright Acknowledgement") },
#      |                     ^~
#  371|   #define _(str)            vlc_gettext (str)
#  372|   #define N_(str)           gettext_noop (str)
#  373|-> #define gettext_noop(str) (str)
#  374|   
#  375|   #ifdef __cplusplus

Error: CPPCHECK_WARNING (CWE-401): [#def19]
vlc-3.0.21/include/vlc_input.h:187: error[memleak]: Memory leak: a
#  185|       input_attachment_t *a = (input_attachment_t *)malloc( sizeof (*a) );
#  186|       if( unlikely(a == NULL) )
#  187|->         return NULL;
#  188|   
#  189|       a->psz_name = strdup( psz_name ? psz_name : "" );

Error: COMPILER_WARNING: [#def20]
vlc-3.0.21/include/vlc_common.h:1034: included_from: Included from here.
vlc-3.0.21/modules/codec/speex.c: scope_hint: In function ‘DecodePacket’
vlc-3.0.21/include/vlc_messages.h:78:5: warning[-Wimplicit-fallthrough=]: this statement may fall through
#   78 |     vlc_Log(VLC_OBJECT(o), p, vlc_module_name, __FILE__, __LINE__, \
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   79 |             __func__, __VA_ARGS__)
#      |             ~~~~~~~~~~~~~~~~~~~~~~
vlc-3.0.21/include/vlc_messages.h:83:5: note: in expansion of macro ‘msg_Generic’
#   83 |     msg_Generic(p_this, VLC_MSG_ERR, __VA_ARGS__)
#      |     ^~~~~~~~~~~
vlc-3.0.21/modules/codec/speex.c:833:17: note: in expansion of macro ‘msg_Err’
#  833 |                 msg_Err( p_dec, "decoding error: corrupted stream?" );
#      |                 ^~~~~~~
vlc-3.0.21/modules/codec/speex.c:834:13: note: here
#  834 |             case -1: /* End of stream */
#      |             ^~~~
#   76|   
#   77|   #define msg_Generic(o, p, ...) \
#   78|->     vlc_Log(VLC_OBJECT(o), p, vlc_module_name, __FILE__, __LINE__, \
#   79|               __func__, __VA_ARGS__)
#   80|   #define msg_Info(p_this, ...) \

Error: COMPILER_WARNING (CWE-477): [#def21]
vlc-3.0.21/include/vlc_common.h:1035: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/extended_panels.hpp:32: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/extended_panels.cpp:48: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/extended_panels.cpp: scope_hint: In member function ‘void ExtV4l2::Refresh()’
vlc-3.0.21/include/vlc_objects.h:60:25: warning[-Wdeprecated-declarations]: ‘vlc_object_t* vlc_object_find_name(vlc_object_t*, const char*)’ is deprecated
#   60 |     vlc_object_find_name( VLC_OBJECT(a),b)
#      |     ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
vlc-3.0.21/modules/gui/qt/components/extended_panels.cpp:663:42: note: in expansion of macro ‘vlc_object_find_name’
#  663 |     vlc_object_t *p_obj = (vlc_object_t*)vlc_object_find_name( THEPL, "v4l2" );
#      |                                          ^~~~~~~~~~~~~~~~~~~~
vlc-3.0.21/include/vlc_objects.h:49:23: note: declared here
#   49 | VLC_API vlc_object_t *vlc_object_find_name( vlc_object_t *, const char * ) VLC_USED VLC_DEPRECATED;
#      |                       ^~~~~~~~~~~~~~~~~~~~
#   58|   
#   59|   #define vlc_object_find_name(a,b) \
#   60|->     vlc_object_find_name( VLC_OBJECT(a),b)
#   61|   
#   62|   #define vlc_object_hold(a) \

Error: CPPCHECK_WARNING (CWE-401): [#def22]
vlc-3.0.21/include/vlc_probe.h:55: error[memleak]: Memory leak: tab
#   53|   
#   54|       if (unlikely(tab == NULL))
#   55|->         return VLC_ENOMEM;
#   56|       memcpy(tab + (obj->count * len), data, len);
#   57|       obj->list = tab;

Error: COMPILER_WARNING (CWE-9001): [#def23]
vlc-3.0.21/include/vlc_common.h:413: included_from: Included from here.
vlc-3.0.21/modules/audio_output/pulse.c: scope_hint: In function ‘Flush’
vlc-3.0.21/include/vlc_threads.h:859:14: warning[-Wattribute-warning]: call to ‘harmful_delay’ declared with attribute warning: use proper event handling instead of short delay
#  859 |            ? harmful_delay(d) \
#      |              ^~~~~~~~~~~~~~~~
#  857|          : ((__builtin_constant_p(d < VLC_SOFT_MIN_SLEEP) \
#  858|          && (d < VLC_SOFT_MIN_SLEEP)) \
#  859|->            ? harmful_delay(d) \
#  860|              : d))
#  861|   

Error: COMPILER_WARNING (CWE-9001): [#def24]
vlc-3.0.21/include/vlc_threads.h:878:19: warning[-Wattribute-warning]: call to ‘harmful_delay’ declared with attribute warning: use proper event handling instead of short delay
#  878 | #define msleep(d) msleep(check_delay(d))
#      |                   ^~~~~~~~~~~~~~~~~~~~~~
#  876|   #endif
#  877|   
#  878|-> #define msleep(d) msleep(check_delay(d))
#  879|   #define mwait(d) mwait(check_deadline(d))
#  880|   

Error: COMPILER_WARNING (CWE-457): [#def25]
vlc-3.0.21/include/vlc_variables.h:611:9: warning[-Wmaybe-uninitialized]: ‘varname’ may be used uninitialized
#  611 |     if( var_Inherit( obj, name, VLC_VAR_INTEGER, &val ) )
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vlc-3.0.21/modules/control/hotkeys.c: scope_hint: In function ‘PutAction.isra.0’
vlc-3.0.21/modules/control/hotkeys.c:915:25: note: ‘varname’ was declared here
#  915 |             const char *varname;
#      |                         ^~~~~~~
#  609|       vlc_value_t val;
#  610|   
#  611|->     if( var_Inherit( obj, name, VLC_VAR_INTEGER, &val ) )
#  612|           val.i_int = 0;
#  613|       return val.i_int;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def26]
vlc-3.0.21/lib/../include/vlc_arrays.h:532:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_entry’
vlc-3.0.21/lib/media_discoverer.c:60:13: enter_function: entry to ‘services_discovery_item_added’
vlc-3.0.21/lib/media_discoverer.c:72:7: branch_false: following ‘false’ branch (when ‘parent’ is NULL)...
vlc-3.0.21/lib/media_discoverer.c:79:7: branch_false: ...to here
vlc-3.0.21/lib/media_discoverer.c:79:7: branch_true: following ‘true’ branch (when ‘psz_cat’ is non-NULL)...
vlc-3.0.21/lib/media_discoverer.c:81:49: branch_true: ...to here
vlc-3.0.21/lib/media_discoverer.c:81:19: call_function: calling ‘vlc_dictionary_value_for_key’ from ‘services_discovery_item_added’
vlc-3.0.21/lib/media_discoverer.c:81:19: return_function: returning to ‘services_discovery_item_added’ from ‘vlc_dictionary_value_for_key’
vlc-3.0.21/lib/media_discoverer.c:83:11: branch_true: following ‘true’ branch...
vlc-3.0.21/lib/media_discoverer.c:86:23: branch_true: ...to here
vlc-3.0.21/lib/media_discoverer.c:91:13: call_function: inlined call to ‘vlc_dictionary_insert’ from ‘services_discovery_item_added’
#  530|   
#  531|       p_entry = (vlc_dictionary_entry_t *)malloc(sizeof(*p_entry));
#  532|->     p_entry->psz_key = strdup( psz_key );
#  533|       p_entry->p_value = p_value;
#  534|       p_entry->p_next = p_dict->p_entries[i_pos];

Error: COMPILER_WARNING: [#def27]
vlc-3.0.21/lib/../include/vlc_common.h:115:10: warning[warning]: ‘unreachable’ redefined
#  113|   # define likely(p)     __builtin_expect(!!(p), 1)
#  114|   # define unlikely(p)   __builtin_expect(!!(p), 0)
#  115|-> # define unreachable() __builtin_unreachable()
#  116|   #else
#  117|   # define likely(p)     (!!(p))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def28]
vlc-3.0.21/lib/media.c:132:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p_md’
vlc-3.0.21/lib/media.c:486:18: enter_function: entry to ‘libvlc_media_new_as_node’
vlc-3.0.21/lib/media.c:495:8: branch_false: following ‘false’ branch...
vlc-3.0.21/lib/media.c:501:12: branch_false: ...to here
vlc-3.0.21/lib/media.c:501:12: call_function: calling ‘libvlc_media_new_from_input_item’ from ‘libvlc_media_new_as_node’
vlc-3.0.21/lib/media.c:501:12: return_function: returning to ‘libvlc_media_new_as_node’ from ‘libvlc_media_new_from_input_item’
vlc-3.0.21/lib/media.c:504:18: call_function: calling ‘media_get_subitems’ from ‘libvlc_media_new_as_node’
#  130|   
#  131|       vlc_mutex_lock( &p_md->subitems_lock );
#  132|->     if( p_md->p_subitems == NULL && b_create )
#  133|       {
#  134|           p_md->p_subitems = libvlc_media_list_new( p_md->p_libvlc_instance );

Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
vlc-3.0.21/lib/media.c:1286:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/lib/media.c:1203:14: enter_function: entry to ‘libvlc_media_slaves_get’
vlc-3.0.21/lib/media.c:1213:7: branch_false: following ‘false’ branch (when ‘i_count > 0’)...
vlc-3.0.21/lib/media.c:1216:40: branch_false: ...to here
vlc-3.0.21/lib/media.c:1217:7: branch_false: following ‘false’ branch (when ‘pp_slaves’ is non-NULL)...
 branch_false: ...to here
vlc-3.0.21/lib/media.c:1220:21: branch_true: following ‘true’ branch (when ‘i < i_count’)...
vlc-3.0.21/lib/media.c:1222:44: branch_true: ...to here
vlc-3.0.21/lib/media.c:1229:11: branch_false: following ‘false’ branch (when ‘p_slave’ is non-NULL)...
vlc-3.0.21/lib/media.c:1234:28: branch_false: ...to here
vlc-3.0.21/lib/media.c:1220:21: branch_true: following ‘true’ branch (when ‘i < i_count’)...
vlc-3.0.21/lib/media.c:1222:44: branch_true: ...to here
vlc-3.0.21/lib/media.c:1229:11: branch_false: following ‘false’ branch (when ‘p_slave’ is non-NULL)...
vlc-3.0.21/lib/media.c:1234:28: branch_false: ...to here
vlc-3.0.21/lib/media.c:1220:21: branch_true: following ‘true’ branch (when ‘i < i_count’)...
vlc-3.0.21/lib/media.c:1222:44: branch_true: ...to here
vlc-3.0.21/lib/media.c:1229:11: branch_false: following ‘false’ branch (when ‘p_slave’ is non-NULL)...
vlc-3.0.21/lib/media.c:1234:28: branch_false: ...to here
vlc-3.0.21/lib/media.c:1220:21: branch_true: following ‘true’ branch (when ‘i < i_count’)...
vlc-3.0.21/lib/media.c:1222:44: branch_true: ...to here
vlc-3.0.21/lib/media.c:1226:41: acquire_memory: allocated here
vlc-3.0.21/lib/media.c:1229:11: branch_false: following ‘false’ branch (when ‘p_slave’ is non-NULL)...
vlc-3.0.21/lib/media.c:1234:28: branch_false: ...to here
vlc-3.0.21/lib/media.c:1220:21: branch_true: following ‘true’ branch (when ‘i < i_count’)...
vlc-3.0.21/lib/media.c:1222:44: branch_true: ...to here
vlc-3.0.21/lib/media.c:1229:11: branch_true: following ‘true’ branch (when ‘p_slave’ is NULL)...
vlc-3.0.21/lib/media.c:1231:13: branch_true: ...to here
vlc-3.0.21/lib/media.c:1231:13: call_function: calling ‘libvlc_media_slaves_release’ from ‘libvlc_media_slaves_get’
# 1284|               free( pp_slaves[i] );
# 1285|       }
# 1286|->     free( pp_slaves );
# 1287|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
vlc-3.0.21/lib/media_discoverer.c:351:16: warning[-Wanalyzer-malloc-leak]: leak of ‘p_services’
 branch_true: following ‘true’ branch (when ‘i_cat <= 3’)...
vlc-3.0.21/lib/media_discoverer.c:357:18: branch_true: ...to here
vlc-3.0.21/lib/media_discoverer.c:360:7: branch_false: following ‘false’ branch...
vlc-3.0.21/lib/media_discoverer.c:369:10: branch_false: ...to here
vlc-3.0.21/lib/media_discoverer.c:377:7: branch_true: following ‘true’ branch (when ‘i_nb_services != 0’)...
vlc-3.0.21/lib/media_discoverer.c:383:31: branch_true: ...to here
vlc-3.0.21/lib/media_discoverer.c:385:22: acquire_memory: allocated here
vlc-3.0.21/lib/media_discoverer.c:387:11: branch_false: following ‘false’ branch...
vlc-3.0.21/lib/media_discoverer.c:400:12: branch_false: ...to here
vlc-3.0.21/lib/media_discoverer.c:405:12: branch_true: following ‘true’ branch...
vlc-3.0.21/lib/media_discoverer.c:407:11: branch_true: ...to here
vlc-3.0.21/lib/media_discoverer.c:407:11: branch_true: following ‘true’ branch (when ‘pp_services’ is non-NULL)...
vlc-3.0.21/lib/media_discoverer.c:407:36: branch_true: ...to here
vlc-3.0.21/lib/media_discoverer.c:407:13: branch_false: following ‘false’ branch...
vlc-3.0.21/lib/media_discoverer.c:416:13: branch_false: ...to here
vlc-3.0.21/lib/media_discoverer.c:405:12: branch_false: following ‘false’ branch...
vlc-3.0.21/lib/media_discoverer.c:420:5: branch_false: ...to here
vlc-3.0.21/lib/media_discoverer.c:351:16: danger: ‘p_services’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
#  349|           vlc_assert_unreachable();
#  350|           *ppp_services = NULL;
#  351|->         return 0;
#  352|       }
#  353|   

Error: COMPILER_WARNING: [#def31]
vlc-3.0.21/lib/media_list.c: scope_hint: In function ‘libvlc_media_list_add_file_content’
vlc-3.0.21/lib/media_list.c:255:2: warning[-Wcpp]: #warning Missing error handling!
#  255 | #warning Missing error handling!
#      |  ^~~~~~~
#  253|       if( libvlc_media_list_add_media( p_mlist, p_md ) )
#  254|       {
#  255|-> #warning Missing error handling!
#  256|           /* printerr and leaks */
#  257|           return -1;

Error: COMPILER_WARNING: [#def32]
vlc-3.0.21/lib/media_list.c:255:2: warning[-Wcpp]: #warning Missing error handling!
#  253|       if( libvlc_media_list_add_media( p_mlist, p_md ) )
#  254|       {
#  255|-> #warning Missing error handling!
#  256|           /* printerr and leaks */
#  257|           return -1;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def33]
vlc-3.0.21/lib/media_list_path.h:96:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘path’
vlc-3.0.21/lib/media_list_player.c:863:5: enter_function: entry to ‘libvlc_media_list_player_previous’
vlc-3.0.21/lib/media_list_player.c:866:19: call_function: calling ‘set_relative_playlist_position_and_play’ from ‘libvlc_media_list_player_previous’
#   94|       int old_depth = libvlc_media_list_path_depth( path );
#   95|       ret = xmalloc( sizeof(int) * (old_depth + 2) );
#   96|->     memcpy( ret, path, sizeof(int) * old_depth );
#   97|       ret[old_depth] = index;
#   98|       ret[old_depth+1] = -1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
vlc-3.0.21/lib/media_list_path.h:171:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘path’
vlc-3.0.21/lib/media_list_player.c:863:5: enter_function: entry to ‘libvlc_media_list_player_previous’
vlc-3.0.21/lib/media_list_player.c:866:19: call_function: calling ‘set_relative_playlist_position_and_play’ from ‘libvlc_media_list_player_previous’
#  169|       libvlc_media_list_t * p_current_mlist = p_mlist;
#  170|   
#  171|->     for( int i = 0; path[i] != -1; i++ )
#  172|       {
#  173|           libvlc_media_t* p_md = libvlc_media_list_item_at_index( p_current_mlist, path[i] );

Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
vlc-3.0.21/lib/media_list_path.h:173:32: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_mlp.current_playing_item_path’
vlc-3.0.21/lib/media_list_player.c:852:5: enter_function: entry to ‘libvlc_media_list_player_next’
vlc-3.0.21/lib/media_list_player.c:855:19: call_function: calling ‘set_relative_playlist_position_and_play’ from ‘libvlc_media_list_player_next’
#  171|       for( int i = 0; path[i] != -1; i++ )
#  172|       {
#  173|->         libvlc_media_t* p_md = libvlc_media_list_item_at_index( p_current_mlist, path[i] );
#  174|   
#  175|           if( !p_md )

Error: GCC_ANALYZER_WARNING (CWE-476): [#def36]
vlc-3.0.21/lib/media_list_path.h:206:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘path’
vlc-3.0.21/lib/media_list_player.c:852:5: enter_function: entry to ‘libvlc_media_list_player_next’
vlc-3.0.21/lib/media_list_player.c:855:19: call_function: calling ‘set_relative_playlist_position_and_play’ from ‘libvlc_media_list_player_next’
#  204|       libvlc_media_list_t * p_current_mlist = p_mlist;
#  205|   
#  206|->     for( int i = 0; path[i] != -1; i++ )
#  207|       {
#  208|           if( p_current_mlist != p_mlist )

Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
vlc-3.0.21/lib/media_list_player.c:191:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘libvlc_media_list_path_copy(*p_mlp.current_playing_item_path)’
vlc-3.0.21/lib/media_list_player.c:852:5: enter_function: entry to ‘libvlc_media_list_player_next’
vlc-3.0.21/lib/media_list_player.c:855:19: call_function: calling ‘set_relative_playlist_position_and_play’ from ‘libvlc_media_list_player_next’
#  189|               if(b_loop)
#  190|               {
#  191|->                 ret[0] = 0;
#  192|                   ret[1] = -1;
#  193|                   break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def38]
vlc-3.0.21/lib/media_list_player.c:301:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘libvlc_media_list_path_copy(*p_mlp.current_playing_item_path)’
vlc-3.0.21/lib/media_list_player.c:863:5: enter_function: entry to ‘libvlc_media_list_player_previous’
vlc-3.0.21/lib/media_list_player.c:866:19: call_function: calling ‘set_relative_playlist_position_and_play’ from ‘libvlc_media_list_player_previous’
#  299|   
#  300|                   /* Set current play item to the last element in the list */
#  301|->                 ret[0] = i_count - 1;
#  302|                   ret[1] = -1;
#  303|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
vlc-3.0.21/lib/media_list_player.c:786:16: warning[-Wanalyzer-malloc-leak]: leak of ‘path’
vlc-3.0.21/lib/media_list_player.c:863:5: enter_function: entry to ‘libvlc_media_list_player_previous’
vlc-3.0.21/lib/media_list_player.c:866:19: call_function: calling ‘set_relative_playlist_position_and_play’ from ‘libvlc_media_list_player_previous’
#  784|       {
#  785|           libvlc_printerr("No media list");
#  786|->         return -1;
#  787|       }
#  788|   

Error: COMPILER_WARNING (CWE-457): [#def40]
vlc-3.0.21/lib/media_list_player.c: scope_hint: In function ‘set_relative_playlist_position_and_play’
vlc-3.0.21/lib/media_list_player.c:822:22: warning[-Wmaybe-uninitialized]: ‘ret’ may be used uninitialized
#  822 |     if (!path || ret != 0)
#      |                  ~~~~^~~~
vlc-3.0.21/lib/media_list_player.c:793:9: note: ‘ret’ was declared here
#  793 |     int ret;
#      |         ^~~
#  820|   #endif
#  821|   
#  822|->     if (!path || ret != 0)
#  823|       {
#  824|           libvlc_media_list_unlock(p_mlp->p_mlist);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def41]
vlc-3.0.21/lib/media_player.c:1552:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/lib/media_player.c:1519:5: enter_function: entry to ‘libvlc_media_player_get_full_title_descriptions’
vlc-3.0.21/lib/media_player.c:1526:7: branch_false: following ‘false’ branch...
vlc-3.0.21/lib/media_player.c:1533:15: branch_false: ...to here
vlc-3.0.21/lib/media_player.c:1536:7: branch_false: following ‘false’ branch...
vlc-3.0.21/lib/media_player.c:1539:43: branch_false: ...to here
vlc-3.0.21/lib/media_player.c:1539:43: call_function: inlined call to ‘vlc_alloc’ from ‘libvlc_media_player_get_full_title_descriptions’
vlc-3.0.21/lib/media_player.c:1540:7: branch_true: ...to here
vlc-3.0.21/lib/media_player.c:1540:7: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/lib/media_player.c:1544:21: branch_true: following ‘true’ branch...
vlc-3.0.21/lib/media_player.c:1546:45: branch_true: ...to here
vlc-3.0.21/lib/media_player.c:1547:11: branch_false: following ‘false’ branch...
vlc-3.0.21/lib/media_player.c:1552:15: branch_false: ...to here
vlc-3.0.21/lib/media_player.c:1552:15: release_memory: ‘0’ is NULL
vlc-3.0.21/lib/media_player.c:1552:9: danger: dereference of NULL ‘<unknown> + (long unsigned int)i * 8’
# 1550|               return -1;
# 1551|           }
# 1552|->         titles[i] = title;
# 1553|   
# 1554|           /* we want to return milliseconds to match the rest of the API */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def42]
vlc-3.0.21/lib/media_player.c:1552:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘<unknown>’
vlc-3.0.21/lib/media_player.c:1519:5: enter_function: entry to ‘libvlc_media_player_get_full_title_descriptions’
vlc-3.0.21/lib/media_player.c:1526:7: branch_false: following ‘false’ branch...
vlc-3.0.21/lib/media_player.c:1533:15: branch_false: ...to here
vlc-3.0.21/lib/media_player.c:1536:7: branch_false: following ‘false’ branch...
vlc-3.0.21/lib/media_player.c:1539:43: branch_false: ...to here
vlc-3.0.21/lib/media_player.c:1539:43: call_function: inlined call to ‘vlc_alloc’ from ‘libvlc_media_player_get_full_title_descriptions’
vlc-3.0.21/lib/media_player.c:1540:7: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/lib/media_player.c:1544:21: branch_true: following ‘true’ branch...
vlc-3.0.21/lib/media_player.c:1546:45: branch_true: ...to here
vlc-3.0.21/lib/media_player.c:1547:11: branch_false: following ‘false’ branch...
vlc-3.0.21/lib/media_player.c:1552:15: branch_false: ...to here
vlc-3.0.21/lib/media_player.c:1552:9: danger: ‘<unknown> + (long unsigned int)i * 8’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
# 1550|               return -1;
# 1551|           }
# 1552|->         titles[i] = title;
# 1553|   
# 1554|           /* we want to return milliseconds to match the rest of the API */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
vlc-3.0.21/lib/media_player.c:1847:51: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/lib/media_player.c:1827:7: branch_false: following ‘false’ branch...
vlc-3.0.21/lib/media_player.c:1831:17: branch_false: ...to here
vlc-3.0.21/lib/media_player.c:1832:7: branch_false: following ‘false’ branch...
vlc-3.0.21/lib/media_player.c:1836:9: branch_false: ...to here
vlc-3.0.21/lib/media_player.c:1836:7: branch_false: following ‘false’ branch...
vlc-3.0.21/lib/media_player.c:1839:27: branch_false: ...to here
vlc-3.0.21/lib/media_player.c:1840:8: branch_false: following ‘false’ branch (when ‘p_track_description’ is non-NULL)...
 branch_false: ...to here
vlc-3.0.21/lib/media_player.c:1847:21: branch_true: following ‘true’ branch...
vlc-3.0.21/lib/media_player.c:1849:11: branch_true: ...to here
vlc-3.0.21/lib/media_player.c:1849:11: branch_false: following ‘false’ branch (when ‘p_actual’ is non-NULL)...
vlc-3.0.21/lib/media_player.c:1861:26: branch_false: ...to here
vlc-3.0.21/lib/media_player.c:1864:11: branch_false: following ‘false’ branch (when ‘p_previous’ is NULL)...
vlc-3.0.21/lib/media_player.c:1847:51: branch_false: ...to here
vlc-3.0.21/lib/media_player.c:1847:21: branch_true: following ‘true’ branch...
vlc-3.0.21/lib/media_player.c:1849:11: branch_true: ...to here
vlc-3.0.21/lib/media_player.c:1849:11: branch_true: following ‘true’ branch (when ‘p_actual’ is NULL)...
vlc-3.0.21/lib/media_player.c:1851:24: branch_true: ...to here
vlc-3.0.21/lib/media_player.c:1852:16: branch_false: following ‘false’ branch (when ‘p_actual’ is non-NULL)...
vlc-3.0.21/lib/media_player.c:1861:26: branch_false: ...to here
vlc-3.0.21/lib/media_player.c:1864:11: branch_true: following ‘true’ branch (when ‘p_previous’ is non-NULL)...
vlc-3.0.21/lib/media_player.c:1865:13: branch_true: ...to here
vlc-3.0.21/lib/media_player.c:1847:21: branch_true: following ‘true’ branch...
vlc-3.0.21/lib/media_player.c:1849:11: branch_true: ...to here
vlc-3.0.21/lib/media_player.c:1849:11: branch_true: following ‘true’ branch (when ‘p_actual’ is NULL)...
vlc-3.0.21/lib/media_player.c:1851:24: branch_true: ...to here
vlc-3.0.21/lib/media_player.c:1852:16: branch_false: following ‘false’ branch (when ‘p_actual’ is non-NULL)...
vlc-3.0.21/lib/media_player.c:1861:26: branch_false: ...to here
vlc-3.0.21/lib/media_player.c:1864:11: branch_true: following ‘true’ branch (when ‘p_previous’ is non-NULL)...
vlc-3.0.21/lib/media_player.c:1865:13: branch_true: ...to here
vlc-3.0.21/lib/media_player.c:1847:21: branch_true: following ‘true’ branch...
vlc-3.0.21/lib/media_player.c:1849:11: branch_true: ...to here
vlc-3.0.21/lib/media_player.c:1849:11: branch_true: following ‘true’ branch (when ‘p_actual’ is NULL)...
vlc-3.0.21/lib/media_player.c:1851:24: branch_true: ...to here
vlc-3.0.21/lib/media_player.c:1852:16: branch_false: following ‘false’ branch (when ‘p_actual’ is non-NULL)...
vlc-3.0.21/lib/media_player.c:1861:26: branch_false: ...to here
vlc-3.0.21/lib/media_player.c:1864:11: branch_true: following ‘true’ branch (when ‘p_previous’ is non-NULL)...
vlc-3.0.21/lib/media_player.c:1865:13: branch_true: ...to here
vlc-3.0.21/lib/media_player.c:1847:21: branch_true: following ‘true’ branch...
vlc-3.0.21/lib/media_player.c:1849:11: branch_true: ...to here
vlc-3.0.21/lib/media_player.c:1849:11: branch_true: following ‘true’ branch (when ‘p_actual’ is NULL)...
vlc-3.0.21/lib/media_player.c:1851:24: branch_true: ...to here
vlc-3.0.21/lib/media_player.c:1852:16: branch_false: following ‘false’ branch (when ‘p_actual’ is non-NULL)...
vlc-3.0.21/lib/media_player.c:1861:26: branch_false: ...to here
vlc-3.0.21/lib/media_player.c:1864:11: branch_true: following ‘true’ branch (when ‘p_previous’ is non-NULL)...
vlc-3.0.21/lib/media_player.c:1865:13: branch_true: ...to here
vlc-3.0.21/lib/media_player.c:1847:21: branch_true: following ‘true’ branch...
vlc-3.0.21/lib/media_player.c:1849:11: branch_true: ...to here
vlc-3.0.21/lib/media_player.c:1849:11: branch_true: following ‘true’ branch (when ‘p_actual’ is NULL)...
vlc-3.0.21/lib/media_player.c:1851:24: branch_true: ...to here
vlc-3.0.21/lib/media_player.c:1852:16: branch_false: following ‘false’ branch (when ‘p_actual’ is non-NULL)...
vlc-3.0.21/lib/media_player.c:1861:26: branch_false: ...to here
vlc-3.0.21/lib/media_player.c:1862:30: acquire_memory: allocated here
vlc-3.0.21/lib/media_player.c:1864:11: branch_false: following ‘false’ branch (when ‘p_previous’ is NULL)...
vlc-3.0.21/lib/media_player.c:1847:51: branch_false: ...to here
vlc-3.0.21/lib/media_player.c:1847:21: branch_true: following ‘true’ branch...
vlc-3.0.21/lib/media_player.c:1849:11: branch_true: ...to here
vlc-3.0.21/lib/media_player.c:1849:11: branch_true: following ‘true’ branch (when ‘p_actual’ is NULL)...
vlc-3.0.21/lib/media_player.c:1851:24: branch_true: ...to here
vlc-3.0.21/lib/media_player.c:1852:16: branch_false: following ‘false’ branch (when ‘p_actual’ is non-NULL)...
vlc-3.0.21/lib/media_player.c:1861:26: branch_false: ...to here
vlc-3.0.21/lib/media_player.c:1864:11: branch_false: following ‘false’ branch (when ‘p_previous’ is NULL)...
vlc-3.0.21/lib/media_player.c:1847:51: branch_false: ...to here
vlc-3.0.21/lib/media_player.c:1847:51: danger: ‘<unknown>’ leaks here; was allocated at [(53)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/52)
# 1845|       p_actual = p_track_description;
# 1846|       p_previous = NULL;
# 1847|->     for( int i = 0; i < val_list.p_list->i_count; i++ )
# 1848|       {
# 1849|           if( !p_actual )

Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
vlc-3.0.21/lib/renderer_discoverer.c:63:5: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(8)’
vlc-3.0.21/lib/renderer_discoverer.c:63:5: branch_false: following ‘false’ branch...
vlc-3.0.21/lib/renderer_discoverer.c:63:5: branch_false: ...to here
vlc-3.0.21/lib/renderer_discoverer.c:63:5: acquire_memory: allocated here
vlc-3.0.21/lib/renderer_discoverer.c:63:5: danger: ‘malloc(8)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#   61|       vlc_renderer_item_hold( p_item );
#   62|   
#   63|->     TAB_APPEND( p_lrd->i_items, p_lrd->pp_items, p_item );
#   64|   
#   65|       libvlc_event_t event = {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
vlc-3.0.21/lib/renderer_discoverer.c:63:5: warning[-Wanalyzer-malloc-leak]: leak of ‘realloc(*p_lrd.pp_items, (long unsigned int)(*p_lrd.i_items + 1) * 8)’
vlc-3.0.21/lib/renderer_discoverer.c:63:5: branch_true: following ‘true’ branch...
vlc-3.0.21/lib/renderer_discoverer.c:63:5: branch_true: ...to here
vlc-3.0.21/lib/renderer_discoverer.c:63:5: danger: ‘realloc(*p_lrd.pp_items, (long unsigned int)(*p_lrd.i_items + 1) * 8)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#   61|       vlc_renderer_item_hold( p_item );
#   62|   
#   63|->     TAB_APPEND( p_lrd->i_items, p_lrd->pp_items, p_item );
#   64|   
#   65|       libvlc_event_t event = {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def46]
vlc-3.0.21/lib/video.c:749:18: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘psz_string’ where non-null expected
vlc-3.0.21/lib/video.c:720:7: branch_false: following ‘false’ branch...
vlc-3.0.21/lib/video.c:726:9: branch_false: ...to here
vlc-3.0.21/lib/video.c:747:7: branch_true: following ‘true’ branch...
vlc-3.0.21/lib/video.c:747:36: branch_true: ...to here
vlc-3.0.21/lib/video.c:747:36: acquire_memory: this call could return NULL
vlc-3.0.21/lib/video.c:749:18: danger: argument 1 (‘psz_string’) from [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  747|       if( !psz_string ) psz_string = strdup("");
#  748|   
#  749|->     psz_parser = strstr( psz_string, psz_name );
#  750|       if( b_add )
#  751|       {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
vlc-3.0.21/modules/../include/vlc_aout.h:336:5: warning[-Wanalyzer-malloc-leak]: leak of ‘**aout.sys.sink_force’
vlc-3.0.21/modules/audio_output/pulse.c:671:8: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/audio_output/pulse.c:673:9: branch_true: ...to here
vlc-3.0.21/modules/audio_output/pulse.c:675:27: acquire_memory: allocated here
vlc-3.0.21/modules/audio_output/pulse.c:676:9: call_function: inlined call to ‘aout_DeviceReport’ from ‘StreamMove’
#  334|   static inline void aout_DeviceReport(audio_output_t *aout, const char *id)
#  335|   {
#  336|->     aout->event.device_report(aout, id);
#  337|   }
#  338|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
vlc-3.0.21/modules/../include/vlc_arrays.h:325:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/modules/access/bluray.c:3062:21: enter_function: entry to ‘escape_esOutAdd’
vlc-3.0.21/modules/access/bluray.c:3067:8: branch_false: following ‘false’ branch (when ‘esc_id’ is non-NULL)...
vlc-3.0.21/modules/access/bluray.c:3069:18: branch_false: ...to here
vlc-3.0.21/modules/access/bluray.c:3070:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/bluray.c:3075:5: branch_false: ...to here
vlc-3.0.21/modules/access/bluray.c:3077:9: call_function: calling ‘vlc_array_append’ from ‘escape_esOutAdd’
#  323|   
#  324|       pp[ar->i_count++] = elem;
#  325|->     ar->pp_elems = pp;
#  326|       return 0;
#  327|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
vlc-3.0.21/modules/../include/vlc_arrays.h:399:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/modules/control/dbus/dbus.c:561:13: enter_function: entry to ‘ProcessEvents’
vlc-3.0.21/modules/control/dbus/dbus.c:577:21: branch_true: following ‘true’ branch (when ‘i < i_events’)...
vlc-3.0.21/modules/control/dbus/dbus.c:579:25: branch_true: ...to here
vlc-3.0.21/modules/control/dbus/dbus.c:590:13: call_function: inlined call to ‘vlc_dictionary_insert’ from ‘ProcessEvents’
#  397|   static inline void vlc_dictionary_init( vlc_dictionary_t * p_dict, int i_size )
#  398|   {
#  399|->     p_dict->p_entries = NULL;
#  400|   
#  401|       if( i_size > 0 )

Error: GCC_ANALYZER_WARNING (CWE-476): [#def50]
vlc-3.0.21/modules/../include/vlc_arrays.h:532:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_entry’
vlc-3.0.21/modules/demux/mpeg/ts_si.c:696:13: enter_function: entry to ‘ARIB_CDT_RawCallback’
vlc-3.0.21/modules/demux/mpeg/ts_si.c:704:12: branch_true: following ‘true’ branch (when ‘p_section’ is non-NULL)...
vlc-3.0.21/modules/demux/mpeg/ts_si.c:706:24: branch_true: ...to here
vlc-3.0.21/modules/demux/mpeg/ts_si.c:709:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/mpeg/ts_si.c:714:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/mpeg/ts_si.c:719:40: branch_false: ...to here
vlc-3.0.21/modules/demux/mpeg/ts_si.c:722:16: branch_true: following ‘true’ branch (when ‘i_dmb > 7’)...
vlc-3.0.21/modules/demux/mpeg/ts_si.c:724:21: branch_true: ...to here
vlc-3.0.21/modules/demux/mpeg/ts_si.c:728:15: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/demux/mpeg/ts_si.c:731:27: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/mpeg/ts_si.c:733:35: branch_true: ...to here
vlc-3.0.21/modules/demux/mpeg/ts_si.c:734:19: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/mpeg/ts_si.c:737:23: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/mpeg/ts_si.c:741:30: branch_true: ...to here
vlc-3.0.21/modules/demux/mpeg/ts_si.c:741:27: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/mpeg/ts_si.c:742:29: branch_true: ...to here
vlc-3.0.21/modules/demux/mpeg/ts_si.c:741:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/mpeg/ts_si.c:744:57: branch_true: ...to here
vlc-3.0.21/modules/demux/mpeg/ts_si.c:744:57: call_function: calling ‘vlc_input_attachment_New’ from ‘ARIB_CDT_RawCallback’
vlc-3.0.21/modules/demux/mpeg/ts_si.c:744:57: return_function: returning to ‘ARIB_CDT_RawCallback’ from ‘vlc_input_attachment_New’
vlc-3.0.21/modules/demux/mpeg/ts_si.c:746:31: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/mpeg/ts_si.c:748:33: branch_true: ...to here
vlc-3.0.21/modules/demux/mpeg/ts_si.c:748:33: call_function: inlined call to ‘vlc_dictionary_insert’ from ‘ARIB_CDT_RawCallback’
#  530|   
#  531|       p_entry = (vlc_dictionary_entry_t *)malloc(sizeof(*p_entry));
#  532|->     p_entry->psz_key = strdup( psz_key );
#  533|       p_entry->p_value = p_value;
#  534|       p_entry->p_next = p_dict->p_entries[i_pos];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
vlc-3.0.21/modules/../include/vlc_arrays.h:566:1: warning[-Wanalyzer-malloc-leak]: leak of ‘**p_filter.p_sys.fallback_map.p_entries’
vlc-3.0.21/modules/text_renderer/freetype/fonts/fontconfig.c:201:15: enter_function: entry to ‘FontConfig_GetFallbacks’
vlc-3.0.21/modules/text_renderer/freetype/fonts/fontconfig.c:212:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/text_renderer/freetype/fonts/fontconfig.c:215:46: branch_false: ...to here
vlc-3.0.21/modules/text_renderer/freetype/fonts/fontconfig.c:217:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/text_renderer/freetype/fonts/fontconfig.c:223:9: branch_false: ...to here
vlc-3.0.21/modules/text_renderer/freetype/fonts/fontconfig.c:231:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/text_renderer/freetype/fonts/fontconfig.c:233:9: branch_true: ...to here
vlc-3.0.21/modules/text_renderer/freetype/fonts/fontconfig.c:236:11: branch_true: following ‘true’ branch...
 branch_true: ...to here
vlc-3.0.21/modules/text_renderer/freetype/fonts/fontconfig.c:238:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/text_renderer/freetype/fonts/fontconfig.c:240:23: branch_true: ...to here
vlc-3.0.21/modules/text_renderer/freetype/fonts/fontconfig.c:245:19: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/text_renderer/freetype/fonts/fontconfig.c:247:44: branch_true: ...to here
vlc-3.0.21/modules/text_renderer/freetype/fonts/fontconfig.c:250:23: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/text_renderer/freetype/fonts/fontconfig.c:260:21: branch_false: ...to here
vlc-3.0.21/modules/text_renderer/freetype/fonts/fontconfig.c:268:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/text_renderer/freetype/fonts/fontconfig.c:269:9: call_function: inlined call to ‘vlc_dictionary_insert’ from ‘FontConfig_GetFallbacks’
#  564|           }
#  565|       }
#  566|-> }
#  567|   
#  568|   static inline void

Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
vlc-3.0.21/modules/../include/vlc_arrays.h:566:1: warning[-Wanalyzer-malloc-leak]: leak of ‘p_entry’
vlc-3.0.21/modules/services_discovery/avahi.c:228:13: enter_function: entry to ‘resolve_callback’
vlc-3.0.21/modules/services_discovery/avahi.c:248:7: branch_false: following ‘false’ branch (when ‘event != 1’)...
vlc-3.0.21/modules/services_discovery/avahi.c:254:12: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/avahi.c:254:12: branch_true: following ‘true’ branch (when ‘event == 0’)...
vlc-3.0.21/modules/services_discovery/avahi.c:257:15: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/avahi.c:266:11: branch_false: following ‘false’ branch (when ‘protocol != 1’)...
vlc-3.0.21/modules/services_discovery/avahi.c:275:9: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/avahi.c:275:34: branch_true: following ‘true’ branch (when ‘i != 6’)...
vlc-3.0.21/modules/services_discovery/avahi.c:277:31: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/avahi.c:275:34: branch_true: following ‘true’ branch (when ‘i != 6’)...
vlc-3.0.21/modules/services_discovery/avahi.c:277:31: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/avahi.c:284:11: branch_false: following ‘false’ branch (when ‘psz_protocol’ is non-NULL)...
vlc-3.0.21/modules/services_discovery/avahi.c:291:13: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/avahi.c:291:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/services_discovery/avahi.c:293:37: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/avahi.c:293:37: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/services_discovery/avahi.c:294:13: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/avahi.c:294:13: call_function: calling ‘add_renderer’ from ‘resolve_callback’
#  564|           }
#  565|       }
#  566|-> }
#  567|   
#  568|   static inline void

Error: GCC_ANALYZER_WARNING (CWE-457): [#def53]
vlc-3.0.21/modules/../include/vlc_bits.h:202:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*s_1(D)->p’
vlc-3.0.21/modules/packetizer/av1_obu.c:619:8: enter_function: entry to ‘AV1_create_DecoderConfigurationRecord’
vlc-3.0.21/modules/packetizer/av1_obu.c:629:7: branch_false: following ‘false’ branch (when ‘p_buffer’ is non-NULL)...
vlc-3.0.21/modules/packetizer/av1_obu.c:633:5: call_function: inlined call to ‘bs_write_init’ from ‘AV1_create_DecoderConfigurationRecord’
vlc-3.0.21/modules/packetizer/av1_obu.c:634:5: call_function: inlined call to ‘bs_write’ from ‘AV1_create_DecoderConfigurationRecord’
#  200|           if( ( i_bits >> i_count )&0x01 )
#  201|           {
#  202|->             *s->p |= 1 << ( s->i_left - 1 );
#  203|           }
#  204|           else

Error: GCC_ANALYZER_WARNING (CWE-457): [#def54]
vlc-3.0.21/modules/../include/vlc_bits.h:206:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*s_1(D)->p’
vlc-3.0.21/modules/packetizer/av1_obu.c:619:8: enter_function: entry to ‘AV1_create_DecoderConfigurationRecord’
vlc-3.0.21/modules/packetizer/av1_obu.c:629:7: branch_false: following ‘false’ branch (when ‘p_buffer’ is non-NULL)...
vlc-3.0.21/modules/packetizer/av1_obu.c:633:5: call_function: inlined call to ‘bs_write_init’ from ‘AV1_create_DecoderConfigurationRecord’
vlc-3.0.21/modules/packetizer/av1_obu.c:634:5: call_function: inlined call to ‘bs_write’ from ‘AV1_create_DecoderConfigurationRecord’
vlc-3.0.21/modules/packetizer/av1_obu.c:634:5: call_function: inlined call to ‘bs_write’ from ‘AV1_create_DecoderConfigurationRecord’
vlc-3.0.21/modules/packetizer/av1_obu.c:635:5: call_function: inlined call to ‘bs_write’ from ‘AV1_create_DecoderConfigurationRecord’
 branch_false: ...to here
vlc-3.0.21/modules/packetizer/av1_obu.c:635:5: call_function: inlined call to ‘bs_write’ from ‘AV1_create_DecoderConfigurationRecord’
#  204|           else
#  205|           {
#  206|->             *s->p &= ~( 1 << ( s->i_left - 1 ) );
#  207|           }
#  208|           s->i_left--;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def55]
vlc-3.0.21/modules/../include/vlc_block_helper.h:308:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p_block’
vlc-3.0.21/modules/packetizer/dirac.c:1235:17: enter_function: entry to ‘Packetize’
vlc-3.0.21/modules/packetizer/dirac.c:1267:24: call_function: calling ‘dirac_DoSync’ from ‘Packetize’
#  306|        * We first look for an occurrence of the 1st startcode byte and
#  307|        * if found, we do a more thorough check. */
#  308|->     i_size += p_block->i_buffer;
#  309|       *pi_offset -= i_size;
#  310|       i_match = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def56]
vlc-3.0.21/modules/../include/vlc_charset.h:105:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘str’
vlc-3.0.21/modules/access/http.c:461:12: enter_function: entry to ‘ReadICYMeta’
vlc-3.0.21/modules/access/http.c:470:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/http.c:472:9: branch_false: ...to here
vlc-3.0.21/modules/access/http.c:472:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/http.c:474:24: branch_false: ...to here
vlc-3.0.21/modules/access/http.c:478:22: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/http.c:481:71: branch_true: ...to here
vlc-3.0.21/modules/access/http.c:481:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/http.c:495:7: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
vlc-3.0.21/modules/access/http.c:497:9: branch_true: ...to here
vlc-3.0.21/modules/access/http.c:511:15: branch_true: following ‘true’ branch (when ‘psz’ is non-NULL)...
vlc-3.0.21/modules/access/http.c:511:23: branch_true: ...to here
vlc-3.0.21/modules/access/http.c:518:29: acquire_memory: this call could return NULL
vlc-3.0.21/modules/access/http.c:519:36: call_function: calling ‘EnsureUTF8’ from ‘ReadICYMeta’
#  103|           else
#  104|           {
#  105|->             *str++ = '?';
#  106|               ret = NULL;
#  107|           }

Error: COMPILER_WARNING: [#def57]
vlc-3.0.21/modules/../include/vlc_common.h:115:10: warning[warning]: ‘unreachable’ redefined
#  113|   # define likely(p)     __builtin_expect(!!(p), 1)
#  114|   # define unlikely(p)   __builtin_expect(!!(p), 0)
#  115|-> # define unreachable() __builtin_unreachable()
#  116|   #else
#  117|   # define likely(p)     (!!(p))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
vlc-3.0.21/modules/../include/vlc_common.h:821:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ParseFlacPicture(p_picture,  vlc_b64_decode_binary(&p_picture,  psz_comment + 23), *i_attachments,  i_cover_score,  i_cover_idx)’
vlc-3.0.21/modules/demux/xiph_metadata.c:350:6: enter_function: entry to ‘vorbis_ParseComment’
vlc-3.0.21/modules/demux/xiph_metadata.c:358:7: branch_false: following ‘false’ branch (when ‘i_data > 7’)...
vlc-3.0.21/modules/demux/xiph_metadata.c:361:30: call_function: inlined call to ‘GetDWLE’ from ‘vorbis_ParseComment’
vlc-3.0.21/modules/demux/xiph_metadata.c:363:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:366:5: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:368:7: branch_false: following ‘false’ branch (when ‘i_data > 3’)...
vlc-3.0.21/modules/demux/xiph_metadata.c:371:26: call_function: inlined call to ‘GetDWLE’ from ‘vorbis_ParseComment’
vlc-3.0.21/modules/demux/xiph_metadata.c:373:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:389:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:391:33: call_function: inlined call to ‘GetDWLE’ from ‘vorbis_ParseComment’
vlc-3.0.21/modules/demux/xiph_metadata.c:393:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:396:11: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:396:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:399:37: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:401:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:404:9: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:407:9: call_function: calling ‘EnsureUTF8’ from ‘vorbis_ParseComment’
vlc-3.0.21/modules/demux/xiph_metadata.c:407:9: return_function: returning to ‘vorbis_ParseComment’ from ‘EnsureUTF8’
vlc-3.0.21/modules/demux/xiph_metadata.c:444:9: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:445:14: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:445:14: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:446:14: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:446:14: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:447:14: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:447:14: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:448:14: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:448:14: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:449:19: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:449:18: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:469:14: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:471:14: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:472:14: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:472:14: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:473:14: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:473:14: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:474:14: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:474:14: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:475:14: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:475:14: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:476:14: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:476:14: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:477:14: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:477:14: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:478:14: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:478:14: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:479:19: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:479:16: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:481:15: branch_true: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:481:15: branch_false: following ‘false’ branch (when ‘attachments’ is non-NULL)...
vlc-3.0.21/modules/demux/xiph_metadata.c:485:64: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:486:48: call_function: calling ‘ParseFlacPicture’ from ‘vorbis_ParseComment’
vlc-3.0.21/modules/demux/xiph_metadata.c:486:48: return_function: returning to ‘vorbis_ParseComment’ from ‘ParseFlacPicture’
vlc-3.0.21/modules/demux/xiph_metadata.c:489:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:491:17: branch_true: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:491:17: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:491:17: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:77:12: call_function: inlined call to ‘U32_AT’ from ‘ParseFlacPicture’
#  819|       uint32_t x;
#  820|   
#  821|->     memcpy (&x, p, sizeof (x));
#  822|       return ntoh32 (x);
#  823|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def59]
vlc-3.0.21/modules/../include/vlc_common.h:821:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*p_track.fmt.p_extra’
vlc-3.0.21/modules/demux/mp4/essetup.c:95:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/mp4/essetup.c:97:32: branch_true: ...to here
vlc-3.0.21/modules/demux/mp4/essetup.c:97:32: acquire_memory: this call could return NULL
vlc-3.0.21/modules/demux/mp4/essetup.c:101:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/mp4/essetup.c:102:13: branch_true: ...to here
vlc-3.0.21/modules/demux/mp4/essetup.c:101:9: branch_true: following ‘true’ branch...
 branch_true: ...to here
vlc-3.0.21/modules/demux/mp4/essetup.c:104:25: branch_true: following ‘true’ branch (when ‘i != 16’)...
vlc-3.0.21/modules/demux/mp4/essetup.c:107:21: branch_true: ...to here
vlc-3.0.21/modules/demux/mp4/essetup.c:107:21: call_function: inlined call to ‘U32_AT’ from ‘SetupESDS’
#  819|       uint32_t x;
#  820|   
#  821|->     memcpy (&x, p, sizeof (x));
#  822|       return ntoh32 (x);
#  823|   }

Error: GCC_ANALYZER_WARNING: [#def60]
vlc-3.0.21/modules/../include/vlc_common.h:994:17: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
vlc-3.0.21/modules/video_filter/gaussianblur.c:106:13: enter_function: entry to ‘gaussianblur_InitDistribution’
vlc-3.0.21/modules/video_filter/gaussianblur.c:110:31: call_function: calling ‘xmalloc’ from ‘gaussianblur_InitDistribution’
#  992|   static inline void *xmalloc(size_t len)
#  993|   {
#  994|->     void *ptr = malloc(len);
#  995|       if (unlikely(ptr == NULL && len > 0))
#  996|           abort();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
vlc-3.0.21/modules/../include/vlc_common.h:995:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(16)’
vlc-3.0.21/modules/demux/flac.c:666:13: enter_function: entry to ‘ParseHeaders’
vlc-3.0.21/modules/demux/flac.c:674:27: call_function: calling ‘xmalloc’ from ‘ParseHeaders’
vlc-3.0.21/modules/demux/flac.c:674:27: return_function: returning to ‘ParseHeaders’ from ‘xmalloc’
vlc-3.0.21/modules/demux/flac.c:677:5: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/flac.c:677:5: branch_false: ...to here
vlc-3.0.21/modules/../include/vlc_common.h:995:9: danger: ‘xmalloc(16)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/3)
#  993|   {
#  994|       void *ptr = malloc(len);
#  995|->     if (unlikely(ptr == NULL && len > 0))
#  996|           abort();
#  997|       return ptr;

Error: GCC_ANALYZER_WARNING (CWE-415): [#def62]
vlc-3.0.21/modules/../include/vlc_common.h:1002:18: warning[-Wanalyzer-double-free]: double-‘free’ of ‘ptr’
vlc-3.0.21/modules/audio_output/alsa.c:722:12: enter_function: entry to ‘EnumDevices’
vlc-3.0.21/modules/audio_output/alsa.c:728:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/audio_output/alsa.c:762:8: branch_false: following ‘false’ branch (when ‘hinted_default == 0’)...
vlc-3.0.21/modules/audio_output/alsa.c:764:30: branch_false: ...to here
vlc-3.0.21/modules/audio_output/alsa.c:764:15: call_function: passing freed pointer ‘ids’ in call to ‘xrealloc’ from ‘EnumDevices’
vlc-3.0.21/modules/audio_output/alsa.c:764:15: return_function: returning to ‘EnumDevices’ from ‘xrealloc’
vlc-3.0.21/modules/audio_output/alsa.c:765:17: call_function: passing freed pointer ‘names’ in call to ‘xrealloc’ from ‘EnumDevices’
# 1000|   static inline void *xrealloc(void *ptr, size_t len)
# 1001|   {
# 1002|->     void *nptr = realloc(ptr, len);
# 1003|       if (unlikely(nptr == NULL && len > 0))
# 1004|           abort();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
vlc-3.0.21/modules/../include/vlc_input.h:186:9: warning[-Wanalyzer-malloc-leak]: leak of ‘vlc_input_attachment_New(*<unknown>.value, "application/x-truetype-font", 0, *cp.extradata, (long unsigned int)*cp.extradata_size)’
vlc-3.0.21/modules/demux/avformat/demux.c:158:5: enter_function: entry to ‘avformat_OpenDemux’
vlc-3.0.21/modules/demux/avformat/demux.c:172:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/avformat/demux.c:178:22: branch_false: ...to here
vlc-3.0.21/modules/demux/avformat/demux.c:179:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/avformat/demux.c:182:5: branch_false: ...to here
vlc-3.0.21/modules/demux/avformat/demux.c:205:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/avformat/demux.c:213:15: branch_false: ...to here
vlc-3.0.21/modules/demux/avformat/demux.c:217:7: branch_false: following ‘false’ branch (when ‘fmt’ is non-NULL)...
vlc-3.0.21/modules/demux/avformat/demux.c:224:10: branch_false: ...to here
vlc-3.0.21/modules/demux/avformat/demux.c:281:7: branch_false: following ‘false’ branch (when ‘p_sys’ is non-NULL)...
vlc-3.0.21/modules/demux/avformat/demux.c:286:5: branch_false: ...to here
vlc-3.0.21/modules/demux/avformat/demux.c:295:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/avformat/demux.c:302:17: branch_false: ...to here
vlc-3.0.21/modules/demux/avformat/demux.c:303:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/avformat/demux.c:311:39: branch_false: ...to here
vlc-3.0.21/modules/demux/avformat/demux.c:313:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/avformat/demux.c:321:31: branch_false: ...to here
vlc-3.0.21/modules/demux/avformat/demux.c:324:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/avformat/demux.c:335:5: branch_false: ...to here
vlc-3.0.21/modules/demux/avformat/demux.c:364:7: branch_false: following ‘false’ branch (when ‘nb_streams != 0’)...
vlc-3.0.21/modules/demux/avformat/demux.c:370:21: branch_false: ...to here
vlc-3.0.21/modules/demux/avformat/demux.c:371:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/avformat/demux.c:376:5: branch_false: ...to here
vlc-3.0.21/modules/demux/avformat/demux.c:384:26: branch_true: following ‘true’ branch (when ‘i < nb_streams’)...
vlc-3.0.21/modules/demux/avformat/demux.c:386:45: branch_true: ...to here
vlc-3.0.21/modules/demux/avformat/demux.c:393:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/avformat/demux.c:396:42: branch_false: ...to here
vlc-3.0.21/modules/demux/avformat/demux.c:541:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/avformat/demux.c:546:21: branch_true: ...to here
vlc-3.0.21/modules/demux/avformat/demux.c:546:19: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/avformat/demux.c:548:64: branch_true: ...to here
vlc-3.0.21/modules/demux/avformat/demux.c:549:23: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/avformat/demux.c:551:40: call_function: calling ‘vlc_input_attachment_New’ from ‘avformat_OpenDemux’
vlc-3.0.21/modules/demux/avformat/demux.c:551:40: return_function: returning to ‘avformat_OpenDemux’ from ‘vlc_input_attachment_New’
vlc-3.0.21/modules/demux/avformat/demux.c:554:27: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/avformat/demux.c:555:29: branch_true: ...to here
vlc-3.0.21/modules/../include/vlc_input.h:186:9: danger: ‘vlc_input_attachment_New(*<unknown>.value, "application/x-truetype-font", 0, *cp.extradata, (long unsigned int)*cp.extradata_size)’ leaks here; was allocated at [(38)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/37)
#  184|   {
#  185|       input_attachment_t *a = (input_attachment_t *)malloc( sizeof (*a) );
#  186|->     if( unlikely(a == NULL) )
#  187|           return NULL;
#  188|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
vlc-3.0.21/modules/../include/vlc_variables.h:613:12: warning[-Wanalyzer-malloc-leak]: leak of ‘vlc_input_title_New()’
vlc-3.0.21/modules/access/vdr.c:787:13: enter_function: entry to ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:791:23: call_function: calling ‘OpenRelativeFile’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:791:23: return_function: returning to ‘ImportMarks’ from ‘OpenRelativeFile’
vlc-3.0.21/modules/access/vdr.c:792:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:795:23: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:795:23: call_function: calling ‘OpenRelativeFile’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:795:23: return_function: returning to ‘ImportMarks’ from ‘OpenRelativeFile’
vlc-3.0.21/modules/access/vdr.c:796:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:804:9: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:804:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:810:29: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:813:30: call_function: calling ‘vlc_input_title_New’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:813:30: return_function: returning to ‘ImportMarks’ from ‘vlc_input_title_New’
vlc-3.0.21/modules/access/vdr.c:814:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:820:33: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:839:12: call_function: calling ‘ReadLine’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:839:12: return_function: returning to ‘ImportMarks’ from ‘ReadLine’
vlc-3.0.21/modules/access/vdr.c:839:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:841:27: branch_true: ...to here
vlc-3.0.21/modules/access/vdr.c:841:27: call_function: calling ‘ParseFrameNumber’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:841:27: return_function: returning to ‘ImportMarks’ from ‘ParseFrameNumber’
vlc-3.0.21/modules/access/vdr.c:844:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:845:24: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:844:13: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:850:23: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:857:14: call_function: calling ‘ReadIndexRecord’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:857:14: return_function: returning to ‘ImportMarks’ from ‘ReadIndexRecord’
vlc-3.0.21/modules/access/vdr.c:857:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:860:13: branch_true: ...to here
vlc-3.0.21/modules/access/vdr.c:860:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:864:27: call_function: calling ‘vlc_seekpoint_New’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:864:27: return_function: returning to ‘ImportMarks’ from ‘vlc_seekpoint_New’
vlc-3.0.21/modules/access/vdr.c:865:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:867:63: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:870:9: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:870:9: branch_true: ...to here
vlc-3.0.21/modules/../include/vlc_variables.h:613:12: danger: ‘vlc_input_title_New()’ leaks here; was allocated at [(20)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/19)
#  611|       if( var_Inherit( obj, name, VLC_VAR_INTEGER, &val ) )
#  612|           val.i_int = 0;
#  613|->     return val.i_int;
#  614|   }
#  615|   #define var_InheritInteger(o, n) var_InheritInteger(VLC_OBJECT(o), n)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def65]
vlc-3.0.21/modules/./access/../codec/substext.h:78:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘sys’
vlc-3.0.21/modules/codec/webvtt/subsvtt.c:1630:13: enter_function: entry to ‘CreateSpuOrNewUpdaterRegion’
vlc-3.0.21/modules/codec/webvtt/subsvtt.c:1636:19: call_function: calling ‘decoder_NewSubpictureText’ from ‘CreateSpuOrNewUpdaterRegion’
#   76|   {
#   77|       memset(p_updtregion, 0, sizeof(*p_updtregion));
#   78|->     p_updtregion->align = SUBPICTURE_ALIGN_BOTTOM;
#   79|       p_updtregion->inner_align = 0;
#   80|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def66]
vlc-3.0.21/modules/./access/../meta_engine/ID3Meta.h:91:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pb_updated’
vlc-3.0.21/modules/demux/mp4/meta.c:515:6: enter_function: entry to ‘SetupMeta’
vlc-3.0.21/modules/demux/mp4/meta.c:521:46: branch_true: following ‘true’ branch (when ‘p_box’ is non-NULL)...
vlc-3.0.21/modules/demux/mp4/meta.c:523:9: branch_true: ...to here
vlc-3.0.21/modules/demux/mp4/meta.c:533:17: call_function: calling ‘SetupID3v2Meta’ from ‘SetupMeta’
#   89|                   vlc_meta_Set( p_meta, vlc_meta_ArtworkURL, p_alloc );
#   90|                   free( p_alloc );
#   91|->                 *pb_updated = true;
#   92|               }
#   93|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
vlc-3.0.21/modules/access/bluray.c:2849:14: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.events_delayed.p_elems’
vlc-3.0.21/modules/access/bluray.c:2975:12: enter_function: entry to ‘blurayDemux’
vlc-3.0.21/modules/access/bluray.c:2997:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/bluray.c:3002:9: branch_false: ...to here
vlc-3.0.21/modules/access/bluray.c:3002:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/bluray.c:3003:40: branch_false: ...to here
vlc-3.0.21/modules/access/bluray.c:3004:16: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/bluray.c:3005:13: branch_true: ...to here
vlc-3.0.21/modules/access/bluray.c:3005:13: call_function: calling ‘blurayHandleEvent’ from ‘blurayDemux’
# 2847|                blurayOnStreamSelectedEvent(p_demux, e->event, e->param);
# 2848|            else
# 2849|->              ARRAY_APPEND(p_sys->events_delayed, *e);
# 2850|           break;
# 2851|       case BD_EVENT_IG_STREAM:

Error: COMPILER_WARNING: [#def68]
vlc-3.0.21/modules/access/cdda.c: scope_hint: In function ‘AccessControl’
vlc-3.0.21/modules/access/cdda.c:667:50: warning[-Wformat-truncation=]: ‘%u’ directive output may be truncated writing between 1 and 10 bytes into a region of size 5
#  667 |             snprintf(yearbuf, sizeof (yearbuf), "%u", year);
#      |                                                  ^~
vlc-3.0.21/modules/access/cdda.c:667:49: note: directive argument in the range [1, 4294967295]
#  667 |             snprintf(yearbuf, sizeof (yearbuf), "%u", year);
#      |                                                 ^~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 2 and 11 bytes into a destination of size 5
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  665|               char yearbuf[5];
#  666|   
#  667|->             snprintf(yearbuf, sizeof (yearbuf), "%u", year);
#  668|               vlc_meta_SetDate(meta, yearbuf);
#  669|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
vlc-3.0.21/modules/access/dc1394.c:709:13: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.video_device’
vlc-3.0.21/modules/access/dc1394.c:531:52: branch_true: following ‘true’ branch (when ‘token’ is non-NULL)...
vlc-3.0.21/modules/access/dc1394.c:534:13: branch_true: ...to here
vlc-3.0.21/modules/access/dc1394.c:534:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dc1394.c:578:13: branch_false: ...to here
vlc-3.0.21/modules/access/dc1394.c:578:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dc1394.c:613:18: branch_false: ...to here
vlc-3.0.21/modules/access/dc1394.c:613:16: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dc1394.c:641:18: branch_false: ...to here
vlc-3.0.21/modules/access/dc1394.c:641:16: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dc1394.c:646:18: branch_false: ...to here
vlc-3.0.21/modules/access/dc1394.c:646:16: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dc1394.c:660:18: branch_false: ...to here
vlc-3.0.21/modules/access/dc1394.c:660:16: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dc1394.c:691:18: branch_false: ...to here
vlc-3.0.21/modules/access/dc1394.c:691:16: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dc1394.c:705:18: branch_false: ...to here
vlc-3.0.21/modules/access/dc1394.c:705:16: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/dc1394.c:707:13: branch_true: ...to here
vlc-3.0.21/modules/access/dc1394.c:708:35: acquire_memory: allocated here
vlc-3.0.21/modules/access/dc1394.c:709:13: danger: ‘*p_sys.video_device’ leaks here; was allocated at [(19)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/18)
#  707|               token += strlen("vdev=");
#  708|               p_sys->video_device = strdup(token);
#  709|->             msg_Dbg( p_demux, "Using video device '%s'.", token );
#  710|           }
#  711|           else if( strncmp( token, "focus=", strlen("focus=" ) ) == 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def70]
vlc-3.0.21/modules/access/dtv/en50221.c:377:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc((long unsigned int)(i_size + 4))’
vlc-3.0.21/modules/access/dtv/en50221.c:2178:5: enter_function: entry to ‘en50221_SetCAPMT’
vlc-3.0.21/modules/access/dtv/en50221.c:2183:27: branch_true: following ‘true’ branch (when ‘i != 24’)...
vlc-3.0.21/modules/access/dtv/en50221.c:2185:14: branch_true: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2185:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/dtv/en50221.c:2186:18: branch_true: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2185:14: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/dtv/en50221.c:2191:16: branch_true: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2191:16: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dtv/en50221.c:2193:17: branch_false: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2193:17: call_function: calling ‘en50221_capmt_Delete’ from ‘en50221_SetCAPMT’
vlc-3.0.21/modules/access/dtv/en50221.c:2193:17: return_function: returning to ‘en50221_SetCAPMT’ from ‘en50221_capmt_Delete’
vlc-3.0.21/modules/access/dtv/en50221.c:2207:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dtv/en50221.c:2219:10: branch_false: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2219:8: branch_true: following ‘true’ branch...
 branch_true: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2221:31: branch_true: following ‘true’ branch (when ‘i != 33’)...
vlc-3.0.21/modules/access/dtv/en50221.c:2223:36: branch_true: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2223:16: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/dtv/en50221.c:2226:22: branch_true: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2226:20: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dtv/en50221.c:2228:25: branch_false: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2228:25: branch_true: following ‘true’ branch (when ‘b_update != 0’)...
vlc-3.0.21/modules/access/dtv/en50221.c:2229:21: branch_true: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2229:21: call_function: calling ‘CAPMTDelete’ from ‘en50221_SetCAPMT’
#  375|       uint8_t i_slot = p_cam->p_sessions[i_session_id - 1].i_slot;
#  376|   
#  377|->     *p++ = ST_SESSION_NUMBER;
#  378|       *p++ = 0x02;
#  379|       *p++ = (i_session_id >> 8);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def71]
vlc-3.0.21/modules/access/dtv/en50221.c:814:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc(i_size + 12)’
vlc-3.0.21/modules/access/dtv/en50221.c:2178:5: enter_function: entry to ‘en50221_SetCAPMT’
vlc-3.0.21/modules/access/dtv/en50221.c:2183:27: branch_true: following ‘true’ branch (when ‘i != 24’)...
vlc-3.0.21/modules/access/dtv/en50221.c:2185:14: branch_true: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2185:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/dtv/en50221.c:2186:18: branch_true: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2185:14: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/dtv/en50221.c:2191:16: branch_true: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2191:16: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dtv/en50221.c:2193:17: branch_false: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2193:17: call_function: calling ‘en50221_capmt_Delete’ from ‘en50221_SetCAPMT’
vlc-3.0.21/modules/access/dtv/en50221.c:2193:17: return_function: returning to ‘en50221_SetCAPMT’ from ‘en50221_capmt_Delete’
vlc-3.0.21/modules/access/dtv/en50221.c:2207:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dtv/en50221.c:2219:10: branch_false: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2219:8: branch_true: following ‘true’ branch...
 branch_true: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2221:31: branch_true: following ‘true’ branch (when ‘i != 33’)...
vlc-3.0.21/modules/access/dtv/en50221.c:2223:36: branch_true: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2223:16: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/dtv/en50221.c:2226:22: branch_true: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2226:20: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dtv/en50221.c:2228:25: branch_false: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2228:25: branch_true: following ‘true’ branch (when ‘b_update != 0’)...
vlc-3.0.21/modules/access/dtv/en50221.c:2229:21: branch_true: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2229:21: call_function: calling ‘CAPMTDelete’ from ‘en50221_SetCAPMT’
#  812|       int i_ret;
#  813|   
#  814|->     *p++ = (i_tag >> 16);
#  815|       *p++ = (i_tag >> 8) & 0xff;
#  816|       *p++ = i_tag & 0xff;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def72]
vlc-3.0.21/modules/access/dtv/en50221.c:1110:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_data’
vlc-3.0.21/modules/access/dtv/en50221.c:2178:5: enter_function: entry to ‘en50221_SetCAPMT’
vlc-3.0.21/modules/access/dtv/en50221.c:2183:27: branch_true: following ‘true’ branch (when ‘i != 24’)...
vlc-3.0.21/modules/access/dtv/en50221.c:2185:14: branch_true: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2185:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/dtv/en50221.c:2186:18: branch_true: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2185:14: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/dtv/en50221.c:2191:16: branch_true: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2191:16: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dtv/en50221.c:2193:17: branch_false: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2193:17: call_function: calling ‘en50221_capmt_Delete’ from ‘en50221_SetCAPMT’
vlc-3.0.21/modules/access/dtv/en50221.c:2193:17: return_function: returning to ‘en50221_SetCAPMT’ from ‘en50221_capmt_Delete’
vlc-3.0.21/modules/access/dtv/en50221.c:2207:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dtv/en50221.c:2219:10: branch_false: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2219:8: branch_true: following ‘true’ branch...
 branch_true: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2221:31: branch_true: following ‘true’ branch (when ‘i != 33’)...
vlc-3.0.21/modules/access/dtv/en50221.c:2223:36: branch_true: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2223:16: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/dtv/en50221.c:2226:22: branch_true: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2226:20: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dtv/en50221.c:2228:25: branch_false: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2228:25: branch_true: following ‘true’ branch (when ‘b_update != 0’)...
vlc-3.0.21/modules/access/dtv/en50221.c:2229:21: branch_true: ...to here
vlc-3.0.21/modules/access/dtv/en50221.c:2229:21: call_function: calling ‘CAPMTDelete’ from ‘en50221_SetCAPMT’
# 1108|           p_data = xmalloc( 6 );
# 1109|   
# 1110|->     p_data[0] = i_list_mgt;
# 1111|       p_data[1] = p_info->i_program_number >> 8;
# 1112|       p_data[2] = p_info->i_program_number & 0xff;

Error: COMPILER_WARNING (CWE-457): [#def73]
vlc-3.0.21/modules/access/dtv/linux.c: scope_hint: In function ‘dvb_enum_systems’
vlc-3.0.21/modules/access/dtv/linux.c:606:25: warning[-Wmaybe-uninitialized]: ‘systems’ may be used uninitialized
#  606 |                 systems |= systems << 1; /* DVB_foo -> DVB_foo|DVB_foo2 */
#      |                 ~~~~~~~~^~~~~~~~~~~~~~~
vlc-3.0.21/modules/access/dtv/linux.c:520:14: note: ‘systems’ was declared here
#  520 |     unsigned systems = 0;
#      |              ^~~~~~~
#  604|           case FE_OFDM:
#  605|               if (info.caps & FE_CAN_2G_MODULATION)
#  606|->                 systems |= systems << 1; /* DVB_foo -> DVB_foo|DVB_foo2 */
#  607|           default:
#  608|               break;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def74]
vlc-3.0.21/modules/access/dtv/linux.c:606:28: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘systems’
vlc-3.0.21/modules/access/dtv/linux.c:480:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dtv/linux.c:483:25: branch_false: ...to here
vlc-3.0.21/modules/access/dtv/linux.c:492:8: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/dtv/linux.c:494:10: branch_true: ...to here
vlc-3.0.21/modules/access/dtv/linux.c:552:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dtv/linux.c:559:5: branch_false: ...to here
vlc-3.0.21/modules/access/dtv/linux.c:572:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dtv/linux.c:578:5: branch_false: ...to here
 branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dtv/linux.c:595:9: branch_false: ...to here
vlc-3.0.21/modules/access/dtv/linux.c:600:5: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/dtv/linux.c:602:9: branch_true: ...to here
vlc-3.0.21/modules/access/dtv/linux.c:605:16: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/dtv/linux.c:606:28: branch_true: ...to here
vlc-3.0.21/modules/access/dtv/linux.c:606:28: danger: use of uninitialized value ‘systems’ here
#  604|           case FE_OFDM:
#  605|               if (info.caps & FE_CAN_2G_MODULATION)
#  606|->                 systems |= systems << 1; /* DVB_foo -> DVB_foo|DVB_foo2 */
#  607|           default:
#  608|               break;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def75]
vlc-3.0.21/modules/access/dtv/linux.c:613:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘systems’
vlc-3.0.21/modules/access/dtv/linux.c:480:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dtv/linux.c:483:25: branch_false: ...to here
vlc-3.0.21/modules/access/dtv/linux.c:492:8: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/dtv/linux.c:494:10: branch_true: ...to here
vlc-3.0.21/modules/access/dtv/linux.c:552:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dtv/linux.c:559:5: branch_false: ...to here
vlc-3.0.21/modules/access/dtv/linux.c:572:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dtv/linux.c:578:5: branch_false: ...to here
 branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dtv/linux.c:595:9: branch_false: ...to here
vlc-3.0.21/modules/access/dtv/linux.c:605:16: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dtv/linux.c:612:8: branch_false: ...to here
vlc-3.0.21/modules/access/dtv/linux.c:612:8: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/dtv/linux.c:613:9: branch_true: ...to here
vlc-3.0.21/modules/access/dtv/linux.c:613:9: danger: use of uninitialized value ‘systems’ here
#  611|       /* ISDB (only terrestrial before DVBv5.5)  */
#  612|       if (info.type == FE_OFDM)
#  613|->         systems |= DTV_DELIVERY_ISDB_T;
#  614|   
#  615|       return systems;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def76]
vlc-3.0.21/modules/access/dvb/access.c:541:12: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘psz_parser’
vlc-3.0.21/modules/access/dvb/access.c:509:21: acquire_memory: this call could return NULL
vlc-3.0.21/modules/access/dvb/access.c:541:12: danger: ‘psz_parser’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  539|       }
#  540|   
#  541|->     while( *psz_parser )
#  542|       {
#  543|           GET_OPTION_INT("adapter")

Error: COMPILER_WARNING (CWE-9001): [#def77]
vlc-3.0.21/modules/access/dvb/linux_dvb.c:688:5: warning[-Wattribute-warning]: call to 'harmful_delay' declared with attribute warning: use proper event handling instead of short delay
#  688 |     msleep(15000);
#      |     ^
#  686|   
#  687|       /* Wait for at least 15 ms. */
#  688|->     msleep(15000);
#  689|   
#  690|       i_val = var_GetInteger( p_access, "dvb-satno" );

Error: COMPILER_WARNING (CWE-9001): [#def78]
vlc-3.0.21/modules/access/dvb/linux_dvb.c:688:5: warning[-Wattribute-warning]: call to ‘harmful_delay’ declared with attribute warning: use proper event handling instead of short delay
#  686|   
#  687|       /* Wait for at least 15 ms. */
#  688|->     msleep(15000);
#  689|   
#  690|       i_val = var_GetInteger( p_access, "dvb-satno" );

Error: COMPILER_WARNING (CWE-9001): [#def79]
vlc-3.0.21/modules/access/dvb/linux_dvb.c:738:5: warning[-Wattribute-warning]: call to 'harmful_delay' declared with attribute warning: use proper event handling instead of short delay
#  738 |     msleep(50000);
#      |     ^
#  736|       }
#  737|   
#  738|->     msleep(50000);
#  739|       return 0;
#  740|   }

Error: COMPILER_WARNING (CWE-9001): [#def80]
vlc-3.0.21/modules/access/dvb/linux_dvb.c:738:5: warning[-Wattribute-warning]: call to ‘harmful_delay’ declared with attribute warning: use proper event handling instead of short delay
#  736|       }
#  737|   
#  738|->     msleep(50000);
#  739|       return 0;
#  740|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def81]
vlc-3.0.21/modules/access/dvb/scan.c:1413:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’
vlc-3.0.21/modules/access/dvb/scan.c:1590:13: enter_function: entry to ‘scan_session_Destroy’
vlc-3.0.21/modules/access/dvb/scan.c:1597:7: branch_true: following ‘true’ branch (when ‘p_pat’ is non-NULL)...
vlc-3.0.21/modules/access/dvb/scan.c:1598:9: branch_true: ...to here
vlc-3.0.21/modules/access/dvb/scan.c:1598:9: call_function: calling ‘ParsePAT’ from ‘scan_session_Destroy’
vlc-3.0.21/modules/access/dvb/scan.c:1598:9: return_function: returning to ‘scan_session_Destroy’ from ‘ParsePAT’
vlc-3.0.21/modules/access/dvb/scan.c:1601:7: branch_true: following ‘true’ branch (when ‘p_nit’ is non-NULL)...
vlc-3.0.21/modules/access/dvb/scan.c:1602:49: branch_true: ...to here
vlc-3.0.21/modules/access/dvb/scan.c:1602:9: call_function: calling ‘ParseNIT’ from ‘scan_session_Destroy’
# 1411|                   }
# 1412|   
# 1413|->                 if ( s->psz_original_network_name == NULL && p_nn )
# 1414|                       s->psz_original_network_name = strndup( (const char*) p_nn->p_data, p_nn->i_length );
# 1415|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def82]
vlc-3.0.21/modules/access/dvdnav.c:1560:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(3)’
vlc-3.0.21/modules/access/dvdnav.c:1513:13: enter_function: entry to ‘ESNew’
vlc-3.0.21/modules/access/dvdnav.c:1516:34: call_function: inlined call to ‘ps_id_to_tk’ from ‘ESNew’
vlc-3.0.21/modules/access/dvdnav.c:1519:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dvdnav.c:1521:9: branch_false: ...to here
vlc-3.0.21/modules/access/dvdnav.c:1521:9: call_function: calling ‘ps_track_fill’ from ‘ESNew’
vlc-3.0.21/modules/access/dvdnav.c:1521:9: return_function: returning to ‘ESNew’ from ‘ps_track_fill’
vlc-3.0.21/modules/access/dvdnav.c:1521:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dvdnav.c:1528:9: branch_false: ...to here
vlc-3.0.21/modules/access/dvdnav.c:1528:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dvdnav.c:1534:12: branch_false: ...to here
vlc-3.0.21/modules/access/dvdnav.c:1534:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/dvdnav.c:1538:13: branch_true: ...to here
vlc-3.0.21/modules/access/dvdnav.c:1557:15: branch_true: following ‘true’ branch (when ‘i_lang != 65535’)...
vlc-3.0.21/modules/access/dvdnav.c:1559:40: branch_true: ...to here
vlc-3.0.21/modules/access/dvdnav.c:1559:40: acquire_memory: this call could return NULL
vlc-3.0.21/modules/access/dvdnav.c:1560:17: danger: ‘malloc(3)’ could be NULL: unchecked value from [(25)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/24)
# 1558|               {
# 1559|                   tk->fmt.psz_language = malloc( 3 );
# 1560|->                 tk->fmt.psz_language[0] = (i_lang >> 8)&0xff;
# 1561|                   tk->fmt.psz_language[1] = (i_lang     )&0xff;
# 1562|                   tk->fmt.psz_language[2] = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def83]
vlc-3.0.21/modules/access/dvdnav.c:1577:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(3)’
vlc-3.0.21/modules/access/dvdnav.c:1513:13: enter_function: entry to ‘ESNew’
vlc-3.0.21/modules/access/dvdnav.c:1516:34: call_function: inlined call to ‘ps_id_to_tk’ from ‘ESNew’
vlc-3.0.21/modules/access/dvdnav.c:1519:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dvdnav.c:1521:9: branch_false: ...to here
vlc-3.0.21/modules/access/dvdnav.c:1521:9: call_function: calling ‘ps_track_fill’ from ‘ESNew’
vlc-3.0.21/modules/access/dvdnav.c:1521:9: return_function: returning to ‘ESNew’ from ‘ps_track_fill’
vlc-3.0.21/modules/access/dvdnav.c:1521:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dvdnav.c:1528:9: branch_false: ...to here
vlc-3.0.21/modules/access/dvdnav.c:1528:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dvdnav.c:1534:12: branch_false: ...to here
vlc-3.0.21/modules/access/dvdnav.c:1534:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dvdnav.c:1570:12: branch_false: ...to here
vlc-3.0.21/modules/access/dvdnav.c:1570:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/dvdnav.c:1573:22: branch_true: ...to here
vlc-3.0.21/modules/access/dvdnav.c:1574:11: branch_true: following ‘true’ branch (when ‘i_lang != 65535’)...
vlc-3.0.21/modules/access/dvdnav.c:1576:36: branch_true: ...to here
vlc-3.0.21/modules/access/dvdnav.c:1576:36: acquire_memory: this call could return NULL
vlc-3.0.21/modules/access/dvdnav.c:1577:13: danger: ‘malloc(3)’ could be NULL: unchecked value from [(27)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/26)
# 1575|           {
# 1576|               tk->fmt.psz_language = malloc( 3 );
# 1577|->             tk->fmt.psz_language[0] = (i_lang >> 8)&0xff;
# 1578|               tk->fmt.psz_language[1] = (i_lang     )&0xff;
# 1579|               tk->fmt.psz_language[2] = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
vlc-3.0.21/modules/access/dvdread.c:1417:25: warning[-Wanalyzer-malloc-leak]: leak of ‘vlc_input_title_New()’
vlc-3.0.21/modules/access/dvdread.c:1393:13: enter_function: entry to ‘DemuxTitles’
vlc-3.0.21/modules/access/dvdread.c:1407:21: branch_true: following ‘true’ branch (when ‘i < i_titles’)...
vlc-3.0.21/modules/access/dvdread.c:1412:22: branch_true: ...to here
vlc-3.0.21/modules/access/dvdread.c:1415:13: call_function: calling ‘vlc_input_title_New’ from ‘DemuxTitles’
vlc-3.0.21/modules/access/dvdread.c:1415:13: return_function: returning to ‘DemuxTitles’ from ‘vlc_input_title_New’
vlc-3.0.21/modules/access/dvdread.c:1417:21: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dvdread.c:1423:9: branch_false: ...to here
vlc-3.0.21/modules/access/dvdread.c:1417:25: danger: ‘vlc_input_title_New()’ leaks here; was allocated at [(6)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/5)
# 1415|           t = vlc_input_title_New();
# 1416|   
# 1417|->         for( j = 0; j < __MAX( i_chapters, 1 ); j++ )
# 1418|           {
# 1419|               s = vlc_seekpoint_New();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
vlc-3.0.21/modules/access/dvdread.c:1420:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/modules/access/dvdread.c:1393:13: enter_function: entry to ‘DemuxTitles’
vlc-3.0.21/modules/access/dvdread.c:1407:21: branch_true: following ‘true’ branch (when ‘i < i_titles’)...
vlc-3.0.21/modules/access/dvdread.c:1412:22: branch_true: ...to here
vlc-3.0.21/modules/access/dvdread.c:1415:13: call_function: calling ‘vlc_input_title_New’ from ‘DemuxTitles’
vlc-3.0.21/modules/access/dvdread.c:1415:13: return_function: returning to ‘DemuxTitles’ from ‘vlc_input_title_New’
vlc-3.0.21/modules/access/dvdread.c:1417:21: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/dvdread.c:1419:17: branch_true: ...to here
vlc-3.0.21/modules/access/dvdread.c:1419:17: call_function: calling ‘vlc_seekpoint_New’ from ‘DemuxTitles’
vlc-3.0.21/modules/access/dvdread.c:1419:17: return_function: returning to ‘DemuxTitles’ from ‘vlc_seekpoint_New’
vlc-3.0.21/modules/access/dvdread.c:1420:13: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dvdread.c:1420:13: branch_false: ...to here
vlc-3.0.21/modules/access/dvdread.c:1420:13: acquire_memory: allocated here
vlc-3.0.21/modules/access/dvdread.c:1420:13: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dvdread.c:1420:13: branch_false: ...to here
vlc-3.0.21/modules/access/dvdread.c:1417:21: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/dvdread.c:1419:17: branch_true: ...to here
vlc-3.0.21/modules/access/dvdread.c:1419:17: call_function: calling ‘vlc_seekpoint_New’ from ‘DemuxTitles’
vlc-3.0.21/modules/access/dvdread.c:1419:17: return_function: returning to ‘DemuxTitles’ from ‘vlc_seekpoint_New’
vlc-3.0.21/modules/access/dvdread.c:1420:13: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/dvdread.c:1420:13: branch_true: ...to here
vlc-3.0.21/modules/access/dvdread.c:1420:13: danger: ‘<unknown>’ leaks here; was allocated at [(18)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/17)
# 1418|           {
# 1419|               s = vlc_seekpoint_New();
# 1420|->             TAB_APPEND( t->i_seekpoint, t->seekpoint, s );
# 1421|           }
# 1422|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
vlc-3.0.21/modules/access/dvdread.c:1420:13: warning[-Wanalyzer-malloc-leak]: leak of ‘vlc_seekpoint_New()’
vlc-3.0.21/modules/access/dvdread.c:1393:13: enter_function: entry to ‘DemuxTitles’
vlc-3.0.21/modules/access/dvdread.c:1407:21: branch_true: following ‘true’ branch (when ‘i < i_titles’)...
vlc-3.0.21/modules/access/dvdread.c:1412:22: branch_true: ...to here
vlc-3.0.21/modules/access/dvdread.c:1415:13: call_function: calling ‘vlc_input_title_New’ from ‘DemuxTitles’
vlc-3.0.21/modules/access/dvdread.c:1415:13: return_function: returning to ‘DemuxTitles’ from ‘vlc_input_title_New’
vlc-3.0.21/modules/access/dvdread.c:1417:21: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/dvdread.c:1419:17: branch_true: ...to here
vlc-3.0.21/modules/access/dvdread.c:1419:17: call_function: calling ‘vlc_seekpoint_New’ from ‘DemuxTitles’
vlc-3.0.21/modules/access/dvdread.c:1419:17: return_function: returning to ‘DemuxTitles’ from ‘vlc_seekpoint_New’
vlc-3.0.21/modules/access/dvdread.c:1420:13: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dvdread.c:1420:13: branch_false: ...to here
vlc-3.0.21/modules/access/dvdread.c:1420:13: danger: ‘vlc_seekpoint_New()’ leaks here; was allocated at [(13)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/12)
# 1418|           {
# 1419|               s = vlc_seekpoint_New();
# 1420|->             TAB_APPEND( t->i_seekpoint, t->seekpoint, s );
# 1421|           }
# 1422|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def87]
vlc-3.0.21/modules/access/dvdread.c:1420:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘vlc_input_title_New()’
vlc-3.0.21/modules/access/dvdread.c:1393:13: enter_function: entry to ‘DemuxTitles’
vlc-3.0.21/modules/access/dvdread.c:1407:21: branch_true: following ‘true’ branch (when ‘i < i_titles’)...
vlc-3.0.21/modules/access/dvdread.c:1412:22: branch_true: ...to here
vlc-3.0.21/modules/access/dvdread.c:1415:13: call_function: calling ‘vlc_input_title_New’ from ‘DemuxTitles’
vlc-3.0.21/modules/access/dvdread.c:1415:13: return_function: returning to ‘DemuxTitles’ from ‘vlc_input_title_New’
vlc-3.0.21/modules/access/dvdread.c:1417:21: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/dvdread.c:1419:17: branch_true: ...to here
vlc-3.0.21/modules/access/dvdread.c:1419:17: call_function: calling ‘vlc_seekpoint_New’ from ‘DemuxTitles’
vlc-3.0.21/modules/access/dvdread.c:1419:17: return_function: returning to ‘DemuxTitles’ from ‘vlc_seekpoint_New’
vlc-3.0.21/modules/access/dvdread.c:1420:13: danger: dereference of NULL ‘vlc_input_title_New()’
# 1418|           {
# 1419|               s = vlc_seekpoint_New();
# 1420|->             TAB_APPEND( t->i_seekpoint, t->seekpoint, s );
# 1421|           }
# 1422|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
vlc-3.0.21/modules/access/dvdread.c:1423:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.titles’
vlc-3.0.21/modules/access/dvdread.c:1393:13: enter_function: entry to ‘DemuxTitles’
vlc-3.0.21/modules/access/dvdread.c:1407:21: branch_true: following ‘true’ branch (when ‘i < i_titles’)...
vlc-3.0.21/modules/access/dvdread.c:1412:22: branch_true: ...to here
vlc-3.0.21/modules/access/dvdread.c:1415:13: call_function: calling ‘vlc_input_title_New’ from ‘DemuxTitles’
vlc-3.0.21/modules/access/dvdread.c:1415:13: return_function: returning to ‘DemuxTitles’ from ‘vlc_input_title_New’
vlc-3.0.21/modules/access/dvdread.c:1417:21: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dvdread.c:1423:9: branch_false: ...to here
vlc-3.0.21/modules/access/dvdread.c:1423:9: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/dvdread.c:1423:9: branch_true: ...to here
vlc-3.0.21/modules/access/dvdread.c:1423:9: danger: ‘*p_sys.titles’ leaks here; was allocated at [(13)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/12)
# 1421|           }
# 1422|   
# 1423|->         TAB_APPEND( p_sys->i_titles, p_sys->titles, t );
# 1424|       }
# 1425|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
vlc-3.0.21/modules/access/dvdread.c:1423:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/modules/access/dvdread.c:1393:13: enter_function: entry to ‘DemuxTitles’
vlc-3.0.21/modules/access/dvdread.c:1407:21: branch_true: following ‘true’ branch (when ‘i < i_titles’)...
vlc-3.0.21/modules/access/dvdread.c:1412:22: branch_true: ...to here
vlc-3.0.21/modules/access/dvdread.c:1415:13: call_function: calling ‘vlc_input_title_New’ from ‘DemuxTitles’
vlc-3.0.21/modules/access/dvdread.c:1415:13: return_function: returning to ‘DemuxTitles’ from ‘vlc_input_title_New’
vlc-3.0.21/modules/access/dvdread.c:1417:21: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/dvdread.c:1419:17: branch_true: ...to here
vlc-3.0.21/modules/access/dvdread.c:1419:17: call_function: calling ‘vlc_seekpoint_New’ from ‘DemuxTitles’
vlc-3.0.21/modules/access/dvdread.c:1419:17: return_function: returning to ‘DemuxTitles’ from ‘vlc_seekpoint_New’
vlc-3.0.21/modules/access/dvdread.c:1420:13: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dvdread.c:1420:13: branch_false: ...to here
vlc-3.0.21/modules/access/dvdread.c:1420:13: acquire_memory: allocated here
vlc-3.0.21/modules/access/dvdread.c:1420:13: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dvdread.c:1420:13: branch_false: ...to here
vlc-3.0.21/modules/access/dvdread.c:1417:21: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dvdread.c:1423:9: branch_false: ...to here
vlc-3.0.21/modules/access/dvdread.c:1423:9: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dvdread.c:1423:9: branch_false: ...to here
vlc-3.0.21/modules/access/dvdread.c:1423:9: danger: ‘<unknown>’ leaks here; was allocated at [(18)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/17)
# 1421|           }
# 1422|   
# 1423|->         TAB_APPEND( p_sys->i_titles, p_sys->titles, t );
# 1424|       }
# 1425|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
vlc-3.0.21/modules/access/dvdread.c:1423:9: warning[-Wanalyzer-malloc-leak]: leak of ‘vlc_input_title_New()’
vlc-3.0.21/modules/access/dvdread.c:1393:13: enter_function: entry to ‘DemuxTitles’
vlc-3.0.21/modules/access/dvdread.c:1407:21: branch_true: following ‘true’ branch (when ‘i < i_titles’)...
vlc-3.0.21/modules/access/dvdread.c:1412:22: branch_true: ...to here
vlc-3.0.21/modules/access/dvdread.c:1415:13: call_function: calling ‘vlc_input_title_New’ from ‘DemuxTitles’
vlc-3.0.21/modules/access/dvdread.c:1415:13: return_function: returning to ‘DemuxTitles’ from ‘vlc_input_title_New’
vlc-3.0.21/modules/access/dvdread.c:1417:21: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/dvdread.c:1419:17: branch_true: ...to here
vlc-3.0.21/modules/access/dvdread.c:1419:17: call_function: calling ‘vlc_seekpoint_New’ from ‘DemuxTitles’
vlc-3.0.21/modules/access/dvdread.c:1419:17: return_function: returning to ‘DemuxTitles’ from ‘vlc_seekpoint_New’
vlc-3.0.21/modules/access/dvdread.c:1420:13: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dvdread.c:1417:21: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dvdread.c:1423:9: branch_false: ...to here
vlc-3.0.21/modules/access/dvdread.c:1423:9: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/dvdread.c:1423:9: danger: ‘vlc_input_title_New()’ leaks here; was allocated at [(6)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/5)
# 1421|           }
# 1422|   
# 1423|->         TAB_APPEND( p_sys->i_titles, p_sys->titles, t );
# 1424|       }
# 1425|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def91]
vlc-3.0.21/modules/access/http.c:212:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
vlc-3.0.21/modules/access/http.c:136:12: enter_function: entry to ‘Open’
vlc-3.0.21/modules/access/http.c:145:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/http.c:148:5: branch_false: ...to here
vlc-3.0.21/modules/access/http.c:150:5: release_memory: ‘0’ is NULL
vlc-3.0.21/modules/access/http.c:151:5: release_memory: ‘0’ is NULL
vlc-3.0.21/modules/access/http.c:153:5: release_memory: ‘0’ is NULL
vlc-3.0.21/modules/access/http.c:154:5: release_memory: ‘0’ is NULL
vlc-3.0.21/modules/access/http.c:155:5: release_memory: ‘0’ is NULL
vlc-3.0.21/modules/access/http.c:156:5: release_memory: ‘0’ is NULL
vlc-3.0.21/modules/access/http.c:157:5: release_memory: ‘0’ is NULL
vlc-3.0.21/modules/access/http.c:160:5: release_memory: ‘0’ is NULL
vlc-3.0.21/modules/access/http.c:161:5: release_memory: ‘0’ is NULL
vlc-3.0.21/modules/access/http.c:162:5: release_memory: ‘0’ is NULL
vlc-3.0.21/modules/access/http.c:168:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/http.c:182:29: call_function: calling ‘var_InheritString’ from ‘Open’
vlc-3.0.21/modules/access/http.c:182:29: return_function: returning to ‘Open’ from ‘var_InheritString’
vlc-3.0.21/modules/access/http.c:183:8: branch_true: following ‘true’ branch...
 branch_true: ...to here
vlc-3.0.21/modules/access/http.c:186:47: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/http.c:188:21: branch_true: ...to here
vlc-3.0.21/modules/access/http.c:189:16: branch_true: following ‘true’ branch (when ‘comment_level == 0’)...
vlc-3.0.21/modules/access/http.c:191:19: branch_true: ...to here
vlc-3.0.21/modules/access/http.c:209:12: branch_true: following ‘true’ branch (when ‘comment_level != 0’)...
vlc-3.0.21/modules/access/http.c:211:30: branch_true: ...to here
vlc-3.0.21/modules/access/http.c:212:13: danger: dereference of NULL ‘p’
#  210|           {
#  211|               char *p = strchr(p_sys->psz_user_agent, '(');
#  212|->             *p = '\0';
#  213|           }
#  214|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def92]
vlc-3.0.21/modules/access/http.c:488:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘psz_meta’
vlc-3.0.21/modules/access/http.c:470:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/http.c:472:9: branch_false: ...to here
vlc-3.0.21/modules/access/http.c:472:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/http.c:474:24: branch_false: ...to here
vlc-3.0.21/modules/access/http.c:477:16: acquire_memory: this call could return NULL
vlc-3.0.21/modules/access/http.c:478:22: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/http.c:488:13: branch_false: ...to here
vlc-3.0.21/modules/access/http.c:488:5: danger: ‘psz_meta + (sizetype)i_read’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#  486|           i_read += i_tmp;
#  487|       }
#  488|->     psz_meta[i_read] = '\0'; /* Just in case */
#  489|   
#  490|       /* msg_Dbg( p_access, "icy-meta=%s", psz_meta ); */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
vlc-3.0.21/modules/access/http/chunked.c:166:12: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
vlc-3.0.21/modules/access/http/chunked.c:156:36: acquire_memory: allocated here
vlc-3.0.21/modules/access/http/chunked.c:157:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/http/chunked.c:160:5: branch_false: ...to here
vlc-3.0.21/modules/access/http/chunked.c:166:12: danger: ‘s’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  164|       s->eof = false;
#  165|       s->error = false;
#  166|->     return &s->stream;
#  167|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
vlc-3.0.21/modules/access/http/h1conn.c:346:12: warning[-Wanalyzer-malloc-leak]: leak of ‘conn’
vlc-3.0.21/modules/access/http/h1conn.c:334:32: acquire_memory: allocated here
vlc-3.0.21/modules/access/http/h1conn.c:335:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/http/h1conn.c:338:5: branch_false: ...to here
vlc-3.0.21/modules/access/http/h1conn.c:346:12: danger: ‘conn’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  344|       conn->opaque = ctx;
#  345|   
#  346|->     return &conn->conn;
#  347|   }
#  348|   

Error: COMPILER_WARNING: [#def95]
vlc-3.0.21/modules/access/http/message.c: scope_hint: In function ‘vlc_http_msg_h2_frame’
vlc-3.0.21/modules/access/http/message.c:412:26: warning[-Wformat-overflow=]: ‘%hd’ directive writing between 1 and 5 bytes into a region of size 4
#  412 |         sprintf(status, "%hd", m->status);
#      |                          ^~~
vlc-3.0.21/modules/access/http/message.c:412:25: note: directive argument in the range [0, 32767]
#  412 |         sprintf(status, "%hd", m->status);
#      |                         ^~~~~
/usr/include/bits/stdio2.h:30:10: note: ‘__sprintf_chk’ output between 2 and 6 bytes into a destination of size 4
#   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   31 |                                   __glibc_objsize (__s), __fmt,
#      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   32 |                                   __va_arg_pack ());
#      |                                   ~~~~~~~~~~~~~~~~~
#  410|       {
#  411|           assert(m->status < 1000);
#  412|->         sprintf(status, "%hd", m->status);
#  413|           headers[i][0] = ":status";
#  414|           headers[i][1] = status;

Error: COMPILER_WARNING: [#def96]
vlc-3.0.21/modules/access/jack.c: scope_hint: In function ‘GrabJack’
vlc-3.0.21/modules/access/jack.c:433:2: warning[-Wcpp]: #warning Hmm.... looks wrong
#  433 | #warning Hmm.... looks wrong
#      |  ^~~~~~~
#  431|       {   /* vlc has too much free time on its hands? */
#  432|   #undef msleep
#  433|-> #warning Hmm.... looks wrong
#  434|           msleep(1000);
#  435|           return NULL;

Error: COMPILER_WARNING: [#def97]
vlc-3.0.21/modules/access/jack.c:433:2: warning[-Wcpp]: #warning Hmm.... looks wrong
#  431|       {   /* vlc has too much free time on its hands? */
#  432|   #undef msleep
#  433|-> #warning Hmm.... looks wrong
#  434|           msleep(1000);
#  435|           return NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def98]
vlc-3.0.21/modules/access/jack.c:509:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/modules/access/jack.c:478:13: enter_function: entry to ‘Port_finder’
vlc-3.0.21/modules/access/jack.c:488:5: release_memory: ‘*p_sys.pp_jack_port_table’ is NULL
vlc-3.0.21/modules/access/jack.c:488:5: release_memory: ‘*p_sys.pp_jack_port_table’ is NULL
vlc-3.0.21/modules/access/jack.c:488:5: release_memory: ‘*p_sys.pp_jack_port_table’ is NULL
vlc-3.0.21/modules/access/jack.c:491:53: branch_true: following ‘true’ branch (when ‘token’ is non-NULL)...
vlc-3.0.21/modules/access/jack.c:494:19: branch_true: ...to here
vlc-3.0.21/modules/access/jack.c:498:11: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/access/jack.c:505:41: call_function: calling ‘xrealloc’ from ‘Port_finder’
vlc-3.0.21/modules/access/jack.c:505:41: return_function: returning to ‘Port_finder’ from ‘xrealloc’
vlc-3.0.21/modules/access/jack.c:508:26: branch_true: following ‘true’ branch (when ‘i_out_ports > i’)...
vlc-3.0.21/modules/access/jack.c:509:96: branch_true: ...to here
vlc-3.0.21/modules/access/jack.c:509:42: release_memory: ‘0’ is NULL
vlc-3.0.21/modules/access/jack.c:509:17: danger: dereference of NULL ‘xrealloc(*p_sys.pp_jack_port_table, ((long unsigned int)i_out_ports + (long unsigned int)i_total_out_ports) * 8) + (long unsigned int)(i_total_out_ports + i) * 8’
#  507|   
#  508|               for(int i=0; i<i_out_ports;i++)
#  509|->                 p_sys->pp_jack_port_table[i_total_out_ports+i] = ( char * ) pp_jack_port_output[i];
#  510|   
#  511|               i_total_out_ports += i_out_ports;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def99]
vlc-3.0.21/modules/access/jack.c:530:10: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘psz_dup’ where non-null expected
vlc-3.0.21/modules/access/jack.c:527:21: acquire_memory: this call could return NULL
vlc-3.0.21/modules/access/jack.c:530:10: danger: argument 1 (‘psz_dup’) from [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  528|       char *psz_parser = psz_dup;
#  529|   
#  530|->     if( !strncmp( psz_parser, "channels=", strlen( "channels=" ) ) )
#  531|       {
#  532|           p_sys->i_channels = abs( strtol( psz_parser + strlen( "channels=" ),

Error: COMPILER_WARNING (CWE-197): [#def100]
vlc-3.0.21/modules/access/jack.c: scope_hint: In function ‘Parse’
vlc-3.0.21/modules/access/jack.c:532:29: warning[-Wabsolute-value]: absolute value function ‘abs’ given an argument of type ‘long int’ but has parameter of type ‘int’ which may cause truncation of value
#  532 |         p_sys->i_channels = abs( strtol( psz_parser + strlen( "channels=" ),
#      |                             ^~~
#  530|       if( !strncmp( psz_parser, "channels=", strlen( "channels=" ) ) )
#  531|       {
#  532|->         p_sys->i_channels = abs( strtol( psz_parser + strlen( "channels=" ),
#  533|               &psz_parser, 0 ) );
#  534|       }

Error: COMPILER_WARNING (CWE-197): [#def101]
vlc-3.0.21/modules/access/jack.c:567:37: warning[-Wabsolute-value]: absolute value function ‘abs’ given an argument of type ‘long int’ but has parameter of type ‘int’ which may cause truncation of value
#  567 |                 p_sys->i_channels = abs( strtol(
#      |                                     ^~~
#  565|               if( !strncmp( psz_parser, "channels=", strlen( "channels=" ) ) )
#  566|               {
#  567|->                 p_sys->i_channels = abs( strtol(
#  568|                       psz_parser + strlen( "channels=" ), &psz_parser, 0 ) );
#  569|               }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
vlc-3.0.21/modules/access/jack.c:583:28: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.psz_ports’
vlc-3.0.21/modules/access/jack.c:530:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/jack.c:535:15: branch_false: ...to here
vlc-3.0.21/modules/access/jack.c:535:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/jack.c:552:9: branch_false: ...to here
vlc-3.0.21/modules/access/jack.c:555:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/jack.c:560:7: branch_false: ...to here
vlc-3.0.21/modules/access/jack.c:560:7: branch_true: following ‘true’ branch...
 branch_true: ...to here
vlc-3.0.21/modules/access/jack.c:565:15: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/jack.c:570:23: branch_false: ...to here
vlc-3.0.21/modules/access/jack.c:570:20: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/jack.c:573:28: branch_true: ...to here
vlc-3.0.21/modules/access/jack.c:574:19: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/jack.c:576:29: branch_true: ...to here
vlc-3.0.21/modules/access/jack.c:582:36: acquire_memory: allocated here
vlc-3.0.21/modules/access/jack.c:583:28: danger: ‘*p_sys.psz_ports’ leaks here; was allocated at [(16)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/15)
#  581|                   }
#  582|                   p_sys->psz_ports = strndup( psz_parser, i_len );
#  583|->                 psz_parser += i_len;
#  584|               }
#  585|               else

Error: COMPILER_WARNING (CWE-252): [#def103]
vlc-3.0.21/modules/access/linsys/linsys_hdsdi.c: scope_hint: In function ‘Close’
vlc-3.0.21/modules/access/linsys/linsys_hdsdi.c:268:5: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#  268 |     write( p_sys->evfd, &(uint64_t){ 1 }, sizeof (uint64_t));
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  266|       demux_sys_t *p_sys = p_demux->p_sys;
#  267|   
#  268|->     write( p_sys->evfd, &(uint64_t){ 1 }, sizeof (uint64_t));
#  269|       pthread_join( p_sys->thread, NULL );
#  270|       vlc_close( p_sys->evfd );

Error: COMPILER_WARNING: [#def104]
vlc-3.0.21/modules/access/linsys/linsys_sdi.c: scope_hint: In function ‘HandleSDBuffer’
vlc-3.0.21/modules/access/linsys/linsys_sdi.c:1437:36: warning[-Wimplicit-fallthrough=]: this statement may fall through
# 1437 |         p_sys->i_last_state_change = mdate();
#      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
vlc-3.0.21/modules/access/linsys/linsys_sdi.c:1439:5: note: here
# 1439 |     case STATE_STARTSYNC:
#      |     ^~~~
# 1435|               break;
# 1436|           p_sys->i_state = STATE_STARTSYNC;
# 1437|->         p_sys->i_last_state_change = mdate();
# 1438|   
# 1439|       case STATE_STARTSYNC:

Error: COMPILER_WARNING: [#def105]
vlc-3.0.21/modules/access/linsys/linsys_sdi.c:1445:36: warning[-Wimplicit-fallthrough=]: this statement may fall through
# 1445 |         p_sys->i_last_state_change = mdate();
#      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
vlc-3.0.21/modules/access/linsys/linsys_sdi.c:1447:5: note: here
# 1447 |     case STATE_ANCSYNC:
#      |     ^~~~
# 1443|           p_sys->i_anc_size = 0;
# 1444|           p_sys->i_state = STATE_ANCSYNC;
# 1445|->         p_sys->i_last_state_change = mdate();
# 1446|   
# 1447|       case STATE_ANCSYNC:

Error: COMPILER_WARNING: [#def106]
vlc-3.0.21/modules/access/linsys/linsys_sdi.c:1454:36: warning[-Wimplicit-fallthrough=]: this statement may fall through
# 1454 |         p_sys->i_last_state_change = mdate();
#      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
vlc-3.0.21/modules/access/linsys/linsys_sdi.c:1456:5: note: here
# 1456 |     case STATE_LINESYNC:
#      |     ^~~~
# 1452|           p_sys->i_active_size = 0;
# 1453|           p_sys->i_state = STATE_LINESYNC;
# 1454|->         p_sys->i_last_state_change = mdate();
# 1455|   
# 1456|       case STATE_LINESYNC:

Error: COMPILER_WARNING: [#def107]
vlc-3.0.21/modules/access/linsys/linsys_sdi.c:1463:36: warning[-Wimplicit-fallthrough=]: this statement may fall through
# 1463 |         p_sys->i_last_state_change = mdate();
#      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
vlc-3.0.21/modules/access/linsys/linsys_sdi.c:1465:5: note: here
# 1465 |     case STATE_ACTIVESYNC:
#      |     ^~~~
# 1461|           p_sys->i_picture_size = p_sys->i_anc_size + p_sys->i_active_size;
# 1462|           p_sys->i_state = STATE_ACTIVESYNC;
# 1463|->         p_sys->i_last_state_change = mdate();
# 1464|   
# 1465|       case STATE_ACTIVESYNC:

Error: COMPILER_WARNING: [#def108]
vlc-3.0.21/modules/access/linsys/linsys_sdi.c:1473:36: warning[-Wimplicit-fallthrough=]: this statement may fall through
# 1473 |         p_sys->i_last_state_change = mdate();
#      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
vlc-3.0.21/modules/access/linsys/linsys_sdi.c:1475:5: note: here
# 1475 |     case STATE_VBLANKSYNC:
#      |     ^~~~
# 1471|                                / (p_sys->i_anc_size + p_sys->i_active_size);
# 1472|           p_sys->i_state = STATE_VBLANKSYNC;
# 1473|->         p_sys->i_last_state_change = mdate();
# 1474|   
# 1475|       case STATE_VBLANKSYNC:

Error: COMPILER_WARNING: [#def109]
vlc-3.0.21/modules/access/linsys/linsys_sdi.c:1481:36: warning[-Wimplicit-fallthrough=]: this statement may fall through
# 1481 |         p_sys->i_last_state_change = mdate();
#      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
vlc-3.0.21/modules/access/linsys/linsys_sdi.c:1483:5: note: here
# 1483 |     case STATE_PICSYNC:
#      |     ^~~~
# 1479|               break;
# 1480|           p_sys->i_state = STATE_PICSYNC;
# 1481|->         p_sys->i_last_state_change = mdate();
# 1482|   
# 1483|       case STATE_PICSYNC:

Error: CPPCHECK_WARNING (CWE-476): [#def110]
vlc-3.0.21/modules/access/live555.cpp:2324: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: psz_asf
# 2322|       psz_asf += strlen( psz_marker );
# 2323|       psz_asf = strdup( psz_asf );    /* Duplicate it */
# 2324|->     psz_end = strchr( psz_asf, '\n' );
# 2325|   
# 2326|       while( psz_end > psz_asf && ( *psz_end == '\n' || *psz_end == '\r' ) )

Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
vlc-3.0.21/modules/access/mms/buffer.c:73:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_buf.p_data’
vlc-3.0.21/modules/access/mms/buffer.c:110:6: enter_function: entry to ‘var_buffer_addUTF16’
vlc-3.0.21/modules/access/mms/buffer.c:115:7: branch_true: following ‘true’ branch (when ‘p_str’ is non-NULL)...
vlc-3.0.21/modules/access/mms/buffer.c:119:17: branch_true: ...to here
vlc-3.0.21/modules/access/mms/buffer.c:123:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/mms/buffer.c:129:11: branch_false: ...to here
vlc-3.0.21/modules/access/mms/buffer.c:130:24: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/mms/buffer.c:131:39: branch_true: ...to here
vlc-3.0.21/modules/access/mms/buffer.c:131:9: call_function: calling ‘var_buffer_add16’ from ‘var_buffer_addUTF16’
#   71|       {
#   72|           p_buf->i_size += 1024;
#   73|->         p_buf->p_data = xrealloc( p_buf->p_data, p_buf->i_size );
#   74|       }
#   75|       p_buf->p_data[p_buf->i_data] = i_byte&0xff;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
vlc-3.0.21/modules/access/nfs.c:583:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/modules/access/nfs.c:558:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/nfs.c:561:13: branch_false: ...to here
vlc-3.0.21/modules/access/nfs.c:570:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/nfs.c:573:37: branch_false: ...to here
vlc-3.0.21/modules/access/nfs.c:575:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/access/nfs.c:583:12: branch_true: following ‘true’ branch (when ‘p_export’ is non-NULL)...
vlc-3.0.21/modules/access/nfs.c:585:55: branch_true: ...to here
vlc-3.0.21/modules/access/nfs.c:585:48: acquire_memory: allocated here
vlc-3.0.21/modules/access/nfs.c:586:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/nfs.c:596:9: branch_false: ...to here
vlc-3.0.21/modules/access/nfs.c:583:12: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
#  581|       p_export = *(exports *)p_data;
#  582|       unsigned int i_idx = 0;
#  583|->     while (p_export != NULL)
#  584|       {
#  585|           p_sys->res.exports.ppsz_names[i_idx] = strdup(p_export->ex_dir);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def113]
vlc-3.0.21/modules/access/nfs.c:583:12: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)*p_sys.res.exports.i_count, 8)’
vlc-3.0.21/modules/access/nfs.c:558:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/nfs.c:561:13: branch_false: ...to here
vlc-3.0.21/modules/access/nfs.c:570:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/nfs.c:573:37: branch_false: ...to here
vlc-3.0.21/modules/access/nfs.c:573:37: acquire_memory: allocated here
vlc-3.0.21/modules/access/nfs.c:575:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/access/nfs.c:583:12: danger: ‘calloc((long unsigned int)*p_sys.res.exports.i_count, 8)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  581|       p_export = *(exports *)p_data;
#  582|       unsigned int i_idx = 0;
#  583|->     while (p_export != NULL)
#  584|       {
#  585|           p_sys->res.exports.ppsz_names[i_idx] = strdup(p_export->ex_dir);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
vlc-3.0.21/modules/access/nfs.c:585:55: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)*p_sys.res.exports.i_count, 8)’
vlc-3.0.21/modules/access/nfs.c:558:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/nfs.c:561:13: branch_false: ...to here
vlc-3.0.21/modules/access/nfs.c:570:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/nfs.c:573:37: branch_false: ...to here
vlc-3.0.21/modules/access/nfs.c:573:37: acquire_memory: allocated here
vlc-3.0.21/modules/access/nfs.c:575:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/access/nfs.c:583:12: branch_true: following ‘true’ branch (when ‘p_export’ is non-NULL)...
vlc-3.0.21/modules/access/nfs.c:585:55: branch_true: ...to here
vlc-3.0.21/modules/access/nfs.c:585:55: danger: ‘calloc((long unsigned int)*p_sys.res.exports.i_count, 8)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#  583|       while (p_export != NULL)
#  584|       {
#  585|->         p_sys->res.exports.ppsz_names[i_idx] = strdup(p_export->ex_dir);
#  586|           if (p_sys->res.exports.ppsz_names[i_idx] == NULL)
#  587|           {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def115]
vlc-3.0.21/modules/access/nfs.c:586:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/modules/access/nfs.c:558:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/nfs.c:561:13: branch_false: ...to here
vlc-3.0.21/modules/access/nfs.c:570:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/nfs.c:573:37: branch_false: ...to here
vlc-3.0.21/modules/access/nfs.c:575:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/access/nfs.c:583:12: branch_true: following ‘true’ branch (when ‘p_export’ is non-NULL)...
vlc-3.0.21/modules/access/nfs.c:585:55: branch_true: ...to here
vlc-3.0.21/modules/access/nfs.c:585:48: acquire_memory: allocated here
vlc-3.0.21/modules/access/nfs.c:586:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/nfs.c:596:9: branch_false: ...to here
vlc-3.0.21/modules/access/nfs.c:583:12: branch_true: following ‘true’ branch (when ‘p_export’ is non-NULL)...
vlc-3.0.21/modules/access/nfs.c:585:55: branch_true: ...to here
vlc-3.0.21/modules/access/nfs.c:586:12: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
#  584|       {
#  585|           p_sys->res.exports.ppsz_names[i_idx] = strdup(p_export->ex_dir);
#  586|->         if (p_sys->res.exports.ppsz_names[i_idx] == NULL)
#  587|           {
#  588|               for (unsigned int i = 0; i < i_idx; ++i)

Error: COMPILER_WARNING: [#def116]
vlc-3.0.21/modules/access/rist.c: scope_hint: In function ‘send_rbnack’
vlc-3.0.21/modules/access/rist.c:322:23: warning[-Wunterminated-string-initialization]: initializer-string for array of ‘unsigned char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available)
#  322 |     uint8_t name[4] = "RIST";
#      |                       ^~~~~~
#  320|       rist_rtcp_set_pt(nack, RTCP_PT_RTPFR);
#  321|       rist_rtcp_set_length(nack, 2 + nack_count);
#  322|->     uint8_t name[4] = "RIST";
#  323|       rist_rtcp_fb_set_ssrc_media_src(nack, name);
#  324|       len += RIST_RTCP_FB_HEADER_SIZE;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def117]
vlc-3.0.21/modules/access/rtsp/access.c:205:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘psz_server’ where non-null expected
vlc-3.0.21/modules/access/rtsp/access.c:151:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/rtsp/access.c:155:32: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/access.c:156:7: branch_false: following ‘false’ branch (when ‘psz_location’ is NULL)...
vlc-3.0.21/modules/access/rtsp/access.c:161:5: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/access.c:166:7: branch_false: following ‘false’ branch (when ‘p_sys’ is non-NULL)...
vlc-3.0.21/modules/access/rtsp/access.c:168:21: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/access.c:169:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/rtsp/access.c:175:5: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/access.c:184:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/rtsp/access.c:192:5: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/access.c:195:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/rtsp/access.c:196:30: branch_true: ...to here
vlc-3.0.21/modules/access/rtsp/access.c:196:22: acquire_memory: this call could return NULL
vlc-3.0.21/modules/access/rtsp/access.c:205:9: danger: argument 1 (‘psz_server’) from [(14)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/13) could be NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  203|       }
#  204|   
#  205|->     if( strstr( psz_server, "Real" ) || strstr( psz_server, "Helix" ) )
#  206|       {
#  207|           uint32_t bandwidth = 10485800;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def118]
vlc-3.0.21/modules/access/rtsp/real_asmrp.c:95:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’
vlc-3.0.21/modules/access/rtsp/real_asmrp.c:623:5: enter_function: entry to ‘asmrp_match’
vlc-3.0.21/modules/access/rtsp/real_asmrp.c:628:7: call_function: calling ‘asmrp_new’ from ‘asmrp_match’
#   93|     p = malloc (sizeof (asmrp_t));
#   94|   
#   95|->   p->sym_tab_num = 0;
#   96|     p->sym         = ASMRP_SYM_NONE;
#   97|     p->buf         = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def119]
vlc-3.0.21/modules/access/rtsp/real_asmrp.c:114:11: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘strdup(rules)’
vlc-3.0.21/modules/access/rtsp/real_asmrp.c:623:5: enter_function: entry to ‘asmrp_match’
vlc-3.0.21/modules/access/rtsp/real_asmrp.c:630:3: call_function: inlined call to ‘asmrp_init’ from ‘asmrp_match’
#  112|   
#  113|   static void asmrp_getch (asmrp_t *p) {
#  114|->   p->ch = p->buf[p->pos];
#  115|     p->pos++;
#  116|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def120]
vlc-3.0.21/modules/access/rtsp/real_asmrp.c:359:10: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*p.sym_tab[i].id’ where non-null expected
vlc-3.0.21/modules/access/rtsp/real_asmrp.c:623:5: enter_function: entry to ‘asmrp_match’
vlc-3.0.21/modules/access/rtsp/real_asmrp.c:632:3: call_function: calling ‘asmrp_set_id’ from ‘asmrp_match’
vlc-3.0.21/modules/access/rtsp/real_asmrp.c:632:3: return_function: possible return of NULL to ‘asmrp_match’ from ‘asmrp_set_id’
vlc-3.0.21/modules/access/rtsp/real_asmrp.c:633:3: call_function: calling ‘asmrp_set_id’ from ‘asmrp_match’
#  357|   
#  358|     for (i=0; i<p->sym_tab_num; i++) {
#  359|->     if (!strcmp (s, p->sym_tab[i].id))
#  360|         return i;
#  361|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
vlc-3.0.21/modules/access/rtsp/real_rmff.c:390:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/modules/access/rtsp/real_rmff.c:362:5: branch_false: following ‘false’ branch (when ‘mdpr’ is non-NULL)...
vlc-3.0.21/modules/access/rtsp/real_rmff.c:365:3: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/real_rmff.c:376:6: branch_false: following ‘false’ branch (when ‘stream_name’ is NULL)...
vlc-3.0.21/modules/access/rtsp/real_rmff.c:380:3: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/real_rmff.c:381:6: branch_true: following ‘true’ branch (when ‘mime_type’ is non-NULL)...
vlc-3.0.21/modules/access/rtsp/real_rmff.c:382:21: branch_true: ...to here
vlc-3.0.21/modules/access/rtsp/real_rmff.c:382:21: acquire_memory: allocated here
vlc-3.0.21/modules/access/rtsp/real_rmff.c:388:5: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/rtsp/real_rmff.c:389:11: branch_true: ...to here
vlc-3.0.21/modules/access/rtsp/real_rmff.c:390:5: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
#  388|     if( !mdpr->type_specific_data ) {
#  389|       free( mdpr->stream_name );
#  390|->     free( mdpr );
#  391|       return NULL;
#  392|     }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def122]
vlc-3.0.21/modules/access/rtsp/real_rmff.c:586:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*h.fileheader’
vlc-3.0.21/modules/access/rtsp/real_rmff.c:521:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
vlc-3.0.21/modules/access/rtsp/real_rmff.c:525:8: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/real_rmff.c:574:6: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/rtsp/real_rmff.c:575:5: branch_true: ...to here
vlc-3.0.21/modules/access/rtsp/real_rmff.c:576:21: acquire_memory: allocated here
vlc-3.0.21/modules/access/rtsp/real_rmff.c:577:7: release_memory: assuming ‘*h.fileheader’ is NULL
vlc-3.0.21/modules/access/rtsp/real_rmff.c:577:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/rtsp/real_rmff.c:586:16: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/real_rmff.c:586:16: danger: dereference of NULL ‘*h.fileheader’
#  584|       }
#  585|     }
#  586|->   header_size+=h->fileheader->size;
#  587|     num_headers++;
#  588|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def123]
vlc-3.0.21/modules/access/rtsp/real_rmff.c:606:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*h.data’
vlc-3.0.21/modules/access/rtsp/real_rmff.c:521:6: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
vlc-3.0.21/modules/access/rtsp/real_rmff.c:525:8: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/real_rmff.c:560:6: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/rtsp/real_rmff.c:561:5: branch_true: ...to here
vlc-3.0.21/modules/access/rtsp/real_rmff.c:562:15: acquire_memory: allocated here
vlc-3.0.21/modules/access/rtsp/real_rmff.c:563:7: release_memory: assuming ‘*h.data’ is NULL
vlc-3.0.21/modules/access/rtsp/real_rmff.c:563:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/rtsp/real_rmff.c:574:8: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/real_rmff.c:574:6: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/rtsp/real_rmff.c:586:16: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/real_rmff.c:589:5: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/rtsp/real_rmff.c:593:6: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/real_rmff.c:593:5: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/rtsp/real_rmff.c:594:9: branch_true: ...to here
vlc-3.0.21/modules/access/rtsp/real_rmff.c:594:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/rtsp/real_rmff.c:601:9: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/real_rmff.c:601:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/rtsp/real_rmff.c:606:9: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/real_rmff.c:606:9: danger: dereference of NULL ‘*h.data’
#  604|         h->prop->num_packets=p;
#  605|       }
#  606|->     if (h->data->num_packets == 0) {
#  607|         msg_Dbg(p_access, "rmff_fix_header: assuming data.num_packets=%i", h->prop->num_packets);
#  608|         h->data->num_packets=h->prop->num_packets;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
vlc-3.0.21/modules/access/rtsp/rtsp.c:268:23: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(xmalloc(strlen(rtsp_get(rtsp))))’
vlc-3.0.21/modules/access/rtsp/rtsp.c:474:5: enter_function: entry to ‘rtsp_connect’
vlc-3.0.21/modules/access/rtsp/rtsp.c:482:7: branch_false: following ‘false’ branch (when ‘psz_mrl’ is non-NULL)...
vlc-3.0.21/modules/access/rtsp/rtsp.c:483:9: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/rtsp.c:483:9: call_function: calling ‘xmalloc’ from ‘rtsp_connect’
vlc-3.0.21/modules/access/rtsp/rtsp.c:483:9: return_function: returning to ‘rtsp_connect’ from ‘xmalloc’
vlc-3.0.21/modules/access/rtsp/rtsp.c:489:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
vlc-3.0.21/modules/access/rtsp/rtsp.c:491:9: branch_true: ...to here
vlc-3.0.21/modules/access/rtsp/rtsp.c:514:7: branch_false: following ‘false’ branch (when ‘slash’ is non-NULL)...
vlc-3.0.21/modules/access/rtsp/rtsp.c:515:7: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/rtsp.c:515:7: branch_false: following ‘false’ branch (when ‘colon’ is non-NULL)...
vlc-3.0.21/modules/access/rtsp/rtsp.c:516:7: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/rtsp.c:521:15: call_function: calling ‘xmalloc’ from ‘rtsp_connect’
vlc-3.0.21/modules/access/rtsp/rtsp.c:521:15: return_function: returning to ‘rtsp_connect’ from ‘xmalloc’
vlc-3.0.21/modules/access/rtsp/rtsp.c:541:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/rtsp/rtsp.c:548:5: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/rtsp.c:551:5: call_function: calling ‘rtsp_schedule_field’ from ‘rtsp_connect’
vlc-3.0.21/modules/access/rtsp/rtsp.c:551:5: return_function: returning to ‘rtsp_connect’ from ‘rtsp_schedule_field’
vlc-3.0.21/modules/access/rtsp/rtsp.c:552:5: call_function: calling ‘rtsp_schedule_field’ from ‘rtsp_connect’
vlc-3.0.21/modules/access/rtsp/rtsp.c:552:5: return_function: returning to ‘rtsp_connect’ from ‘rtsp_schedule_field’
vlc-3.0.21/modules/access/rtsp/rtsp.c:553:5: call_function: calling ‘rtsp_schedule_field’ from ‘rtsp_connect’
vlc-3.0.21/modules/access/rtsp/rtsp.c:553:5: return_function: returning to ‘rtsp_connect’ from ‘rtsp_schedule_field’
vlc-3.0.21/modules/access/rtsp/rtsp.c:555:5: call_function: calling ‘rtsp_schedule_field’ from ‘rtsp_connect’
vlc-3.0.21/modules/access/rtsp/rtsp.c:555:5: return_function: returning to ‘rtsp_connect’ from ‘rtsp_schedule_field’
vlc-3.0.21/modules/access/rtsp/rtsp.c:556:5: call_function: calling ‘rtsp_schedule_field’ from ‘rtsp_connect’
vlc-3.0.21/modules/access/rtsp/rtsp.c:556:5: return_function: returning to ‘rtsp_connect’ from ‘rtsp_schedule_field’
vlc-3.0.21/modules/access/rtsp/rtsp.c:557:5: call_function: calling ‘rtsp_schedule_field’ from ‘rtsp_connect’
vlc-3.0.21/modules/access/rtsp/rtsp.c:557:5: return_function: returning to ‘rtsp_connect’ from ‘rtsp_schedule_field’
vlc-3.0.21/modules/access/rtsp/rtsp.c:558:5: call_function: calling ‘rtsp_schedule_field’ from ‘rtsp_connect’
vlc-3.0.21/modules/access/rtsp/rtsp.c:558:5: return_function: returning to ‘rtsp_connect’ from ‘rtsp_schedule_field’
vlc-3.0.21/modules/access/rtsp/rtsp.c:559:5: call_function: calling ‘rtsp_schedule_field’ from ‘rtsp_connect’
vlc-3.0.21/modules/access/rtsp/rtsp.c:559:5: return_function: returning to ‘rtsp_connect’ from ‘rtsp_schedule_field’
vlc-3.0.21/modules/access/rtsp/rtsp.c:562:5: call_function: calling ‘rtsp_request_options’ from ‘rtsp_connect’
#  266|                         msg_Warn (p_access, "setting NEW session: %s", buf);
#  267|                         free( rtsp->p_private->session );
#  268|->                       rtsp->p_private->session = strdup( buf );
#  269|                     }
#  270|                 }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def125]
vlc-3.0.21/modules/access/rtsp/rtsp.c:325:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xmalloc(strlen(*rtsp_10(D)->p_private.host) + 16)’ where non-null expected
vlc-3.0.21/modules/access/rtsp/rtsp.c:474:5: enter_function: entry to ‘rtsp_connect’
vlc-3.0.21/modules/access/rtsp/rtsp.c:482:7: branch_false: following ‘false’ branch (when ‘psz_mrl’ is non-NULL)...
vlc-3.0.21/modules/access/rtsp/rtsp.c:483:9: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/rtsp.c:483:9: call_function: calling ‘xmalloc’ from ‘rtsp_connect’
vlc-3.0.21/modules/access/rtsp/rtsp.c:483:9: return_function: returning to ‘rtsp_connect’ from ‘xmalloc’
vlc-3.0.21/modules/access/rtsp/rtsp.c:489:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
vlc-3.0.21/modules/access/rtsp/rtsp.c:491:9: branch_true: ...to here
vlc-3.0.21/modules/access/rtsp/rtsp.c:514:7: branch_false: following ‘false’ branch (when ‘slash’ is non-NULL)...
vlc-3.0.21/modules/access/rtsp/rtsp.c:515:7: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/rtsp.c:515:7: branch_false: following ‘false’ branch (when ‘colon’ is non-NULL)...
vlc-3.0.21/modules/access/rtsp/rtsp.c:516:7: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/rtsp.c:521:15: call_function: calling ‘xmalloc’ from ‘rtsp_connect’
vlc-3.0.21/modules/access/rtsp/rtsp.c:521:15: return_function: returning to ‘rtsp_connect’ from ‘xmalloc’
vlc-3.0.21/modules/access/rtsp/rtsp.c:541:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/rtsp/rtsp.c:548:5: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/rtsp.c:551:5: call_function: calling ‘rtsp_schedule_field’ from ‘rtsp_connect’
vlc-3.0.21/modules/access/rtsp/rtsp.c:551:5: return_function: returning to ‘rtsp_connect’ from ‘rtsp_schedule_field’
vlc-3.0.21/modules/access/rtsp/rtsp.c:552:5: call_function: calling ‘rtsp_schedule_field’ from ‘rtsp_connect’
vlc-3.0.21/modules/access/rtsp/rtsp.c:552:5: return_function: returning to ‘rtsp_connect’ from ‘rtsp_schedule_field’
vlc-3.0.21/modules/access/rtsp/rtsp.c:553:5: call_function: calling ‘rtsp_schedule_field’ from ‘rtsp_connect’
vlc-3.0.21/modules/access/rtsp/rtsp.c:553:5: return_function: returning to ‘rtsp_connect’ from ‘rtsp_schedule_field’
vlc-3.0.21/modules/access/rtsp/rtsp.c:555:5: call_function: calling ‘rtsp_schedule_field’ from ‘rtsp_connect’
vlc-3.0.21/modules/access/rtsp/rtsp.c:555:5: return_function: returning to ‘rtsp_connect’ from ‘rtsp_schedule_field’
vlc-3.0.21/modules/access/rtsp/rtsp.c:556:5: call_function: calling ‘rtsp_schedule_field’ from ‘rtsp_connect’
vlc-3.0.21/modules/access/rtsp/rtsp.c:556:5: return_function: returning to ‘rtsp_connect’ from ‘rtsp_schedule_field’
vlc-3.0.21/modules/access/rtsp/rtsp.c:557:5: call_function: calling ‘rtsp_schedule_field’ from ‘rtsp_connect’
vlc-3.0.21/modules/access/rtsp/rtsp.c:557:5: return_function: returning to ‘rtsp_connect’ from ‘rtsp_schedule_field’
vlc-3.0.21/modules/access/rtsp/rtsp.c:558:5: call_function: calling ‘rtsp_schedule_field’ from ‘rtsp_connect’
vlc-3.0.21/modules/access/rtsp/rtsp.c:558:5: return_function: returning to ‘rtsp_connect’ from ‘rtsp_schedule_field’
vlc-3.0.21/modules/access/rtsp/rtsp.c:559:5: call_function: calling ‘rtsp_schedule_field’ from ‘rtsp_connect’
vlc-3.0.21/modules/access/rtsp/rtsp.c:559:5: return_function: returning to ‘rtsp_connect’ from ‘rtsp_schedule_field’
vlc-3.0.21/modules/access/rtsp/rtsp.c:562:5: call_function: calling ‘rtsp_request_options’ from ‘rtsp_connect’
#argument 1 of ‘__builtin_sprintf’ must be non-null
#  323|       {
#  324|           buf = xmalloc( strlen(rtsp->p_private->host) + 16 );
#  325|->         sprintf( buf, "rtsp://%s:%i", rtsp->p_private->host,
#  326|                    rtsp->p_private->port );
#  327|       }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def126]
vlc-3.0.21/modules/access/rtsp/rtsp.c:511:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘mrl_ptr’ where non-null expected
vlc-3.0.21/modules/access/rtsp/rtsp.c:474:5: enter_function: entry to ‘rtsp_connect’
vlc-3.0.21/modules/access/rtsp/rtsp.c:482:7: branch_false: following ‘false’ branch (when ‘psz_mrl’ is non-NULL)...
vlc-3.0.21/modules/access/rtsp/rtsp.c:483:9: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/rtsp.c:483:9: call_function: calling ‘xmalloc’ from ‘rtsp_connect’
vlc-3.0.21/modules/access/rtsp/rtsp.c:483:9: return_function: returning to ‘rtsp_connect’ from ‘xmalloc’
vlc-3.0.21/modules/access/rtsp/rtsp.c:487:15: acquire_memory: this call could return NULL
vlc-3.0.21/modules/access/rtsp/rtsp.c:489:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
vlc-3.0.21/modules/access/rtsp/rtsp.c:491:9: branch_true: ...to here
vlc-3.0.21/modules/access/rtsp/rtsp.c:507:7: branch_true: following ‘true’ branch (when ‘psz_user_agent’ is non-NULL)...
vlc-3.0.21/modules/access/rtsp/rtsp.c:507:42: branch_true: ...to here
vlc-3.0.21/modules/access/rtsp/rtsp.c:511:13: danger: argument 1 (‘mrl_ptr’) from [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8) could be NULL where non-null expected
#argument 1 of ‘__builtin_strchr’ must be non-null
#  509|                                    "6.0.9.1235 (linux-2.0-libc6-i386-gcc2.95)" );
#  510|   
#  511|->     slash = strchr( mrl_ptr, '/' );
#  512|       colon = strchr( mrl_ptr, ':' );
#  513|   

Error: COMPILER_WARNING (CWE-697): [#def127]
vlc-3.0.21/modules/access/rtsp/rtsp.c: scope_hint: In function ‘rtsp_search_answers’
vlc-3.0.21/modules/access/rtsp/rtsp.c:601:33: warning[-Waddress]: the comparison will always evaluate as ‘false’ for the address of ‘answers’ will never be NULL
#  601 |     if(rtsp->p_private->answers == NULL || tag == NULL)
#      |                                 ^~
vlc-3.0.21/modules/access/rtsp/rtsp.c:58:16: note: ‘answers’ declared here
#   58 |   char        *answers[MAX_FIELDS];   /* data of last message */
#      |                ^~~~~~~
#  599|       int i;
#  600|   
#  601|->     if(rtsp->p_private->answers == NULL || tag == NULL)
#  602|         return NULL;
#  603|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
vlc-3.0.21/modules/access/rtsp/rtsp.c:663:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(data)’
vlc-3.0.21/modules/access/rtsp/rtsp.c:474:5: enter_function: entry to ‘rtsp_connect’
vlc-3.0.21/modules/access/rtsp/rtsp.c:482:7: branch_false: following ‘false’ branch (when ‘psz_mrl’ is non-NULL)...
vlc-3.0.21/modules/access/rtsp/rtsp.c:483:9: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/rtsp.c:483:9: call_function: calling ‘xmalloc’ from ‘rtsp_connect’
vlc-3.0.21/modules/access/rtsp/rtsp.c:483:9: return_function: returning to ‘rtsp_connect’ from ‘xmalloc’
vlc-3.0.21/modules/access/rtsp/rtsp.c:487:15: acquire_memory: allocated here
vlc-3.0.21/modules/access/rtsp/rtsp.c:489:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
vlc-3.0.21/modules/access/rtsp/rtsp.c:491:9: branch_true: ...to here
vlc-3.0.21/modules/access/rtsp/rtsp.c:514:7: branch_false: following ‘false’ branch (when ‘slash’ is non-NULL)...
vlc-3.0.21/modules/access/rtsp/rtsp.c:515:7: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/rtsp.c:515:7: branch_false: following ‘false’ branch (when ‘colon’ is non-NULL)...
vlc-3.0.21/modules/access/rtsp/rtsp.c:516:7: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/rtsp.c:521:15: call_function: calling ‘xmalloc’ from ‘rtsp_connect’
vlc-3.0.21/modules/access/rtsp/rtsp.c:521:15: return_function: returning to ‘rtsp_connect’ from ‘xmalloc’
vlc-3.0.21/modules/access/rtsp/rtsp.c:541:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/rtsp/rtsp.c:548:5: branch_false: ...to here
vlc-3.0.21/modules/access/rtsp/rtsp.c:551:5: call_function: calling ‘rtsp_schedule_field’ from ‘rtsp_connect’
#  661|       for (i = 0; i < MAX_FIELDS; ++i) {
#  662|         if (pptr[i] == NULL) {
#  663|->         pptr[i] = strdup(data);
#  664|           break;
#  665|         }

Error: COMPILER_WARNING: [#def129]
vlc-3.0.21/modules/access/satip.c: scope_hint: In function ‘rtsp_handle’
vlc-3.0.21/modules/access/satip.c:127:5: warning[-Wstringop-truncation]: ‘strncpy’ specified bound depends on the length of the source argument
#  127 |     strncpy(session, tok, __MIN(strlen(tok), max - 1));
#      |     ^
vlc-3.0.21/modules/access/satip.c:127:33: note: length computed here
#  127 |     strncpy(session, tok, __MIN(strlen(tok), max - 1));
#  125|       if (tok == NULL)
#  126|           return;
#  127|->     strncpy(session, tok, __MIN(strlen(tok), max - 1));
#  128|   
#  129|       while ((tok = strtok_r(NULL, ";", &state)) != NULL) {

Error: COMPILER_WARNING: [#def130]
vlc-3.0.21/modules/access/satip.c: scope_hint: In function ‘rtsp_handle’
vlc-3.0.21/modules/access/satip.c:167:13: warning[-Wstringop-truncation]: ‘strncpy’ specified bound depends on the length of the source argument
#  167 |             strncpy(sys->udp_address, tok + 12, __MIN(strlen(tok + 12), UDP_ADDRESS_LEN - 1));
#      |             ^
vlc-3.0.21/modules/access/satip.c:167:55: note: length computed here
#  167 |             strncpy(sys->udp_address, tok + 12, __MIN(strlen(tok + 12), UDP_ADDRESS_LEN - 1));
#  165|       while ((tok = strtok_r(NULL, ";", &state)) != NULL) {
#  166|           if (strncmp(tok, "destination=", 12) == 0) {
#  167|->             strncpy(sys->udp_address, tok + 12, __MIN(strlen(tok + 12), UDP_ADDRESS_LEN - 1));
#  168|           } else if (strncmp(tok, "port=", 5) == 0) {
#  169|               char port[6];

Error: COMPILER_WARNING: [#def131]
vlc-3.0.21/modules/access/satip.c: scope_hint: In function ‘rtsp_handle’
vlc-3.0.21/modules/access/satip.c:173:13: warning[-Wstringop-truncation]: ‘strncpy’ specified bound depends on the length of the source argument
#  173 |             strncpy(port, tok + 5, __MIN(strlen(tok + 5), 5));
#      |             ^
vlc-3.0.21/modules/access/satip.c:173:42: note: length computed here
#  173 |             strncpy(port, tok + 5, __MIN(strlen(tok + 5), 5));
#  171|   
#  172|               memset(port, 0x00, 6);
#  173|->             strncpy(port, tok + 5, __MIN(strlen(tok + 5), 5));
#  174|               if ((end = strstr(port, "-")) != NULL)
#  175|                   *end = '\0';

Error: COMPILER_WARNING (CWE-477): [#def132]
vlc-3.0.21/modules/access/sftp.c: scope_hint: In function ‘SSHSessionInit’
vlc-3.0.21/modules/access/sftp.c:208:5: warning[-Wdeprecated-declarations]: ‘libssh2_session_startup’ is deprecated: since libssh2 1.2.8. Use libssh2_session_handshake()
#  208 |     while( ( i_ret = libssh2_session_startup( p_sys->ssh_session, p_sys->i_socket ) )
#      |     ^~~~~
vlc-3.0.21/modules/access/sftp.c:43: included_from: Included from here.
/usr/include/libssh2.h:670:17: note: declared here
#  670 | LIBSSH2_API int libssh2_session_startup(LIBSSH2_SESSION *session, int sock);
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~
#  206|   
#  207|       int i_ret;
#  208|->     while( ( i_ret = libssh2_session_startup( p_sys->ssh_session, p_sys->i_socket ) )
#  209|              == LIBSSH2_ERROR_EAGAIN );
#  210|   

Error: COMPILER_WARNING (CWE-477): [#def133]
vlc-3.0.21/modules/access/sftp.c:208:5: warning[-Wdeprecated-declarations]: ‘libssh2_session_startup’ is deprecated: since libssh2 1.2.8. Use libssh2_session_handshake()
#  206|   
#  207|       int i_ret;
#  208|->     while( ( i_ret = libssh2_session_startup( p_sys->ssh_session, p_sys->i_socket ) )
#  209|              == LIBSSH2_ERROR_EAGAIN );
#  210|   

Error: COMPILER_WARNING (CWE-477): [#def134]
vlc-3.0.21/modules/access/smb.c: scope_hint: In function ‘Open’
vlc-3.0.21/modules/access/smb.c:165:5: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#  165 |     if( smbc_init( smb_auth, 0 ) )
#      |     ^~
vlc-3.0.21/modules/access/smb.c:45: included_from: Included from here.
/usr/include/samba-4.0/libsmbclient.h:1293:5: note: declared here
# 1293 | int smbc_init(smbc_get_auth_data_fn fn, int debug);
#      |     ^~~~~~~~~
#  163|   
#  164|   #ifndef _WIN32
#  165|->     if( smbc_init( smb_auth, 0 ) )
#  166|           return VLC_EGENERIC;
#  167|   #endif

Error: COMPILER_WARNING (CWE-477): [#def135]
vlc-3.0.21/modules/access/smb.c:165:5: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#  163|   
#  164|   #ifndef _WIN32
#  165|->     if( smbc_init( smb_auth, 0 ) )
#  166|           return VLC_EGENERIC;
#  167|   #endif

Error: COMPILER_WARNING: [#def136]
vlc-3.0.21/modules/access/smb.c: scope_hint: In function ‘DirRead’
vlc-3.0.21/modules/access/smb.c:374:22: warning[-Wimplicit-fallthrough=]: this statement may fall through
#  374 |             psz_name = NULL;
#      |                      ^
vlc-3.0.21/modules/access/smb.c:375:9: note: here
#  375 |         case SMBC_FILE_SHARE:
#      |         ^~~~
#  372|               psz_server = p_sys->url.psz_host;
#  373|               psz_path = NULL;
#  374|->             psz_name = NULL;
#  375|           case SMBC_FILE_SHARE:
#  376|           case SMBC_DIR:

Error: COMPILER_WARNING (CWE-477): [#def137]
vlc-3.0.21/modules/access/srt.c: scope_hint: In function ‘srt_schedule_reconnect’
vlc-3.0.21/modules/access/srt.c:129:5: warning[-Wdeprecated-declarations]: ‘srt_socket’ is deprecated
#  129 |     p_sys->sock = srt_socket( res->ai_family, SOCK_DGRAM, 0 );
#      |     ^~~~~
vlc-3.0.21/modules/access/srt_common.h:31: included_from: Included from here.
/usr/include/srt/srt.h:753:41: note: declared here
#  753 | SRT_ATR_DEPRECATED_PX SRT_API SRTSOCKET srt_socket(int, int, int) SRT_ATR_DEPRECATED;
#      |                                         ^~~~~~~~~~
#  127|       }
#  128|   
#  129|->     p_sys->sock = srt_socket( res->ai_family, SOCK_DGRAM, 0 );
#  130|       if ( p_sys->sock == SRT_INVALID_SOCK )
#  131|       {

Error: COMPILER_WARNING (CWE-477): [#def138]
vlc-3.0.21/modules/access/srt.c:129:5: warning[-Wdeprecated-declarations]: ‘srt_socket’ is deprecated
#  127|       }
#  128|   
#  129|->     p_sys->sock = srt_socket( res->ai_family, SOCK_DGRAM, 0 );
#  130|       if ( p_sys->sock == SRT_INVALID_SOCK )
#  131|       {

Error: GCC_ANALYZER_WARNING (CWE-465): [#def139]
vlc-3.0.21/modules/access/v4l2/controls.c:230:12: warning[-Wanalyzer-deref-before-check]: check of ‘p’ for NULL after already dereferencing it
vlc-3.0.21/modules/access/v4l2/controls.c:215:13: enter_function: entry to ‘ControlsSetFromString’
vlc-3.0.21/modules/access/v4l2/controls.c:218:17: call_function: calling ‘var_InheritString’ from ‘ControlsSetFromString’
vlc-3.0.21/modules/access/v4l2/controls.c:218:17: return_function: returning to ‘ControlsSetFromString’ from ‘var_InheritString’
vlc-3.0.21/modules/access/v4l2/controls.c:219:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/v4l2/controls.c:223:9: branch_false: ...to here
vlc-3.0.21/modules/access/v4l2/controls.c:227:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/access/v4l2/controls.c:230:12: danger: pointer ‘p’ is checked for NULL here but it was already dereferenced at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
#  228|           *end = '\0';
#  229|   next:
#  230|->     while (p != NULL && *p)
#  231|       {
#  232|           const char *name, *value;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def140]
vlc-3.0.21/modules/access/v4l2/video.c:401:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*it.numerator’
vlc-3.0.21/modules/access/v4l2/video.c:418:5: enter_function: entry to ‘SetupFormat’
vlc-3.0.21/modules/access/v4l2/video.c:427:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/v4l2/video.c:432:5: branch_false: ...to here
vlc-3.0.21/modules/access/v4l2/video.c:449:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/v4l2/video.c:458:9: branch_false: ...to here
vlc-3.0.21/modules/access/v4l2/video.c:458:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/v4l2/video.c:467:13: branch_false: ...to here
vlc-3.0.21/modules/access/v4l2/video.c:476:17: call_function: calling ‘FindMaxRate’ from ‘SetupFormat’
#  399|               }
#  400|   
#  401|->             it->numerator *= fie.stepwise.step.denominator;
#  402|               it->denominator *= fie.stepwise.step.denominator;
#  403|               while (fcmp (it, min_it) < 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def141]
vlc-3.0.21/modules/access/vcd/cdrom.c:753:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/modules/access/vcd/cdrom.c:581:5: enter_function: entry to ‘ioctl_ReadSectors’
vlc-3.0.21/modules/access/vcd/cdrom.c:586:7: branch_true: following ‘true’ branch (when ‘i_type == 1’)...
vlc-3.0.21/modules/access/vcd/cdrom.c:587:19: branch_true: ...to here
vlc-3.0.21/modules/access/vcd/cdrom.c:587:19: call_function: inlined call to ‘vlc_alloc’ from ‘ioctl_ReadSectors’
vlc-3.0.21/modules/access/vcd/cdrom.c:591:9: branch_true: ...to here
vlc-3.0.21/modules/access/vcd/cdrom.c:591:7: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/access/vcd/cdrom.c:748:25: branch_true: following ‘true’ branch (when ‘i < i_nb’)...
vlc-3.0.21/modules/access/vcd/cdrom.c:750:27: branch_true: ...to here
vlc-3.0.21/modules/access/vcd/cdrom.c:753:13: release_memory: ‘0’ is NULL
vlc-3.0.21/modules/access/vcd/cdrom.c:753:13: danger: dereference of NULL ‘p_block + (sizetype)(i * 2352)’
#  751|   
#  752|   #define p_msf ((struct cdrom_msf0 *)(p_block + i * VCD_SECTOR_SIZE))
#  753|->             p_msf->minute =   i_dummy / (CD_FRAMES * CD_SECS);
#  754|               p_msf->second = ( i_dummy % (CD_FRAMES * CD_SECS) ) / CD_FRAMES;
#  755|               p_msf->frame =  ( i_dummy % (CD_FRAMES * CD_SECS) ) % CD_FRAMES;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def142]
vlc-3.0.21/modules/access/vcd/cdrom.c:753:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_block’
vlc-3.0.21/modules/access/vcd/cdrom.c:581:5: enter_function: entry to ‘ioctl_ReadSectors’
vlc-3.0.21/modules/access/vcd/cdrom.c:586:7: branch_true: following ‘true’ branch (when ‘i_type == 1’)...
vlc-3.0.21/modules/access/vcd/cdrom.c:587:19: branch_true: ...to here
vlc-3.0.21/modules/access/vcd/cdrom.c:587:19: call_function: inlined call to ‘vlc_alloc’ from ‘ioctl_ReadSectors’
vlc-3.0.21/modules/access/vcd/cdrom.c:591:7: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/access/vcd/cdrom.c:748:25: branch_true: following ‘true’ branch (when ‘i < i_nb’)...
vlc-3.0.21/modules/access/vcd/cdrom.c:750:27: branch_true: ...to here
vlc-3.0.21/modules/access/vcd/cdrom.c:753:13: danger: ‘p_block + (sizetype)(i * 2352)’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
#  751|   
#  752|   #define p_msf ((struct cdrom_msf0 *)(p_block + i * VCD_SECTOR_SIZE))
#  753|->             p_msf->minute =   i_dummy / (CD_FRAMES * CD_SECS);
#  754|               p_msf->second = ( i_dummy % (CD_FRAMES * CD_SECS) ) / CD_FRAMES;
#  755|               p_msf->frame =  ( i_dummy % (CD_FRAMES * CD_SECS) ) % CD_FRAMES;

Error: COMPILER_WARNING: [#def143]
vlc-3.0.21/modules/access/vcd/cdrom.c: scope_hint: In function ‘OpenVCDImage’
vlc-3.0.21/modules/access/vcd/cdrom.c:869:19: warning[-Wimplicit-fallthrough=]: this statement may fall through
#  869 |                 if( strcasecmp( type, "BINARY" ) )
#      |                   ^
vlc-3.0.21/modules/access/vcd/cdrom.c:871:13: note: here
#  871 |             case 1:
#      |             ^~~~
#  867|               case 2:
#  868|                   msg_Dbg( p_this, "the cue file says the data file is %s", type );
#  869|->                 if( strcasecmp( type, "BINARY" ) )
#  870|                       goto error; /* Error if not binary, otherwise treat as case 1 */
#  871|               case 1:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def144]
vlc-3.0.21/modules/access/vcd/cdrom.c:1204:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/modules/access/vcd/cdrom.c:1198:12: enter_function: entry to ‘CdTextParse’
vlc-3.0.21/modules/access/vcd/cdrom.c:1203:7: branch_false: following ‘false’ branch (when ‘i_buffer > 3’)...
vlc-3.0.21/modules/access/vcd/cdrom.c:1206:5: branch_false: ...to here
vlc-3.0.21/modules/access/vcd/cdrom.c:1208:21: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vcd/cdrom.c:1210:48: branch_true: ...to here
vlc-3.0.21/modules/access/vcd/cdrom.c:1214:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vcd/cdrom.c:1217:37: branch_false: ...to here
vlc-3.0.21/modules/access/vcd/cdrom.c:1219:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vcd/cdrom.c:1231:27: branch_false: ...to here
vlc-3.0.21/modules/access/vcd/cdrom.c:1237:16: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vcd/cdrom.c:1240:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vcd/cdrom.c:1242:47: branch_true: ...to here
vlc-3.0.21/modules/access/vcd/cdrom.c:1242:17: call_function: calling ‘astrcat’ from ‘CdTextParse’
vlc-3.0.21/modules/access/vcd/cdrom.c:1242:17: return_function: returning to ‘CdTextParse’ from ‘astrcat’
vlc-3.0.21/modules/access/vcd/cdrom.c:1204:16: danger: ‘<unknown>’ leaks here; was allocated at [(18)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/17)
# 1202|       int i_track_last = -1;
# 1203|       if( i_buffer < 4 )
# 1204|->         return -1;
# 1205|   
# 1206|       memset( pppsz_info, 0, sizeof(pppsz_info) );

Error: GCC_ANALYZER_WARNING (CWE-688): [#def145]
vlc-3.0.21/modules/access/vcd/vcd.c:106:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘psz_dup’ where non-null expected
vlc-3.0.21/modules/access/vcd/vcd.c:96:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vcd/vcd.c:99:21: branch_false: ...to here
vlc-3.0.21/modules/access/vcd/vcd.c:99:21: acquire_memory: this call could return NULL
vlc-3.0.21/modules/access/vcd/vcd.c:106:17: danger: argument 1 (‘psz_dup’) from [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
#argument 1 of ‘__builtin_strchr’ must be non-null
#  104|   
#  105|       /* Command line: vcd://[dev_path][#title[,chapter]] */
#  106|->     if( ( psz = strchr( psz_dup, '#' ) ) )
#  107|       {
#  108|           *psz++ = '\0';

Error: GCC_ANALYZER_WARNING (CWE-476): [#def146]
vlc-3.0.21/modules/access/vcd/vcd.c:125:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/modules/access/vcd/vcd.c:92:12: enter_function: entry to ‘Open’
vlc-3.0.21/modules/access/vcd/vcd.c:96:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vcd/vcd.c:99:21: branch_false: ...to here
vlc-3.0.21/modules/access/vcd/vcd.c:106:9: release_memory: ‘psz’ is NULL
vlc-3.0.21/modules/access/vcd/vcd.c:106:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vcd/vcd.c:115:9: branch_false: ...to here
vlc-3.0.21/modules/access/vcd/vcd.c:115:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vcd/vcd.c:117:9: branch_true: ...to here
vlc-3.0.21/modules/access/vcd/vcd.c:124:19: call_function: calling ‘var_CreateGetString’ from ‘Open’
vlc-3.0.21/modules/access/vcd/vcd.c:124:19: return_function: returning to ‘Open’ from ‘var_CreateGetString’
vlc-3.0.21/modules/access/vcd/vcd.c:125:13: danger: dereference of NULL ‘var_CreateGetString(&*(stream_t *)p_this.obj, "vcd")’
#  123|   
#  124|           psz_dup = var_CreateGetString( p_access, "vcd" );
#  125|->         if( *psz_dup == '\0' )
#  126|           {
#  127|               free( psz_dup );

Error: GCC_ANALYZER_WARNING (CWE-401): [#def147]
vlc-3.0.21/modules/access/vdr.c:488:5: warning[-Wanalyzer-malloc-leak]: leak of ‘realloc(*p_sys.file_sizes.p_elems, (long unsigned int)(int)((double)*p_sys.file_sizes.i_alloc * 1.5e+0) * 8)’
vlc-3.0.21/modules/access/vdr.c:463:13: enter_function: entry to ‘ImportNextFile’
vlc-3.0.21/modules/access/vdr.c:467:22: call_function: calling ‘GetFilePath’ from ‘ImportNextFile’
vlc-3.0.21/modules/access/vdr.c:467:22: return_function: returning to ‘ImportNextFile’ from ‘GetFilePath’
vlc-3.0.21/modules/access/vdr.c:468:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:472:9: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:472:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:479:10: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:479:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:485:5: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:488:5: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:488:5: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:488:5: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:488:5: branch_true: ...to here
vlc-3.0.21/modules/access/vdr.c:488:5: danger: ‘realloc(*p_sys.file_sizes.p_elems, (long unsigned int)(int)((double)*p_sys.file_sizes.i_alloc * 1.5e+0) * 8)’ leaks here; was allocated at [(17)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/16)
#  486|       free( psz_path );
#  487|   
#  488|->     ARRAY_APPEND( p_sys->file_sizes, st.st_size );
#  489|       p_sys->size += st.st_size;
#  490|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def148]
vlc-3.0.21/modules/access/vdr.c:488:5: warning[-Wanalyzer-malloc-leak]: leak of ‘realloc(*p_sys.file_sizes.p_elems, 80)’
vlc-3.0.21/modules/access/vdr.c:463:13: enter_function: entry to ‘ImportNextFile’
vlc-3.0.21/modules/access/vdr.c:467:22: call_function: calling ‘GetFilePath’ from ‘ImportNextFile’
vlc-3.0.21/modules/access/vdr.c:467:22: return_function: returning to ‘ImportNextFile’ from ‘GetFilePath’
vlc-3.0.21/modules/access/vdr.c:468:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:472:9: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:472:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:479:10: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:479:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:485:5: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:488:5: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:488:5: branch_true: ...to here
vlc-3.0.21/modules/access/vdr.c:488:5: danger: ‘realloc(*p_sys.file_sizes.p_elems, 80)’ leaks here; was allocated at [(15)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/14)
#  486|       free( psz_path );
#  487|   
#  488|->     ARRAY_APPEND( p_sys->file_sizes, st.st_size );
#  489|       p_sys->size += st.st_size;
#  490|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def149]
vlc-3.0.21/modules/access/vdr.c:867:63: warning[-Wanalyzer-malloc-leak]: leak of ‘vlc_seekpoint_New()’
vlc-3.0.21/modules/access/vdr.c:787:13: enter_function: entry to ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:791:23: call_function: calling ‘OpenRelativeFile’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:791:23: return_function: returning to ‘ImportMarks’ from ‘OpenRelativeFile’
vlc-3.0.21/modules/access/vdr.c:792:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:795:23: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:795:23: call_function: calling ‘OpenRelativeFile’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:795:23: return_function: returning to ‘ImportMarks’ from ‘OpenRelativeFile’
vlc-3.0.21/modules/access/vdr.c:796:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:804:9: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:804:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:810:29: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:813:30: call_function: calling ‘vlc_input_title_New’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:813:30: return_function: returning to ‘ImportMarks’ from ‘vlc_input_title_New’
vlc-3.0.21/modules/access/vdr.c:814:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:820:33: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:839:12: call_function: calling ‘ReadLine’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:839:12: return_function: returning to ‘ImportMarks’ from ‘ReadLine’
vlc-3.0.21/modules/access/vdr.c:839:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:841:27: branch_true: ...to here
vlc-3.0.21/modules/access/vdr.c:841:27: call_function: calling ‘ParseFrameNumber’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:841:27: return_function: returning to ‘ImportMarks’ from ‘ParseFrameNumber’
vlc-3.0.21/modules/access/vdr.c:844:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:845:24: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:844:13: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:850:23: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:857:14: call_function: calling ‘ReadIndexRecord’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:857:14: return_function: returning to ‘ImportMarks’ from ‘ReadIndexRecord’
vlc-3.0.21/modules/access/vdr.c:857:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:860:13: branch_true: ...to here
vlc-3.0.21/modules/access/vdr.c:860:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:864:27: call_function: calling ‘vlc_seekpoint_New’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:864:27: return_function: returning to ‘ImportMarks’ from ‘vlc_seekpoint_New’
vlc-3.0.21/modules/access/vdr.c:865:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:867:63: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:870:9: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:870:9: branch_true: ...to here
vlc-3.0.21/modules/access/vdr.c:867:63: danger: ‘vlc_seekpoint_New()’ leaks here; was allocated at [(57)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/56)
#  865|           if( !sp )
#  866|               continue;
#  867|->         sp->i_time_offset = i_frame * (int64_t)( CLOCK_FREQ / p_sys->fps );
#  868|           sp->psz_name = strdup( line );
#  869|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
vlc-3.0.21/modules/access/vdr.c:870:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/modules/access/vdr.c:787:13: enter_function: entry to ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:791:23: call_function: calling ‘OpenRelativeFile’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:791:23: return_function: returning to ‘ImportMarks’ from ‘OpenRelativeFile’
vlc-3.0.21/modules/access/vdr.c:792:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:795:23: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:795:23: call_function: calling ‘OpenRelativeFile’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:795:23: return_function: returning to ‘ImportMarks’ from ‘OpenRelativeFile’
vlc-3.0.21/modules/access/vdr.c:796:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:804:9: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:804:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:810:29: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:813:30: call_function: calling ‘vlc_input_title_New’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:813:30: return_function: returning to ‘ImportMarks’ from ‘vlc_input_title_New’
vlc-3.0.21/modules/access/vdr.c:814:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:820:33: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:839:12: call_function: calling ‘ReadLine’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:839:12: return_function: returning to ‘ImportMarks’ from ‘ReadLine’
vlc-3.0.21/modules/access/vdr.c:839:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:841:27: branch_true: ...to here
vlc-3.0.21/modules/access/vdr.c:841:27: call_function: calling ‘ParseFrameNumber’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:841:27: return_function: returning to ‘ImportMarks’ from ‘ParseFrameNumber’
vlc-3.0.21/modules/access/vdr.c:844:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:845:24: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:844:13: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:850:23: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:857:14: call_function: calling ‘ReadIndexRecord’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:857:14: return_function: returning to ‘ImportMarks’ from ‘ReadIndexRecord’
vlc-3.0.21/modules/access/vdr.c:857:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:860:13: branch_true: ...to here
vlc-3.0.21/modules/access/vdr.c:860:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:864:27: call_function: calling ‘vlc_seekpoint_New’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:864:27: return_function: returning to ‘ImportMarks’ from ‘vlc_seekpoint_New’
vlc-3.0.21/modules/access/vdr.c:865:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:867:63: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:868:24: acquire_memory: allocated here
vlc-3.0.21/modules/access/vdr.c:870:9: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:870:9: branch_true: ...to here
vlc-3.0.21/modules/access/vdr.c:870:9: danger: ‘<unknown>’ leaks here; was allocated at [(62)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/61)
#  868|           sp->psz_name = strdup( line );
#  869|   
#  870|->         TAB_APPEND( p_marks->i_seekpoint, p_marks->seekpoint, sp );
#  871|           offsetv = xrealloc(offsetv, p_marks->i_seekpoint * sizeof (*offsetv));
#  872|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def151]
vlc-3.0.21/modules/access/vdr.c:887:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/modules/access/vdr.c:787:13: enter_function: entry to ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:791:23: call_function: calling ‘OpenRelativeFile’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:791:23: return_function: returning to ‘ImportMarks’ from ‘OpenRelativeFile’
vlc-3.0.21/modules/access/vdr.c:792:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:795:23: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:795:23: call_function: calling ‘OpenRelativeFile’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:795:23: return_function: returning to ‘ImportMarks’ from ‘OpenRelativeFile’
vlc-3.0.21/modules/access/vdr.c:796:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:804:9: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:804:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:810:29: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:813:30: call_function: calling ‘vlc_input_title_New’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:813:30: return_function: returning to ‘ImportMarks’ from ‘vlc_input_title_New’
vlc-3.0.21/modules/access/vdr.c:814:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:820:33: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:839:12: call_function: calling ‘ReadLine’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:839:12: return_function: returning to ‘ImportMarks’ from ‘ReadLine’
vlc-3.0.21/modules/access/vdr.c:839:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:841:27: branch_true: ...to here
vlc-3.0.21/modules/access/vdr.c:839:12: call_function: calling ‘ReadLine’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:839:12: return_function: returning to ‘ImportMarks’ from ‘ReadLine’
vlc-3.0.21/modules/access/vdr.c:839:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:880:9: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:880:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:882:27: call_function: calling ‘vlc_seekpoint_New’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:882:27: return_function: returning to ‘ImportMarks’ from ‘vlc_seekpoint_New’
vlc-3.0.21/modules/access/vdr.c:883:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:885:13: branch_true: ...to here
vlc-3.0.21/modules/access/vdr.c:886:28: acquire_memory: allocated here
vlc-3.0.21/modules/access/vdr.c:887:13: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:887:13: branch_true: ...to here
vlc-3.0.21/modules/access/vdr.c:887:13: danger: ‘<unknown>’ leaks here; was allocated at [(48)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/47)
#  885|               sp->i_time_offset = 0;
#  886|               sp->psz_name = strdup( _("Start") );
#  887|->             TAB_INSERT( p_marks->i_seekpoint, p_marks->seekpoint, sp, 0 );
#  888|               offsetv = xrealloc(offsetv,
#  889|                                  p_marks->i_seekpoint * sizeof (*offsetv));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
vlc-3.0.21/modules/access/vdr.c:887:13: warning[-Wanalyzer-malloc-leak]: leak of ‘vlc_seekpoint_New()’
vlc-3.0.21/modules/access/vdr.c:787:13: enter_function: entry to ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:791:23: call_function: calling ‘OpenRelativeFile’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:791:23: return_function: returning to ‘ImportMarks’ from ‘OpenRelativeFile’
vlc-3.0.21/modules/access/vdr.c:792:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:795:23: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:795:23: call_function: calling ‘OpenRelativeFile’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:795:23: return_function: returning to ‘ImportMarks’ from ‘OpenRelativeFile’
vlc-3.0.21/modules/access/vdr.c:796:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:804:9: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:804:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:810:29: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:813:30: call_function: calling ‘vlc_input_title_New’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:813:30: return_function: returning to ‘ImportMarks’ from ‘vlc_input_title_New’
vlc-3.0.21/modules/access/vdr.c:814:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:820:33: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:839:12: call_function: calling ‘ReadLine’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:839:12: return_function: returning to ‘ImportMarks’ from ‘ReadLine’
vlc-3.0.21/modules/access/vdr.c:839:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:841:27: branch_true: ...to here
vlc-3.0.21/modules/access/vdr.c:839:12: call_function: calling ‘ReadLine’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:839:12: return_function: returning to ‘ImportMarks’ from ‘ReadLine’
vlc-3.0.21/modules/access/vdr.c:839:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:880:9: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:880:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:882:27: call_function: calling ‘vlc_seekpoint_New’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:882:27: return_function: returning to ‘ImportMarks’ from ‘vlc_seekpoint_New’
vlc-3.0.21/modules/access/vdr.c:883:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:885:13: branch_true: ...to here
vlc-3.0.21/modules/access/vdr.c:887:13: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:887:13: branch_true: ...to here
vlc-3.0.21/modules/access/vdr.c:887:13: danger: ‘vlc_seekpoint_New()’ leaks here; was allocated at [(43)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/42)
#  885|               sp->i_time_offset = 0;
#  886|               sp->psz_name = strdup( _("Start") );
#  887|->             TAB_INSERT( p_marks->i_seekpoint, p_marks->seekpoint, sp, 0 );
#  888|               offsetv = xrealloc(offsetv,
#  889|                                  p_marks->i_seekpoint * sizeof (*offsetv));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def153]
vlc-3.0.21/modules/access/vdr.c:892:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/modules/access/vdr.c:787:13: enter_function: entry to ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:791:23: call_function: calling ‘OpenRelativeFile’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:791:23: return_function: returning to ‘ImportMarks’ from ‘OpenRelativeFile’
vlc-3.0.21/modules/access/vdr.c:792:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:795:23: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:795:23: call_function: calling ‘OpenRelativeFile’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:795:23: return_function: returning to ‘ImportMarks’ from ‘OpenRelativeFile’
vlc-3.0.21/modules/access/vdr.c:796:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:804:9: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:804:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:810:29: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:813:30: call_function: calling ‘vlc_input_title_New’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:813:30: return_function: returning to ‘ImportMarks’ from ‘vlc_input_title_New’
vlc-3.0.21/modules/access/vdr.c:814:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:820:33: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:839:12: call_function: calling ‘ReadLine’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:839:12: return_function: returning to ‘ImportMarks’ from ‘ReadLine’
vlc-3.0.21/modules/access/vdr.c:839:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:841:27: branch_true: ...to here
vlc-3.0.21/modules/access/vdr.c:839:12: call_function: calling ‘ReadLine’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:839:12: return_function: returning to ‘ImportMarks’ from ‘ReadLine’
vlc-3.0.21/modules/access/vdr.c:839:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:880:9: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:880:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:882:27: call_function: calling ‘vlc_seekpoint_New’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:882:27: return_function: returning to ‘ImportMarks’ from ‘vlc_seekpoint_New’
vlc-3.0.21/modules/access/vdr.c:883:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:885:13: branch_true: ...to here
vlc-3.0.21/modules/access/vdr.c:887:13: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:887:13: branch_true: ...to here
vlc-3.0.21/modules/access/vdr.c:887:13: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:887:13: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:888:23: call_function: calling ‘xrealloc’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:888:23: return_function: returning to ‘ImportMarks’ from ‘xrealloc’
vlc-3.0.21/modules/access/vdr.c:892:13: danger: dereference of NULL ‘xrealloc(offsetv, (long unsigned int)(*<unknown>.i_seekpoint + 1) * 8)’
#  890|               memmove(offsetv + 1, offsetv,
#  891|                       (p_marks->i_seekpoint - 1) * sizeof (*offsetv));
#  892|->             offsetv[0] = 0;
#  893|           }
#  894|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def154]
vlc-3.0.21/modules/access/vdr.c:899:9: warning[-Wanalyzer-malloc-leak]: leak of ‘vlc_input_title_New()’
vlc-3.0.21/modules/access/vdr.c:787:13: enter_function: entry to ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:791:23: call_function: calling ‘OpenRelativeFile’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:791:23: return_function: returning to ‘ImportMarks’ from ‘OpenRelativeFile’
vlc-3.0.21/modules/access/vdr.c:792:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:795:23: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:795:23: call_function: calling ‘OpenRelativeFile’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:795:23: return_function: returning to ‘ImportMarks’ from ‘OpenRelativeFile’
vlc-3.0.21/modules/access/vdr.c:796:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:804:9: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:804:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:810:29: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:813:30: call_function: calling ‘vlc_input_title_New’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:813:30: return_function: returning to ‘ImportMarks’ from ‘vlc_input_title_New’
vlc-3.0.21/modules/access/vdr.c:814:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:820:33: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:839:12: call_function: calling ‘ReadLine’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:839:12: return_function: returning to ‘ImportMarks’ from ‘ReadLine’
vlc-3.0.21/modules/access/vdr.c:839:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:841:27: branch_true: ...to here
vlc-3.0.21/modules/access/vdr.c:839:12: call_function: calling ‘ReadLine’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:839:12: return_function: returning to ‘ImportMarks’ from ‘ReadLine’
vlc-3.0.21/modules/access/vdr.c:839:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:880:9: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:896:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:898:9: branch_true: ...to here
vlc-3.0.21/modules/access/vdr.c:899:9: danger: ‘vlc_input_title_New()’ leaks here; was allocated at [(20)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/19)
#  897|       {
#  898|           p_sys->p_marks = p_marks;
#  899|->         p_sys->offsets = offsetv;
#  900|       }
#  901|       else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def155]
vlc-3.0.21/modules/access/vdr.c:907:5: warning[-Wanalyzer-malloc-leak]: leak of ‘offsetv’
vlc-3.0.21/modules/access/vdr.c:787:13: enter_function: entry to ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:791:23: call_function: calling ‘OpenRelativeFile’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:791:23: return_function: returning to ‘ImportMarks’ from ‘OpenRelativeFile’
vlc-3.0.21/modules/access/vdr.c:792:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:795:23: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:795:23: call_function: calling ‘OpenRelativeFile’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:795:23: return_function: returning to ‘ImportMarks’ from ‘OpenRelativeFile’
vlc-3.0.21/modules/access/vdr.c:796:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:804:9: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:804:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:810:29: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:813:30: call_function: calling ‘vlc_input_title_New’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:813:30: return_function: returning to ‘ImportMarks’ from ‘vlc_input_title_New’
vlc-3.0.21/modules/access/vdr.c:814:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:820:33: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:839:12: call_function: calling ‘ReadLine’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:839:12: return_function: returning to ‘ImportMarks’ from ‘ReadLine’
vlc-3.0.21/modules/access/vdr.c:839:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:841:27: branch_true: ...to here
vlc-3.0.21/modules/access/vdr.c:839:12: call_function: calling ‘ReadLine’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:839:12: return_function: returning to ‘ImportMarks’ from ‘ReadLine’
vlc-3.0.21/modules/access/vdr.c:839:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:880:9: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:880:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:882:27: call_function: calling ‘vlc_seekpoint_New’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:882:27: return_function: returning to ‘ImportMarks’ from ‘vlc_seekpoint_New’
vlc-3.0.21/modules/access/vdr.c:883:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:885:13: branch_true: ...to here
vlc-3.0.21/modules/access/vdr.c:887:13: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:887:13: branch_true: ...to here
vlc-3.0.21/modules/access/vdr.c:887:13: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vdr.c:887:13: branch_false: ...to here
vlc-3.0.21/modules/access/vdr.c:888:23: call_function: calling ‘xrealloc’ from ‘ImportMarks’
vlc-3.0.21/modules/access/vdr.c:888:23: return_function: returning to ‘ImportMarks’ from ‘xrealloc’
vlc-3.0.21/modules/access/vdr.c:896:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vdr.c:898:9: branch_true: ...to here
vlc-3.0.21/modules/access/vdr.c:907:5: danger: ‘offsetv’ leaks here; was allocated at [(55)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/54)
#  905|       }
#  906|   
#  907|->     fclose( marksfile );
#  908|       fclose( indexfile );
#  909|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def156]
vlc-3.0.21/modules/access/vnc.c:458:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(url.psz_host)’
vlc-3.0.21/modules/access/vnc.c:398:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vnc.c:400:20: branch_false: ...to here
vlc-3.0.21/modules/access/vnc.c:407:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vnc.c:414:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vnc.c:421:5: branch_false: ...to here
vlc-3.0.21/modules/access/vnc.c:427:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vnc.c:434:5: branch_false: ...to here
vlc-3.0.21/modules/access/vnc.c:452:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vnc.c:454:5: branch_false: ...to here
vlc-3.0.21/modules/access/vnc.c:457:8: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access/vnc.c:458:39: acquire_memory: allocated here
vlc-3.0.21/modules/access/vnc.c:458:9: danger: ‘strdup(url.psz_host)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
#  456|   
#  457|       if ( !EMPTY_STR(url.psz_host) )
#  458|->         p_sys->p_client->serverHost = strdup( url.psz_host );
#  459|       else
#  460|           p_sys->p_client->serverHost = strdup( "localhost" );

Error: GCC_ANALYZER_WARNING (CWE-401): [#def157]
vlc-3.0.21/modules/access/vnc.c:460:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("localhost")’
vlc-3.0.21/modules/access/vnc.c:398:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vnc.c:400:20: branch_false: ...to here
vlc-3.0.21/modules/access/vnc.c:407:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vnc.c:414:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vnc.c:421:5: branch_false: ...to here
vlc-3.0.21/modules/access/vnc.c:427:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vnc.c:434:5: branch_false: ...to here
vlc-3.0.21/modules/access/vnc.c:452:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/access/vnc.c:454:5: branch_false: ...to here
vlc-3.0.21/modules/access/vnc.c:460:39: acquire_memory: allocated here
vlc-3.0.21/modules/access/vnc.c:460:9: danger: ‘strdup("localhost")’ leaks here; was allocated at [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
#  458|           p_sys->p_client->serverHost = strdup( url.psz_host );
#  459|       else
#  460|->         p_sys->p_client->serverHost = strdup( "localhost" );
#  461|   
#  462|       p_sys->p_client->appData.viewOnly = TRUE;

Error: GCC_ANALYZER_WARNING (CWE-121): [#def158]
vlc-3.0.21/modules/access_output/rist.c:397:5: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
vlc-3.0.21/modules/access_output/rist.c:404:14: enter_function: entry to ‘rist_thread’
vlc-3.0.21/modules/access_output/rist.c:463:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/access_output/rist.c:465:13: branch_true: ...to here
vlc-3.0.21/modules/access_output/rist.c:465:13: call_function: calling ‘rist_rtcp_send’ from ‘rist_thread’
#  395|       rist_rtcp_sdes_set_name_length(p_sdes, strlen(flow->cname));
#  396|       p_sdes += RIST_RTCP_SDES_SIZE;
#  397|->     strlcpy((char *)p_sdes, flow->cname, namelen);
#  398|   
#  399|       /* Send the rtcp message */

Error: COMPILER_WARNING (CWE-477): [#def159]
vlc-3.0.21/modules/access_output/shout.c: scope_hint: In function ‘Open’
vlc-3.0.21/modules/access_output/shout.c:220:10: warning[-Wdeprecated-declarations]: ‘shout_set_name’ is deprecated: use shout_set_meta() with SHOUT_META_NAME
#  220 |          || shout_set_name( p_shout, psz_name ) != SHOUTERR_SUCCESS
#      |          ^~
vlc-3.0.21/modules/access_output/shout.c:54: included_from: Included from here.
/usr/include/shout/shout.h:348:5: note: declared here
#  348 | int shout_set_name(shout_t *self, const char *name) SHOUT_ATTR_F_DEPRECATED("use shout_set_meta() with SHOUT_META_NAME"); // obsolete
#      |     ^~~~~~~~~~~~~~
#  218|            || shout_set_user( p_shout, url.psz_username ) != SHOUTERR_SUCCESS
#  219|            || shout_set_agent( p_shout, "VLC media player " VERSION ) != SHOUTERR_SUCCESS
#  220|->          || shout_set_name( p_shout, psz_name ) != SHOUTERR_SUCCESS
#  221|            || shout_set_description( p_shout, psz_description ) != SHOUTERR_SUCCESS
#  222|            || shout_set_genre( p_shout, psz_genre ) != SHOUTERR_SUCCESS

Error: COMPILER_WARNING (CWE-477): [#def160]
vlc-3.0.21/modules/access_output/shout.c:220:10: warning[-Wdeprecated-declarations]: ‘shout_set_name’ is deprecated: use shout_set_meta() with SHOUT_META_NAME
#  218|            || shout_set_user( p_shout, url.psz_username ) != SHOUTERR_SUCCESS
#  219|            || shout_set_agent( p_shout, "VLC media player " VERSION ) != SHOUTERR_SUCCESS
#  220|->          || shout_set_name( p_shout, psz_name ) != SHOUTERR_SUCCESS
#  221|            || shout_set_description( p_shout, psz_description ) != SHOUTERR_SUCCESS
#  222|            || shout_set_genre( p_shout, psz_genre ) != SHOUTERR_SUCCESS

Error: COMPILER_WARNING (CWE-477): [#def161]
vlc-3.0.21/modules/access_output/shout.c:221:10: warning[-Wdeprecated-declarations]: ‘shout_set_description’ is deprecated: use shout_set_meta() with SHOUT_META_DESCRIPTION
#  221 |          || shout_set_description( p_shout, psz_description ) != SHOUTERR_SUCCESS
#      |          ^~
/usr/include/shout/shout.h:357:5: note: declared here
#  357 | int shout_set_description(shout_t *self, const char *description) SHOUT_ATTR_F_DEPRECATED("use shout_set_meta() with SHOUT_META_DESCRIPTION"); // obsolete
#      |     ^~~~~~~~~~~~~~~~~~~~~
#  219|            || shout_set_agent( p_shout, "VLC media player " VERSION ) != SHOUTERR_SUCCESS
#  220|            || shout_set_name( p_shout, psz_name ) != SHOUTERR_SUCCESS
#  221|->          || shout_set_description( p_shout, psz_description ) != SHOUTERR_SUCCESS
#  222|            || shout_set_genre( p_shout, psz_genre ) != SHOUTERR_SUCCESS
#  223|            || shout_set_url( p_shout, psz_url ) != SHOUTERR_SUCCESS

Error: COMPILER_WARNING (CWE-477): [#def162]
vlc-3.0.21/modules/access_output/shout.c:221:10: warning[-Wdeprecated-declarations]: ‘shout_set_description’ is deprecated: use shout_set_meta() with SHOUT_META_DESCRIPTION
#  219|            || shout_set_agent( p_shout, "VLC media player " VERSION ) != SHOUTERR_SUCCESS
#  220|            || shout_set_name( p_shout, psz_name ) != SHOUTERR_SUCCESS
#  221|->          || shout_set_description( p_shout, psz_description ) != SHOUTERR_SUCCESS
#  222|            || shout_set_genre( p_shout, psz_genre ) != SHOUTERR_SUCCESS
#  223|            || shout_set_url( p_shout, psz_url ) != SHOUTERR_SUCCESS

Error: COMPILER_WARNING (CWE-477): [#def163]
vlc-3.0.21/modules/access_output/shout.c:222:10: warning[-Wdeprecated-declarations]: ‘shout_set_genre’ is deprecated: use shout_set_meta() with SHOUT_META_GENRE
#  222 |          || shout_set_genre( p_shout, psz_genre ) != SHOUTERR_SUCCESS
#      |          ^~
/usr/include/shout/shout.h:354:5: note: declared here
#  354 | int shout_set_genre(shout_t *self, const char *genre) SHOUT_ATTR_F_DEPRECATED("use shout_set_meta() with SHOUT_META_GENRE"); // obsolete
#      |     ^~~~~~~~~~~~~~~
#  220|            || shout_set_name( p_shout, psz_name ) != SHOUTERR_SUCCESS
#  221|            || shout_set_description( p_shout, psz_description ) != SHOUTERR_SUCCESS
#  222|->          || shout_set_genre( p_shout, psz_genre ) != SHOUTERR_SUCCESS
#  223|            || shout_set_url( p_shout, psz_url ) != SHOUTERR_SUCCESS
#  224|            /* || shout_set_nonblocking( p_shout, 1 ) != SHOUTERR_SUCCESS */

Error: COMPILER_WARNING (CWE-477): [#def164]
vlc-3.0.21/modules/access_output/shout.c:222:10: warning[-Wdeprecated-declarations]: ‘shout_set_genre’ is deprecated: use shout_set_meta() with SHOUT_META_GENRE
#  220|            || shout_set_name( p_shout, psz_name ) != SHOUTERR_SUCCESS
#  221|            || shout_set_description( p_shout, psz_description ) != SHOUTERR_SUCCESS
#  222|->          || shout_set_genre( p_shout, psz_genre ) != SHOUTERR_SUCCESS
#  223|            || shout_set_url( p_shout, psz_url ) != SHOUTERR_SUCCESS
#  224|            /* || shout_set_nonblocking( p_shout, 1 ) != SHOUTERR_SUCCESS */

Error: COMPILER_WARNING (CWE-477): [#def165]
vlc-3.0.21/modules/access_output/shout.c:223:10: warning[-Wdeprecated-declarations]: ‘shout_set_url’ is deprecated: use shout_set_meta() with SHOUT_META_URL
#  223 |          || shout_set_url( p_shout, psz_url ) != SHOUTERR_SUCCESS
#      |          ^~
/usr/include/shout/shout.h:351:5: note: declared here
#  351 | int shout_set_url(shout_t *self, const char *url) SHOUT_ATTR_F_DEPRECATED("use shout_set_meta() with SHOUT_META_URL"); // obsolete
#      |     ^~~~~~~~~~~~~
#  221|            || shout_set_description( p_shout, psz_description ) != SHOUTERR_SUCCESS
#  222|            || shout_set_genre( p_shout, psz_genre ) != SHOUTERR_SUCCESS
#  223|->          || shout_set_url( p_shout, psz_url ) != SHOUTERR_SUCCESS
#  224|            /* || shout_set_nonblocking( p_shout, 1 ) != SHOUTERR_SUCCESS */
#  225|         )

Error: COMPILER_WARNING (CWE-477): [#def166]
vlc-3.0.21/modules/access_output/shout.c:223:10: warning[-Wdeprecated-declarations]: ‘shout_set_url’ is deprecated: use shout_set_meta() with SHOUT_META_URL
#  221|            || shout_set_description( p_shout, psz_description ) != SHOUTERR_SUCCESS
#  222|            || shout_set_genre( p_shout, psz_genre ) != SHOUTERR_SUCCESS
#  223|->          || shout_set_url( p_shout, psz_url ) != SHOUTERR_SUCCESS
#  224|            /* || shout_set_nonblocking( p_shout, 1 ) != SHOUTERR_SUCCESS */
#  225|         )

Error: COMPILER_WARNING (CWE-477): [#def167]
vlc-3.0.21/modules/access_output/shout.c:242:5: warning[-Wdeprecated-declarations]: ‘shout_set_format’ is deprecated: Use shout_set_content_format()
#  242 |     i_ret = shout_set_format( p_shout, var_GetBool( p_access, SOUT_CFG_PREFIX "mp3" ) ?
#      |     ^~~~~
/usr/include/shout/shout.h:361:5: note: declared here
#  361 | int shout_set_format(shout_t *self, unsigned int format) SHOUT_ATTR_F_DEPRECATED("Use shout_set_content_format()"); // obsolete
#      |     ^~~~~~~~~~~~~~~~
#  240|       free( psz_url );
#  241|   
#  242|->     i_ret = shout_set_format( p_shout, var_GetBool( p_access, SOUT_CFG_PREFIX "mp3" ) ?
#  243|                                          SHOUT_FORMAT_MP3 : SHOUT_FORMAT_OGG );
#  244|   

Error: COMPILER_WARNING (CWE-477): [#def168]
vlc-3.0.21/modules/access_output/shout.c:242:5: warning[-Wdeprecated-declarations]: ‘shout_set_format’ is deprecated: Use shout_set_content_format()
#  240|       free( psz_url );
#  241|   
#  242|->     i_ret = shout_set_format( p_shout, var_GetBool( p_access, SOUT_CFG_PREFIX "mp3" ) ?
#  243|                                          SHOUT_FORMAT_MP3 : SHOUT_FORMAT_OGG );
#  244|   

Error: COMPILER_WARNING (CWE-477): [#def169]
vlc-3.0.21/modules/access_output/srt.c: scope_hint: In function ‘srt_schedule_reconnect’
vlc-3.0.21/modules/access_output/srt.c:124:5: warning[-Wdeprecated-declarations]: ‘srt_socket’ is deprecated
#  124 |     p_sys->sock = srt_socket( res->ai_family, SOCK_DGRAM, 0 );
#      |     ^~~~~
vlc-3.0.21/modules/access/srt_common.h:31: included_from: Included from here.
/usr/include/srt/srt.h:753:41: note: declared here
#  753 | SRT_ATR_DEPRECATED_PX SRT_API SRTSOCKET srt_socket(int, int, int) SRT_ATR_DEPRECATED;
#      |                                         ^~~~~~~~~~
#  122|       }
#  123|   
#  124|->     p_sys->sock = srt_socket( res->ai_family, SOCK_DGRAM, 0 );
#  125|       if ( p_sys->sock == SRT_INVALID_SOCK )
#  126|       {

Error: COMPILER_WARNING (CWE-477): [#def170]
vlc-3.0.21/modules/access_output/srt.c:124:5: warning[-Wdeprecated-declarations]: ‘srt_socket’ is deprecated
#  122|       }
#  123|   
#  124|->     p_sys->sock = srt_socket( res->ai_family, SOCK_DGRAM, 0 );
#  125|       if ( p_sys->sock == SRT_INVALID_SOCK )
#  126|       {

Error: COMPILER_WARNING (CWE-477): [#def171]
vlc-3.0.21/modules/access_output/udp.c: scope_hint: In function ‘NewUDPPacket’
vlc-3.0.21/modules/access_output/udp.c:360:5: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
#  360 |     while ( block_FifoCount( p_sys->p_empty_blocks ) > MAX_EMPTY_BLOCKS )
#      |     ^~~~~
vlc-3.0.21/modules/access_output/udp.c:41: included_from: Included from here.
vlc-3.0.21/include/vlc_block.h:477:16: note: declared here
#  477 | VLC_API size_t block_FifoCount(block_fifo_t *) VLC_USED VLC_DEPRECATED;
#      |                ^~~~~~~~~~~~~~~
#  358|       block_t *p_buffer;
#  359|   
#  360|->     while ( block_FifoCount( p_sys->p_empty_blocks ) > MAX_EMPTY_BLOCKS )
#  361|       {
#  362|           p_buffer = block_FifoGet( p_sys->p_empty_blocks );

Error: COMPILER_WARNING (CWE-477): [#def172]
vlc-3.0.21/modules/access_output/udp.c:360:5: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
#  358|       block_t *p_buffer;
#  359|   
#  360|->     while ( block_FifoCount( p_sys->p_empty_blocks ) > MAX_EMPTY_BLOCKS )
#  361|       {
#  362|           p_buffer = block_FifoGet( p_sys->p_empty_blocks );

Error: COMPILER_WARNING (CWE-477): [#def173]
vlc-3.0.21/modules/access_output/udp.c:366:5: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
#  366 |     if( block_FifoCount( p_sys->p_empty_blocks ) == 0 )
#      |     ^~
vlc-3.0.21/include/vlc_block.h:477:16: note: declared here
#  477 | VLC_API size_t block_FifoCount(block_fifo_t *) VLC_USED VLC_DEPRECATED;
#      |                ^~~~~~~~~~~~~~~
#  364|       }
#  365|   
#  366|->     if( block_FifoCount( p_sys->p_empty_blocks ) == 0 )
#  367|       {
#  368|           p_buffer = block_Alloc( p_sys->i_mtu );

Error: COMPILER_WARNING (CWE-477): [#def174]
vlc-3.0.21/modules/access_output/udp.c:366:5: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
#  364|       }
#  365|   
#  366|->     if( block_FifoCount( p_sys->p_empty_blocks ) == 0 )
#  367|       {
#  368|           p_buffer = block_Alloc( p_sys->i_mtu );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def175]
vlc-3.0.21/modules/audio_filter/audiobargraph_a.c:205:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/modules/audio_filter/audiobargraph_a.c:167:17: enter_function: entry to ‘DoWork’
vlc-3.0.21/modules/audio_filter/audiobargraph_a.c:186:8: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/audio_filter/audiobargraph_a.c:188:28: branch_true: ...to here
vlc-3.0.21/modules/audio_filter/audiobargraph_a.c:188:28: call_function: calling ‘xmalloc’ from ‘DoWork’
vlc-3.0.21/modules/audio_filter/audiobargraph_a.c:188:28: return_function: returning to ‘DoWork’ from ‘xmalloc’
vlc-3.0.21/modules/audio_filter/audiobargraph_a.c:197:9: release_memory: ‘0’ is NULL
vlc-3.0.21/modules/audio_filter/audiobargraph_a.c:201:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/audio_filter/audiobargraph_a.c:202:13: branch_true: ...to here
vlc-3.0.21/modules/audio_filter/audiobargraph_a.c:205:16: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/audio_filter/audiobargraph_a.c:206:13: branch_true: ...to here
vlc-3.0.21/modules/audio_filter/audiobargraph_a.c:208:28: release_memory: ‘0’ is NULL
vlc-3.0.21/modules/audio_filter/audiobargraph_a.c:205:16: release_memory: ‘0’ is NULL
vlc-3.0.21/modules/audio_filter/audiobargraph_a.c:205:16: danger: dereference of NULL ‘*p_sys.first’
#  203|   
#  204|           /* 3 - delete too old values */
#  205|->         while (p_sys->first->date < new->date - p_sys->time_window) {
#  206|               p_sys->started = 1; // we have enough values to compute a valid total
#  207|               ValueDate_t *current = p_sys->first;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def176]
vlc-3.0.21/modules/audio_filter/channel_mixer/headphone.c:313:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>.i_delay’
vlc-3.0.21/modules/audio_filter/channel_mixer/headphone.c:440:12: enter_function: entry to ‘OpenFilter’
vlc-3.0.21/modules/audio_filter/channel_mixer/headphone.c:446:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/audio_filter/channel_mixer/headphone.c:454:31: branch_false: ...to here
vlc-3.0.21/modules/audio_filter/channel_mixer/headphone.c:455:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/audio_filter/channel_mixer/headphone.c:457:5: branch_false: ...to here
vlc-3.0.21/modules/audio_filter/channel_mixer/headphone.c:462:9: call_function: calling ‘Init’ from ‘OpenFilter’
#  311|       {
#  312|           if( p_data->i_overflow_buffer_size
#  313|->                 < p_data->p_atomic_operations[i].i_delay * 2 * sizeof (float) )
#  314|           {
#  315|               p_data->i_overflow_buffer_size

Error: GCC_ANALYZER_WARNING (CWE-401): [#def177]
vlc-3.0.21/modules/audio_filter/equalizer.c:297:7: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.f_beta’
vlc-3.0.21/modules/audio_filter/equalizer.c:280:12: enter_function: entry to ‘EqzInit’
vlc-3.0.21/modules/audio_filter/equalizer.c:290:5: call_function: calling ‘EqzCoeffs’ from ‘EqzInit’
vlc-3.0.21/modules/audio_filter/equalizer.c:290:5: return_function: returning to ‘EqzInit’ from ‘EqzCoeffs’
vlc-3.0.21/modules/audio_filter/equalizer.c:296:22: call_function: inlined call to ‘vlc_alloc’ from ‘EqzInit’
vlc-3.0.21/modules/audio_filter/equalizer.c:297:7: danger: ‘*p_sys.f_beta’ leaks here; was allocated at [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
#  295|       p_sys->f_beta  = vlc_alloc( p_sys->i_band, sizeof(float) );
#  296|       p_sys->f_gamma = vlc_alloc( p_sys->i_band, sizeof(float) );
#  297|->     if( !p_sys->f_alpha || !p_sys->f_beta || !p_sys->f_gamma )
#  298|           goto error;
#  299|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def178]
vlc-3.0.21/modules/audio_filter/equalizer.c:297:7: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.f_gamma’
vlc-3.0.21/modules/audio_filter/equalizer.c:280:12: enter_function: entry to ‘EqzInit’
vlc-3.0.21/modules/audio_filter/equalizer.c:290:5: call_function: calling ‘EqzCoeffs’ from ‘EqzInit’
vlc-3.0.21/modules/audio_filter/equalizer.c:290:5: return_function: returning to ‘EqzInit’ from ‘EqzCoeffs’
vlc-3.0.21/modules/audio_filter/equalizer.c:297:7: danger: ‘*p_sys.f_gamma’ leaks here; was allocated at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
#  295|       p_sys->f_beta  = vlc_alloc( p_sys->i_band, sizeof(float) );
#  296|       p_sys->f_gamma = vlc_alloc( p_sys->i_band, sizeof(float) );
#  297|->     if( !p_sys->f_alpha || !p_sys->f_beta || !p_sys->f_gamma )
#  298|           goto error;
#  299|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def179]
vlc-3.0.21/modules/audio_filter/equalizer.c:297:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.f_alpha’
vlc-3.0.21/modules/audio_filter/equalizer.c:280:12: enter_function: entry to ‘EqzInit’
vlc-3.0.21/modules/audio_filter/equalizer.c:290:5: call_function: calling ‘EqzCoeffs’ from ‘EqzInit’
vlc-3.0.21/modules/audio_filter/equalizer.c:290:5: return_function: returning to ‘EqzInit’ from ‘EqzCoeffs’
vlc-3.0.21/modules/audio_filter/equalizer.c:294:22: call_function: inlined call to ‘vlc_alloc’ from ‘EqzInit’
vlc-3.0.21/modules/audio_filter/equalizer.c:297:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/audio_filter/equalizer.c:297:9: branch_false: ...to here
vlc-3.0.21/modules/audio_filter/equalizer.c:297:9: danger: ‘*p_sys.f_alpha’ leaks here; was allocated at [(10)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/9)
#  295|       p_sys->f_beta  = vlc_alloc( p_sys->i_band, sizeof(float) );
#  296|       p_sys->f_gamma = vlc_alloc( p_sys->i_band, sizeof(float) );
#  297|->     if( !p_sys->f_alpha || !p_sys->f_beta || !p_sys->f_gamma )
#  298|           goto error;
#  299|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def180]
vlc-3.0.21/modules/audio_filter/equalizer.c:297:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.f_alpha’
vlc-3.0.21/modules/audio_filter/equalizer.c:280:12: enter_function: entry to ‘EqzInit’
vlc-3.0.21/modules/audio_filter/equalizer.c:290:5: call_function: calling ‘EqzCoeffs’ from ‘EqzInit’
vlc-3.0.21/modules/audio_filter/equalizer.c:290:5: return_function: returning to ‘EqzInit’ from ‘EqzCoeffs’
vlc-3.0.21/modules/audio_filter/equalizer.c:294:22: call_function: inlined call to ‘vlc_alloc’ from ‘EqzInit’
vlc-3.0.21/modules/audio_filter/equalizer.c:297:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/audio_filter/equalizer.c:297:9: danger: ‘*p_sys.f_alpha’ leaks here; was allocated at [(10)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/9)
#  295|       p_sys->f_beta  = vlc_alloc( p_sys->i_band, sizeof(float) );
#  296|       p_sys->f_gamma = vlc_alloc( p_sys->i_band, sizeof(float) );
#  297|->     if( !p_sys->f_alpha || !p_sys->f_beta || !p_sys->f_gamma )
#  298|           goto error;
#  299|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def181]
vlc-3.0.21/modules/audio_filter/equalizer.c:297:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.f_beta’
vlc-3.0.21/modules/audio_filter/equalizer.c:280:12: enter_function: entry to ‘EqzInit’
vlc-3.0.21/modules/audio_filter/equalizer.c:290:5: call_function: calling ‘EqzCoeffs’ from ‘EqzInit’
vlc-3.0.21/modules/audio_filter/equalizer.c:290:5: return_function: returning to ‘EqzInit’ from ‘EqzCoeffs’
vlc-3.0.21/modules/audio_filter/equalizer.c:296:22: call_function: inlined call to ‘vlc_alloc’ from ‘EqzInit’
vlc-3.0.21/modules/audio_filter/equalizer.c:297:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/audio_filter/equalizer.c:297:9: branch_false: ...to here
vlc-3.0.21/modules/audio_filter/equalizer.c:297:9: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/audio_filter/equalizer.c:297:9: branch_false: ...to here
vlc-3.0.21/modules/audio_filter/equalizer.c:297:9: danger: ‘*p_sys.f_beta’ leaks here; was allocated at [(11)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/10)
#  295|       p_sys->f_beta  = vlc_alloc( p_sys->i_band, sizeof(float) );
#  296|       p_sys->f_gamma = vlc_alloc( p_sys->i_band, sizeof(float) );
#  297|->     if( !p_sys->f_alpha || !p_sys->f_beta || !p_sys->f_gamma )
#  298|           goto error;
#  299|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def182]
vlc-3.0.21/modules/audio_filter/equalizer.c:297:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.f_gamma’
vlc-3.0.21/modules/audio_filter/equalizer.c:280:12: enter_function: entry to ‘EqzInit’
vlc-3.0.21/modules/audio_filter/equalizer.c:290:5: call_function: calling ‘EqzCoeffs’ from ‘EqzInit’
vlc-3.0.21/modules/audio_filter/equalizer.c:290:5: return_function: returning to ‘EqzInit’ from ‘EqzCoeffs’
vlc-3.0.21/modules/audio_filter/equalizer.c:297:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/audio_filter/equalizer.c:297:9: branch_false: ...to here
vlc-3.0.21/modules/audio_filter/equalizer.c:297:9: danger: ‘*p_sys.f_gamma’ leaks here; was allocated at [(11)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/10)
#  295|       p_sys->f_beta  = vlc_alloc( p_sys->i_band, sizeof(float) );
#  296|       p_sys->f_gamma = vlc_alloc( p_sys->i_band, sizeof(float) );
#  297|->     if( !p_sys->f_alpha || !p_sys->f_beta || !p_sys->f_gamma )
#  298|           goto error;
#  299|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def183]
vlc-3.0.21/modules/audio_filter/equalizer.c:300:17: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.f_alpha’
vlc-3.0.21/modules/audio_filter/equalizer.c:280:12: enter_function: entry to ‘EqzInit’
vlc-3.0.21/modules/audio_filter/equalizer.c:290:5: call_function: calling ‘EqzCoeffs’ from ‘EqzInit’
vlc-3.0.21/modules/audio_filter/equalizer.c:290:5: return_function: returning to ‘EqzInit’ from ‘EqzCoeffs’
vlc-3.0.21/modules/audio_filter/equalizer.c:294:22: call_function: inlined call to ‘vlc_alloc’ from ‘EqzInit’
vlc-3.0.21/modules/audio_filter/equalizer.c:297:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/audio_filter/equalizer.c:300:17: danger: ‘*p_sys.f_alpha’ leaks here; was allocated at [(10)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/9)
#  298|           goto error;
#  299|   
#  300|->     for( i = 0; i < p_sys->i_band; i++ )
#  301|       {
#  302|           p_sys->f_alpha[i] = cfg.band[i].f_alpha;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def184]
vlc-3.0.21/modules/audio_filter/equalizer.c:300:17: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.f_beta’
vlc-3.0.21/modules/audio_filter/equalizer.c:280:12: enter_function: entry to ‘EqzInit’
vlc-3.0.21/modules/audio_filter/equalizer.c:290:5: call_function: calling ‘EqzCoeffs’ from ‘EqzInit’
vlc-3.0.21/modules/audio_filter/equalizer.c:290:5: return_function: returning to ‘EqzInit’ from ‘EqzCoeffs’
vlc-3.0.21/modules/audio_filter/equalizer.c:296:22: call_function: inlined call to ‘vlc_alloc’ from ‘EqzInit’
vlc-3.0.21/modules/audio_filter/equalizer.c:297:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/audio_filter/equalizer.c:297:9: branch_false: ...to here
vlc-3.0.21/modules/audio_filter/equalizer.c:297:9: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/audio_filter/equalizer.c:300:17: danger: ‘*p_sys.f_beta’ leaks here; was allocated at [(11)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/10)
#  298|           goto error;
#  299|   
#  300|->     for( i = 0; i < p_sys->i_band; i++ )
#  301|       {
#  302|           p_sys->f_alpha[i] = cfg.band[i].f_alpha;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def185]
vlc-3.0.21/modules/audio_filter/equalizer.c:300:17: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.f_gamma’
vlc-3.0.21/modules/audio_filter/equalizer.c:280:12: enter_function: entry to ‘EqzInit’
vlc-3.0.21/modules/audio_filter/equalizer.c:290:5: call_function: calling ‘EqzCoeffs’ from ‘EqzInit’
vlc-3.0.21/modules/audio_filter/equalizer.c:290:5: return_function: returning to ‘EqzInit’ from ‘EqzCoeffs’
vlc-3.0.21/modules/audio_filter/equalizer.c:297:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/audio_filter/equalizer.c:297:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/audio_filter/equalizer.c:300:17: danger: ‘*p_sys.f_gamma’ leaks here; was allocated at [(11)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/10)
#  298|           goto error;
#  299|   
#  300|->     for( i = 0; i < p_sys->i_band; i++ )
#  301|       {
#  302|           p_sys->f_alpha[i] = cfg.band[i].f_alpha;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def186]
vlc-3.0.21/modules/audio_filter/equalizer.c:314:17: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.f_amp’
vlc-3.0.21/modules/audio_filter/equalizer.c:280:12: enter_function: entry to ‘EqzInit’
vlc-3.0.21/modules/audio_filter/equalizer.c:290:5: call_function: calling ‘EqzCoeffs’ from ‘EqzInit’
vlc-3.0.21/modules/audio_filter/equalizer.c:290:5: return_function: returning to ‘EqzInit’ from ‘EqzCoeffs’
vlc-3.0.21/modules/audio_filter/equalizer.c:297:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/audio_filter/equalizer.c:310:21: call_function: inlined call to ‘vlc_alloc’ from ‘EqzInit’
vlc-3.0.21/modules/audio_filter/equalizer.c:311:7: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/audio_filter/equalizer.c:314:17: danger: ‘*p_sys.f_amp’ leaks here; was allocated at [(16)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/15)
#  312|           goto error;
#  313|   
#  314|->     for( i = 0; i < p_sys->i_band; i++ )
#  315|       {
#  316|           p_sys->f_amp[i] = 0.0f;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def187]
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:256:58: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p_out’
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:385:1: enter_function: entry to ‘Drain’
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:389:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:390:16: call_function: calling ‘SoXR_Resample’ from ‘Drain’
#  254|   
#  255|       soxr_error_t error = soxr_process( soxr, p_in ? p_in->p_buffer : NULL,
#  256|->                                        i_ilen, &i_idone, p_out->p_buffer,
#  257|                                          i_olen, &i_odone );
#  258|       if( error )

Error: GCC_ANALYZER_WARNING (CWE-476): [#def188]
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:357:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p_out’
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:300:1: enter_function: entry to ‘Resample’
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:305:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:313:32: branch_true: ...to here
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:324:16: branch_false: following ‘false’ branch (when ‘f_ratio != 1.0e+0’)...
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:333:13: branch_false: ...to here
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:337:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:339:29: call_function: calling ‘SoXR_Resample’ from ‘Resample’
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:339:29: return_function: returning to ‘Resample’ from ‘SoXR_Resample’
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:353:11: branch_true: following ‘true’ branch (when ‘p_flushed_out’ is non-NULL)...
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:356:43: branch_true: ...to here
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:357:43: danger: dereference of NULL ‘p_out’
#  355|               /* Prepend the flushed output data to p_out */
#  356|               const unsigned i_nb_samples = p_flushed_out->i_nb_samples
#  357|->                                         + p_out->i_nb_samples;
#  358|   
#  359|               block_ChainAppend( &p_flushed_out, p_out );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def189]
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:365:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p_out’
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:305:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:313:32: branch_true: ...to here
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:324:16: branch_false: following ‘false’ branch (when ‘f_ratio != 1.0e+0’)...
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:333:13: branch_false: ...to here
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:337:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:345:11: branch_false: ...to here
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:345:11: branch_false: following ‘false’ branch (when ‘soxr’ is NULL)...
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:353:11: branch_false: ...to here
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:353:11: branch_false: following ‘false’ branch (when ‘p_flushed_out’ is NULL)...
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:365:9: branch_false: ...to here
vlc-3.0.21/modules/audio_filter/resampler/soxr.c:365:9: danger: dereference of NULL ‘p_out’
#  363|               p_out->i_nb_samples = i_nb_samples;
#  364|           }
#  365|->         p_out->i_pts = i_pts;
#  366|           return p_out;
#  367|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def190]
vlc-3.0.21/modules/audio_filter/scaletempo.c:328:11: warning[-Wanalyzer-malloc-leak]: leak of ‘*p.table_blend’
vlc-3.0.21/modules/audio_filter/scaletempo.c:410:12: enter_function: entry to ‘Open’
vlc-3.0.21/modules/audio_filter/scaletempo.c:416:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/audio_filter/scaletempo.c:419:5: branch_false: ...to here
vlc-3.0.21/modules/audio_filter/scaletempo.c:448:9: call_function: calling ‘reinit_buffers’ from ‘Open’
#  326|           p->buf_overlap      = vlc_alloc( 1, p->bytes_overlap );
#  327|           p->table_blend      = vlc_alloc( 4, p->samples_overlap ); /* sizeof (int32|float) */
#  328|->         if( !p->buf_overlap || !p->table_blend )
#  329|               return VLC_ENOMEM;
#  330|           if( p->bytes_overlap > prev_overlap )

Error: GCC_ANALYZER_WARNING (CWE-401): [#def191]
vlc-3.0.21/modules/audio_filter/scaletempo.c:328:13: warning[-Wanalyzer-malloc-leak]: leak of ‘*p.buf_overlap’
vlc-3.0.21/modules/audio_filter/scaletempo.c:410:12: enter_function: entry to ‘Open’
vlc-3.0.21/modules/audio_filter/scaletempo.c:416:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/audio_filter/scaletempo.c:419:5: branch_false: ...to here
vlc-3.0.21/modules/audio_filter/scaletempo.c:448:9: call_function: calling ‘reinit_buffers’ from ‘Open’
#  326|           p->buf_overlap      = vlc_alloc( 1, p->bytes_overlap );
#  327|           p->table_blend      = vlc_alloc( 4, p->samples_overlap ); /* sizeof (int32|float) */
#  328|->         if( !p->buf_overlap || !p->table_blend )
#  329|               return VLC_ENOMEM;
#  330|           if( p->bytes_overlap > prev_overlap )

Error: GCC_ANALYZER_WARNING (CWE-401): [#def192]
vlc-3.0.21/modules/audio_filter/scaletempo.c:328:13: warning[-Wanalyzer-malloc-leak]: leak of ‘*p.table_blend’
vlc-3.0.21/modules/audio_filter/scaletempo.c:410:12: enter_function: entry to ‘Open’
vlc-3.0.21/modules/audio_filter/scaletempo.c:416:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/audio_filter/scaletempo.c:419:5: branch_false: ...to here
vlc-3.0.21/modules/audio_filter/scaletempo.c:448:9: call_function: calling ‘reinit_buffers’ from ‘Open’
#  326|           p->buf_overlap      = vlc_alloc( 1, p->bytes_overlap );
#  327|           p->table_blend      = vlc_alloc( 4, p->samples_overlap ); /* sizeof (int32|float) */
#  328|->         if( !p->buf_overlap || !p->table_blend )
#  329|               return VLC_ENOMEM;
#  330|           if( p->bytes_overlap > prev_overlap )

Error: GCC_ANALYZER_WARNING (CWE-401): [#def193]
vlc-3.0.21/modules/audio_filter/scaletempo.c:330:11: warning[-Wanalyzer-malloc-leak]: leak of ‘*p.buf_overlap’
vlc-3.0.21/modules/audio_filter/scaletempo.c:410:12: enter_function: entry to ‘Open’
vlc-3.0.21/modules/audio_filter/scaletempo.c:416:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/audio_filter/scaletempo.c:419:5: branch_false: ...to here
vlc-3.0.21/modules/audio_filter/scaletempo.c:448:9: call_function: calling ‘reinit_buffers’ from ‘Open’
#  328|           if( !p->buf_overlap || !p->table_blend )
#  329|               return VLC_ENOMEM;
#  330|->         if( p->bytes_overlap > prev_overlap )
#  331|               memset( (uint8_t *)p->buf_overlap + prev_overlap, 0, p->bytes_overlap - prev_overlap );
#  332|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def194]
vlc-3.0.21/modules/audio_filter/scaletempo.c:331:13: warning[-Wanalyzer-malloc-leak]: leak of ‘*p.buf_overlap’
vlc-3.0.21/modules/audio_filter/scaletempo.c:410:12: enter_function: entry to ‘Open’
vlc-3.0.21/modules/audio_filter/scaletempo.c:416:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/audio_filter/scaletempo.c:419:5: branch_false: ...to here
vlc-3.0.21/modules/audio_filter/scaletempo.c:448:9: call_function: calling ‘reinit_buffers’ from ‘Open’
#  329|               return VLC_ENOMEM;
#  330|           if( p->bytes_overlap > prev_overlap )
#  331|->             memset( (uint8_t *)p->buf_overlap + prev_overlap, 0, p->bytes_overlap - prev_overlap );
#  332|   
#  333|           float *pb = p->table_blend;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def195]
vlc-3.0.21/modules/audio_filter/scaletempo.c:387:7: warning[-Wanalyzer-malloc-leak]: leak of ‘*p.buf_queue’
vlc-3.0.21/modules/audio_filter/scaletempo.c:410:12: enter_function: entry to ‘Open’
vlc-3.0.21/modules/audio_filter/scaletempo.c:416:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/audio_filter/scaletempo.c:419:5: branch_false: ...to here
vlc-3.0.21/modules/audio_filter/scaletempo.c:448:9: call_function: calling ‘reinit_buffers’ from ‘Open’
#  385|       p->bytes_queue_max = new_size;
#  386|       p->buf_queue = malloc( p->bytes_queue_max );
#  387|->     if( ! p->buf_queue )
#  388|           return VLC_ENOMEM;
#  389|   

Error: GCC_ANALYZER_WARNING: [#def196]
vlc-3.0.21/modules/audio_filter/stereo_widen.c:106:24: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
vlc-3.0.21/modules/audio_filter/stereo_widen.c:103:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/audio_filter/stereo_widen.c:106:45: branch_false: ...to here
vlc-3.0.21/modules/audio_filter/stereo_widen.c:106:24: danger: operand ‘f_delay’ is of type ‘float’
#  104|           return VLC_EGENERIC;
#  105|   
#  106|->     float *p_realloc = realloc( *pp_buffer, i_size * sizeof(float) );
#  107|       if( !p_realloc )
#  108|           return VLC_ENOMEM;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def197]
vlc-3.0.21/modules/audio_output/pulse.c:114:5: warning[-Wanalyzer-malloc-leak]: leak of ‘sink’
vlc-3.0.21/modules/audio_output/pulse.c:95:8: branch_false: following ‘false’ branch (when ‘eol == 0’)...
vlc-3.0.21/modules/audio_output/pulse.c:102:5: branch_false: ...to here
vlc-3.0.21/modules/audio_output/pulse.c:107:25: acquire_memory: allocated here
vlc-3.0.21/modules/audio_output/pulse.c:108:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/audio_output/pulse.c:111:18: branch_false: ...to here
vlc-3.0.21/modules/audio_output/pulse.c:114:5: danger: ‘sink’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  112|       sink->index = i->index;
#  113|       memcpy(sink->name, i->name, namelen + 1);
#  114|->     sys->sinks = sink;
#  115|   }
#  116|   

Error: COMPILER_WARNING (CWE-563): [#def198]
vlc-3.0.21/modules/audio_output/pulse.c: scope_hint: In function ‘stream_start_now’
vlc-3.0.21/modules/audio_output/pulse.c:174:60: warning[-Wunused-parameter]: unused parameter ‘aout’
#  174 | static void stream_start_now(pa_stream *s, audio_output_t *aout)
#      |                                            ~~~~~~~~~~~~~~~~^~~~
#  172|   
#  173|   /*** Latency management and lip synchronization ***/
#  174|-> static void stream_start_now(pa_stream *s, audio_output_t *aout)
#  175|   {
#  176|       pa_operation *op;

Error: COMPILER_WARNING (CWE-9001): [#def199]
vlc-3.0.21/modules/audio_output/pulse.c: scope_hint: In function 'Flush'
vlc-3.0.21/modules/audio_output/pulse.c:584:13: warning[-Wattribute-warning]: call to 'harmful_delay' declared with attribute warning: use proper event handling instead of short delay
#  584 |             msleep(delay);
#      |             ^
#  582|           vlc_tick_t delay;
#  583|           if (TimeGet(aout, &delay) == 0 && delay <= INT64_C(5000000))
#  584|->             msleep(delay);
#  585|       }
#  586|       else

Error: COMPILER_WARNING (CWE-9001): [#def200]
vlc-3.0.21/modules/audio_output/pulse.c:584:13: warning[-Wattribute-warning]: call to ‘harmful_delay’ declared with attribute warning: use proper event handling instead of short delay
#  582|           vlc_tick_t delay;
#  583|           if (TimeGet(aout, &delay) == 0 && delay <= INT64_C(5000000))
#  584|->             msleep(delay);
#  585|       }
#  586|       else

Error: GCC_ANALYZER_WARNING (CWE-688): [#def201]
vlc-3.0.21/modules/codec/arib/aribsub.c:253:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘psz_subtitle_data_hex_idx’ where non-null expected
vlc-3.0.21/modules/codec/arib/aribsub.c:225:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/arib/aribsub.c:230:7: branch_false: following ‘false’ branch (when ‘psz_subtitle’ is non-NULL)...
vlc-3.0.21/modules/codec/arib/aribsub.c:234:9: branch_false: ...to here
vlc-3.0.21/modules/codec/arib/aribsub.c:248:43: acquire_memory: this call could return NULL
vlc-3.0.21/modules/codec/arib/aribsub.c:251:12: branch_true: following ‘true’ branch (when ‘start < end’)...
vlc-3.0.21/modules/codec/arib/aribsub.c:253:54: branch_true: ...to here
vlc-3.0.21/modules/codec/arib/aribsub.c:253:9: danger: argument 1 (‘psz_subtitle_data_hex_idx’) from [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
#argument 1 of ‘__builtin_sprintf’ must be non-null
#  251|       while( start < end )
#  252|       {
#  253|->         sprintf(psz_subtitle_data_hex_idx, "%02x ", *start++);
#  254|           psz_subtitle_data_hex_idx += 3;
#  255|       }

Error: COMPILER_WARNING (CWE-477): [#def202]
vlc-3.0.21/modules/codec/avcodec/avcommon.h:38: included_from: Included from here.
vlc-3.0.21/modules/codec/avcodec/avcodec.h:25: included_from: Included from here.
vlc-3.0.21/modules/codec/avcodec/encoder.c:47: included_from: Included from here.
vlc-3.0.21/modules/codec/avcodec/avcommon_compat.h:130:22: warning[-Wdeprecated-declarations]: ‘pix_fmts’ is deprecated
#  130 | # define PixelFormat AVPixelFormat
#      |                      ^~~~~~~~~~~~~
vlc-3.0.21/modules/codec/avcodec/encoder.c:570:24: note: in expansion of macro ‘PixelFormat’
#  570 |             const enum PixelFormat *p = p_codec->pix_fmts;
#      |                        ^~~~~~~~~~~
/usr/include/ffmpeg/libavcodec/codec.h:215:31: note: declared here
#  215 |     const enum AVPixelFormat *pix_fmts;     ///< @deprecated use avcodec_get_supported_config()
#      |                               ^~~~~~~~
#  128|   /* libavutil/pixfmt.h */
#  129|   #ifndef PixelFormat
#  130|-> # define PixelFormat AVPixelFormat
#  131|   #endif
#  132|   

Error: COMPILER_WARNING (CWE-477): [#def203]
vlc-3.0.21/modules/codec/avcodec/encoder.c: scope_hint: In function ‘probe_video_frame_rate’
vlc-3.0.21/modules/codec/avcodec/encoder.c:261:5: warning[-Wdeprecated-declarations]: ‘supported_framerates’ is deprecated
#  261 |     if( p_codec->supported_framerates )
#      |     ^~
/usr/include/ffmpeg/libavcodec/avcodec.h:41: included_from: Included from here.
vlc-3.0.21/modules/codec/avcodec/encoder.c:45: included_from: Included from here.
/usr/include/ffmpeg/libavcodec/codec.h:213:23: note: declared here
#  213 |     const AVRational *supported_framerates; ///< @deprecated use avcodec_get_supported_config()
#      |                       ^~~~~~~~~~~~~~~~~~~~
#  259|   
#  260|       msg_Dbg( p_enc, "Time base for probing set to %d/%d", p_context->time_base.num, p_context->time_base.den );
#  261|->     if( p_codec->supported_framerates )
#  262|       {
#  263|           /* We are finding fps values so 1/time_base */

Error: COMPILER_WARNING (CWE-477): [#def204]
vlc-3.0.21/modules/codec/avcodec/encoder.c:261:5: warning[-Wdeprecated-declarations]: ‘supported_framerates’ is deprecated
#  259|   
#  260|       msg_Dbg( p_enc, "Time base for probing set to %d/%d", p_context->time_base.num, p_context->time_base.den );
#  261|->     if( p_codec->supported_framerates )
#  262|       {
#  263|           /* We are finding fps values so 1/time_base */

Error: COMPILER_WARNING (CWE-477): [#def205]
vlc-3.0.21/modules/codec/avcodec/encoder.c:268:9: warning[-Wdeprecated-declarations]: ‘supported_framerates’ is deprecated
#  268 |         int idx = av_find_nearest_q_idx(target, p_codec->supported_framerates);
#      |         ^~~
/usr/include/ffmpeg/libavcodec/codec.h:213:23: note: declared here
#  213 |     const AVRational *supported_framerates; ///< @deprecated use avcodec_get_supported_config()
#      |                       ^~~~~~~~~~~~~~~~~~~~
#  266|               .den = p_context->time_base.num
#  267|           };
#  268|->         int idx = av_find_nearest_q_idx(target, p_codec->supported_framerates);
#  269|   
#  270|           p_context->time_base.num = p_codec->supported_framerates[idx].den ?

Error: COMPILER_WARNING (CWE-477): [#def206]
vlc-3.0.21/modules/codec/avcodec/encoder.c:268:9: warning[-Wdeprecated-declarations]: ‘supported_framerates’ is deprecated
#  266|               .den = p_context->time_base.num
#  267|           };
#  268|->         int idx = av_find_nearest_q_idx(target, p_codec->supported_framerates);
#  269|   
#  270|           p_context->time_base.num = p_codec->supported_framerates[idx].den ?

Error: COMPILER_WARNING (CWE-477): [#def207]
vlc-3.0.21/modules/codec/avcodec/encoder.c:270:9: warning[-Wdeprecated-declarations]: ‘supported_framerates’ is deprecated
#  270 |         p_context->time_base.num = p_codec->supported_framerates[idx].den ?
#      |         ^~~~~~~~~
/usr/include/ffmpeg/libavcodec/codec.h:213:23: note: declared here
#  213 |     const AVRational *supported_framerates; ///< @deprecated use avcodec_get_supported_config()
#      |                       ^~~~~~~~~~~~~~~~~~~~
#  268|           int idx = av_find_nearest_q_idx(target, p_codec->supported_framerates);
#  269|   
#  270|->         p_context->time_base.num = p_codec->supported_framerates[idx].den ?
#  271|                                       p_codec->supported_framerates[idx].den : 1;
#  272|           p_context->time_base.den = p_codec->supported_framerates[idx].den ?

Error: COMPILER_WARNING (CWE-477): [#def208]
vlc-3.0.21/modules/codec/avcodec/encoder.c:270:9: warning[-Wdeprecated-declarations]: ‘supported_framerates’ is deprecated
#  268|           int idx = av_find_nearest_q_idx(target, p_codec->supported_framerates);
#  269|   
#  270|->         p_context->time_base.num = p_codec->supported_framerates[idx].den ?
#  271|                                       p_codec->supported_framerates[idx].den : 1;
#  272|           p_context->time_base.den = p_codec->supported_framerates[idx].den ?

Error: COMPILER_WARNING (CWE-477): [#def209]
vlc-3.0.21/modules/codec/avcodec/encoder.c:271:37: warning[-Wdeprecated-declarations]: ‘supported_framerates’ is deprecated
#  271 |                                     p_codec->supported_framerates[idx].den : 1;
#      |                                     ^~~~~~~
/usr/include/ffmpeg/libavcodec/codec.h:213:23: note: declared here
#  213 |     const AVRational *supported_framerates; ///< @deprecated use avcodec_get_supported_config()
#      |                       ^~~~~~~~~~~~~~~~~~~~
#  269|   
#  270|           p_context->time_base.num = p_codec->supported_framerates[idx].den ?
#  271|->                                     p_codec->supported_framerates[idx].den : 1;
#  272|           p_context->time_base.den = p_codec->supported_framerates[idx].den ?
#  273|                                       p_codec->supported_framerates[idx].num : CLOCK_FREQ;

Error: COMPILER_WARNING (CWE-477): [#def210]
vlc-3.0.21/modules/codec/avcodec/encoder.c:271:37: warning[-Wdeprecated-declarations]: ‘supported_framerates’ is deprecated
#  269|   
#  270|           p_context->time_base.num = p_codec->supported_framerates[idx].den ?
#  271|->                                     p_codec->supported_framerates[idx].den : 1;
#  272|           p_context->time_base.den = p_codec->supported_framerates[idx].den ?
#  273|                                       p_codec->supported_framerates[idx].num : CLOCK_FREQ;

Error: COMPILER_WARNING (CWE-477): [#def211]
vlc-3.0.21/modules/codec/avcodec/encoder.c:272:9: warning[-Wdeprecated-declarations]: ‘supported_framerates’ is deprecated
#  272 |         p_context->time_base.den = p_codec->supported_framerates[idx].den ?
#      |         ^~~~~~~~~
/usr/include/ffmpeg/libavcodec/codec.h:213:23: note: declared here
#  213 |     const AVRational *supported_framerates; ///< @deprecated use avcodec_get_supported_config()
#      |                       ^~~~~~~~~~~~~~~~~~~~
#  270|           p_context->time_base.num = p_codec->supported_framerates[idx].den ?
#  271|                                       p_codec->supported_framerates[idx].den : 1;
#  272|->         p_context->time_base.den = p_codec->supported_framerates[idx].den ?
#  273|                                       p_codec->supported_framerates[idx].num : CLOCK_FREQ;
#  274|   

Error: COMPILER_WARNING (CWE-477): [#def212]
vlc-3.0.21/modules/codec/avcodec/encoder.c:272:9: warning[-Wdeprecated-declarations]: ‘supported_framerates’ is deprecated
#  270|           p_context->time_base.num = p_codec->supported_framerates[idx].den ?
#  271|                                       p_codec->supported_framerates[idx].den : 1;
#  272|->         p_context->time_base.den = p_codec->supported_framerates[idx].den ?
#  273|                                       p_codec->supported_framerates[idx].num : CLOCK_FREQ;
#  274|   

Error: COMPILER_WARNING (CWE-477): [#def213]
vlc-3.0.21/modules/codec/avcodec/encoder.c:273:37: warning[-Wdeprecated-declarations]: ‘supported_framerates’ is deprecated
#  273 |                                     p_codec->supported_framerates[idx].num : CLOCK_FREQ;
#      |                                     ^~~~~~~
/usr/include/ffmpeg/libavcodec/codec.h:213:23: note: declared here
#  213 |     const AVRational *supported_framerates; ///< @deprecated use avcodec_get_supported_config()
#      |                       ^~~~~~~~~~~~~~~~~~~~
#  271|                                       p_codec->supported_framerates[idx].den : 1;
#  272|           p_context->time_base.den = p_codec->supported_framerates[idx].den ?
#  273|->                                     p_codec->supported_framerates[idx].num : CLOCK_FREQ;
#  274|   
#  275|           /* If we have something reasonable on supported framerates, use that*/

Error: COMPILER_WARNING (CWE-477): [#def214]
vlc-3.0.21/modules/codec/avcodec/encoder.c:273:37: warning[-Wdeprecated-declarations]: ‘supported_framerates’ is deprecated
#  271|                                       p_codec->supported_framerates[idx].den : 1;
#  272|           p_context->time_base.den = p_codec->supported_framerates[idx].den ?
#  273|->                                     p_codec->supported_framerates[idx].num : CLOCK_FREQ;
#  274|   
#  275|           /* If we have something reasonable on supported framerates, use that*/

Error: COMPILER_WARNING (CWE-477): [#def215]
vlc-3.0.21/modules/codec/avcodec/encoder.c: scope_hint: In function ‘InitVideoEnc’
vlc-3.0.21/modules/codec/avcodec/encoder.c:562:9: warning[-Wdeprecated-declarations]: ‘pix_fmts’ is deprecated
#  562 |         if( p_codec->pix_fmts )
#      |         ^~
/usr/include/ffmpeg/libavcodec/codec.h:215:31: note: declared here
#  215 |     const enum AVPixelFormat *pix_fmts;     ///< @deprecated use avcodec_get_supported_config()
#      |                               ^~~~~~~~
#  560|           GetFfmpegChroma( &p_context->pix_fmt, &p_enc->fmt_in.video );
#  561|   
#  562|->         if( p_codec->pix_fmts )
#  563|           {
#  564|               static const enum AVPixelFormat vlc_pix_fmts[] = {

Error: COMPILER_WARNING (CWE-477): [#def216]
vlc-3.0.21/modules/codec/avcodec/encoder.c:562:9: warning[-Wdeprecated-declarations]: ‘pix_fmts’ is deprecated
#  560|           GetFfmpegChroma( &p_context->pix_fmt, &p_enc->fmt_in.video );
#  561|   
#  562|->         if( p_codec->pix_fmts )
#  563|           {
#  564|               static const enum AVPixelFormat vlc_pix_fmts[] = {

Error: COMPILER_WARNING (CWE-477): [#def217]
vlc-3.0.21/modules/codec/avcodec/encoder.c:570:24: warning[-Wdeprecated-declarations]: ‘pix_fmts’ is deprecated
#  568|               };
#  569|               bool found = false;
#  570|->             const enum PixelFormat *p = p_codec->pix_fmts;
#  571|               for( ; !found && *p != -1; p++ )
#  572|               {

Error: COMPILER_WARNING (CWE-477): [#def218]
vlc-3.0.21/modules/codec/avcodec/encoder.c:583:13: warning[-Wdeprecated-declarations]: ‘pix_fmts’ is deprecated
#  583 |             if (!found) p_context->pix_fmt = p_codec->pix_fmts[0];
#      |             ^~
/usr/include/ffmpeg/libavcodec/codec.h:215:31: note: declared here
#  215 |     const enum AVPixelFormat *pix_fmts;     ///< @deprecated use avcodec_get_supported_config()
#      |                               ^~~~~~~~
#  581|                   }
#  582|               }
#  583|->             if (!found) p_context->pix_fmt = p_codec->pix_fmts[0];
#  584|               GetVlcChroma( &p_enc->fmt_in.video, p_context->pix_fmt );
#  585|               p_enc->fmt_in.i_codec = p_enc->fmt_in.video.i_chroma;

Error: COMPILER_WARNING (CWE-477): [#def219]
vlc-3.0.21/modules/codec/avcodec/encoder.c:583:13: warning[-Wdeprecated-declarations]: ‘pix_fmts’ is deprecated
#  581|                   }
#  582|               }
#  583|->             if (!found) p_context->pix_fmt = p_codec->pix_fmts[0];
#  584|               GetVlcChroma( &p_enc->fmt_in.video, p_context->pix_fmt );
#  585|               p_enc->fmt_in.i_codec = p_enc->fmt_in.video.i_chroma;

Error: COMPILER_WARNING (CWE-477): [#def220]
vlc-3.0.21/modules/codec/avcodec/encoder.c:709:9: warning[-Wdeprecated-declarations]: ‘sample_fmts’ is deprecated
#  709 |         p_context->sample_fmt  = p_codec->sample_fmts ?
#      |         ^~~~~~~~~
/usr/include/ffmpeg/libavcodec/codec.h:219:32: note: declared here
#  219 |     const enum AVSampleFormat *sample_fmts; ///< @deprecated use avcodec_get_supported_config()
#      |                                ^~~~~~~~~~~
#  707|       {
#  708|           p_context->codec_type  = AVMEDIA_TYPE_AUDIO;
#  709|->         p_context->sample_fmt  = p_codec->sample_fmts ?
#  710|                                       p_codec->sample_fmts[0] :
#  711|                                       AV_SAMPLE_FMT_S16;

Error: COMPILER_WARNING (CWE-477): [#def221]
vlc-3.0.21/modules/codec/avcodec/encoder.c:709:9: warning[-Wdeprecated-declarations]: ‘sample_fmts’ is deprecated
#  707|       {
#  708|           p_context->codec_type  = AVMEDIA_TYPE_AUDIO;
#  709|->         p_context->sample_fmt  = p_codec->sample_fmts ?
#  710|                                       p_codec->sample_fmts[0] :
#  711|                                       AV_SAMPLE_FMT_S16;

Error: COMPILER_WARNING (CWE-477): [#def222]
vlc-3.0.21/modules/codec/avcodec/encoder.c:710:37: warning[-Wdeprecated-declarations]: ‘sample_fmts’ is deprecated
#  710 |                                     p_codec->sample_fmts[0] :
#      |                                     ^~~~~~~
/usr/include/ffmpeg/libavcodec/codec.h:219:32: note: declared here
#  219 |     const enum AVSampleFormat *sample_fmts; ///< @deprecated use avcodec_get_supported_config()
#      |                                ^~~~~~~~~~~
#  708|           p_context->codec_type  = AVMEDIA_TYPE_AUDIO;
#  709|           p_context->sample_fmt  = p_codec->sample_fmts ?
#  710|->                                     p_codec->sample_fmts[0] :
#  711|                                       AV_SAMPLE_FMT_S16;
#  712|   

Error: COMPILER_WARNING (CWE-477): [#def223]
vlc-3.0.21/modules/codec/avcodec/encoder.c:710:37: warning[-Wdeprecated-declarations]: ‘sample_fmts’ is deprecated
#  708|           p_context->codec_type  = AVMEDIA_TYPE_AUDIO;
#  709|           p_context->sample_fmt  = p_codec->sample_fmts ?
#  710|->                                     p_codec->sample_fmts[0] :
#  711|                                       AV_SAMPLE_FMT_S16;
#  712|   

Error: COMPILER_WARNING (CWE-477): [#def224]
vlc-3.0.21/modules/codec/avcodec/encoder.c:716:13: warning[-Wdeprecated-declarations]: ‘sample_fmts’ is deprecated
#  716 |             && p_codec->sample_fmts )
#      |             ^~
/usr/include/ffmpeg/libavcodec/codec.h:219:32: note: declared here
#  219 |     const enum AVSampleFormat *sample_fmts; ///< @deprecated use avcodec_get_supported_config()
#      |                                ^~~~~~~~~~~
#  714|              format conversion */
#  715|           if( GetVlcAudioFormat( p_context->sample_fmt ) != p_enc->fmt_in.i_codec
#  716|->             && p_codec->sample_fmts )
#  717|           {
#  718|               msg_Dbg( p_enc, "Trying to find more suitable sample format instead of %s", av_get_sample_fmt_name( p_context->sample_fmt ) );

Error: COMPILER_WARNING (CWE-477): [#def225]
vlc-3.0.21/modules/codec/avcodec/encoder.c:716:13: warning[-Wdeprecated-declarations]: ‘sample_fmts’ is deprecated
#  714|              format conversion */
#  715|           if( GetVlcAudioFormat( p_context->sample_fmt ) != p_enc->fmt_in.i_codec
#  716|->             && p_codec->sample_fmts )
#  717|           {
#  718|               msg_Dbg( p_enc, "Trying to find more suitable sample format instead of %s", av_get_sample_fmt_name( p_context->sample_fmt ) );

Error: COMPILER_WARNING (CWE-477): [#def226]
vlc-3.0.21/modules/codec/avcodec/encoder.c:719:13: warning[-Wdeprecated-declarations]: ‘sample_fmts’ is deprecated
#  719 |             for( unsigned int i=0; p_codec->sample_fmts[i] != -1; i++ )
#      |             ^~~
/usr/include/ffmpeg/libavcodec/codec.h:219:32: note: declared here
#  219 |     const enum AVSampleFormat *sample_fmts; ///< @deprecated use avcodec_get_supported_config()
#      |                                ^~~~~~~~~~~
#  717|           {
#  718|               msg_Dbg( p_enc, "Trying to find more suitable sample format instead of %s", av_get_sample_fmt_name( p_context->sample_fmt ) );
#  719|->             for( unsigned int i=0; p_codec->sample_fmts[i] != -1; i++ )
#  720|               {
#  721|                   if( GetVlcAudioFormat( p_codec->sample_fmts[i] ) == p_enc->fmt_in.i_codec )

Error: COMPILER_WARNING (CWE-477): [#def227]
vlc-3.0.21/modules/codec/avcodec/encoder.c:719:13: warning[-Wdeprecated-declarations]: ‘sample_fmts’ is deprecated
#  717|           {
#  718|               msg_Dbg( p_enc, "Trying to find more suitable sample format instead of %s", av_get_sample_fmt_name( p_context->sample_fmt ) );
#  719|->             for( unsigned int i=0; p_codec->sample_fmts[i] != -1; i++ )
#  720|               {
#  721|                   if( GetVlcAudioFormat( p_codec->sample_fmts[i] ) == p_enc->fmt_in.i_codec )

Error: COMPILER_WARNING (CWE-477): [#def228]
vlc-3.0.21/modules/codec/avcodec/encoder.c:721:17: warning[-Wdeprecated-declarations]: ‘sample_fmts’ is deprecated
#  721 |                 if( GetVlcAudioFormat( p_codec->sample_fmts[i] ) == p_enc->fmt_in.i_codec )
#      |                 ^~
/usr/include/ffmpeg/libavcodec/codec.h:219:32: note: declared here
#  219 |     const enum AVSampleFormat *sample_fmts; ///< @deprecated use avcodec_get_supported_config()
#      |                                ^~~~~~~~~~~
#  719|               for( unsigned int i=0; p_codec->sample_fmts[i] != -1; i++ )
#  720|               {
#  721|->                 if( GetVlcAudioFormat( p_codec->sample_fmts[i] ) == p_enc->fmt_in.i_codec )
#  722|                   {
#  723|                       p_context->sample_fmt = p_codec->sample_fmts[i];

Error: COMPILER_WARNING (CWE-477): [#def229]
vlc-3.0.21/modules/codec/avcodec/encoder.c:721:17: warning[-Wdeprecated-declarations]: ‘sample_fmts’ is deprecated
#  719|               for( unsigned int i=0; p_codec->sample_fmts[i] != -1; i++ )
#  720|               {
#  721|->                 if( GetVlcAudioFormat( p_codec->sample_fmts[i] ) == p_enc->fmt_in.i_codec )
#  722|                   {
#  723|                       p_context->sample_fmt = p_codec->sample_fmts[i];

Error: COMPILER_WARNING (CWE-477): [#def230]
vlc-3.0.21/modules/codec/avcodec/encoder.c:723:21: warning[-Wdeprecated-declarations]: ‘sample_fmts’ is deprecated
#  723 |                     p_context->sample_fmt = p_codec->sample_fmts[i];
#      |                     ^~~~~~~~~
/usr/include/ffmpeg/libavcodec/codec.h:219:32: note: declared here
#  219 |     const enum AVSampleFormat *sample_fmts; ///< @deprecated use avcodec_get_supported_config()
#      |                                ^~~~~~~~~~~
#  721|                   if( GetVlcAudioFormat( p_codec->sample_fmts[i] ) == p_enc->fmt_in.i_codec )
#  722|                   {
#  723|->                     p_context->sample_fmt = p_codec->sample_fmts[i];
#  724|                       msg_Dbg( p_enc, "Using %s as new sample format", av_get_sample_fmt_name( p_context->sample_fmt ) );
#  725|                       break;

Error: COMPILER_WARNING (CWE-477): [#def231]
vlc-3.0.21/modules/codec/avcodec/encoder.c:723:21: warning[-Wdeprecated-declarations]: ‘sample_fmts’ is deprecated
#  721|                   if( GetVlcAudioFormat( p_codec->sample_fmts[i] ) == p_enc->fmt_in.i_codec )
#  722|                   {
#  723|->                     p_context->sample_fmt = p_codec->sample_fmts[i];
#  724|                       msg_Dbg( p_enc, "Using %s as new sample format", av_get_sample_fmt_name( p_context->sample_fmt ) );
#  725|                       break;

Error: COMPILER_WARNING (CWE-477): [#def232]
vlc-3.0.21/modules/codec/avcodec/encoder.c:732:9: warning[-Wdeprecated-declarations]: ‘sample_fmts’ is deprecated
#  732 |         if( p_sys->b_planar && p_codec->sample_fmts )
#      |         ^~
/usr/include/ffmpeg/libavcodec/codec.h:219:32: note: declared here
#  219 |     const enum AVSampleFormat *sample_fmts; ///< @deprecated use avcodec_get_supported_config()
#      |                                ^~~~~~~~~~~
#  730|           // Try if we can use interleaved format for codec input as VLC doesn't really do planar audio yet
#  731|           // FIXME: Remove when planar/interleaved audio in vlc is equally supported
#  732|->         if( p_sys->b_planar && p_codec->sample_fmts )
#  733|           {
#  734|               msg_Dbg( p_enc, "Trying to find packet sample format instead of planar %s", av_get_sample_fmt_name( p_context->sample_fmt ) );

Error: COMPILER_WARNING (CWE-477): [#def233]
vlc-3.0.21/modules/codec/avcodec/encoder.c:732:9: warning[-Wdeprecated-declarations]: ‘sample_fmts’ is deprecated
#  730|           // Try if we can use interleaved format for codec input as VLC doesn't really do planar audio yet
#  731|           // FIXME: Remove when planar/interleaved audio in vlc is equally supported
#  732|->         if( p_sys->b_planar && p_codec->sample_fmts )
#  733|           {
#  734|               msg_Dbg( p_enc, "Trying to find packet sample format instead of planar %s", av_get_sample_fmt_name( p_context->sample_fmt ) );

Error: COMPILER_WARNING (CWE-477): [#def234]
vlc-3.0.21/modules/codec/avcodec/encoder.c:735:13: warning[-Wdeprecated-declarations]: ‘sample_fmts’ is deprecated
#  735 |             for( unsigned int i=0; p_codec->sample_fmts[i] != -1; i++ )
#      |             ^~~
/usr/include/ffmpeg/libavcodec/codec.h:219:32: note: declared here
#  219 |     const enum AVSampleFormat *sample_fmts; ///< @deprecated use avcodec_get_supported_config()
#      |                                ^~~~~~~~~~~
#  733|           {
#  734|               msg_Dbg( p_enc, "Trying to find packet sample format instead of planar %s", av_get_sample_fmt_name( p_context->sample_fmt ) );
#  735|->             for( unsigned int i=0; p_codec->sample_fmts[i] != -1; i++ )
#  736|               {
#  737|                   if( !av_sample_fmt_is_planar( p_codec->sample_fmts[i] ) )

Error: COMPILER_WARNING (CWE-477): [#def235]
vlc-3.0.21/modules/codec/avcodec/encoder.c:735:13: warning[-Wdeprecated-declarations]: ‘sample_fmts’ is deprecated
#  733|           {
#  734|               msg_Dbg( p_enc, "Trying to find packet sample format instead of planar %s", av_get_sample_fmt_name( p_context->sample_fmt ) );
#  735|->             for( unsigned int i=0; p_codec->sample_fmts[i] != -1; i++ )
#  736|               {
#  737|                   if( !av_sample_fmt_is_planar( p_codec->sample_fmts[i] ) )

Error: COMPILER_WARNING (CWE-477): [#def236]
vlc-3.0.21/modules/codec/avcodec/encoder.c:737:17: warning[-Wdeprecated-declarations]: ‘sample_fmts’ is deprecated
#  737 |                 if( !av_sample_fmt_is_planar( p_codec->sample_fmts[i] ) )
#      |                 ^~
/usr/include/ffmpeg/libavcodec/codec.h:219:32: note: declared here
#  219 |     const enum AVSampleFormat *sample_fmts; ///< @deprecated use avcodec_get_supported_config()
#      |                                ^~~~~~~~~~~
#  735|               for( unsigned int i=0; p_codec->sample_fmts[i] != -1; i++ )
#  736|               {
#  737|->                 if( !av_sample_fmt_is_planar( p_codec->sample_fmts[i] ) )
#  738|                   {
#  739|                       p_context->sample_fmt = p_codec->sample_fmts[i];

Error: COMPILER_WARNING (CWE-477): [#def237]
vlc-3.0.21/modules/codec/avcodec/encoder.c:737:17: warning[-Wdeprecated-declarations]: ‘sample_fmts’ is deprecated
#  735|               for( unsigned int i=0; p_codec->sample_fmts[i] != -1; i++ )
#  736|               {
#  737|->                 if( !av_sample_fmt_is_planar( p_codec->sample_fmts[i] ) )
#  738|                   {
#  739|                       p_context->sample_fmt = p_codec->sample_fmts[i];

Error: COMPILER_WARNING (CWE-477): [#def238]
vlc-3.0.21/modules/codec/avcodec/encoder.c:739:21: warning[-Wdeprecated-declarations]: ‘sample_fmts’ is deprecated
#  739 |                     p_context->sample_fmt = p_codec->sample_fmts[i];
#      |                     ^~~~~~~~~
/usr/include/ffmpeg/libavcodec/codec.h:219:32: note: declared here
#  219 |     const enum AVSampleFormat *sample_fmts; ///< @deprecated use avcodec_get_supported_config()
#      |                                ^~~~~~~~~~~
#  737|                   if( !av_sample_fmt_is_planar( p_codec->sample_fmts[i] ) )
#  738|                   {
#  739|->                     p_context->sample_fmt = p_codec->sample_fmts[i];
#  740|                       msg_Dbg( p_enc, "Changing to packet format %s as new sample format", av_get_sample_fmt_name( p_context->sample_fmt ) );
#  741|                       break;

Error: COMPILER_WARNING (CWE-477): [#def239]
vlc-3.0.21/modules/codec/avcodec/encoder.c:739:21: warning[-Wdeprecated-declarations]: ‘sample_fmts’ is deprecated
#  737|                   if( !av_sample_fmt_is_planar( p_codec->sample_fmts[i] ) )
#  738|                   {
#  739|->                     p_context->sample_fmt = p_codec->sample_fmts[i];
#  740|                       msg_Dbg( p_enc, "Changing to packet format %s as new sample format", av_get_sample_fmt_name( p_context->sample_fmt ) );
#  741|                       break;

Error: COMPILER_WARNING (CWE-477): [#def240]
vlc-3.0.21/modules/codec/avcodec/encoder.c: scope_hint: In function ‘EncodeVideo’
vlc-3.0.21/modules/codec/avcodec/encoder.c:1230:9: warning[-Wdeprecated-declarations]: ‘interlaced_frame’ is deprecated
# 1230 |         frame->interlaced_frame = !p_pict->b_progressive;
#      |         ^~~~~
/usr/include/ffmpeg/libavcodec/avcodec.h:36: included_from: Included from here.
/usr/include/ffmpeg/libavutil/frame.h:566:9: note: declared here
#  566 |     int interlaced_frame;
#      |         ^~~~~~~~~~~~~~~~
# 1228|   
# 1229|           frame->repeat_pict = p_pict->i_nb_fields - 2;
# 1230|->         frame->interlaced_frame = !p_pict->b_progressive;
# 1231|           frame->top_field_first = !!p_pict->b_top_field_first;
# 1232|   

Error: COMPILER_WARNING (CWE-477): [#def241]
vlc-3.0.21/modules/codec/avcodec/encoder.c:1230:9: warning[-Wdeprecated-declarations]: ‘interlaced_frame’ is deprecated
# 1228|   
# 1229|           frame->repeat_pict = p_pict->i_nb_fields - 2;
# 1230|->         frame->interlaced_frame = !p_pict->b_progressive;
# 1231|           frame->top_field_first = !!p_pict->b_top_field_first;
# 1232|   

Error: COMPILER_WARNING (CWE-477): [#def242]
vlc-3.0.21/modules/codec/avcodec/encoder.c:1231:9: warning[-Wdeprecated-declarations]: ‘top_field_first’ is deprecated
# 1231 |         frame->top_field_first = !!p_pict->b_top_field_first;
#      |         ^~~~~
/usr/include/ffmpeg/libavutil/frame.h:574:9: note: declared here
#  574 |     int top_field_first;
#      |         ^~~~~~~~~~~~~~~
# 1229|           frame->repeat_pict = p_pict->i_nb_fields - 2;
# 1230|           frame->interlaced_frame = !p_pict->b_progressive;
# 1231|->         frame->top_field_first = !!p_pict->b_top_field_first;
# 1232|   
# 1233|           frame->format = p_sys->p_context->pix_fmt;

Error: COMPILER_WARNING (CWE-477): [#def243]
vlc-3.0.21/modules/codec/avcodec/encoder.c:1231:9: warning[-Wdeprecated-declarations]: ‘top_field_first’ is deprecated
# 1229|           frame->repeat_pict = p_pict->i_nb_fields - 2;
# 1230|           frame->interlaced_frame = !p_pict->b_progressive;
# 1231|->         frame->top_field_first = !!p_pict->b_top_field_first;
# 1232|   
# 1233|           frame->format = p_sys->p_context->pix_fmt;

Error: COMPILER_WARNING (CWE-477): [#def244]
vlc-3.0.21/modules/codec/avcodec/encoder.c: scope_hint: In function ‘EndVideoEnc’
vlc-3.0.21/modules/codec/avcodec/encoder.c:1486:5: warning[-Wdeprecated-declarations]: ‘avcodec_close’ is deprecated
# 1486 |     avcodec_close( p_sys->p_context );
#      |     ^~~~~~~~~~~~~
/usr/include/ffmpeg/libavcodec/avcodec.h:2398:5: note: declared here
# 2398 | int avcodec_close(AVCodecContext *avctx);
#      |     ^~~~~~~~~~~~~
# 1484|   
# 1485|       vlc_avcodec_lock();
# 1486|->     avcodec_close( p_sys->p_context );
# 1487|       vlc_avcodec_unlock();
# 1488|       avcodec_free_context( &p_sys->p_context );

Error: COMPILER_WARNING (CWE-477): [#def245]
vlc-3.0.21/modules/codec/avcodec/encoder.c:1486:5: warning[-Wdeprecated-declarations]: ‘avcodec_close’ is deprecated
# 1484|   
# 1485|       vlc_avcodec_lock();
# 1486|->     avcodec_close( p_sys->p_context );
# 1487|       vlc_avcodec_unlock();
# 1488|       avcodec_free_context( &p_sys->p_context );

Error: COMPILER_WARNING: [#def246]
vlc-3.0.21/modules/codec/avcodec/vaapi.c:45:5: warning[-Wundef]: ‘FF_API_STRUCT_VAAPI_CONTEXT’ is not defined, evaluates to ‘0’
#   45 | #if FF_API_STRUCT_VAAPI_CONTEXT
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#   43|   #endif
#   44|   #include <libavcodec/avcodec.h>
#   45|-> #if FF_API_STRUCT_VAAPI_CONTEXT
#   46|   #include <libavcodec/vaapi.h>
#   47|   #else

Error: COMPILER_WARNING (CWE-563): [#def247]
vlc-3.0.21/modules/codec/avcodec/vaapi.c: scope_hint: In function ‘GetVaProfile’
vlc-3.0.21/modules/codec/avcodec/vaapi.c:74:65: warning[-Wunused-parameter]: unused parameter ‘fmt’
#   74 | static int GetVaProfile(AVCodecContext *ctx, const es_format_t *fmt,
#      |                                              ~~~~~~~~~~~~~~~~~~~^~~
#   72|   };
#   73|   
#   74|-> static int GetVaProfile(AVCodecContext *ctx, const es_format_t *fmt,
#   75|                           VAProfile *va_profile, int *vlc_chroma,
#   76|                           unsigned *pic_count)

Error: COMPILER_WARNING (CWE-477): [#def248]
vlc-3.0.21/modules/codec/avcodec/video.c: scope_hint: In function ‘lavc_GetVideoFormat’
vlc-3.0.21/modules/codec/avcodec/video.c:209:34: warning[-Wdeprecated-declarations]: ‘ticks_per_frame’ is deprecated
#  209 |                                  * __MAX(ctx->ticks_per_frame, 1);
#      |                                  ^
vlc-3.0.21/modules/codec/avcodec/video.c:39: included_from: Included from here.
/usr/include/ffmpeg/libavcodec/avcodec.h:582:9: note: declared here
#  582 |     int ticks_per_frame;
#      |         ^~~~~~~~~~~~~~~
#  207|           fmt->i_frame_rate = ctx->time_base.den;
#  208|           fmt->i_frame_rate_base = ctx->time_base.num
#  209|->                                  * __MAX(ctx->ticks_per_frame, 1);
#  210|       }
#  211|   

Error: COMPILER_WARNING (CWE-477): [#def249]
vlc-3.0.21/modules/codec/avcodec/video.c:209:34: warning[-Wdeprecated-declarations]: ‘ticks_per_frame’ is deprecated
#  207|           fmt->i_frame_rate = ctx->time_base.den;
#  208|           fmt->i_frame_rate_base = ctx->time_base.num
#  209|->                                  * __MAX(ctx->ticks_per_frame, 1);
#  210|       }
#  211|   

Error: COMPILER_WARNING (CWE-477): [#def250]
vlc-3.0.21/modules/codec/avcodec/video.c: scope_hint: In function ‘lavc_UpdateVideoFormat’
vlc-3.0.21/modules/codec/avcodec/video.c:332:39: warning[-Wdeprecated-declarations]: ‘ticks_per_frame’ is deprecated
#  332 |                                       __MAX(ctx->ticks_per_frame, 1),
#      |                                       ^~~~~
/usr/include/ffmpeg/libavcodec/avcodec.h:582:9: note: declared here
#  582 |     int ticks_per_frame;
#      |         ^~~~~~~~~~~~~~~
#  330|       if(dec->p_sys->pts.i_divider_num)
#  331|           date_Change(&dec->p_sys->pts, fmt_out.i_frame_rate *
#  332|->                                       __MAX(ctx->ticks_per_frame, 1),
#  333|                                         fmt_out.i_frame_rate_base);
#  334|       else

Error: COMPILER_WARNING (CWE-477): [#def251]
vlc-3.0.21/modules/codec/avcodec/video.c:332:39: warning[-Wdeprecated-declarations]: ‘ticks_per_frame’ is deprecated
#  330|       if(dec->p_sys->pts.i_divider_num)
#  331|           date_Change(&dec->p_sys->pts, fmt_out.i_frame_rate *
#  332|->                                       __MAX(ctx->ticks_per_frame, 1),
#  333|                                         fmt_out.i_frame_rate_base);
#  334|       else

Error: COMPILER_WARNING (CWE-477): [#def252]
vlc-3.0.21/modules/codec/avcodec/video.c:336:37: warning[-Wdeprecated-declarations]: ‘ticks_per_frame’ is deprecated
#  336 |                                     __MAX(ctx->ticks_per_frame, 1),
#      |                                     ^~~~~
/usr/include/ffmpeg/libavcodec/avcodec.h:582:9: note: declared here
#  582 |     int ticks_per_frame;
#      |         ^~~~~~~~~~~~~~~
#  334|       else
#  335|           date_Init(&dec->p_sys->pts, fmt_out.i_frame_rate *
#  336|->                                     __MAX(ctx->ticks_per_frame, 1),
#  337|                                       fmt_out.i_frame_rate_base);
#  338|   

Error: COMPILER_WARNING (CWE-477): [#def253]
vlc-3.0.21/modules/codec/avcodec/video.c:336:37: warning[-Wdeprecated-declarations]: ‘ticks_per_frame’ is deprecated
#  334|       else
#  335|           date_Init(&dec->p_sys->pts, fmt_out.i_frame_rate *
#  336|->                                     __MAX(ctx->ticks_per_frame, 1),
#  337|                                       fmt_out.i_frame_rate_base);
#  338|   

Error: COMPILER_WARNING (CWE-477): [#def254]
vlc-3.0.21/modules/codec/avcodec/video.c: scope_hint: In function ‘interpolate_next_pts’
vlc-3.0.21/modules/codec/avcodec/video.c:949:5: warning[-Wdeprecated-declarations]: ‘ticks_per_frame’ is deprecated
#  949 |     int i_tick = p_context->ticks_per_frame;
#      |     ^~~
/usr/include/ffmpeg/libavcodec/avcodec.h:582:9: note: declared here
#  582 |     int ticks_per_frame;
#      |         ^~~~~~~~~~~~~~~
#  947|           return VLC_TICK_INVALID;
#  948|   
#  949|->     int i_tick = p_context->ticks_per_frame;
#  950|       if( i_tick <= 0 )
#  951|           i_tick = 1;

Error: COMPILER_WARNING (CWE-477): [#def255]
vlc-3.0.21/modules/codec/avcodec/video.c:949:5: warning[-Wdeprecated-declarations]: ‘ticks_per_frame’ is deprecated
#  947|           return VLC_TICK_INVALID;
#  948|   
#  949|->     int i_tick = p_context->ticks_per_frame;
#  950|       if( i_tick <= 0 )
#  951|           i_tick = 1;

Error: COMPILER_WARNING (CWE-477): [#def256]
vlc-3.0.21/modules/codec/avcodec/video.c: scope_hint: In function ‘DecodeBlock’
vlc-3.0.21/modules/codec/avcodec/video.c:1433:9: warning[-Wdeprecated-declarations]: ‘interlaced_frame’ is deprecated
# 1433 |         p_pic->b_progressive = !frame->interlaced_frame;
#      |         ^~~~~
/usr/include/ffmpeg/libavcodec/avcodec.h:36: included_from: Included from here.
/usr/include/ffmpeg/libavutil/frame.h:566:9: note: declared here
#  566 |     int interlaced_frame;
#      |         ^~~~~~~~~~~~~~~~
# 1431|           p_pic->b_force = p_sys->b_first_frame;
# 1432|           p_pic->i_nb_fields = 2 + frame->repeat_pict;
# 1433|->         p_pic->b_progressive = !frame->interlaced_frame;
# 1434|           p_pic->b_top_field_first = frame->top_field_first;
# 1435|   

Error: COMPILER_WARNING (CWE-477): [#def257]
vlc-3.0.21/modules/codec/avcodec/video.c:1433:9: warning[-Wdeprecated-declarations]: ‘interlaced_frame’ is deprecated
# 1431|           p_pic->b_force = p_sys->b_first_frame;
# 1432|           p_pic->i_nb_fields = 2 + frame->repeat_pict;
# 1433|->         p_pic->b_progressive = !frame->interlaced_frame;
# 1434|           p_pic->b_top_field_first = frame->top_field_first;
# 1435|   

Error: COMPILER_WARNING (CWE-477): [#def258]
vlc-3.0.21/modules/codec/avcodec/video.c:1434:9: warning[-Wdeprecated-declarations]: ‘top_field_first’ is deprecated
# 1434 |         p_pic->b_top_field_first = frame->top_field_first;
#      |         ^~~~~
/usr/include/ffmpeg/libavutil/frame.h:574:9: note: declared here
#  574 |     int top_field_first;
#      |         ^~~~~~~~~~~~~~~
# 1432|           p_pic->i_nb_fields = 2 + frame->repeat_pict;
# 1433|           p_pic->b_progressive = !frame->interlaced_frame;
# 1434|->         p_pic->b_top_field_first = frame->top_field_first;
# 1435|   
# 1436|           if (DecodeSidedata(p_dec, frame, p_pic))

Error: COMPILER_WARNING (CWE-477): [#def259]
vlc-3.0.21/modules/codec/avcodec/video.c:1434:9: warning[-Wdeprecated-declarations]: ‘top_field_first’ is deprecated
# 1432|           p_pic->i_nb_fields = 2 + frame->repeat_pict;
# 1433|           p_pic->b_progressive = !frame->interlaced_frame;
# 1434|->         p_pic->b_top_field_first = frame->top_field_first;
# 1435|   
# 1436|           if (DecodeSidedata(p_dec, frame, p_pic))

Error: GCC_ANALYZER_WARNING: [#def260]
vlc-3.0.21/modules/codec/cc.c:732:9: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
vlc-3.0.21/modules/codec/cc.c:698:13: enter_function: entry to ‘Eia608RollUp’
vlc-3.0.21/modules/codec/cc.c:700:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/cc.c:703:26: call_function: inlined call to ‘Eia608GetWritingScreenIndex’ from ‘Eia608RollUp’
 branch_true: following ‘true’ branch...
vlc-3.0.21/modules/codec/cc.c:719:5: branch_true: ...to here
vlc-3.0.21/modules/codec/cc.c:726:21: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/codec/cc.c:728:27: branch_true: ...to here
vlc-3.0.21/modules/codec/cc.c:729:11: branch_false: following ‘false’ branch (when ‘i_row >= 0’)...
vlc-3.0.21/modules/codec/cc.c:732:63: branch_false: ...to here
vlc-3.0.21/modules/codec/cc.c:732:9: danger: overlapping buffers passed as arguments to ‘memcpy’
#  730|               continue;
#  731|           assert( i_row+1 < EIA608_SCREEN_ROWS );
#  732|->         memcpy( screen->characters[i_row], screen->characters[i_row+1], sizeof(*screen->characters) );
#  733|           memcpy( screen->colors[i_row], screen->colors[i_row+1], sizeof(*screen->colors) );
#  734|           memcpy( screen->fonts[i_row], screen->fonts[i_row+1], sizeof(*screen->fonts) );

Error: GCC_ANALYZER_WARNING: [#def261]
vlc-3.0.21/modules/codec/cc.c:733:9: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
vlc-3.0.21/modules/codec/cc.c:698:13: enter_function: entry to ‘Eia608RollUp’
vlc-3.0.21/modules/codec/cc.c:700:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/cc.c:703:26: call_function: inlined call to ‘Eia608GetWritingScreenIndex’ from ‘Eia608RollUp’
 branch_true: following ‘true’ branch...
vlc-3.0.21/modules/codec/cc.c:719:5: branch_true: ...to here
vlc-3.0.21/modules/codec/cc.c:726:21: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/codec/cc.c:728:27: branch_true: ...to here
vlc-3.0.21/modules/codec/cc.c:729:11: branch_false: following ‘false’ branch (when ‘i_row >= 0’)...
vlc-3.0.21/modules/codec/cc.c:732:63: branch_false: ...to here
vlc-3.0.21/modules/codec/cc.c:733:9: danger: overlapping buffers passed as arguments to ‘memcpy’
#  731|           assert( i_row+1 < EIA608_SCREEN_ROWS );
#  732|           memcpy( screen->characters[i_row], screen->characters[i_row+1], sizeof(*screen->characters) );
#  733|->         memcpy( screen->colors[i_row], screen->colors[i_row+1], sizeof(*screen->colors) );
#  734|           memcpy( screen->fonts[i_row], screen->fonts[i_row+1], sizeof(*screen->fonts) );
#  735|           screen->row_used[i_row] = screen->row_used[i_row+1];

Error: GCC_ANALYZER_WARNING: [#def262]
vlc-3.0.21/modules/codec/cc.c:734:9: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
vlc-3.0.21/modules/codec/cc.c:698:13: enter_function: entry to ‘Eia608RollUp’
vlc-3.0.21/modules/codec/cc.c:700:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/cc.c:703:26: call_function: inlined call to ‘Eia608GetWritingScreenIndex’ from ‘Eia608RollUp’
 branch_true: following ‘true’ branch...
vlc-3.0.21/modules/codec/cc.c:719:5: branch_true: ...to here
vlc-3.0.21/modules/codec/cc.c:726:21: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/codec/cc.c:728:27: branch_true: ...to here
vlc-3.0.21/modules/codec/cc.c:729:11: branch_false: following ‘false’ branch (when ‘i_row >= 0’)...
vlc-3.0.21/modules/codec/cc.c:732:63: branch_false: ...to here
vlc-3.0.21/modules/codec/cc.c:734:9: danger: overlapping buffers passed as arguments to ‘memcpy’
#  732|           memcpy( screen->characters[i_row], screen->characters[i_row+1], sizeof(*screen->characters) );
#  733|           memcpy( screen->colors[i_row], screen->colors[i_row+1], sizeof(*screen->colors) );
#  734|->         memcpy( screen->fonts[i_row], screen->fonts[i_row+1], sizeof(*screen->fonts) );
#  735|           screen->row_used[i_row] = screen->row_used[i_row+1];
#  736|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def263]
vlc-3.0.21/modules/codec/cea708.c:603:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘row’
vlc-3.0.21/modules/codec/cea708.c:809:13: enter_function: entry to ‘CEA708_Window_Write’
vlc-3.0.21/modules/codec/cea708.c:815:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/cea708.c:824:7: branch_true: following ‘true’ branch (when ‘p_row’ is NULL)...
vlc-3.0.21/modules/codec/cea708.c:826:39: branch_true: ...to here
vlc-3.0.21/modules/codec/cea708.c:826:39: call_function: calling ‘cea708_text_row_New’ from ‘CEA708_Window_Write’
vlc-3.0.21/modules/codec/cea708.c:826:39: return_function: returning to ‘CEA708_Window_Write’ from ‘cea708_text_row_New’
vlc-3.0.21/modules/codec/cea708.c:827:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/cea708.c:829:24: branch_false: ...to here
vlc-3.0.21/modules/codec/cea708.c:829:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/cea708.c:831:24: branch_false: ...to here
vlc-3.0.21/modules/codec/cea708.c:831:11: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/codec/cea708.c:842:5: call_function: calling ‘CEA708_Window_Forward’ from ‘CEA708_Window_Write’
#  601|               {
#  602|                   cea708_text_row_t *row = p_w->rows[i];
#  603|->                 if( row->lastcol == i_max )
#  604|                   {
#  605|                       if( row->firstcol >= row->lastcol )

Error: GCC_ANALYZER_WARNING (CWE-476): [#def264]
vlc-3.0.21/modules/codec/cea708.c:624:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘row’
vlc-3.0.21/modules/codec/cea708.c:809:13: enter_function: entry to ‘CEA708_Window_Write’
vlc-3.0.21/modules/codec/cea708.c:815:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/cea708.c:824:7: branch_true: following ‘true’ branch (when ‘p_row’ is NULL)...
vlc-3.0.21/modules/codec/cea708.c:826:39: branch_true: ...to here
vlc-3.0.21/modules/codec/cea708.c:826:39: call_function: calling ‘cea708_text_row_New’ from ‘CEA708_Window_Write’
vlc-3.0.21/modules/codec/cea708.c:826:39: return_function: returning to ‘CEA708_Window_Write’ from ‘cea708_text_row_New’
vlc-3.0.21/modules/codec/cea708.c:827:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/cea708.c:829:24: branch_false: ...to here
vlc-3.0.21/modules/codec/cea708.c:829:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/cea708.c:831:24: branch_false: ...to here
vlc-3.0.21/modules/codec/cea708.c:831:11: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/codec/cea708.c:842:5: call_function: calling ‘CEA708_Window_Forward’ from ‘CEA708_Window_Write’
#  622|               {
#  623|                   cea708_text_row_t *row = p_w->rows[i];
#  624|->                 if( row->firstcol == i_min )
#  625|                   {
#  626|                       if( row->firstcol >= row->lastcol )

Error: GCC_ANALYZER_WARNING (CWE-476): [#def265]
vlc-3.0.21/modules/codec/cea708.c:670:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘row’
vlc-3.0.21/modules/codec/cea708.c:809:13: enter_function: entry to ‘CEA708_Window_Write’
vlc-3.0.21/modules/codec/cea708.c:815:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/cea708.c:824:7: branch_true: following ‘true’ branch (when ‘p_row’ is NULL)...
vlc-3.0.21/modules/codec/cea708.c:826:39: branch_true: ...to here
vlc-3.0.21/modules/codec/cea708.c:826:39: call_function: calling ‘cea708_text_row_New’ from ‘CEA708_Window_Write’
vlc-3.0.21/modules/codec/cea708.c:826:39: return_function: returning to ‘CEA708_Window_Write’ from ‘cea708_text_row_New’
vlc-3.0.21/modules/codec/cea708.c:827:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/cea708.c:829:24: branch_false: ...to here
vlc-3.0.21/modules/codec/cea708.c:829:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/cea708.c:831:24: branch_false: ...to here
vlc-3.0.21/modules/codec/cea708.c:831:11: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/codec/cea708.c:842:5: call_function: calling ‘CEA708_Window_Forward’ from ‘CEA708_Window_Write’
#  668|               {
#  669|                   cea708_text_row_t *row = p_w->rows[i];
#  670|->                 if( row->lastcol < row->firstcol ) /* should not happen */
#  671|                       continue;
#  672|                   memmove( &row->characters[row->firstcol + 1], &row->characters[row->firstcol],

Error: GCC_ANALYZER_WARNING (CWE-476): [#def266]
vlc-3.0.21/modules/codec/cea708.c:687:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘row’
vlc-3.0.21/modules/codec/cea708.c:809:13: enter_function: entry to ‘CEA708_Window_Write’
vlc-3.0.21/modules/codec/cea708.c:815:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/cea708.c:824:7: branch_true: following ‘true’ branch (when ‘p_row’ is NULL)...
vlc-3.0.21/modules/codec/cea708.c:826:39: branch_true: ...to here
vlc-3.0.21/modules/codec/cea708.c:826:39: call_function: calling ‘cea708_text_row_New’ from ‘CEA708_Window_Write’
vlc-3.0.21/modules/codec/cea708.c:826:39: return_function: returning to ‘CEA708_Window_Write’ from ‘cea708_text_row_New’
vlc-3.0.21/modules/codec/cea708.c:827:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/cea708.c:829:24: branch_false: ...to here
vlc-3.0.21/modules/codec/cea708.c:829:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/cea708.c:831:24: branch_false: ...to here
vlc-3.0.21/modules/codec/cea708.c:831:11: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/codec/cea708.c:842:5: call_function: calling ‘CEA708_Window_Forward’ from ‘CEA708_Window_Write’
#  685|               {
#  686|                   cea708_text_row_t *row = p_w->rows[i];
#  687|->                 if( row->lastcol < row->firstcol ) /* should not happen */
#  688|                       continue;
#  689|                   memmove( &row->characters[row->firstcol - 1], &row->characters[row->firstcol],

Error: GCC_ANALYZER_WARNING (CWE-476): [#def267]
vlc-3.0.21/modules/codec/cvdsub.c:254:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*p_sys.p_spu’
vlc-3.0.21/modules/codec/cvdsub.c:223:17: enter_function: entry to ‘Reassemble’
vlc-3.0.21/modules/codec/cvdsub.c:227:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/cvdsub.c:239:9: branch_false: ...to here
vlc-3.0.21/modules/codec/cvdsub.c:252:20: call_function: calling ‘block_ChainGather’ from ‘Reassemble’
vlc-3.0.21/modules/codec/cvdsub.c:252:20: return_function: returning to ‘Reassemble’ from ‘block_ChainGather’
vlc-3.0.21/modules/codec/cvdsub.c:252:5: release_memory: ‘*p_sys.p_spu’ is NULL
vlc-3.0.21/modules/codec/cvdsub.c:254:9: danger: dereference of NULL ‘block_ChainGather(*p_sys.p_spu)’
#  252|       p_sys->p_spu = block_ChainGather( p_sys->p_spu );
#  253|   
#  254|->     if( p_sys->p_spu->i_buffer >= p_sys->i_spu_size )
#  255|       {
#  256|           block_t *p_spu = p_sys->p_spu;

Error: COMPILER_WARNING (CWE-758): [#def268]
vlc-3.0.21/modules/codec/fdkaac.c: scope_hint: In function ‘OpenEncoder’
vlc-3.0.21/modules/codec/fdkaac.c:296:29: warning[-Wexpansion-to-defined]: this use of ‘defined’ may not be portable
#  296 | #if FDKENC_VER_AT_LEAST(4, 0)
#      |                             ^
#  294|       p_enc->fmt_in.audio.i_bitspersample = 16;
#  295|       p_sys->i_frame_size = info.frameLength;
#  296|-> #if FDKENC_VER_AT_LEAST(4, 0)
#  297|       p_sys->i_encoderdelay = info.nDelay;
#  298|   #else

Error: COMPILER_WARNING: [#def269]
vlc-3.0.21/modules/codec/flac.c: scope_hint: In function ‘DecoderMetadataCallback’
vlc-3.0.21/modules/codec/flac.c:352:41: warning[-Wshadow=local]: declaration of ‘i’ shadows a previous local
#  352 |                             for( size_t i=0; i<MAPPED_WFX_CHANNELS; i++ )
#      |                                         ^
vlc-3.0.21/modules/codec/flac.c:333:31: note: shadowed declaration is here
#  333 |             for( FLAC__uint32 i=0; i<metadata->data.vorbis_comment.num_comments; i++ )
#      |                               ^
#  350|                               if( (i_chan & i_wfxmask) == 0 )
#  351|                                   continue;
#  352|->                             for( size_t i=0; i<MAPPED_WFX_CHANNELS; i++ )
#  353|                               {
#  354|                                   if( wfx_remapping[i][0] == i_chan )

Error: COMPILER_WARNING: [#def270]
vlc-3.0.21/modules/codec/flac.c:372:39: warning[-Wshadow=compatible-local]: declaration of ‘i’ shadows a previous local
#  372 |                         for( unsigned i=0; i<i_wfxchannels; i++ )
#      |                                       ^
vlc-3.0.21/modules/codec/flac.c:333:31: note: shadowed declaration is here
#  333 |             for( FLAC__uint32 i=0; i<metadata->data.vorbis_comment.num_comments; i++ )
#      |                               ^
#  370|                           /* /!\ Invert our source/dest reordering,
#  371|                            * as Interleave() here works source indexes */
#  372|->                         for( unsigned i=0; i<i_wfxchannels; i++ )
#  373|                               p_sys->rgi_channels_reorder[neworder[i]] = i;
#  374|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def271]
vlc-3.0.21/modules/codec/flac.c:898:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/modules/codec/flac.c:874:17: enter_function: entry to ‘Encode’
vlc-3.0.21/modules/codec/flac.c:880:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/flac.c:882:20: branch_false: ...to here
vlc-3.0.21/modules/codec/flac.c:889:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/codec/flac.c:892:23: branch_true: ...to here
vlc-3.0.21/modules/codec/flac.c:892:13: call_function: calling ‘xrealloc’ from ‘Encode’
vlc-3.0.21/modules/codec/flac.c:892:13: return_function: returning to ‘Encode’ from ‘xrealloc’
vlc-3.0.21/modules/codec/flac.c:896:27: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/codec/flac.c:898:41: branch_true: ...to here
vlc-3.0.21/modules/codec/flac.c:898:24: release_memory: ‘0’ is NULL
vlc-3.0.21/modules/codec/flac.c:898:9: danger: dereference of NULL ‘*p_sys.p_buffer + (long unsigned int)i * 4’
#  896|       for( unsigned i = 0 ; i < p_aout_buf->i_buffer / 2 ; i++ )
#  897|       {
#  898|->         p_sys->p_buffer[i]= ((int16_t *)p_aout_buf->p_buffer)[i];
#  899|       }
#  900|   

Error: COMPILER_WARNING (CWE-477): [#def272]
vlc-3.0.21/modules/codec/fluidsynth.c: scope_hint: In function ‘Open’
vlc-3.0.21/modules/codec/fluidsynth.c:164:5: warning[-Wdeprecated-declarations]: ‘fluid_synth_set_chorus_on’ is deprecated
#  164 |     fluid_synth_set_chorus_on (p_sys->synth,
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/fluidsynth.h:100: included_from: Included from here.
vlc-3.0.21/modules/codec/fluidsynth.c:42: included_from: Included from here.
/usr/include/fluidsynth/synth.h:208:38: note: declared here
#  208 | FLUID_DEPRECATED FLUIDSYNTH_API void fluid_synth_set_chorus_on(fluid_synth_t *synth, int on);
#      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~
#  162|       }
#  163|   
#  164|->     fluid_synth_set_chorus_on (p_sys->synth,
#  165|                                  var_InheritBool (p_this, "synth-chorus"));
#  166|       fluid_synth_set_gain (p_sys->synth,

Error: COMPILER_WARNING (CWE-477): [#def273]
vlc-3.0.21/modules/codec/fluidsynth.c:164:5: warning[-Wdeprecated-declarations]: ‘fluid_synth_set_chorus_on’ is deprecated
#  162|       }
#  163|   
#  164|->     fluid_synth_set_chorus_on (p_sys->synth,
#  165|                                  var_InheritBool (p_this, "synth-chorus"));
#  166|       fluid_synth_set_gain (p_sys->synth,

Error: COMPILER_WARNING (CWE-477): [#def274]
vlc-3.0.21/modules/codec/fluidsynth.c:170:5: warning[-Wdeprecated-declarations]: ‘fluid_synth_set_reverb_on’ is deprecated
#  170 |     fluid_synth_set_reverb_on (p_sys->synth,
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/fluidsynth/synth.h:162:38: note: declared here
#  162 | FLUID_DEPRECATED FLUIDSYNTH_API void fluid_synth_set_reverb_on(fluid_synth_t *synth, int on);
#      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~
#  168|       fluid_synth_set_polyphony (p_sys->synth,
#  169|                                  var_InheritInteger (p_this, "synth-polyphony"));
#  170|->     fluid_synth_set_reverb_on (p_sys->synth,
#  171|                                  var_InheritBool (p_this, "synth-reverb"));
#  172|   

Error: COMPILER_WARNING (CWE-477): [#def275]
vlc-3.0.21/modules/codec/fluidsynth.c:170:5: warning[-Wdeprecated-declarations]: ‘fluid_synth_set_reverb_on’ is deprecated
#  168|       fluid_synth_set_polyphony (p_sys->synth,
#  169|                                  var_InheritInteger (p_this, "synth-polyphony"));
#  170|->     fluid_synth_set_reverb_on (p_sys->synth,
#  171|                                  var_InheritBool (p_this, "synth-reverb"));
#  172|   

Error: COMPILER_WARNING (CWE-477): [#def276]
vlc-3.0.21/modules/codec/fluidsynth.c:175:5: warning[-Wdeprecated-declarations]: ‘fluid_synth_set_sample_rate’ is deprecated
#  175 |     fluid_synth_set_sample_rate (p_sys->synth, p_dec->fmt_out.audio.i_rate);
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/fluidsynth/synth.h:253:38: note: declared here
#  253 | FLUID_DEPRECATED FLUIDSYNTH_API void fluid_synth_set_sample_rate(fluid_synth_t *synth, float sample_rate);
#      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#  173|       p_dec->fmt_out.audio.i_rate =
#  174|           var_InheritInteger (p_this, "synth-sample-rate");;
#  175|->     fluid_synth_set_sample_rate (p_sys->synth, p_dec->fmt_out.audio.i_rate);
#  176|       p_dec->fmt_out.audio.i_channels = 2;
#  177|       p_dec->fmt_out.audio.i_physical_channels = AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT;

Error: COMPILER_WARNING (CWE-477): [#def277]
vlc-3.0.21/modules/codec/fluidsynth.c:175:5: warning[-Wdeprecated-declarations]: ‘fluid_synth_set_sample_rate’ is deprecated
#  173|       p_dec->fmt_out.audio.i_rate =
#  174|           var_InheritInteger (p_this, "synth-sample-rate");;
#  175|->     fluid_synth_set_sample_rate (p_sys->synth, p_dec->fmt_out.audio.i_rate);
#  176|       p_dec->fmt_out.audio.i_channels = 2;
#  177|       p_dec->fmt_out.audio.i_physical_channels = AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT;

Error: COMPILER_WARNING: [#def278]
vlc-3.0.21/modules/codec/gstreamer/gstdecode.c: scope_hint: In function ‘DecodeBlock’
vlc-3.0.21/modules/codec/gstreamer/gstdecode.c:772:20: warning[-Wshadow=compatible-local]: declaration of ‘p_buf’ shadows a previous local
#  772 |         GstBuffer *p_buf = GST_BUFFER_CAST(
#      |                    ^~~~~
vlc-3.0.21/modules/codec/gstreamer/gstdecode.c:665:16: note: shadowed declaration is here
#  665 |     GstBuffer *p_buf;
#      |                ^~~~~
#  770|       if( gst_atomic_queue_peek( p_sys->p_que ) )
#  771|       {
#  772|->         GstBuffer *p_buf = GST_BUFFER_CAST(
#  773|                   gst_atomic_queue_pop( p_sys->p_que ));
#  774|           GstMemory *p_mem;

Error: COMPILER_WARNING (CWE-843): [#def279]
vlc-3.0.21/modules/codec/gstreamer/gstvlcpictureplaneallocator.c: scope_hint: In function ‘gst_vlc_picture_plane_allocator_init’
vlc-3.0.21/modules/codec/gstreamer/gstvlcpictureplaneallocator.c:76:26: warning[-Wcast-function-type]: cast between incompatible function types from ‘gboolean (*)(GstVlcPicturePlane *)’ {aka ‘int (*)(struct _GstVlcPicturePlane *)’} to ‘void (*)(GstMemory *)’ {aka ‘void (*)(struct _GstMemory *)’}
#   76 |     p_alloc->mem_unmap = (GstMemoryUnmapFunction) gst_vlc_picture_plane_unmap;
#      |                          ^
#   74|       p_alloc->mem_type = GST_VLC_PICTURE_PLANE_ALLOCATOR_NAME;
#   75|       p_alloc->mem_map = (GstMemoryMapFunction) gst_vlc_picture_plane_map;
#   76|->     p_alloc->mem_unmap = (GstMemoryUnmapFunction) gst_vlc_picture_plane_unmap;
#   77|       p_alloc->mem_copy = (GstMemoryShareFunction) gst_vlc_picture_plane_copy;
#   78|       /* fallback is_span */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def280]
vlc-3.0.21/modules/codec/jpeg.c:261:16: warning[-Wanalyzer-malloc-leak]: leak of ‘psz_rdf’
vlc-3.0.21/modules/codec/jpeg.c:309:13: enter_function: entry to ‘jpeg_FillProjection’
vlc-3.0.21/modules/codec/jpeg.c:312:32: branch_true: following ‘true’ branch (when ‘cmarker’ is non-NULL)...
vlc-3.0.21/modules/codec/jpeg.c:315:12: branch_true: ...to here
vlc-3.0.21/modules/codec/jpeg.c:315:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/codec/jpeg.c:316:12: branch_true: ...to here
vlc-3.0.21/modules/codec/jpeg.c:315:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/codec/jpeg.c:317:20: branch_true: ...to here
vlc-3.0.21/modules/codec/jpeg.c:315:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/codec/jpeg.c:318:12: branch_true: ...to here
vlc-3.0.21/modules/codec/jpeg.c:318:12: call_function: calling ‘jpeg_ParseXMP’ from ‘jpeg_FillProjection’
#  259|   {
#  260|       if(i_buf < 29)
#  261|->         return false;
#  262|   
#  263|       /* Allocate temp, zero terminated buffer */

Error: COMPILER_WARNING (CWE-758): [#def281]
vlc-3.0.21/modules/codec/jpeg.c: scope_hint: In function ‘DecodeBlock’
vlc-3.0.21/modules/codec/jpeg.c:472:16: warning[-Wclobbered]: variable ‘p_row_pointers’ might be clobbered by ‘longjmp’ or ‘vfork’
#  472 |     JSAMPARRAY p_row_pointers = NULL;
#      |                ^~~~~~~~~~~~~~
#  470|       picture_t *p_pic = 0;
#  471|   
#  472|->     JSAMPARRAY p_row_pointers = NULL;
#  473|   
#  474|       if (!p_block) /* No Drain */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def282]
vlc-3.0.21/modules/codec/jpeg.c:675:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*<unknown> + (long unsigned int)j * 8’
vlc-3.0.21/modules/codec/jpeg.c:612:17: enter_function: entry to ‘EncodeBlock’
vlc-3.0.21/modules/codec/jpeg.c:616:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/jpeg.c:620:36: branch_false: ...to here
vlc-3.0.21/modules/codec/jpeg.c:621:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/jpeg.c:627:26: branch_false: ...to here
vlc-3.0.21/modules/codec/jpeg.c:630:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/jpeg.c:635:5: branch_false: ...to here
vlc-3.0.21/modules/codec/jpeg.c:656:22: call_function: inlined call to ‘vlc_alloc’ from ‘EncodeBlock’
vlc-3.0.21/modules/codec/jpeg.c:657:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/codec/jpeg.c:662:21: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/codec/jpeg.c:664:39: branch_true: ...to here
vlc-3.0.21/modules/codec/jpeg.c:664:29: call_function: inlined call to ‘vlc_alloc’ from ‘EncodeBlock’
vlc-3.0.21/modules/codec/jpeg.c:662:21: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/codec/jpeg.c:667:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
vlc-3.0.21/modules/codec/jpeg.c:669:25: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/codec/jpeg.c:671:58: branch_true: ...to here
vlc-3.0.21/modules/codec/jpeg.c:673:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/codec/jpeg.c:675:40: branch_true: ...to here
vlc-3.0.21/modules/codec/jpeg.c:675:17: danger: ‘*<unknown> + (long unsigned int)j * 8’ could be NULL: unchecked value from [(19)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/18)
#  673|               for (int j = 0; j < p_sys->p_jpeg.comp_info[i].v_samp_factor * DCTSIZE; j++)
#  674|               {
#  675|->                 p_row_pointers[i][j] = p_pic->p[i].p_pixels + p_pic->p[i].i_pitch * (i_offset + j);
#  676|               }
#  677|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def283]
vlc-3.0.21/modules/codec/jpeg.c:688:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/modules/codec/jpeg.c:612:17: enter_function: entry to ‘EncodeBlock’
vlc-3.0.21/modules/codec/jpeg.c:616:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/jpeg.c:620:36: branch_false: ...to here
vlc-3.0.21/modules/codec/jpeg.c:621:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/jpeg.c:627:26: branch_false: ...to here
vlc-3.0.21/modules/codec/jpeg.c:630:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/jpeg.c:635:5: branch_false: ...to here
vlc-3.0.21/modules/codec/jpeg.c:656:22: call_function: inlined call to ‘vlc_alloc’ from ‘EncodeBlock’
vlc-3.0.21/modules/codec/jpeg.c:657:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/codec/jpeg.c:662:21: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/codec/jpeg.c:664:39: branch_true: ...to here
vlc-3.0.21/modules/codec/jpeg.c:664:29: call_function: inlined call to ‘vlc_alloc’ from ‘EncodeBlock’
vlc-3.0.21/modules/codec/jpeg.c:662:21: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/codec/jpeg.c:667:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/jpeg.c:681:5: branch_false: ...to here
vlc-3.0.21/modules/codec/jpeg.c:684:21: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/jpeg.c:688:5: branch_false: ...to here
vlc-3.0.21/modules/codec/jpeg.c:688:5: danger: ‘<unknown>’ leaks here; was allocated at [(19)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/18)
#  686|           free(p_row_pointers[i]);
#  687|       }
#  688|->     free(p_row_pointers);
#  689|   
#  690|       p_block->i_buffer = size;

Error: COMPILER_WARNING: [#def284]
vlc-3.0.21/modules/codec/kate.c: scope_hint: In function ‘OpenDecoder’
vlc-3.0.21/modules/codec/kate.c:56:13: warning[-Wshadow=compatible-local]: declaration of ‘i_ret’ shadows a previous local
#   56 |         int i_ret = (statement);                                       \
#      |             ^~~~~
vlc-3.0.21/modules/codec/kate.c:404:13: note: in expansion of macro ‘CHECK_TIGER_RET’
#  404 |             CHECK_TIGER_RET( tiger_renderer_set_surface_clear_color( p_sys->p_tr, 1, 0, 0, 0, 0 ) );
#      |             ^~~~~~~~~~~~~~~
vlc-3.0.21/modules/codec/kate.c:396:13: note: shadowed declaration is here
#  396 |         int i_ret = tiger_renderer_create( &p_sys->p_tr );
#      |             ^~~~~
#   54|       do                                                                 \
#   55|       {                                                                  \
#   56|->         int i_ret = (statement);                                       \
#   57|           if( i_ret < 0 )                                                \
#   58|           {                                                              \

Error: GCC_ANALYZER_WARNING (CWE-688): [#def285]
vlc-3.0.21/modules/codec/kate.c:744:31: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘copy’ where non-null expected
vlc-3.0.21/modules/codec/kate.c:724:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/kate.c:730:13: branch_false: ...to here
vlc-3.0.21/modules/codec/kate.c:730:5: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/kate.c:740:9: branch_false: ...to here
vlc-3.0.21/modules/codec/kate.c:743:30: acquire_memory: this call could return NULL
vlc-3.0.21/modules/codec/kate.c:744:31: danger: argument 1 (‘copy’) from [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
#  742|               {
#  743|                   char *copy = strdup( ev->text );
#  744|->                 size_t len0 = strlen( copy ) + 1;
#  745|                   kate_text_remove_markup( ev->text_encoding, copy, &len0 );
#  746|                   p_spu->p_region->p_text = text_segment_New( copy );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def286]
vlc-3.0.21/modules/codec/kate.c:1095:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p_spu_sys’
vlc-3.0.21/modules/codec/kate.c:1034:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/codec/kate.c:1040:13: branch_true: ...to here
vlc-3.0.21/modules/codec/kate.c:1041:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/kate.c:1047:13: branch_false: ...to here
vlc-3.0.21/modules/codec/kate.c:1048:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/kate.c:1053:7: branch_false: ...to here
vlc-3.0.21/modules/codec/kate.c:1053:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/kate.c:1063:9: branch_false: ...to here
vlc-3.0.21/modules/codec/kate.c:1063:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/kate.c:1069:26: branch_false: ...to here
vlc-3.0.21/modules/codec/kate.c:1069:26: release_memory: ‘p_spu_sys’ is NULL
vlc-3.0.21/modules/codec/kate.c:1077:13: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/codec/kate.c:1078:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/kate.c:1086:22: branch_false: ...to here
vlc-3.0.21/modules/codec/kate.c:1093:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/codec/kate.c:1095:9: branch_true: ...to here
vlc-3.0.21/modules/codec/kate.c:1095:9: danger: dereference of NULL ‘p_spu_sys’
# 1093|       if( p_sys->b_use_tiger)
# 1094|       {
# 1095|->         p_spu_sys->p_dec_sys = p_sys;
# 1096|           p_spu_sys->i_start   = p_block->i_pts;
# 1097|           DecSysHold( p_sys );

Error: COMPILER_WARNING (CWE-477): [#def287]
vlc-3.0.21/modules/codec/libass.c: scope_hint: In function ‘SubpictureValidate’
vlc-3.0.21/modules/codec/libass.c:451:9: warning[-Wdeprecated-declarations]: ‘ass_set_aspect_ratio’ is deprecated: use 'ass_set_pixel_aspect' instead
#  451 |         ass_set_aspect_ratio( p_sys->p_renderer, dst_ratio / src_ratio, 1 );
#      |         ^~~~~~~~~~~~~~~~~~~~
vlc-3.0.21/modules/codec/libass.c:44: included_from: Included from here.
/usr/include/ass/ass.h:489:6: note: declared here
#  489 | void ass_set_aspect_ratio(ASS_Renderer *priv, double dar, double sar);
#      |      ^~~~~~~~~~~~~~~~~~~~
#  449|           const double src_ratio = (double)p_fmt_src->i_visible_width / p_fmt_src->i_visible_height;
#  450|           const double dst_ratio = (double)p_fmt_dst->i_visible_width / p_fmt_dst->i_visible_height;
#  451|->         ass_set_aspect_ratio( p_sys->p_renderer, dst_ratio / src_ratio, 1 );
#  452|           p_sys->fmt = fmt;
#  453|       }

Error: COMPILER_WARNING (CWE-477): [#def288]
vlc-3.0.21/modules/codec/libass.c:451:9: warning[-Wdeprecated-declarations]: ‘ass_set_aspect_ratio’ is deprecated: use 'ass_set_pixel_aspect' instead
#  449|           const double src_ratio = (double)p_fmt_src->i_visible_width / p_fmt_src->i_visible_height;
#  450|           const double dst_ratio = (double)p_fmt_dst->i_visible_width / p_fmt_dst->i_visible_height;
#  451|->         ass_set_aspect_ratio( p_sys->p_renderer, dst_ratio / src_ratio, 1 );
#  452|           p_sys->fmt = fmt;
#  453|       }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def289]
vlc-3.0.21/modules/codec/lpcm.c:421:32: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘p_aob_group[0].i_bits’
vlc-3.0.21/modules/codec/lpcm.c:503:12: enter_function: entry to ‘DecodeFrame’
vlc-3.0.21/modules/codec/lpcm.c:505:22: call_function: calling ‘Packetize’ from ‘DecodeFrame’
#  419|           i_frame_length = (p_block->i_buffer - p_sys->i_header_size - i_padding) /
#  420|                            (
#  421|->                             ( (p_aob_group[0].i_bits / 8) * p_aob_group[0].i_channels ) +
#  422|                               ( (p_aob_group[1].i_bits / 8) * p_aob_group[1].i_channels )
#  423|                            );

Error: COMPILER_WARNING: [#def290]
vlc-3.0.21/modules/codec/oggspots.c: scope_hint: In function ‘ProcessHeader’
vlc-3.0.21/modules/codec/oggspots.c:270:15: warning[-Wshadow=local]: declaration of ‘p_extra’ shadows a previous local
#  270 |         void* p_extra = realloc(p_dec->fmt_out.p_extra,
#      |               ^~~~~~~
vlc-3.0.21/modules/codec/oggspots.c:200:20: note: shadowed declaration is here
#  200 |     const uint8_t* p_extra;
#      |                    ^~~~~~~
#  268|   
#  269|       if (p_sys->b_packetizer) {
#  270|->         void* p_extra = realloc(p_dec->fmt_out.p_extra,
#  271|                                   p_dec->fmt_in.i_extra);
#  272|           if (unlikely(p_extra == NULL)) {

Error: COMPILER_WARNING (CWE-252): [#def291]
vlc-3.0.21/modules/codec/oggspots.c:385:5: warning[-Wunused-result]: ignoring return value of ‘decoder_UpdateVideoFormat’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
#  383|       p_pic->b_force = true;
#  384|       p_dec->fmt_out.i_codec = p_dec->fmt_out.video.i_chroma;
#  385|->     decoder_UpdateVideoFormat(p_dec);
#  386|   
#  387|       return p_pic;

Error: COMPILER_WARNING (CWE-252): [#def292]
vlc-3.0.21/modules/codec/oggspots.c: scope_hint: In function ‘DecodePacket’
vlc-3.0.21/modules/codec/oggspots.c:385:5: warning[-Wunused-result]: ignoring return value of ‘decoder_UpdateVideoFormat’ declared with attribute ‘warn_unused_result’
#  385 |     decoder_UpdateVideoFormat(p_dec);
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  383|       p_pic->b_force = true;
#  384|       p_dec->fmt_out.i_codec = p_dec->fmt_out.video.i_chroma;
#  385|->     decoder_UpdateVideoFormat(p_dec);
#  386|   
#  387|       return p_pic;

Error: COMPILER_WARNING: [#def293]
vlc-3.0.21/modules/codec/png.c: scope_hint: In function ‘user_write’
vlc-3.0.21/modules/codec/png.c:163:49: warning[-Wformat-truncation=]: ‘%zu’ directive output may be truncated writing between 1 and 20 bytes into a region of size between 18 and 37
#  163 |                   "block size %zu too small for %zu encoded bytes",
#      |                                                 ^~~
vlc-3.0.21/modules/codec/png.c:163:19: note: directive argument in the range [1, 18446744073709551615]
#  163 |                   "block size %zu too small for %zu encoded bytes",
#      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 43 and 81 bytes into a destination of size 64
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  161|           char err_str[64];
#  162|           snprintf( err_str, sizeof(err_str),
#  163|->                   "block size %zu too small for %zu encoded bytes",
#  164|                     p_block->i_buffer, i_length );
#  165|           png_error( p_png, err_str );

Error: COMPILER_WARNING: [#def294]
vlc-3.0.21/modules/codec/qsv.c:154:18: warning[-Wduplicate-decl-specifier]: duplicate ‘const’ declaration specifier
#  154 | static const int const profile_h264_list[] =
#      |                  ^~~~~
#  152|        "MPEG2 needs at least 1 here.")
#  153|   
#  154|-> static const int const profile_h264_list[] =
#  155|         { 0, MFX_PROFILE_AVC_BASELINE, MFX_PROFILE_AVC_MAIN,
#  156|         MFX_PROFILE_AVC_EXTENDED, MFX_PROFILE_AVC_HIGH };

Error: COMPILER_WARNING: [#def295]
vlc-3.0.21/modules/codec/qsv.c:160:18: warning[-Wduplicate-decl-specifier]: duplicate ‘const’ declaration specifier
#  160 | static const int const profile_mpeg2_list[] =
#      |                  ^~~~~
#  158|       { "decide", "baseline", "main", "extended", "high" };
#  159|   
#  160|-> static const int const profile_mpeg2_list[] =
#  161|       { 0, MFX_PROFILE_MPEG2_SIMPLE, MFX_PROFILE_MPEG2_MAIN,
#  162|         MFX_PROFILE_MPEG2_HIGH };

Error: COMPILER_WARNING: [#def296]
vlc-3.0.21/modules/codec/qsv.c:166:18: warning[-Wduplicate-decl-specifier]: duplicate ‘const’ declaration specifier
#  166 | static const int const level_h264_list[] =
#      |                  ^~~~~
#  164|       { "decide", "simple", "main", "high" };
#  165|   
#  166|-> static const int const level_h264_list[] =
#  167|       { 0, 10, 9, 12, 13, 20, 21, 22, 30, 31, 32, 40, 41,   42,   50, 51, 52};
#  168|   static const char *const level_h264_text[] =

Error: COMPILER_WARNING: [#def297]
vlc-3.0.21/modules/codec/qsv.c:172:18: warning[-Wduplicate-decl-specifier]: duplicate ‘const’ declaration specifier
#  172 | static const int const level_mpeg2_list[] =
#      |                  ^~~~~
#  170|         "3.2", "4", "4.1",   "4.2",   "5", "5.1", "5.2" };
#  171|   
#  172|-> static const int const level_mpeg2_list[] =
#  173|       { 0, MFX_LEVEL_MPEG2_LOW, MFX_LEVEL_MPEG2_MAIN,
#  174|         MFX_LEVEL_MPEG2_HIGH, MFX_LEVEL_MPEG2_HIGH1440 };

Error: COMPILER_WARNING: [#def298]
vlc-3.0.21/modules/codec/qsv.c:178:18: warning[-Wduplicate-decl-specifier]: duplicate ‘const’ declaration specifier
#  178 | static const int const target_usage_list[] =
#      |                  ^~~~~
#  176|       { "decide", "low", "main", "high", "high1440" };
#  177|   
#  178|-> static const int const target_usage_list[] =
#  179|       { 0, MFX_TARGETUSAGE_BEST_QUALITY, MFX_TARGETUSAGE_BALANCED,
#  180|         MFX_TARGETUSAGE_BEST_SPEED };

Error: COMPILER_WARNING: [#def299]
vlc-3.0.21/modules/codec/qsv.c:184:18: warning[-Wduplicate-decl-specifier]: duplicate ‘const’ declaration specifier
#  184 | static const int const rc_method_list[] =
#      |                  ^~~~~
#  182|       { "decide", "quality", "balanced", "speed" };
#  183|   
#  184|-> static const int const rc_method_list[] =
#  185|       { MFX_RATECONTROL_CBR, MFX_RATECONTROL_VBR,
#  186|         MFX_RATECONTROL_CQP, MFX_RATECONTROL_AVBR};

Error: COMPILER_WARNING: [#def300]
vlc-3.0.21/modules/codec/qsv.c:377:48: warning[-Wduplicate-decl-specifier]: duplicate ‘const’ declaration specifier
#  377 |                                      const int const *list,
#      |                                                ^~~~~
#  375|   
#  376|   static uint64_t qsv_params_get_value(const char *const *text,
#  377|->                                      const int const *list,
#  378|                                        size_t size, char *sel)
#  379|   {

Error: COMPILER_WARNING (CWE-477): [#def301]
vlc-3.0.21/modules/codec/qsv.c: scope_hint: In function ‘Open’
vlc-3.0.21/modules/codec/qsv.c:428:5: warning[-Wdeprecated-declarations]: ‘MFXInit’ is deprecated
#  428 |     sts = MFXInit(MFX_IMPL_AUTO, 0, &sys->session);
#      |     ^~~
/usr/include/vpl/mfxvideo.h:9: included_from: Included from here.
vlc-3.0.21/modules/codec/qsv.c:36: included_from: Included from here.
/usr/include/vpl/mfxsession.h:56:36: note: declared here
#   56 | MFX_DEPRECATED mfxStatus MFX_CDECL MFXInit(mfxIMPL impl, mfxVersion *ver, mfxSession *session);
#      |                                    ^~~~~~~
#  426|   
#  427|       /* Initialize dispatcher, it will loads the actual SW/HW Implementation */
#  428|->     sts = MFXInit(MFX_IMPL_AUTO, 0, &sys->session);
#  429|   
#  430|       if (sts != MFX_ERR_NONE) {

Error: COMPILER_WARNING (CWE-477): [#def302]
vlc-3.0.21/modules/codec/qsv.c:428:5: warning[-Wdeprecated-declarations]: ‘MFXInit’ is deprecated
#  426|   
#  427|       /* Initialize dispatcher, it will loads the actual SW/HW Implementation */
#  428|->     sts = MFXInit(MFX_IMPL_AUTO, 0, &sys->session);
#  429|   
#  430|       if (sts != MFX_ERR_NONE) {

Error: COMPILER_WARNING: [#def303]
vlc-3.0.21/include/vlc_common.h:1034: included_from: Included from here.
vlc-3.0.21/modules/codec/qsv.c:502:18: warning[-Wformat-overflow=]: ‘%s’ directive argument is null
#  502 |     msg_Dbg(enc, "Encoder using '%s' Rate Control method", psz_rc );
#      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vlc-3.0.21/modules/codec/qsv.c:502:34: note: format string is defined here
#  502 |     msg_Dbg(enc, "Encoder using '%s' Rate Control method", psz_rc );
#      |                                  ^~
#  500|   
#  501|       char *psz_rc = var_InheritString(enc, SOUT_CFG_PREFIX "rc-method");
#  502|->     msg_Dbg(enc, "Encoder using '%s' Rate Control method", psz_rc );
#  503|       sys->params.mfx.RateControlMethod = qsv_params_get_value(rc_method_text,
#  504|           rc_method_list, sizeof(rc_method_list), psz_rc );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def304]
vlc-3.0.21/modules/codec/schroedinger.c:689:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_free’
vlc-3.0.21/modules/codec/schroedinger.c:658:20: enter_function: entry to ‘CreateSchroFrameFromPic’
vlc-3.0.21/modules/codec/schroedinger.c:665:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/schroedinger.c:668:9: branch_false: ...to here
vlc-3.0.21/modules/codec/schroedinger.c:668:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/schroedinger.c:670:13: call_function: inlined call to ‘decoder_NewPicture’ from ‘CreateSchroFrameFromPic’
vlc-3.0.21/modules/codec/schroedinger.c:672:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/schroedinger.c:675:5: branch_false: ...to here
vlc-3.0.21/modules/codec/schroedinger.c:688:14: acquire_memory: this call could return NULL
vlc-3.0.21/modules/codec/schroedinger.c:689:5: danger: ‘p_free’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
#  687|   
#  688|       p_free = malloc( sizeof( *p_free ) );
#  689|->     p_free->p_pic = p_pic;
#  690|       p_free->p_dec = p_dec;
#  691|       schro_frame_set_free_callback( p_schroframe, SchroFrameFree, p_free );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def305]
vlc-3.0.21/modules/codec/speex.c:1076:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_extra’
vlc-3.0.21/modules/codec/speex.c:968:12: enter_function: entry to ‘OpenEncoder’
vlc-3.0.21/modules/codec/speex.c:1002:7: branch_false: following ‘false’ branch (when ‘p_sys’ is non-NULL)...
vlc-3.0.21/modules/codec/speex.c:1004:5: branch_false: ...to here
vlc-3.0.21/modules/codec/speex.c:1065:23: call_function: calling ‘xmalloc’ from ‘OpenEncoder’
vlc-3.0.21/modules/codec/speex.c:1065:23: return_function: returning to ‘OpenEncoder’ from ‘xmalloc’
vlc-3.0.21/modules/codec/speex.c:1073:40: call_function: calling ‘xmalloc’ from ‘OpenEncoder’
vlc-3.0.21/modules/codec/speex.c:1073:40: return_function: returning to ‘OpenEncoder’ from ‘xmalloc’
vlc-3.0.21/modules/codec/speex.c:1074:17: branch_true: following ‘true’ branch (when ‘i != 2’)...
vlc-3.0.21/modules/codec/speex.c:1076:24: branch_true: ...to here
vlc-3.0.21/modules/codec/speex.c:1076:9: danger: ‘p_extra’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
# 1074|       for( i = 0; i < 2; i++ )
# 1075|       {
# 1076|->         *(p_extra++) = pi_header[i] >> 8;
# 1077|           *(p_extra++) = pi_header[i] & 0xFF;
# 1078|           memcpy( p_extra, pp_header[i], pi_header[i] );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def306]
vlc-3.0.21/modules/codec/spudec/spudec.c:88:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_sys’
vlc-3.0.21/modules/codec/spudec/spudec.c:83:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/spudec/spudec.c:86:28: branch_false: ...to here
vlc-3.0.21/modules/codec/spudec/spudec.c:86:28: acquire_memory: this call could return NULL
vlc-3.0.21/modules/codec/spudec/spudec.c:88:5: danger: ‘p_sys’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#   86|       p_dec->p_sys = p_sys = malloc( sizeof( decoder_sys_t ) );
#   87|   
#   88|->     p_sys->b_packetizer = false;
#   89|       p_sys->b_disabletrans = var_InheritBool( p_dec, "dvdsub-transparency" );
#   90|       p_sys->i_spu_size = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def307]
vlc-3.0.21/modules/codec/stl.c:481:8: warning[-Wanalyzer-malloc-leak]: leak of ‘sys’
vlc-3.0.21/modules/codec/stl.c:473:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/stl.c:476:26: branch_false: ...to here
vlc-3.0.21/modules/codec/stl.c:476:26: acquire_memory: allocated here
vlc-3.0.21/modules/codec/stl.c:477:8: branch_false: following ‘false’ branch (when ‘sys’ is non-NULL)...
vlc-3.0.21/modules/codec/stl.c:480:14: branch_false: ...to here
vlc-3.0.21/modules/codec/stl.c:481:8: branch_true: following ‘true’ branch...
 branch_true: ...to here
vlc-3.0.21/modules/codec/stl.c:481:8: danger: ‘sys’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  479|   
#  480|       int rc = ParseGSI(dec, sys);
#  481|->     if (VLC_SUCCESS != rc)
#  482|           return rc;
#  483|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def308]
vlc-3.0.21/modules/codec/subsdec.c:490:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p_segment’
vlc-3.0.21/modules/codec/subsdec.c:323:12: enter_function: entry to ‘DecodeBlock’
vlc-3.0.21/modules/codec/subsdec.c:336:13: call_function: calling ‘ParseText’ from ‘DecodeBlock’
#  488|   {
#  489|       char* tmp;
#  490|->     if ( asprintf( &tmp, "%s%c", p_segment->psz_text ? p_segment->psz_text : "", c ) < 0 )
#  491|           return false;
#  492|       free( p_segment->psz_text );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def309]
vlc-3.0.21/modules/codec/subsdec.c:500:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p_segment’
vlc-3.0.21/modules/codec/subsdec.c:323:12: enter_function: entry to ‘DecodeBlock’
vlc-3.0.21/modules/codec/subsdec.c:336:13: call_function: calling ‘ParseText’ from ‘DecodeBlock’
#  498|   {
#  499|       char* tmp;
#  500|->     if ( asprintf( &tmp, "%s%s", p_segment->psz_text ? p_segment->psz_text : "", psz_str ) < 0 )
#  501|           return false;
#  502|       free( p_segment->psz_text );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def310]
vlc-3.0.21/modules/codec/subsdec.c:777:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/modules/codec/subsdec.c:323:12: enter_function: entry to ‘DecodeBlock’
vlc-3.0.21/modules/codec/subsdec.c:336:13: call_function: calling ‘ParseText’ from ‘DecodeBlock’
#  775|                   {
#  776|                       p_segment = NewTextSegmentPushStyle( p_segment, &p_stack );
#  777|->                     p_segment->style->i_style_flags |= STYLE_BOLD;
#  778|                       p_segment->style->i_features |= STYLE_HAS_FLAGS;
#  779|                   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def311]
vlc-3.0.21/modules/codec/subsdec.c:783:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/modules/codec/subsdec.c:323:12: enter_function: entry to ‘DecodeBlock’
vlc-3.0.21/modules/codec/subsdec.c:336:13: call_function: calling ‘ParseText’ from ‘DecodeBlock’
#  781|                   {
#  782|                       p_segment = NewTextSegmentPushStyle( p_segment, &p_stack );
#  783|->                     p_segment->style->i_style_flags |= STYLE_ITALIC;
#  784|                       p_segment->style->i_features |= STYLE_HAS_FLAGS;
#  785|                   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def312]
vlc-3.0.21/modules/codec/subsdec.c:789:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/modules/codec/subsdec.c:323:12: enter_function: entry to ‘DecodeBlock’
vlc-3.0.21/modules/codec/subsdec.c:336:13: call_function: calling ‘ParseText’ from ‘DecodeBlock’
#  787|                   {
#  788|                       p_segment = NewTextSegmentPushStyle( p_segment, &p_stack );
#  789|->                     p_segment->style->i_style_flags |= STYLE_UNDERLINE;
#  790|                       p_segment->style->i_features |= STYLE_HAS_FLAGS;
#  791|                   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def313]
vlc-3.0.21/modules/codec/subsdec.c:795:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/modules/codec/subsdec.c:323:12: enter_function: entry to ‘DecodeBlock’
vlc-3.0.21/modules/codec/subsdec.c:336:13: call_function: calling ‘ParseText’ from ‘DecodeBlock’
#  793|                   {
#  794|                       p_segment = NewTextSegmentPushStyle( p_segment, &p_stack );
#  795|->                     p_segment->style->i_style_flags |= STYLE_STRIKEOUT;
#  796|                       p_segment->style->i_features |= STYLE_HAS_FLAGS;
#  797|                   }

Error: COMPILER_WARNING: [#def314]
vlc-3.0.21/modules/codec/subsdec.c: scope_hint: In function ‘ParseSubtitles’
vlc-3.0.21/modules/codec/subsdec.c:901:23: warning[-Wshadow=compatible-local]: declaration of ‘psz_tagname’ shadows a previous local
#  901 |                 char* psz_tagname = GetTag( &psz_subtitle, true );
#      |                       ^~~~~~~~~~~
vlc-3.0.21/modules/codec/subsdec.c:763:19: note: shadowed declaration is here
#  763 |             char *psz_tagname = GetTag( &psz_subtitle, false );
#      |                   ^~~~~~~~~~~
#  899|               else if( !strncmp( psz_subtitle, "</", 2 ))
#  900|               {
#  901|->                 char* psz_tagname = GetTag( &psz_subtitle, true );
#  902|                   if ( psz_tagname != NULL )
#  903|                   {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def315]
vlc-3.0.21/modules/codec/subsdec.c:988:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/modules/codec/subsdec.c:323:12: enter_function: entry to ‘DecodeBlock’
vlc-3.0.21/modules/codec/subsdec.c:336:13: call_function: calling ‘ParseText’ from ‘DecodeBlock’
#  986|                   {
#  987|                       p_segment = NewTextSegmentPushStyle( p_segment, &p_stack );
#  988|->                     p_segment->style->i_style_flags |= STYLE_ITALIC;
#  989|                       p_segment->style->i_features |= STYLE_HAS_FLAGS;
#  990|                       psz_subtitle++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def316]
vlc-3.0.21/modules/codec/subsdec.c:995:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/modules/codec/subsdec.c:323:12: enter_function: entry to ‘DecodeBlock’
vlc-3.0.21/modules/codec/subsdec.c:336:13: call_function: calling ‘ParseText’ from ‘DecodeBlock’
#  993|                   {
#  994|                       p_segment = NewTextSegmentPushStyle( p_segment, &p_stack );
#  995|->                     p_segment->style->i_style_flags |= STYLE_BOLD;
#  996|                       p_segment->style->i_features |= STYLE_HAS_FLAGS;
#  997|                       psz_subtitle++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def317]
vlc-3.0.21/modules/codec/subsdec.c:1002:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/modules/codec/subsdec.c:323:12: enter_function: entry to ‘DecodeBlock’
vlc-3.0.21/modules/codec/subsdec.c:336:13: call_function: calling ‘ParseText’ from ‘DecodeBlock’
# 1000|                   {
# 1001|                       p_segment = NewTextSegmentPushStyle( p_segment, &p_stack );
# 1002|->                     p_segment->style->i_style_flags |= STYLE_UNDERLINE;
# 1003|                       p_segment->style->i_features |= STYLE_HAS_FLAGS;
# 1004|                       psz_subtitle++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def318]
vlc-3.0.21/modules/codec/subsdec.c:1017:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/modules/codec/subsdec.c:323:12: enter_function: entry to ‘DecodeBlock’
vlc-3.0.21/modules/codec/subsdec.c:336:13: call_function: calling ‘ParseText’ from ‘DecodeBlock’
# 1015|                   psz_color[6] = '\0';
# 1016|                   p_segment = NewTextSegmentPushStyle( p_segment, &p_stack );
# 1017|->                 p_segment->style->i_font_color = vlc_html_color( psz_color, NULL );
# 1018|                   p_segment->style->i_features |= STYLE_HAS_FONT_COLOR;
# 1019|               }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def319]
vlc-3.0.21/modules/codec/subsdec.c:1023:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/modules/codec/subsdec.c:323:12: enter_function: entry to ‘DecodeBlock’
vlc-3.0.21/modules/codec/subsdec.c:336:13: call_function: calling ‘ParseText’ from ‘DecodeBlock’
# 1021|               {
# 1022|                   p_segment = NewTextSegmentPushStyle( p_segment, &p_stack );
# 1023|->                 free(p_segment->style->psz_fontname);
# 1024|                   p_segment->style->psz_fontname = strndup( &psz_subtitle[3], i_len );
# 1025|               }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def320]
vlc-3.0.21/modules/codec/subsdec.c:1032:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/modules/codec/subsdec.c:323:12: enter_function: entry to ‘DecodeBlock’
vlc-3.0.21/modules/codec/subsdec.c:336:13: call_function: calling ‘ParseText’ from ‘DecodeBlock’
# 1030|                   {
# 1031|                       p_segment = NewTextSegmentPushStyle( p_segment, &p_stack );
# 1032|->                     p_segment->style->i_font_size = size;
# 1033|                       p_segment->style->f_font_relsize = STYLE_DEFAULT_REL_FONT_SIZE *
# 1034|                                   STYLE_DEFAULT_FONT_SIZE / p_segment->style->i_font_size;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def321]
vlc-3.0.21/modules/codec/substext.h:78:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘sys’
vlc-3.0.21/modules/codec/substext.h:287:37: acquire_memory: this call could return NULL
vlc-3.0.21/modules/codec/substext.h:294:5: call_function: inlined call to ‘SubpictureUpdaterSysRegionInit’ from ‘decoder_NewSubpictureText’
#   76|   {
#   77|       memset(p_updtregion, 0, sizeof(*p_updtregion));
#   78|->     p_updtregion->align = SUBPICTURE_ALIGN_BOTTOM;
#   79|       p_updtregion->inner_align = 0;
#   80|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def322]
vlc-3.0.21/modules/codec/substx3g.c:229:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p_segment_left’
vlc-3.0.21/modules/codec/substx3g.c:308:12: enter_function: entry to ‘Decode’
vlc-3.0.21/modules/codec/substx3g.c:312:7: branch_false: following ‘false’ branch (when ‘p_block’ is non-NULL)...
vlc-3.0.21/modules/codec/substx3g.c:315:11: branch_false: ...to here
vlc-3.0.21/modules/codec/substx3g.c:315:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/substx3g.c:316:11: branch_false: ...to here
vlc-3.0.21/modules/codec/substx3g.c:315:9: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/substx3g.c:322:14: branch_false: ...to here
vlc-3.0.21/modules/codec/substx3g.c:326:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/substx3g.c:332:20: branch_false: ...to here
vlc-3.0.21/modules/codec/substx3g.c:345:12: branch_false: following ‘false’ branch (when ‘psz_subtitle’ is non-NULL)...
vlc-3.0.21/modules/codec/substx3g.c:348:11: branch_false: ...to here
vlc-3.0.21/modules/codec/substx3g.c:353:35: call_function: calling ‘tx3g_segment_New’ from ‘Decode’
vlc-3.0.21/modules/codec/substx3g.c:353:35: return_function: returning to ‘Decode’ from ‘tx3g_segment_New’
vlc-3.0.21/modules/codec/substx3g.c:354:27: call_function: inlined call to ‘str8len’ from ‘Decode’
vlc-3.0.21/modules/codec/substx3g.c:354:5: branch_false: ...to here
vlc-3.0.21/modules/codec/substx3g.c:357:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/substx3g.c:365:13: branch_false: ...to here
vlc-3.0.21/modules/codec/substx3g.c:365:13: call_function: calling ‘decoder_NewSubpictureText’ from ‘Decode’
vlc-3.0.21/modules/codec/substx3g.c:365:13: return_function: returning to ‘Decode’ from ‘decoder_NewSubpictureText’
vlc-3.0.21/modules/codec/substx3g.c:366:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/substx3g.c:372:31: branch_false: ...to here
vlc-3.0.21/modules/codec/substx3g.c:378:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/codec/substx3g.c:380:17: branch_true: ...to here
vlc-3.0.21/modules/codec/substx3g.c:380:9: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/codec/substx3g.c:383:9: branch_true: ...to here
vlc-3.0.21/modules/codec/substx3g.c:385:15: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/substx3g.c:388:36: branch_false: ...to here
vlc-3.0.21/modules/codec/substx3g.c:392:20: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/codec/substx3g.c:396:19: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/codec/substx3g.c:398:29: branch_true: ...to here
vlc-3.0.21/modules/codec/substx3g.c:401:23: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/codec/substx3g.c:403:69: branch_true: ...to here
vlc-3.0.21/modules/codec/substx3g.c:409:25: call_function: calling ‘ApplySegmentStyle’ from ‘Decode’
#  227|       {
#  228|           /* Failed */
#  229|->         text_segment_Delete( p_segment_left->s );
#  230|           free( p_segment_left );
#  231|           text_segment_Delete( p_segment_right->s );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def323]
vlc-3.0.21/modules/codec/substx3g.c:354:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/modules/codec/substx3g.c:308:12: enter_function: entry to ‘Decode’
vlc-3.0.21/modules/codec/substx3g.c:312:7: branch_false: following ‘false’ branch (when ‘p_block’ is non-NULL)...
vlc-3.0.21/modules/codec/substx3g.c:315:11: branch_false: ...to here
vlc-3.0.21/modules/codec/substx3g.c:315:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/substx3g.c:316:11: branch_false: ...to here
vlc-3.0.21/modules/codec/substx3g.c:315:9: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/substx3g.c:322:14: branch_false: ...to here
vlc-3.0.21/modules/codec/substx3g.c:326:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/substx3g.c:332:20: branch_false: ...to here
vlc-3.0.21/modules/codec/substx3g.c:345:12: branch_false: following ‘false’ branch (when ‘psz_subtitle’ is non-NULL)...
vlc-3.0.21/modules/codec/substx3g.c:348:11: branch_false: ...to here
vlc-3.0.21/modules/codec/substx3g.c:353:21: release_memory: ‘p_segment3g’ is NULL
vlc-3.0.21/modules/codec/substx3g.c:354:27: call_function: inlined call to ‘str8len’ from ‘Decode’
vlc-3.0.21/modules/codec/substx3g.c:354:5: branch_false: ...to here
vlc-3.0.21/modules/codec/substx3g.c:354:5: danger: dereference of NULL ‘tx3g_segment_New(psz_subtitle)’
#  352|   
#  353|       tx3g_segment_t *p_segment3g = tx3g_segment_New( psz_subtitle );
#  354|->     p_segment3g->i_size = str8len( psz_subtitle );
#  355|       free( psz_subtitle );
#  356|   

Error: COMPILER_WARNING (CWE-477): [#def324]
vlc-3.0.21/modules/codec/svg.c: scope_hint: In function ‘DecodeBlock’
vlc-3.0.21/modules/codec/svg.c:148:5: warning[-Wdeprecated-declarations]: ‘rsvg_handle_get_dimensions’ is deprecated: Use 'rsvg_handle_get_intrinsic_size_in_pixels' instead
#  148 |     rsvg_handle_get_dimensions( rsvg, &dim );
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
vlc-3.0.21/modules/codec/svg.c:39: included_from: Included from here.
/usr/include/librsvg-2.0/librsvg/rsvg.h:661:6: note: declared here
#  661 | void rsvg_handle_get_dimensions (RsvgHandle *handle, RsvgDimensionData *dimension_data);
#      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  146|   
#  147|       RsvgDimensionData dim;
#  148|->     rsvg_handle_get_dimensions( rsvg, &dim );
#  149|   
#  150|       if( p_sys->f_scale > 0.0 )

Error: COMPILER_WARNING (CWE-477): [#def325]
vlc-3.0.21/modules/codec/svg.c:148:5: warning[-Wdeprecated-declarations]: ‘rsvg_handle_get_dimensions’ is deprecated: Use 'rsvg_handle_get_intrinsic_size_in_pixels' instead
#  146|   
#  147|       RsvgDimensionData dim;
#  148|->     rsvg_handle_get_dimensions( rsvg, &dim );
#  149|   
#  150|       if( p_sys->f_scale > 0.0 )

Error: COMPILER_WARNING (CWE-477): [#def326]
vlc-3.0.21/modules/codec/svg.c:240:5: warning[-Wdeprecated-declarations]: ‘rsvg_handle_render_cairo’ is deprecated: Use 'rsvg_handle_render_document' instead
#  240 |     if( !rsvg_handle_render_cairo( rsvg, cr ) )
#      |     ^~
/usr/include/librsvg-2.0/librsvg/rsvg.h:1329: included_from: Included from here.
/usr/include/librsvg-2.0/librsvg/rsvg-cairo.h:90:10: note: declared here
#   90 | gboolean rsvg_handle_render_cairo (RsvgHandle *handle, cairo_t *cr);
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~
#  238|       }
#  239|   
#  240|->     if( !rsvg_handle_render_cairo( rsvg, cr ) )
#  241|       {
#  242|           picture_Release( p_pic );

Error: COMPILER_WARNING (CWE-477): [#def327]
vlc-3.0.21/modules/codec/svg.c:240:5: warning[-Wdeprecated-declarations]: ‘rsvg_handle_render_cairo’ is deprecated: Use 'rsvg_handle_render_document' instead
#  238|       }
#  239|   
#  240|->     if( !rsvg_handle_render_cairo( rsvg, cr ) )
#  241|       {
#  242|           picture_Release( p_pic );

Error: GCC_ANALYZER_WARNING (CWE-401): [#def328]
vlc-3.0.21/modules/codec/textst.c:225:1: warning[-Wanalyzer-malloc-leak]: leak of ‘p_region’
vlc-3.0.21/modules/codec/textst.c:227:12: enter_function: entry to ‘Decode’
vlc-3.0.21/modules/codec/textst.c:230:8: branch_false: following ‘false’ branch (when ‘p_block’ is non-NULL)...
vlc-3.0.21/modules/codec/textst.c:233:9: branch_false: ...to here
vlc-3.0.21/modules/codec/textst.c:233:8: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/codec/textst.c:234:10: branch_true: ...to here
vlc-3.0.21/modules/codec/textst.c:233:9: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/codec/textst.c:235:18: branch_true: ...to here
vlc-3.0.21/modules/codec/textst.c:235:18: call_function: calling ‘decoder_NewSubpictureText’ from ‘Decode’
vlc-3.0.21/modules/codec/textst.c:235:18: return_function: returning to ‘Decode’ from ‘decoder_NewSubpictureText’
vlc-3.0.21/modules/codec/textst.c:233:9: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/codec/textst.c:237:38: branch_true: ...to here
vlc-3.0.21/modules/codec/textst.c:247:9: call_function: calling ‘textst_FillRegions’ from ‘Decode’
#  223|           }
#  224|       }
#  225|-> }
#  226|   
#  227|   static int Decode(decoder_t *p_dec, block_t *p_block)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def329]
vlc-3.0.21/modules/codec/ttml/ttml.h:119:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t1’
vlc-3.0.21/modules/codec/ttml/ttml.c:487:6: enter_function: entry to ‘tt_timings_Resolve’
vlc-3.0.21/modules/codec/ttml/ttml.c:491:13: branch_true: following ‘true’ branch (when ‘p_child’ is non-NULL)...
vlc-3.0.21/modules/codec/ttml/ttml.c:493:13: branch_true: ...to here
vlc-3.0.21/modules/codec/ttml/ttml.c:493:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/ttml/ttml.c:497:13: branch_false: ...to here
vlc-3.0.21/modules/codec/ttml/ttml.c:507:13: call_function: calling ‘tt_timings_MergeParallel’ from ‘tt_timings_Resolve’
vlc-3.0.21/modules/codec/ttml/ttml.c:507:13: return_function: returning to ‘tt_timings_Resolve’ from ‘tt_timings_MergeParallel’
vlc-3.0.21/modules/codec/ttml/ttml.c:510:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/codec/ttml/ttml.c:511:13: branch_true: ...to here
vlc-3.0.21/modules/codec/ttml/ttml.c:511:13: call_function: calling ‘tt_bsearch_Insert’ from ‘tt_timings_Resolve’
#  117|   static inline bool tt_time_Valid( const tt_time_t *t )
#  118|   {
#  119|->     return t->base != -1;
#  120|   }
#  121|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def330]
vlc-3.0.21/modules/codec/webvtt/CSSGrammar.c:1630:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
vlc-3.0.21/modules/codec/webvtt/CSSGrammar.c:1588:6: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/codec/webvtt/CSSGrammar.c:1594:28: branch_true: ...to here
vlc-3.0.21/modules/codec/webvtt/CSSGrammar.c:1617:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
vlc-3.0.21/modules/codec/webvtt/CSSGrammar.c:1619:7: branch_false: ...to here
vlc-3.0.21/modules/codec/webvtt/CSSGrammar.c:1628:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
vlc-3.0.21/modules/codec/webvtt/CSSGrammar.c:1630:9: branch_false: ...to here
vlc-3.0.21/modules/codec/webvtt/CSSGrammar.c:1630:9: danger: use of uninitialized value ‘yyss’ here
# 1628|           if (! yyptr)
# 1629|             YYNOMEM;
# 1630|->         YYSTACK_RELOCATE (yyss_alloc, yyss);
# 1631|           YYSTACK_RELOCATE (yyvs_alloc, yyvs);
# 1632|   #  undef YYSTACK_RELOCATE

Error: GCC_ANALYZER_WARNING (CWE-457): [#def331]
vlc-3.0.21/modules/codec/webvtt/CSSGrammar.c:1757:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
vlc-3.0.21/modules/codec/webvtt/CSSGrammar.c:1588:6: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/webvtt/CSSGrammar.c:1652:6: branch_false: ...to here
vlc-3.0.21/modules/codec/webvtt/CSSGrammar.c:1652:6: branch_false: following ‘false’ branch (when ‘yystate != 3’)...
vlc-3.0.21/modules/codec/webvtt/CSSGrammar.c:1655:3: branch_false: ...to here
vlc-3.0.21/modules/codec/webvtt/CSSGrammar.c:1667:6: branch_true: following ‘true’ branch (when ‘yyn == -126’)...
vlc-3.0.21/modules/codec/webvtt/CSSGrammar.c:1668:5: branch_true: ...to here
vlc-3.0.21/modules/codec/webvtt/CSSGrammar.c:1737:6: branch_false: following ‘false’ branch (when ‘yyn != 0’)...
vlc-3.0.21/modules/codec/webvtt/CSSGrammar.c:1739:3: branch_false: ...to here
vlc-3.0.21/modules/codec/webvtt/CSSGrammar.c:1757:3: danger: use of uninitialized value ‘*<unknown>’ here
# 1755|        unconditionally makes the parser a bit smaller, and it avoids a
# 1756|        GCC warning that YYVAL may be used uninitialized.  */
# 1757|->   yyval = yyvsp[1-yylen];
# 1758|   
# 1759|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def332]
vlc-3.0.21/modules/codec/webvtt/CSSLexer.c:2466:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
vlc-3.0.21/modules/codec/webvtt/CSSLexer.c:2452:21: enter_function: entry to ‘yy_create_buffer’
vlc-3.0.21/modules/codec/webvtt/CSSLexer.c:2456:31: call_function: inlined call to ‘yyalloc’ from ‘yy_create_buffer’
vlc-3.0.21/modules/codec/webvtt/CSSLexer.c:2457:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/webvtt/CSSLexer.c:2460:9: branch_false: ...to here
vlc-3.0.21/modules/codec/webvtt/CSSLexer.c:2466:12: danger: ‘malloc(64)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
# 2464|   	 */
# 2465|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
# 2466|-> 	if ( ! b->yy_ch_buf )
# 2467|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
# 2468|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def333]
vlc-3.0.21/modules/codec/webvtt/CSSLexer.c:2508:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
vlc-3.0.21/modules/codec/webvtt/CSSLexer.c:2387:10: enter_function: entry to ‘yyrestart’
vlc-3.0.21/modules/codec/webvtt/CSSLexer.c:2392:9: call_function: calling ‘yyensure_buffer_stack’ from ‘yyrestart’
vlc-3.0.21/modules/codec/webvtt/CSSLexer.c:2392:9: return_function: returning to ‘yyrestart’ from ‘yyensure_buffer_stack’
vlc-3.0.21/modules/codec/webvtt/CSSLexer.c:2394:13: call_function: calling ‘yy_create_buffer’ from ‘yyrestart’
vlc-3.0.21/modules/codec/webvtt/CSSLexer.c:2394:13: return_function: returning to ‘yyrestart’ from ‘yy_create_buffer’
vlc-3.0.21/modules/codec/webvtt/CSSLexer.c:2397:9: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/codec/webvtt/CSSLexer.c:2397:9: branch_false: ...to here
vlc-3.0.21/modules/codec/webvtt/CSSLexer.c:2397:9: call_function: calling ‘yy_init_buffer’ from ‘yyrestart’
# 2506|   	yy_flush_buffer( b , yyscanner);
# 2507|   
# 2508|-> 	b->yy_input_file = file;
# 2509|   	b->yy_fill_buffer = 1;
# 2510|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def334]
vlc-3.0.21/modules/codec/webvtt/CSSLexer.c:2726:32: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
vlc-3.0.21/modules/codec/webvtt/CSSLexer.c:2710:17: enter_function: entry to ‘yy_scan_bytes’
vlc-3.0.21/modules/codec/webvtt/CSSLexer.c:2719:24: call_function: inlined call to ‘yyalloc’ from ‘yy_scan_bytes’
vlc-3.0.21/modules/codec/webvtt/CSSLexer.c:2720:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/codec/webvtt/CSSLexer.c:2728:13: call_function: calling ‘yy_scan_buffer’ from ‘yy_scan_bytes’
# 2724|   		buf[i] = yybytes[i];
# 2725|   
# 2726|-> 	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 2727|   
# 2728|   	b = yy_scan_buffer( buf, n , yyscanner);

Error: COMPILER_WARNING (CWE-192): [#def335]
vlc-3.0.21/modules/codec/webvtt/webvtt.c: scope_hint: In function ‘forward_line’
vlc-3.0.21/modules/codec/webvtt/webvtt.c:150:33: warning[-Wenum-conversion]: implicit conversion from ‘enum <anonymous>’ to ‘enum webvtt_header_line_e’
#  150 |         p->pf_header( p->priv, p->section, b_new, psz_line );
#      |                                ~^~~~~~~~~
#  148|   {
#  149|       if( p->pf_header )
#  150|->         p->pf_header( p->priv, p->section, b_new, psz_line );
#  151|   }
#  152|   

Error: COMPILER_WARNING: [#def336]
vlc-3.0.21/modules/codec/zvbi.c: scope_hint: In function ‘OpaquePage’
vlc-3.0.21/modules/codec/zvbi.c:673:19: warning[-Wimplicit-fallthrough=]: this statement may fall through
#  673 |                 if( b_opaque )
#      |                   ^
vlc-3.0.21/modules/codec/zvbi.c:676:13: note: here
#  676 |             case VBI_TRANSPARENT_FULL:
#      |             ^~~~
#  671|               /* alpha blend video into background color */
#  672|               case VBI_SEMI_TRANSPARENT:
#  673|->                 if( b_opaque )
#  674|                       break;
#  675|               /* Full text transparency. only foreground color is show */

Error: GCC_ANALYZER_WARNING (CWE-457): [#def337]
vlc-3.0.21/modules/control/dbus/dbus.c:579:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
vlc-3.0.21/modules/control/dbus/dbus.c:841:14: enter_function: entry to ‘Run’
vlc-3.0.21/modules/control/dbus/dbus.c:908:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/control/dbus/dbus.c:910:30: branch_true: ...to here
vlc-3.0.21/modules/control/dbus/dbus.c:911:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/control/dbus/dbus.c:917:27: call_function: inlined call to ‘vlc_alloc’ from ‘Run’
vlc-3.0.21/modules/control/dbus/dbus.c:918:19: branch_true: following ‘true’ branch...
 branch_true: ...to here
vlc-3.0.21/modules/control/dbus/dbus.c:920:40: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/control/dbus/dbus.c:922:21: call_function: inlined call to ‘vlc_array_clear’ from ‘Run’
vlc-3.0.21/modules/control/dbus/dbus.c:938:11: branch_true: following ‘true’ branch (when ‘pp_info’ is non-NULL)...
vlc-3.0.21/modules/control/dbus/dbus.c:940:13: branch_true: ...to here
vlc-3.0.21/modules/control/dbus/dbus.c:940:13: call_function: calling ‘ProcessEvents’ from ‘Run’
#  577|       for( int i = 0; i < i_events; i++ )
#  578|       {
#  579|->         switch( p_events[i]->signal )
#  580|           {
#  581|           case SIGNAL_ITEM_CURRENT:

Error: COMPILER_WARNING (CWE-252): [#def338]
vlc-3.0.21/modules/control/dbus/dbus.c: scope_hint: In function ‘Run’
vlc-3.0.21/modules/control/dbus/dbus.c:880:19: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
#  880 |             (void)read( fds[0].fd, &buf, 1 );
#      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  878|           {
#  879|               char buf;
#  880|->             (void)read( fds[0].fd, &buf, 1 );
#  881|           }
#  882|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def339]
vlc-3.0.21/modules/control/dbus/dbus.c:959:1: warning[-Wanalyzer-malloc-leak]: leak of ‘p_info’
vlc-3.0.21/modules/control/dbus/dbus.c:991:12: enter_function: entry to ‘InputCallback’
vlc-3.0.21/modules/control/dbus/dbus.c:1000:31: acquire_memory: allocated here
vlc-3.0.21/modules/control/dbus/dbus.c:1001:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/control/dbus/dbus.c:1004:13: branch_false: ...to here
vlc-3.0.21/modules/control/dbus/dbus.c:1067:7: branch_false: following ‘false’ branch (when ‘i_state == -1’)...
vlc-3.0.21/modules/control/dbus/dbus.c:1073:18: branch_false: ...to here
vlc-3.0.21/modules/control/dbus/dbus.c:1073:18: call_function: calling ‘add_event_locked’ from ‘InputCallback’
vlc-3.0.21/modules/control/dbus/dbus.c:1073:18: return_function: returning to ‘InputCallback’ from ‘add_event_locked’
vlc-3.0.21/modules/control/dbus/dbus.c:1076:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/control/dbus/dbus.c:1077:9: branch_true: ...to here
vlc-3.0.21/modules/control/dbus/dbus.c:959:1: danger: ‘p_info’ leaks here; was allocated at [(2)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/1)
#  957|           msg_Err( p_intf, "Could not wake up the main loop: %s",
#  958|                    vlc_strerror_c(errno) );
#  959|-> }
#  960|   
#  961|   static bool add_event_locked( intf_thread_t *p_intf, callback_info_t *p_info )

Error: GCC_ANALYZER_WARNING (CWE-401): [#def340]
vlc-3.0.21/modules/control/dbus/dbus.c:1136:16: warning[-Wanalyzer-malloc-leak]: leak of ‘p_info’
vlc-3.0.21/modules/control/dbus/dbus.c:1085:12: enter_function: entry to ‘AllCallback’
vlc-3.0.21/modules/control/dbus/dbus.c:1135:7: branch_false: following ‘false’ branch (when ‘<unknown> != 0’)...
vlc-3.0.21/modules/control/dbus/dbus.c:1138:31: branch_false: ...to here
vlc-3.0.21/modules/control/dbus/dbus.c:1138:31: acquire_memory: allocated here
vlc-3.0.21/modules/control/dbus/dbus.c:1139:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/control/dbus/dbus.c:1143:5: branch_false: ...to here
vlc-3.0.21/modules/control/dbus/dbus.c:1145:18: call_function: calling ‘add_event_locked’ from ‘AllCallback’
vlc-3.0.21/modules/control/dbus/dbus.c:1145:18: return_function: returning to ‘AllCallback’ from ‘add_event_locked’
vlc-3.0.21/modules/control/dbus/dbus.c:1148:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/control/dbus/dbus.c:1149:9: branch_true: ...to here
vlc-3.0.21/modules/control/dbus/dbus.c:1136:16: danger: ‘p_info’ leaks here; was allocated at [(4)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/3)
# 1134|   
# 1135|       if( info.signal == SIGNAL_NONE )
# 1136|->         return VLC_SUCCESS;
# 1137|   
# 1138|       callback_info_t *p_info = malloc( sizeof( *p_info ) );

Error: GCC_ANALYZER_WARNING (CWE-401): [#def341]
vlc-3.0.21/modules/control/dbus/dbus_player.c:834:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/modules/control/dbus/dbus_player.c:790:1: enter_function: entry to ‘PropertiesChangedSignal’
vlc-3.0.21/modules/control/dbus/dbus_player.c:798:5: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/control/dbus/dbus_player.c:802:5: branch_false: ...to here
vlc-3.0.21/modules/control/dbus/dbus_player.c:803:5: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/control/dbus/dbus_player.c:805:10: branch_false: ...to here
vlc-3.0.21/modules/control/dbus/dbus_player.c:805:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/control/dbus/dbus_player.c:809:23: branch_false: ...to here
vlc-3.0.21/modules/control/dbus/dbus_player.c:809:23: call_function: calling ‘vlc_dictionary_all_keys’ from ‘PropertiesChangedSignal’
vlc-3.0.21/modules/control/dbus/dbus_player.c:809:23: return_function: returning to ‘PropertiesChangedSignal’ from ‘vlc_dictionary_all_keys’
vlc-3.0.21/modules/control/dbus/dbus_player.c:811:7: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/control/dbus/dbus_player.c:817:21: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/control/dbus/dbus_player.c:834:5: branch_false: ...to here
vlc-3.0.21/modules/control/dbus/dbus_player.c:834:5: danger: ‘<unknown>’ leaks here; was allocated at [(18)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/17)
#  832|       }
#  833|   
#  834|->     free( ppsz_properties );
#  835|   
#  836|       if( !dbus_message_iter_close_container( &args, &changed_properties ) )

Error: COMPILER_WARNING (CWE-563): [#def342]
vlc-3.0.21/modules/control/gestures.c: scope_hint: In function ‘PlaylistEvent’
vlc-3.0.21/modules/control/gestures.c:502:39: warning[-Wunused-parameter]: unused parameter ‘oldval’
#  502 |                           vlc_value_t oldval, vlc_value_t val, void *p_data )
#      |                           ~~~~~~~~~~~~^~~~~~
#  500|   
#  501|   static int PlaylistEvent( vlc_object_t *p_this, char const *psz_var,
#  502|->                           vlc_value_t oldval, vlc_value_t val, void *p_data )
#  503|   {
#  504|       intf_thread_t *p_intf = p_data;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def343]
vlc-3.0.21/modules/control/hotkeys.c:1428:14: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
vlc-3.0.21/modules/control/hotkeys.c:1416:13: enter_function: entry to ‘PlayBookmark’
vlc-3.0.21/modules/control/hotkeys.c:1419:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/control/hotkeys.c:1422:30: call_function: inlined call to ‘pl_Get’ from ‘PlayBookmark’
vlc-3.0.21/modules/control/hotkeys.c:1423:26: call_function: calling ‘var_CreateGetString’ from ‘PlayBookmark’
vlc-3.0.21/modules/control/hotkeys.c:1423:26: return_function: returning to ‘PlayBookmark’ from ‘var_CreateGetString’
vlc-3.0.21/modules/control/hotkeys.c:1426:5: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/control/hotkeys.c:1426:5: branch_true: ...to here
vlc-3.0.21/modules/control/hotkeys.c:1428:14: danger: argument 1 (‘var_CreateGetString(&*p_intf.obj,  psz_bookmark_name)’) NULL where non-null expected
# 1426|       FOREACH_ARRAY( playlist_item_t *p_item, p_playlist->items )
# 1427|           char *psz_uri = input_item_GetURI( p_item->p_input );
# 1428|->         if( !strcmp( psz_bookmark, psz_uri ) )
# 1429|           {
# 1430|               free( psz_uri );

Error: COMPILER_WARNING: [#def344]
vlc-3.0.21/modules/control/motion.c: scope_hint: In function ‘RunIntf’
vlc-3.0.21/modules/control/motion.c:139:2: warning[-Wcpp]: #warning FIXME: check once (or less) per picture, not once per interval
#  139 | #warning FIXME: check once (or less) per picture, not once per interval
#      |  ^~~~~~~
#  137|   
#  138|           /* Wait a bit, get orientation, change filter if necessary */
#  139|-> #warning FIXME: check once (or less) per picture, not once per interval
#  140|           msleep( INTF_IDLE_SLEEP );
#  141|   

Error: COMPILER_WARNING: [#def345]
vlc-3.0.21/modules/control/motion.c:139:2: warning[-Wcpp]: #warning FIXME: check once (or less) per picture, not once per interval
#  137|   
#  138|           /* Wait a bit, get orientation, change filter if necessary */
#  139|-> #warning FIXME: check once (or less) per picture, not once per interval
#  140|           msleep( INTF_IDLE_SLEEP );
#  141|   

Error: COMPILER_WARNING: [#def346]
vlc-3.0.21/modules/control/motion.c:164:2: warning[-Wcpp]: #warning FIXME: refactor this plugin as a video filter!
#  164 | #warning FIXME: refactor this plugin as a video filter!
#      |  ^~~~~~~
#  162|           if( b_change )
#  163|           {
#  164|-> #warning FIXME: refactor this plugin as a video filter!
#  165|               input_thread_t *p_input = pl_CurrentInput( p_intf );
#  166|               if( p_input )

Error: COMPILER_WARNING: [#def347]
vlc-3.0.21/modules/control/motion.c:164:2: warning[-Wcpp]: #warning FIXME: refactor this plugin as a video filter!
#  162|           if( b_change )
#  163|           {
#  164|-> #warning FIXME: refactor this plugin as a video filter!
#  165|               input_thread_t *p_input = pl_CurrentInput( p_intf );
#  166|               if( p_input )

Error: COMPILER_WARNING (CWE-563): [#def348]
vlc-3.0.21/modules/control/netsync.c: scope_hint: In function ‘PlaylistEvent’
vlc-3.0.21/modules/control/netsync.c:277:38: warning[-Wunused-parameter]: unused parameter ‘oldval’
#  277 |                          vlc_value_t oldval, vlc_value_t newval, void *data)
#      |                          ~~~~~~~~~~~~^~~~~~
#  275|   
#  276|   static int PlaylistEvent(vlc_object_t *object, char const *cmd,
#  277|->                          vlc_value_t oldval, vlc_value_t newval, void *data)
#  278|   {
#  279|       VLC_UNUSED(cmd); VLC_UNUSED(object);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def349]
vlc-3.0.21/modules/control/oldrc.c:1609:23: warning[-Wanalyzer-null-argument]: use of NULL ‘psz_value’ where non-null expected
vlc-3.0.21/modules/control/oldrc.c:1503:12: enter_function: entry to ‘VideoConfig’
vlc-3.0.21/modules/control/oldrc.c:1514:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/control/oldrc.c:1517:14: branch_false: ...to here
vlc-3.0.21/modules/control/oldrc.c:1517:14: call_function: calling ‘input_GetVout’ from ‘VideoConfig’
vlc-3.0.21/modules/control/oldrc.c:1517:14: return_function: returning to ‘VideoConfig’ from ‘input_GetVout’
vlc-3.0.21/modules/control/oldrc.c:1519:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/control/oldrc.c:1522:10: branch_false: ...to here
vlc-3.0.21/modules/control/oldrc.c:1555:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
vlc-3.0.21/modules/control/oldrc.c:1567:14: branch_false: ...to here
vlc-3.0.21/modules/control/oldrc.c:1567:11: branch_true: following ‘true’ branch (when the strings are equal)...
vlc-3.0.21/modules/control/oldrc.c:1568:23: branch_true: ...to here
vlc-3.0.21/modules/control/oldrc.c:1579:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/control/oldrc.c:1588:9: branch_false: ...to here
vlc-3.0.21/modules/control/oldrc.c:1593:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
 branch_false: ...to here
vlc-3.0.21/modules/control/oldrc.c:1607:30: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/control/oldrc.c:1609:42: branch_true: ...to here
vlc-3.0.21/modules/control/oldrc.c:1609:23: danger: argument 1 (‘psz_value’) NULL where non-null expected
# 1607|               for ( int i = 0; i < val.p_list->i_count; i++ )
# 1608|               {
# 1609|->                 if ( !strcmp( psz_value, val.p_list->p_values[i].psz_string ) )
# 1610|                       msg_rc( "| %s - %s *", val.p_list->p_values[i].psz_string,
# 1611|                               text.p_list->p_values[i].psz_string );

Error: CPPCHECK_WARNING (CWE-909): [#def350]
vlc-3.0.21/modules/demux/adaptive/PlaylistManager.cpp:322: error[uninitStructMember]: Uninitialized struct member: pos.number
#  320|       StreamPosition pos;
#  321|       pos.times = demux.times;
#  322|->     return pos;
#  323|   }
#  324|   

Error: CPPCHECK_WARNING (CWE-909): [#def351]
vlc-3.0.21/modules/demux/adaptive/PlaylistManager.cpp:322: error[uninitStructMember]: Uninitialized struct member: pos.pos
#  320|       StreamPosition pos;
#  321|       pos.times = demux.times;
#  322|->     return pos;
#  323|   }
#  324|   

Error: CPPCHECK_WARNING (CWE-457): [#def352]
vlc-3.0.21/modules/demux/adaptive/PlaylistManager.cpp:322: error[uninitvar]: Uninitialized variables: pos.number, pos.pos
#  320|       StreamPosition pos;
#  321|       pos.times = demux.times;
#  322|->     return pos;
#  323|   }
#  324|   

Error: COMPILER_WARNING: [#def353]
vlc-3.0.21/modules/demux/adaptive/logic/RateBasedAdaptationLogic.h:29: included_from: Included from here.
vlc-3.0.21/modules/demux/adaptive/PlaylistManager.cpp:35: included_from: Included from here.
vlc-3.0.21/modules/demux/adaptive/tools/MovingAverage.hpp:32:33: warning[-Wtemplate-id-cdtor]: template-id not allowed for constructor in C++20
#   32 |             MovingAverageSum<T>(T i): sum(0), prev(i) { }
#      |                                 ^
vlc-3.0.21/modules/demux/adaptive/tools/MovingAverage.hpp:32:33: note: remove the ‘< >’
#   30|       {
#   31|           public:
#   32|->             MovingAverageSum<T>(T i): sum(0), prev(i) { }
#   33|               void operator()(T n) {
#   34|                   sum += (n > prev) ? n - prev : prev - n;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def354]
vlc-3.0.21/modules/demux/asf/asf.c:910:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b_access_selected’
vlc-3.0.21/modules/demux/asf/asf.c:191:12: enter_function: entry to ‘Demux’
vlc-3.0.21/modules/demux/asf/asf.c:195:19: branch_true: following ‘true’ branch (when ‘i != 5’)...
vlc-3.0.21/modules/demux/asf/asf.c:197:14: branch_true: ...to here
vlc-3.0.21/modules/demux/asf/asf.c:206:19: branch_true: following ‘true’ branch (when ‘i != 128’)...
vlc-3.0.21/modules/demux/asf/asf.c:208:22: branch_true: ...to here
vlc-3.0.21/modules/demux/asf/asf.c:250:23: call_function: calling ‘Block_Dequeue’ from ‘Demux’
vlc-3.0.21/modules/demux/asf/asf.c:250:23: return_function: returning to ‘Demux’ from ‘Block_Dequeue’
vlc-3.0.21/modules/demux/asf/asf.c:262:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/asf/asf.c:262:25: branch_false: ...to here
vlc-3.0.21/modules/demux/asf/asf.c:262:14: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/asf/asf.c:264:17: branch_true: ...to here
vlc-3.0.21/modules/demux/asf/asf.c:268:15: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/asf/asf.c:270:17: branch_false: ...to here
vlc-3.0.21/modules/demux/asf/asf.c:270:17: call_function: calling ‘DemuxEnd’ from ‘Demux’
vlc-3.0.21/modules/demux/asf/asf.c:270:17: return_function: returning to ‘Demux’ from ‘DemuxEnd’
vlc-3.0.21/modules/demux/asf/asf.c:273:21: call_function: calling ‘DemuxInit’ from ‘Demux’
#  908|                                        (int) p_sp->i_stream_number,
#  909|                                        &b_access_selected ) &&
#  910|->                 !b_access_selected )
#  911|               {
#  912|                   tk->i_cat = UNKNOWN_ES;

Error: COMPILER_WARNING: [#def355]
vlc-3.0.21/modules/demux/asf/libasf.c: scope_hint: In function ‘ASF_ReadObject_extended_content_description’
vlc-3.0.21/modules/demux/asf/libasf.c:1284:41: warning[-Wunterminated-string-initialization]: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (17 chars into 16 available)
# 1284 |             static const char hex[16] = "0123456789ABCDEF";
#      |                                         ^~~~~~~~~~~~~~~~~~
# 1282|           {
# 1283|               /* Byte array */
# 1284|->             static const char hex[16] = "0123456789ABCDEF";
# 1285|   
# 1286|               p_ec->ppsz_value[i] = malloc( 2*i_size + 1 );

Error: COMPILER_WARNING (CWE-477): [#def356]
vlc-3.0.21/modules/demux/avformat/demux.c: scope_hint: In function ‘get_rotation’
vlc-3.0.21/modules/demux/avformat/demux.c:140:5: warning[-Wdeprecated-declarations]: ‘av_stream_get_side_data’ is deprecated
#  140 |     int32_t *matrix = (int32_t *)av_stream_get_side_data(s, AV_PKT_DATA_DISPLAYMATRIX, NULL);
#      |     ^~~~~~~
vlc-3.0.21/modules/codec/avcodec/avcommon_compat.h:134: included_from: Included from here.
vlc-3.0.21/modules/codec/avcodec/avcommon.h:38: included_from: Included from here.
vlc-3.0.21/modules/codec/avcodec/avcodec.h:25: included_from: Included from here.
vlc-3.0.21/modules/demux/avformat/demux.c:41: included_from: Included from here.
/usr/include/ffmpeg/libavformat/avformat.h:2170:10: note: declared here
# 2170 | uint8_t *av_stream_get_side_data(const AVStream *stream,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~
#  138|               fmt->video.orientation = ORIENT_NORMAL;
#  139|       }
#  140|->     int32_t *matrix = (int32_t *)av_stream_get_side_data(s, AV_PKT_DATA_DISPLAYMATRIX, NULL);
#  141|       if( matrix ) {
#  142|           angle = lround(av_display_rotation_get(matrix));

Error: COMPILER_WARNING (CWE-477): [#def357]
vlc-3.0.21/modules/demux/avformat/demux.c:140:5: warning[-Wdeprecated-declarations]: ‘av_stream_get_side_data’ is deprecated
#  138|               fmt->video.orientation = ORIENT_NORMAL;
#  139|       }
#  140|->     int32_t *matrix = (int32_t *)av_stream_get_side_data(s, AV_PKT_DATA_DISPLAYMATRIX, NULL);
#  141|       if( matrix ) {
#  142|           angle = lround(av_display_rotation_get(matrix));

Error: COMPILER_WARNING: [#def358]
vlc-3.0.21/modules/demux/avformat/demux.c: scope_hint: In function ‘avformat_OpenDemux’
vlc-3.0.21/modules/demux/avformat/demux.c:454:3: warning[-Wcpp]: #warning FIXME: implement palette transmission
#  454 | # warning FIXME: implement palette transmission
#      |   ^~~~~~~
#  452|               get_rotation(&es_fmt, s);
#  453|   
#  454|-> # warning FIXME: implement palette transmission
#  455|               psz_type = "video";
#  456|   

Error: COMPILER_WARNING: [#def359]
vlc-3.0.21/modules/demux/avformat/demux.c:454:3: warning[-Wcpp]: #warning FIXME: implement palette transmission
#  452|               get_rotation(&es_fmt, s);
#  453|   
#  454|-> # warning FIXME: implement palette transmission
#  455|               psz_type = "video";
#  456|   

Error: COMPILER_WARNING: [#def360]
vlc-3.0.21/modules/demux/avformat/demux.c: scope_hint: In function ‘Control’
vlc-3.0.21/modules/demux/avformat/demux.c:1102:40: warning[-Wunterminated-string-initialization]: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (11 chars into 10 available)
# 1102 |                 [vlc_meta_EncodedBy] = "encoded_by",
#      |                                        ^~~~~~~~~~~~
# 1100|                   //[vlc_meta_NowPlaying]
# 1101|                   [vlc_meta_Publisher] = "publisher",
# 1102|->                 [vlc_meta_EncodedBy] = "encoded_by",
# 1103|                   //[vlc_meta_ArtworkURL]
# 1104|                   //[vlc_meta_TrackID]

Error: COMPILER_WARNING (CWE-252): [#def361]
vlc-3.0.21/modules/demux/avi/avi.c:1309:17: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 1307|               if( p_sys->b_seekable && p_sys->i_movi_lastchunk_pos >= p_sys->i_movi_begin + 12 )
# 1308|               {
# 1309|->                 vlc_stream_Seek( p_demux->s, p_sys->i_movi_lastchunk_pos );
# 1310|                   if( AVI_PacketNext( p_demux ) )
# 1311|                   {

Error: COMPILER_WARNING (CWE-252): [#def362]
vlc-3.0.21/modules/demux/avi/avi.c: scope_hint: In function ‘Demux_Seekable’
vlc-3.0.21/modules/demux/avi/avi.c:1309:17: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’
# 1309 |                 vlc_stream_Seek( p_demux->s, p_sys->i_movi_lastchunk_pos );
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1307|               if( p_sys->b_seekable && p_sys->i_movi_lastchunk_pos >= p_sys->i_movi_begin + 12 )
# 1308|               {
# 1309|->                 vlc_stream_Seek( p_demux->s, p_sys->i_movi_lastchunk_pos );
# 1310|                   if( AVI_PacketNext( p_demux ) )
# 1311|                   {

Error: COMPILER_WARNING (CWE-252): [#def363]
vlc-3.0.21/modules/demux/avi/avi.c:1317:17: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 1315|               else
# 1316|               {
# 1317|->                 vlc_stream_Seek( p_demux->s, p_sys->i_movi_begin + 12 );
# 1318|               }
# 1319|   

Error: COMPILER_WARNING (CWE-252): [#def364]
vlc-3.0.21/modules/demux/avi/avi.c:1317:17: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’
# 1317 |                 vlc_stream_Seek( p_demux->s, p_sys->i_movi_begin + 12 );
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1315|               else
# 1316|               {
# 1317|->                 vlc_stream_Seek( p_demux->s, p_sys->i_movi_begin + 12 );
# 1318|               }
# 1319|   

Error: COMPILER_WARNING (CWE-252): [#def365]
vlc-3.0.21/modules/demux/avi/avi.c:1390:13: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 1388|           else
# 1389|           {
# 1390|->             vlc_stream_Seek( p_demux->s, i_pos );
# 1391|           }
# 1392|   

Error: COMPILER_WARNING (CWE-252): [#def366]
vlc-3.0.21/modules/demux/avi/avi.c:1390:13: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’
# 1390 |             vlc_stream_Seek( p_demux->s, i_pos );
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1388|           else
# 1389|           {
# 1390|->             vlc_stream_Seek( p_demux->s, i_pos );
# 1391|           }
# 1392|   

Error: COMPILER_WARNING (CWE-252): [#def367]
vlc-3.0.21/modules/demux/avi/avi.c:1662:21: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 1660|                   /* Go back to position before index failure */
# 1661|                   if ( vlc_stream_Tell( p_demux->s ) - i_pos_backup )
# 1662|->                     vlc_stream_Seek( p_demux->s, i_pos_backup );
# 1663|   
# 1664|                   if ( p_sys->i_avih_flags & AVIF_MUSTUSEINDEX )

Error: COMPILER_WARNING (CWE-252): [#def368]
vlc-3.0.21/modules/demux/avi/avi.c: scope_hint: In function ‘Seek’
vlc-3.0.21/modules/demux/avi/avi.c:1662:21: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’
# 1662 |                     vlc_stream_Seek( p_demux->s, i_pos_backup );
#      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1660|                   /* Go back to position before index failure */
# 1661|                   if ( vlc_stream_Tell( p_demux->s ) - i_pos_backup )
# 1662|->                     vlc_stream_Seek( p_demux->s, i_pos_backup );
# 1663|   
# 1664|                   if ( p_sys->i_avih_flags & AVIF_MUSTUSEINDEX )

Error: COMPILER_WARNING (CWE-252): [#def369]
vlc-3.0.21/modules/demux/avi/avi.c:1777:13: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 1775|           /* Go back to position before index failure */
# 1776|           if ( vlc_stream_Tell( p_demux->s ) - i_pos_backup )
# 1777|->             vlc_stream_Seek( p_demux->s, i_pos_backup );
# 1778|   
# 1779|           return VLC_EGENERIC;

Error: COMPILER_WARNING (CWE-252): [#def370]
vlc-3.0.21/modules/demux/avi/avi.c:1777:13: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’
# 1777 |             vlc_stream_Seek( p_demux->s, i_pos_backup );
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1775|           /* Go back to position before index failure */
# 1776|           if ( vlc_stream_Tell( p_demux->s ) - i_pos_backup )
# 1777|->             vlc_stream_Seek( p_demux->s, i_pos_backup );
# 1778|   
# 1779|           return VLC_EGENERIC;

Error: COMPILER_WARNING (CWE-252): [#def371]
vlc-3.0.21/modules/demux/avi/avi.c:2014:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 2012|       if( p_sys->i_movi_lastchunk_pos >= p_sys->i_movi_begin + 12 )
# 2013|       {
# 2014|->         vlc_stream_Seek( p_demux->s, p_sys->i_movi_lastchunk_pos );
# 2015|           if( AVI_PacketNext( p_demux ) )
# 2016|           {

Error: COMPILER_WARNING (CWE-252): [#def372]
vlc-3.0.21/modules/demux/avi/avi.c: scope_hint: In function ‘AVI_StreamChunkFind’
vlc-3.0.21/modules/demux/avi/avi.c:2014:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’
# 2014 |         vlc_stream_Seek( p_demux->s, p_sys->i_movi_lastchunk_pos );
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2012|       if( p_sys->i_movi_lastchunk_pos >= p_sys->i_movi_begin + 12 )
# 2013|       {
# 2014|->         vlc_stream_Seek( p_demux->s, p_sys->i_movi_lastchunk_pos );
# 2015|           if( AVI_PacketNext( p_demux ) )
# 2016|           {

Error: COMPILER_WARNING (CWE-252): [#def373]
vlc-3.0.21/modules/demux/avi/avi.c:2022:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 2020|       else
# 2021|       {
# 2022|->         vlc_stream_Seek( p_demux->s, p_sys->i_movi_begin + 12 );
# 2023|       }
# 2024|   

Error: COMPILER_WARNING (CWE-252): [#def374]
vlc-3.0.21/modules/demux/avi/avi.c:2022:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’
# 2022 |         vlc_stream_Seek( p_demux->s, p_sys->i_movi_begin + 12 );
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2020|       else
# 2021|       {
# 2022|->         vlc_stream_Seek( p_demux->s, p_sys->i_movi_begin + 12 );
# 2023|       }
# 2024|   

Error: COMPILER_WARNING (CWE-252): [#def375]
vlc-3.0.21/modules/demux/avi/avi.c:2818:5: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 2816|                           stream_Size( p_demux->s ) );
# 2817|   
# 2818|->     vlc_stream_Seek( p_demux->s, p_movi->i_chunk_pos + 12 );
# 2819|       msg_Warn( p_demux, "creating index from LIST-movi, will take time !" );
# 2820|   

Error: COMPILER_WARNING (CWE-252): [#def376]
vlc-3.0.21/modules/demux/avi/avi.c: scope_hint: In function ‘AVI_IndexCreate’
vlc-3.0.21/modules/demux/avi/avi.c:2818:5: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’
# 2818 |     vlc_stream_Seek( p_demux->s, p_movi->i_chunk_pos + 12 );
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2816|                           stream_Size( p_demux->s ) );
# 2817|   
# 2818|->     vlc_stream_Seek( p_demux->s, p_movi->i_chunk_pos + 12 );
# 2819|       msg_Warn( p_demux, "creating index from LIST-movi, will take time !" );
# 2820|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def377]
vlc-3.0.21/modules/demux/caf.c:730:9: warning[-Wanalyzer-malloc-leak]: leak of ‘**p_demux.p_sys.fmt.p_extra’
vlc-3.0.21/modules/demux/caf.c:699:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/caf.c:705:9: branch_false: ...to here
vlc-3.0.21/modules/demux/caf.c:705:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/caf.c:711:9: branch_false: ...to here
vlc-3.0.21/modules/demux/caf.c:711:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/caf.c:716:12: branch_false: ...to here
vlc-3.0.21/modules/demux/caf.c:716:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/caf.c:723:30: branch_false: ...to here
vlc-3.0.21/modules/demux/caf.c:724:30: acquire_memory: allocated here
vlc-3.0.21/modules/demux/caf.c:726:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/caf.c:730:9: branch_false: ...to here
vlc-3.0.21/modules/demux/caf.c:730:9: danger: ‘**p_demux.p_sys.fmt.p_extra’ leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
#  728|               return VLC_ENOMEM;
#  729|           }
#  730|->         memcpy( p_sys->fmt.p_extra, p_peek, p_sys->fmt.i_extra );
#  731|       }
#  732|   

Error: CPPCHECK_WARNING (CWE-909): [#def378]
vlc-3.0.21/modules/demux/dash/mp4/IndexReader.cpp:55: error[uninitStructMember]: Uninitialized struct member: point.duration
#   53|           for(uint16_t i=0; i<sidx->i_reference_count; i++)
#   54|           {
#   55|->             splitlist.push_back(point);
#   56|               point.offset += sidx->p_items[i].i_referenced_size;
#   57|               point.duration = sidx->p_items[i].i_subsegment_duration;

Error: COMPILER_WARNING (CWE-563): [#def379]
vlc-3.0.21/modules/demux/flac.c: scope_hint: In function ‘GetPacketizedBlock’
vlc-3.0.21/modules/demux/flac.c:231:17: warning[-Wunused-variable]: unused variable ‘i_ret’
#  231 |             int i_ret = FLAC_ParseSyncInfo( p_block->p_buffer, p_block->i_buffer,
#      |                 ^~~~~
#  229|           {
#  230|               struct flac_header_info headerinfo = { .i_pts = VLC_TICK_INVALID };
#  231|->             int i_ret = FLAC_ParseSyncInfo( p_block->p_buffer, p_block->i_buffer,
#  232|                                               streaminfo, NULL, &headerinfo );
#  233|               assert( i_ret != 0 ); /* Same as packetizer */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def380]
vlc-3.0.21/modules/demux/flac.c:806:13: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.seekpoint’
vlc-3.0.21/modules/demux/flac.c:666:13: enter_function: entry to ‘ParseHeaders’
vlc-3.0.21/modules/demux/flac.c:674:27: call_function: calling ‘xmalloc’ from ‘ParseHeaders’
vlc-3.0.21/modules/demux/flac.c:674:27: return_function: returning to ‘ParseHeaders’ from ‘xmalloc’
vlc-3.0.21/modules/demux/flac.c:677:5: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/flac.c:677:5: branch_false: ...to here
vlc-3.0.21/modules/demux/flac.c:680:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/flac.c:683:9: branch_false: ...to here
vlc-3.0.21/modules/demux/flac.c:683:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/demux/flac.c:687:12: branch_false: following ‘false’ branch (when ‘b_last == 0’)...
vlc-3.0.21/modules/demux/flac.c:692:18: branch_false: ...to here
vlc-3.0.21/modules/demux/flac.c:693:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/flac.c:695:18: branch_false: ...to here
vlc-3.0.21/modules/demux/flac.c:737:16: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/flac.c:739:60: branch_true: ...to here
vlc-3.0.21/modules/demux/flac.c:740:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/flac.c:741:17: branch_true: ...to here
vlc-3.0.21/modules/demux/flac.c:741:17: call_function: calling ‘ParseSeekTable’ from ‘ParseHeaders’
#  804|           if( s )
#  805|           {
#  806|->             TAB_APPEND( p_sys->i_seekpoint, p_sys->seekpoint, s );
#  807|           }
#  808|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def381]
vlc-3.0.21/modules/demux/gme.c:143:10: warning[-Wanalyzer-malloc-leak]: leak of ‘vlc_input_title_New()’
vlc-3.0.21/modules/demux/gme.c:70:12: enter_function: entry to ‘Open’
vlc-3.0.21/modules/demux/gme.c:75:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/gme.c:77:9: branch_false: ...to here
vlc-3.0.21/modules/demux/gme.c:77:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/gme.c:82:9: branch_false: ...to here
vlc-3.0.21/modules/demux/gme.c:82:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/gme.c:85:24: branch_false: ...to here
vlc-3.0.21/modules/demux/gme.c:86:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/gme.c:88:5: branch_false: ...to here
vlc-3.0.21/modules/demux/gme.c:100:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/gme.c:103:16: branch_false: ...to here
vlc-3.0.21/modules/demux/gme.c:104:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/gme.c:109:8: branch_false: ...to here
vlc-3.0.21/modules/demux/gme.c:109:8: branch_false: following ‘false’ branch (when ‘data’ is NULL)...
vlc-3.0.21/modules/demux/gme.c:116:56: branch_false: ...to here
vlc-3.0.21/modules/demux/gme.c:137:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/gme.c:139:5: branch_false: ...to here
vlc-3.0.21/modules/demux/gme.c:140:26: branch_true: following ‘true’ branch (when ‘n > i’)...
vlc-3.0.21/modules/demux/gme.c:142:33: branch_true: ...to here
vlc-3.0.21/modules/demux/gme.c:142:33: call_function: calling ‘vlc_input_title_New’ from ‘Open’
vlc-3.0.21/modules/demux/gme.c:142:33: return_function: returning to ‘Open’ from ‘vlc_input_title_New’
vlc-3.0.21/modules/demux/gme.c:144:13: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/gme.c:148:14: branch_false: ...to here
vlc-3.0.21/modules/demux/gme.c:148:13: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/gme.c:148:13: branch_true: ...to here
vlc-3.0.21/modules/demux/gme.c:140:26: branch_true: following ‘true’ branch (when ‘n > i’)...
vlc-3.0.21/modules/demux/gme.c:142:33: branch_true: ...to here
vlc-3.0.21/modules/demux/gme.c:142:33: call_function: calling ‘vlc_input_title_New’ from ‘Open’
vlc-3.0.21/modules/demux/gme.c:142:33: return_function: returning to ‘Open’ from ‘vlc_input_title_New’
vlc-3.0.21/modules/demux/gme.c:144:13: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/gme.c:148:14: branch_false: ...to here
vlc-3.0.21/modules/demux/gme.c:143:10: danger: ‘vlc_input_title_New()’ leaks here; was allocated at [(33)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/32)
#  141|       {
#  142|            input_title_t *title = vlc_input_title_New ();
#  143|->          sys->titlev[i] = title;
#  144|            if (unlikely(title == NULL))
#  145|                continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def382]
vlc-3.0.21/modules/demux/gme.c:154:14: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(*infos.song)’
vlc-3.0.21/modules/demux/gme.c:70:12: enter_function: entry to ‘Open’
vlc-3.0.21/modules/demux/gme.c:75:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/gme.c:77:9: branch_false: ...to here
vlc-3.0.21/modules/demux/gme.c:77:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/gme.c:82:9: branch_false: ...to here
vlc-3.0.21/modules/demux/gme.c:82:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/gme.c:85:24: branch_false: ...to here
vlc-3.0.21/modules/demux/gme.c:86:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/gme.c:88:5: branch_false: ...to here
vlc-3.0.21/modules/demux/gme.c:100:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/gme.c:103:16: branch_false: ...to here
vlc-3.0.21/modules/demux/gme.c:104:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/gme.c:109:8: branch_false: ...to here
vlc-3.0.21/modules/demux/gme.c:109:8: branch_false: following ‘false’ branch (when ‘data’ is NULL)...
vlc-3.0.21/modules/demux/gme.c:116:56: branch_false: ...to here
vlc-3.0.21/modules/demux/gme.c:137:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/gme.c:139:5: branch_false: ...to here
vlc-3.0.21/modules/demux/gme.c:140:26: branch_true: following ‘true’ branch (when ‘n > i’)...
vlc-3.0.21/modules/demux/gme.c:142:33: branch_true: ...to here
vlc-3.0.21/modules/demux/gme.c:142:33: call_function: calling ‘vlc_input_title_New’ from ‘Open’
vlc-3.0.21/modules/demux/gme.c:142:33: return_function: returning to ‘Open’ from ‘vlc_input_title_New’
vlc-3.0.21/modules/demux/gme.c:144:13: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/gme.c:148:14: branch_false: ...to here
vlc-3.0.21/modules/demux/gme.c:148:13: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/gme.c:148:13: branch_true: ...to here
vlc-3.0.21/modules/demux/gme.c:140:26: branch_true: following ‘true’ branch (when ‘n > i’)...
vlc-3.0.21/modules/demux/gme.c:142:33: branch_true: ...to here
vlc-3.0.21/modules/demux/gme.c:142:33: call_function: calling ‘vlc_input_title_New’ from ‘Open’
vlc-3.0.21/modules/demux/gme.c:142:33: return_function: returning to ‘Open’ from ‘vlc_input_title_New’
vlc-3.0.21/modules/demux/gme.c:144:13: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/gme.c:148:14: branch_false: ...to here
vlc-3.0.21/modules/demux/gme.c:148:13: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/gme.c:150:10: branch_false: ...to here
vlc-3.0.21/modules/demux/gme.c:153:13: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/gme.c:154:32: branch_true: ...to here
vlc-3.0.21/modules/demux/gme.c:154:32: acquire_memory: allocated here
vlc-3.0.21/modules/demux/gme.c:154:14: danger: ‘strdup(*infos.song)’ leaks here; was allocated at [(42)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/41)
#  152|                title->i_length = infos->length * INT64_C(1000);
#  153|            if (infos->song[0])
#  154|->              title->psz_name = strdup (infos->song);
#  155|            gme_free_info (infos);
#  156|       }

Error: COMPILER_WARNING (CWE-252): [#def383]
vlc-3.0.21/modules/demux/image.c:424:5: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
#  422|           return false;
#  423|       /* skip headers */
#  424|->     vlc_stream_Seek(s, 20);
#  425|       return true;
#  426|   }

Error: COMPILER_WARNING (CWE-252): [#def384]
vlc-3.0.21/modules/demux/image.c: scope_hint: In function ‘IsWebP’
vlc-3.0.21/modules/demux/image.c:424:5: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’
#  424 |     vlc_stream_Seek(s, 20);
#      |     ^~~~~~~~~~~~~~~~~~~~~~
#  422|           return false;
#  423|       /* skip headers */
#  424|->     vlc_stream_Seek(s, 20);
#  425|       return true;
#  426|   }

Error: COMPILER_WARNING (CWE-252): [#def385]
vlc-3.0.21/modules/demux/image.c:559:5: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
#  557|       bool is_targa = vlc_stream_Peek(s, &footer, 26) >= 26 &&
#  558|                       !memcmp(&footer[8], "TRUEVISION-XFILE.\x00", 18);
#  559|->     vlc_stream_Seek(s, position);
#  560|       return is_targa;
#  561|   }

Error: COMPILER_WARNING (CWE-252): [#def386]
vlc-3.0.21/modules/demux/image.c: scope_hint: In function ‘IsTarga’
vlc-3.0.21/modules/demux/image.c:559:5: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’
#  559 |     vlc_stream_Seek(s, position);
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  557|       bool is_targa = vlc_stream_Peek(s, &footer, 26) >= 26 &&
#  558|                       !memcmp(&footer[8], "TRUEVISION-XFILE.\x00", 18);
#  559|->     vlc_stream_Seek(s, position);
#  560|       return is_targa;
#  561|   }

Error: COMPILER_WARNING (CWE-563): [#def387]
vlc-3.0.21/modules/demux/mkv/demux.cpp: scope_hint: In member function ‘bool demux_sys_t::AnalyseAllSegmentsFound(demux_t*, matroska_stream_c*, bool)’
vlc-3.0.21/modules/demux/mkv/demux.cpp:453:97: warning[-Wunused-parameter]: unused parameter ‘b_initial’
#  453 | bool demux_sys_t::AnalyseAllSegmentsFound( demux_t *p_demux, matroska_stream_c *p_stream1, bool b_initial )
#      |                                                                                            ~~~~~^~~~~~~~~
#  451|   
#  452|   
#  453|-> bool demux_sys_t::AnalyseAllSegmentsFound( demux_t *p_demux, matroska_stream_c *p_stream1, bool b_initial )
#  454|   {
#  455|       int i_upper_lvl = 0;

Error: COMPILER_WARNING: [#def388]
vlc-3.0.21/modules/demux/mkv/matroska_segment.cpp: scope_hint: In member function ‘void matroska_segment_c::ComputeTrackPriority()’
vlc-3.0.21/modules/demux/mkv/matroska_segment.cpp:997:32: warning[-Wimplicit-fallthrough=]: this statement may fall through
#  997 |                 case VIDEO_ES: ++track_score;
#      |                                ^~~~~~~~~~~~~
vlc-3.0.21/modules/demux/mkv/matroska_segment.cpp:998:17: note: here
#  998 |                 case AUDIO_ES: ++track_score;
#      |                 ^~~~
#  995|               switch( it->second->fmt.i_cat )
#  996|               {
#  997|->                 case VIDEO_ES: ++track_score;
#  998|                   case AUDIO_ES: ++track_score;
#  999|                   case   SPU_ES: ++track_score;

Error: COMPILER_WARNING: [#def389]
vlc-3.0.21/modules/demux/mkv/matroska_segment.cpp:998:32: warning[-Wimplicit-fallthrough=]: this statement may fall through
#  998 |                 case AUDIO_ES: ++track_score;
#      |                                ^~~~~~~~~~~~~
vlc-3.0.21/modules/demux/mkv/matroska_segment.cpp:999:17: note: here
#  999 |                 case   SPU_ES: ++track_score;
#      |                 ^~~~
#  996|               {
#  997|                   case VIDEO_ES: ++track_score;
#  998|->                 case AUDIO_ES: ++track_score;
#  999|                   case   SPU_ES: ++track_score;
# 1000|                   default:

Error: COMPILER_WARNING: [#def390]
vlc-3.0.21/modules/demux/mkv/matroska_segment.cpp:999:32: warning[-Wimplicit-fallthrough=]: this statement may fall through
#  999 |                 case   SPU_ES: ++track_score;
#      |                                ^~~~~~~~~~~~~
vlc-3.0.21/modules/demux/mkv/matroska_segment.cpp:1000:17: note: here
# 1000 |                 default:
#      |                 ^~~~~~~
#  997|                   case VIDEO_ES: ++track_score;
#  998|                   case AUDIO_ES: ++track_score;
#  999|->                 case   SPU_ES: ++track_score;
# 1000|                   default:
# 1001|                     if( score < track_score )

Error: COMPILER_WARNING: [#def391]
vlc-3.0.21/modules/demux/mkv/matroska_segment.cpp: scope_hint: In member function ‘int matroska_segment_c::BlockGet(libmatroska::KaxBlock*&, libmatroska::KaxSimpleBlock*&, libmatroska::KaxBlockAdditions*&, bool*, bool*, int64_t*)’
vlc-3.0.21/modules/demux/mkv/matroska_segment.cpp:1428:21: warning[-Wimplicit-fallthrough=]: this statement may fall through
# 1428 |                     if( unlikely( !el->ValidateSize() || ( el->IsFiniteSize() && el->GetSize() >= SIZE_MAX ) ) )
#      |                     ^~
vlc-3.0.21/modules/demux/mkv/matroska_segment.cpp:1442:17: note: here
# 1442 |                 case 1:
#      |                 ^~~~
# 1426|                   case 2:
# 1427|                   case 3:
# 1428|->                     if( unlikely( !el->ValidateSize() || ( el->IsFiniteSize() && el->GetSize() >= SIZE_MAX ) ) )
# 1429|                       {
# 1430|                           msg_Err( &sys.demuxer, "Error while reading %s... upping level", EBML_NAME(el));

Error: COMPILER_WARNING (CWE-563): [#def392]
vlc-3.0.21/modules/demux/mkv/matroska_segment_parse.cpp: scope_hint: In member function ‘void matroska_segment_c::ParseTracks(libmatroska::KaxTracks*)’
vlc-3.0.21/modules/demux/mkv/matroska_segment_parse.cpp:970:10: warning[-Wunused-value]: statement has no effect
#  970 |     for (t; t != matroska_segment_c::tracks.end(); ++t)
#      |          ^
#  968|   
#  969|       auto t = matroska_segment_c::tracks.begin();
#  970|->     for (t; t != matroska_segment_c::tracks.end(); ++t)
#  971|       {
#  972|           pcr_shift = std::max(pcr_shift, t->second->i_codec_delay);

Error: COMPILER_WARNING (CWE-465): [#def393]
vlc-3.0.21/modules/demux/mkv/matroska_segment_parse.cpp: scope_hint: In static member function ‘static void matroska_segment_c::TrackInit(mkv_track_t*)::TrackCodecHandlers::StringProcessor_1706_handler(const char*&, matroska_segment_c::TrackInit(mkv_track_t*)::TrackCodecHandlers_base::payload_t&)’
vlc-3.0.21/modules/demux/mkv/matroska_segment_parse.cpp:1742:39: warning[-Waddress-of-packed-member]: taking address of packed member of ‘_WAVEFORMATEXTENSIBLE’ may result in an unaligned pointer value
# 1742 |                     sf_tag_to_fourcc( &p_wext->SubFormat,  &p_tk->fmt.i_codec, NULL);
#      |                                       ^~~~~~~~~~~~~~~~~~
# 1740|                   {
# 1741|                       WAVEFORMATEXTENSIBLE * p_wext = (WAVEFORMATEXTENSIBLE*) p_wf;
# 1742|->                     sf_tag_to_fourcc( &p_wext->SubFormat,  &p_tk->fmt.i_codec, NULL);
# 1743|                       /* FIXME should we use Samples */
# 1744|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def394]
vlc-3.0.21/modules/demux/mp4/essetup.c:1228:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*p_track.fmt.p_extra’
vlc-3.0.21/modules/demux/mp4/essetup.c:768:7: branch_false: following ‘false’ branch (when ‘p_soun’ is non-NULL)...
vlc-3.0.21/modules/demux/mp4/essetup.c:771:37: branch_false: ...to here
vlc-3.0.21/modules/demux/mp4/essetup.c:1199:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/mp4/essetup.c:1200:20: branch_false: ...to here
vlc-3.0.21/modules/demux/mp4/essetup.c:1219:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/mp4/essetup.c:1221:40: branch_true: ...to here
vlc-3.0.21/modules/demux/mp4/essetup.c:1221:40: acquire_memory: this call could return NULL
vlc-3.0.21/modules/demux/mp4/essetup.c:1226:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/mp4/essetup.c:1228:17: danger: ‘*p_track.fmt.p_extra’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
# 1226|               if( p_track->fmt.i_extra == 56 && p_sample->i_type == VLC_CODEC_ALAC )
# 1227|               {
# 1228|->                 p_track->fmt.audio.i_channels = *((uint8_t*)p_track->fmt.p_extra + 41);
# 1229|                   p_track->fmt.audio.i_rate = GetDWBE((uint8_t*)p_track->fmt.p_extra + 52);
# 1230|               }

Error: COMPILER_WARNING (CWE-126): [#def395]
vlc-3.0.21/modules/demux/mp4/libmp4.c: scope_hint: In function ‘MP4_ReadBox_dref’
vlc-3.0.21/modules/demux/mp4/libmp4.c:1567:12: warning[-Wstringop-overread]: ‘MP4_ReadBox_LtdContainer’ reading 2 bytes from a region of size 1
# 1567 |     return MP4_ReadBox_LtdContainer( p_stream, p_box, versions, 1 );
#      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vlc-3.0.21/modules/demux/mp4/libmp4.c:1567:12: note: referencing argument 3 of type ‘const uint8_t[2]’
vlc-3.0.21/modules/demux/mp4/libmp4.c:1508:12: note: in a call to function ‘MP4_ReadBox_LtdContainer’
# 1508 | static int MP4_ReadBox_LtdContainer( stream_t *p_stream, MP4_Box_t *p_box,
#      |            ^~~~~~~~~~~~~~~~~~~~~~~~
# 1565|   {
# 1566|       const uint8_t versions[] = {0};
# 1567|->     return MP4_ReadBox_LtdContainer( p_stream, p_box, versions, 1 );
# 1568|   }
# 1569|   

Error: COMPILER_WARNING (CWE-126): [#def396]
vlc-3.0.21/modules/demux/mp4/libmp4.c:1567:12: warning[-Wstringop-overread]: ‘MP4_ReadBox_LtdContainer’ reading 2 bytes from a region of size 1
# 1565|   {
# 1566|       const uint8_t versions[] = {0};
# 1567|->     return MP4_ReadBox_LtdContainer( p_stream, p_box, versions, 1 );
# 1568|   }
# 1569|   

Error: COMPILER_WARNING (CWE-563): [#def397]
vlc-3.0.21/modules/demux/mp4/mp4.c: scope_hint: In function ‘Demux’
vlc-3.0.21/modules/demux/mp4/mp4.c:1544:18: warning[-Wunused-variable]: unused variable ‘p_sys’
# 1544 |     demux_sys_t *p_sys = p_demux->p_sys;
#      |                  ^~~~~
# 1542|   static int Demux( demux_t *p_demux )
# 1543|   {
# 1544|->     demux_sys_t *p_sys = p_demux->p_sys;
# 1545|   
# 1546|       assert( ! p_sys->b_fragmented );

Error: COMPILER_WARNING (CWE-195): [#def398]
vlc-3.0.21/modules/demux/mp4/mp4.c: scope_hint: In function ‘TrackTimeToSampleChunk’
vlc-3.0.21/modules/demux/mp4/mp4.c:3165:32: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’}
# 3165 |     for( i_index = 0;  i_index < p_track->chunk[i_chunk].i_entries_dts &&
#      |                                ^
# 3163|       i_sample = p_track->chunk[i_chunk].i_sample_first;
# 3164|       i_dts    = p_track->chunk[i_chunk].i_first_dts;
# 3165|->     for( i_index = 0;  i_index < p_track->chunk[i_chunk].i_entries_dts &&
# 3166|                          i_sample < p_track->chunk[i_chunk].i_sample_count; )
# 3167|       {

Error: COMPILER_WARNING (CWE-195): [#def399]
vlc-3.0.21/modules/demux/mp4/mp4.c: scope_hint: In function ‘MP4_TrackSetELST’
vlc-3.0.21/modules/demux/mp4/mp4.c:4055:29: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’}
# 4055 |             if( i_elst_last < elst->i_entry_count &&
#      |                             ^
# 4053|           {
# 4054|               msg_Warn( p_demux, "elst old=%d new=%"PRIu32, i_elst_last, tk->i_elst );
# 4055|->             if( i_elst_last < elst->i_entry_count &&
# 4056|                   elst->i_media_time[i_elst_last] >= 0 )
# 4057|                   tk->i_next_block_flags |= BLOCK_FLAG_DISCONTINUITY;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def400]
vlc-3.0.21/modules/demux/mp4/mp4.c:5186:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/modules/demux/mp4/mp4.c:5175:13: enter_function: entry to ‘MP4ASF_Send’
vlc-3.0.21/modules/demux/mp4/mp4.c:5178:28: call_function: calling ‘MP4ASF_GetTrack’ from ‘MP4ASF_Send’
vlc-3.0.21/modules/demux/mp4/mp4.c:5178:28: return_function: returning to ‘MP4ASF_Send’ from ‘MP4ASF_GetTrack’
vlc-3.0.21/modules/demux/mp4/mp4.c:5179:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/mp4/mp4.c:5185:29: branch_false: ...to here
vlc-3.0.21/modules/demux/mp4/mp4.c:5185:29: call_function: calling ‘block_ChainGather’ from ‘MP4ASF_Send’
vlc-3.0.21/modules/demux/mp4/mp4.c:5185:29: return_function: returning to ‘MP4ASF_Send’ from ‘block_ChainGather’
vlc-3.0.21/modules/demux/mp4/mp4.c:5186:9: danger: dereference of NULL ‘block_ChainGather(*pp_frame)’
# 5184|       {
# 5185|           block_t *p_gather = block_ChainGather( *pp_frame );
# 5186|->         p_gather->i_dts = p_track->i_dts_backup;
# 5187|           p_gather->i_pts = p_track->i_pts_backup;
# 5188|           es_out_Send( p_packetsys->p_demux->out, p_track->p_es, p_gather );

Error: COMPILER_WARNING (CWE-563): [#def401]
vlc-3.0.21/modules/demux/mp4/essetup.c:31: included_from: Included from here.
vlc-3.0.21/modules/demux/mp4/mpeg4.h: scope_hint: In function ‘MPEG4_Codec_By_ObjectType’
vlc-3.0.21/modules/demux/mp4/mpeg4.h:30:52: warning[-Wunused-parameter]: unused parameter ‘pi_profile’
#   30 |                                               int *pi_profile)
#      |                                               ~~~~~^~~~~~~~~~
#   28|                                                 size_t i_dsi,
#   29|                                                 vlc_fourcc_t *pi_codec,
#   30|->                                               int *pi_profile)
#   31|   {
#   32|       /* See 14496-1 and http://mp4ra.org/#/object_types */

Error: COMPILER_WARNING: [#def402]
vlc-3.0.21/modules/demux/mpeg/es.c: scope_hint: In function ‘Control’
vlc-3.0.21/modules/demux/mpeg/es.c:436:15: warning[-Wimplicit-fallthrough=]: this statement may fall through
#  436 |             if( p_sys->mllt.p_bits )
#      |               ^
vlc-3.0.21/modules/demux/mpeg/es.c:453:9: note: here
#  453 |         default:
#      |         ^~~~~~~
#  434|           case DEMUX_SET_TIME:
#  435|           {
#  436|->             if( p_sys->mllt.p_bits )
#  437|               {
#  438|                   int64_t i_time = va_arg(args, int64_t);

Error: COMPILER_WARNING: [#def403]
vlc-3.0.21/modules/demux/mpeg/es.c: scope_hint: In function ‘Control’
vlc-3.0.21/modules/demux/mpeg/es.c:440:21: warning[-Wshadow=compatible-local]: declaration of ‘i_ret’ shadows a previous local
#  440 |                 int i_ret = vlc_stream_Seek( p_demux->s, p_sys->i_stream_offset + i_pos );
#      |                     ^~~~~
vlc-3.0.21/modules/demux/mpeg/es.c:390:9: note: shadowed declaration is here
#  390 |     int i_ret;
#      |         ^~~~~
#  438|                   int64_t i_time = va_arg(args, int64_t);
#  439|                   uint64_t i_pos = SeekByMlltTable( p_demux, &i_time );
#  440|->                 int i_ret = vlc_stream_Seek( p_demux->s, p_sys->i_stream_offset + i_pos );
#  441|                   if( i_ret != VLC_SUCCESS )
#  442|                       return i_ret;

Error: COMPILER_WARNING (CWE-758): [#def404]
vlc-3.0.21/modules/demux/mpeg/es.c: scope_hint: In function ‘Parse’
vlc-3.0.21/modules/demux/mpeg/es.c:502:51: warning[-Wrestrict]: passing argument 2 to ‘restrict’-qualified parameter aliases with argument 1
#  502 |             swab( p_block_in->p_buffer, p_block_in->p_buffer, p_block_in->i_buffer );
#      |                   ~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~^~~~~~~~~~
#  500|           {
#  501|               /* Convert to big endian */
#  502|->             swab( p_block_in->p_buffer, p_block_in->p_buffer, p_block_in->i_buffer );
#  503|           }
#  504|   

Error: COMPILER_WARNING: [#def405]
vlc-3.0.21/modules/demux/mpeg/es.c: scope_hint: In function ‘WavSkipHeader’
vlc-3.0.21/modules/demux/mpeg/es.c:624:18: warning[-Wshadow=compatible-local]: declaration of ‘i_len’ shadows a previous local
#  624 |         uint32_t i_len = GetDWLE( p_peek + i_peek - 4 );
#      |                  ^~~~~
vlc-3.0.21/modules/demux/mpeg/es.c:600:14: note: shadowed declaration is here
#  600 |     uint32_t i_len = GetDWLE( p_peek + i_peek - 4 );
#      |              ^~~~~
#  622|       while( memcmp( p_peek + i_peek - 8, "data", 4 ) )
#  623|       {
#  624|->         uint32_t i_len = GetDWLE( p_peek + i_peek - 4 );
#  625|           if( i_len > WAV_PROBE_SIZE || i_peek + i_len > WAV_PROBE_SIZE )
#  626|               return VLC_EGENERIC;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def406]
vlc-3.0.21/modules/demux/mpeg/h26x.c:333:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_sys’
vlc-3.0.21/modules/demux/mpeg/h26x.c:387:12: enter_function: entry to ‘OpenHEVC’
vlc-3.0.21/modules/demux/mpeg/h26x.c:393:12: call_function: calling ‘GenericOpen’ from ‘OpenHEVC’
#  331|       p_demux->pf_control= Control;
#  332|       p_demux->p_sys     = p_sys = malloc( sizeof( demux_sys_t ) );
#  333|->     p_sys->p_es        = NULL;
#  334|       p_sys->frame_rate_num = 0;
#  335|       p_sys->frame_rate_den = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def407]
vlc-3.0.21/modules/demux/mpeg/mpgv.c:119:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_sys’
vlc-3.0.21/modules/demux/mpeg/mpgv.c:94:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/mpeg/mpgv.c:100:9: branch_false: ...to here
vlc-3.0.21/modules/demux/mpeg/mpgv.c:118:34: acquire_memory: this call could return NULL
vlc-3.0.21/modules/demux/mpeg/mpgv.c:119:5: danger: ‘p_sys’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  117|       p_demux->pf_control= Control;
#  118|       p_demux->p_sys     = p_sys = malloc( sizeof( demux_sys_t ) );
#  119|->     p_sys->b_start     = true;
#  120|       p_sys->p_es        = NULL;
#  121|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def408]
vlc-3.0.21/modules/demux/mpeg/ps.c:388:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b_selected’
vlc-3.0.21/modules/demux/mpeg/ps.c:665:12: enter_function: entry to ‘Control’
vlc-3.0.21/modules/demux/mpeg/ps.c:709:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/mpeg/ps.c:711:17: branch_true: ...to here
vlc-3.0.21/modules/demux/mpeg/ps.c:711:17: call_function: calling ‘NotifyDiscontinuity’ from ‘Control’
#  386|           if( tk->es &&
#  387|                   es_out_Control( out, ES_OUT_GET_ES_STATE, tk->es, &b_selected ) == VLC_SUCCESS
#  388|->                 && b_selected )
#  389|           {
#  390|               tk->i_next_block_flags |= BLOCK_FLAG_DISCONTINUITY;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def409]
vlc-3.0.21/modules/demux/mpeg/ps.h:310:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
vlc-3.0.21/modules/demux/mpeg/ps.c:405:12: enter_function: entry to ‘Demux’
vlc-3.0.21/modules/demux/mpeg/ps.c:412:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/mpeg/ps.c:416:12: branch_false: ...to here
vlc-3.0.21/modules/demux/mpeg/ps.c:416:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/mpeg/ps.c:429:9: branch_false: ...to here
vlc-3.0.21/modules/demux/mpeg/ps.c:438:19: call_function: calling ‘ps_pkt_read’ from ‘Demux’
vlc-3.0.21/modules/demux/mpeg/ps.c:438:19: return_function: returning to ‘Demux’ from ‘ps_pkt_read’
vlc-3.0.21/modules/demux/mpeg/ps.c:438:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/mpeg/ps.c:443:9: branch_false: ...to here
vlc-3.0.21/modules/demux/mpeg/ps.c:443:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/mpeg/ps.c:449:33: branch_false: ...to here
vlc-3.0.21/modules/demux/mpeg/ps.c:473:14: call_function: calling ‘ps_pkt_parse_system’ from ‘Demux’
#argument 2 of ‘__builtin_memcpy’ must be non-null
#  308|           if( tk->fmt.psz_language )
#  309|           {
#  310|->             memcpy( tk->fmt.psz_language, ps_id_to_lang( p_psm , i_id ), 3 );
#  311|               tk->fmt.psz_language[3] = 0;
#  312|           }

Error: COMPILER_WARNING (CWE-252): [#def410]
vlc-3.0.21/modules/demux/mpeg/ts.c:2002:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 2000|       {
# 2001|           msg_Dbg( p_demux, "Seek():cannot find a time position." );
# 2002|->         vlc_stream_Seek( p_sys->stream, i_initial_pos );
# 2003|           return VLC_EGENERIC;
# 2004|       }

Error: COMPILER_WARNING (CWE-252): [#def411]
vlc-3.0.21/modules/demux/mpeg/ts.c: scope_hint: In function ‘SeekToTime’
vlc-3.0.21/modules/demux/mpeg/ts.c:2002:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’
# 2002 |         vlc_stream_Seek( p_sys->stream, i_initial_pos );
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2000|       {
# 2001|           msg_Dbg( p_demux, "Seek():cannot find a time position." );
# 2002|->         vlc_stream_Seek( p_sys->stream, i_initial_pos );
# 2003|           return VLC_EGENERIC;
# 2004|       }

Error: COMPILER_WARNING (CWE-563): [#def412]
vlc-3.0.21/modules/demux/mpeg/ts.c: scope_hint: In function ‘MayHaveStartCodeOnEnd’
vlc-3.0.21/modules/demux/mpeg/ts.c:2632:65: warning[-Wunused-parameter]: unused parameter ‘i_buf’
# 2632 | static bool MayHaveStartCodeOnEnd( const uint8_t *p_buf, size_t i_buf )
#      |                                                          ~~~~~~~^~~~~
# 2630|   static const uint8_t pes_sync[] = { 0, 0, 1 };
# 2631|   
# 2632|-> static bool MayHaveStartCodeOnEnd( const uint8_t *p_buf, size_t i_buf )
# 2633|   {
# 2634|       assert(i_buf > 2);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def413]
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:741:17: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_mgtpsip.eit.p_elems’
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:666:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:676:9: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:685:7: branch_true: ...to here
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:717:41: branch_true: following ‘true’ branch (when ‘p_tab’ is non-NULL)...
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:719:13: branch_true: ...to here
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:719:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:729:18: branch_false: ...to here
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:729:16: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:732:18: branch_true: ...to here
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:729:18: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:734:29: branch_true: ...to here
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:735:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:737:17: branch_true: ...to here
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:741:17: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:741:17: branch_true: ...to here
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:741:17: danger: ‘*p_mgtpsip.eit.p_elems’ leaks here; was allocated at [(17)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/16)
#  739|                   ATSC_Ready_SubDecoders( pid->u.p_psip->handle, pid );
#  740|                   msg_Dbg( p_demux, "  * pid=%d reserved for ATSC EIT", pid->i_pid );
#  741|->                 ARRAY_APPEND( p_mgtpsip->eit, pid );
#  742|               }
#  743|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def414]
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:756:17: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_mgtpsip.eit.p_elems’
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:666:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:676:9: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:685:7: branch_true: ...to here
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:717:41: branch_true: following ‘true’ branch (when ‘p_tab’ is non-NULL)...
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:719:13: branch_true: ...to here
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:719:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:729:18: branch_false: ...to here
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:744:16: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:747:18: branch_true: ...to here
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:744:18: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:749:29: branch_true: ...to here
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:750:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:752:17: branch_true: ...to here
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:756:17: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:756:17: branch_true: ...to here
vlc-3.0.21/modules/demux/mpeg/ts_psip.c:756:17: danger: ‘*p_mgtpsip.eit.p_elems’ leaks here; was allocated at [(17)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/16)
#  754|                   ATSC_Ready_SubDecoders( pid->u.p_psip->handle, pid );
#  755|                   msg_Dbg( p_demux, "  * pid=%d reserved for ATSC ETT", pid->i_pid );
#  756|->                 ARRAY_APPEND( p_mgtpsip->eit, pid );
#  757|               }
#  758|           }

Error: COMPILER_WARNING: [#def415]
vlc-3.0.21/modules/demux/mpeg/ts_si.c:461:31: warning[-Wformat-overflow=]: ‘%s’ directive argument is null
#  461 |             msg_Dbg( p_demux, "       - desc='%s' item='%s'", psz_key, psz_itm );
#      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vlc-3.0.21/modules/demux/mpeg/ts_si.c: scope_hint: In function ‘EITCallBack’
vlc-3.0.21/modules/demux/mpeg/ts_si.c:461:47: note: format string is defined here
#  461 |             msg_Dbg( p_demux, "       - desc='%s' item='%s'", psz_key, psz_itm );
#      |                                               ^~
#  459|               }
#  460|   
#  461|->             msg_Dbg( p_demux, "       - desc='%s' item='%s'", psz_key, psz_itm );
#  462|               if( b_appending )
#  463|               {

Error: COMPILER_WARNING (CWE-195): [#def416]
vlc-3.0.21/modules/demux/nuv.c: scope_hint: In function ‘Control’
vlc-3.0.21/modules/demux/nuv.c:531:52: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long unsigned int’} and ‘int’
#  531 |             else if( vlc_stream_Tell( p_demux->s ) > p_sys->i_first_frame_offset )
#      |                                                    ^
#  529|                   return VLC_SUCCESS;
#  530|               }
#  531|->             else if( vlc_stream_Tell( p_demux->s ) > p_sys->i_first_frame_offset )
#  532|               {
#  533|                   /* This should give an approximation of the total duration */

Error: COMPILER_WARNING (CWE-195): [#def417]
vlc-3.0.21/modules/demux/nuv.c: scope_hint: In function ‘ControlSetPosition’
vlc-3.0.21/modules/demux/nuv.c:569:19: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int64_t’ {aka ‘long int’} and ‘uint64_t’ {aka ‘long unsigned int’}
#  569 |         if( i_pos > vlc_stream_Tell( p_demux->s ) )
#      |                   ^
#  567|       {
#  568|           /* forward seek */
#  569|->         if( i_pos > vlc_stream_Tell( p_demux->s ) )
#  570|           {
#  571|               msg_Dbg( p_demux, "unable to seek, skipping frames (slow)" );

Error: COMPILER_WARNING (CWE-252): [#def418]
vlc-3.0.21/modules/demux/nuv.c:762:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
#  760|       {
#  761|           msg_Warn( p_demux, "invalid seektable, frame type=%c", fh.i_type );
#  762|->         vlc_stream_Seek( p_demux->s, i_original_pos );
#  763|           return VLC_EGENERIC;
#  764|       }

Error: COMPILER_WARNING (CWE-252): [#def419]
vlc-3.0.21/modules/demux/nuv.c: scope_hint: In function ‘SeekTableLoad’
vlc-3.0.21/modules/demux/nuv.c:762:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’
#  762 |         vlc_stream_Seek( p_demux->s, i_original_pos );
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  760|       {
#  761|           msg_Warn( p_demux, "invalid seektable, frame type=%c", fh.i_type );
#  762|->         vlc_stream_Seek( p_demux->s, i_original_pos );
#  763|           return VLC_EGENERIC;
#  764|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def420]
vlc-3.0.21/modules/demux/nuv.c:947:5: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.idx.idx’
vlc-3.0.21/modules/demux/nuv.c:553:12: enter_function: entry to ‘ControlSetPosition’
vlc-3.0.21/modules/demux/nuv.c:557:7: branch_false: following ‘false’ branch (when ‘i_pos >= 0’)...
vlc-3.0.21/modules/demux/nuv.c:561:9: branch_false: ...to here
vlc-3.0.21/modules/demux/nuv.c:569:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/nuv.c:571:13: branch_true: ...to here
vlc-3.0.21/modules/demux/nuv.c:586:11: branch_false: following ‘false’ branch (when ‘i_pos > i_tell’)...
vlc-3.0.21/modules/demux/nuv.c:589:13: branch_false: ...to here
vlc-3.0.21/modules/demux/nuv.c:589:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/nuv.c:592:13: branch_false: ...to here
vlc-3.0.21/modules/demux/nuv.c:592:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/nuv.c:594:18: branch_true: ...to here
vlc-3.0.21/modules/demux/nuv.c:594:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/nuv.c:594:36: branch_true: ...to here
vlc-3.0.21/modules/demux/nuv.c:594:17: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/nuv.c:595:57: branch_false: ...to here
vlc-3.0.21/modules/demux/nuv.c:595:17: call_function: calling ‘demux_IndexAppend’ from ‘ControlSetPosition’
#  945|       p_idx->idx[p_idx->i_idx].i_offset = i_offset;
#  946|   
#  947|->     p_idx->i_idx++;
#  948|   }
#  949|   static int64_t demux_IndexConvertTime( demux_index_t *p_idx, int64_t i_time )

Error: COMPILER_WARNING (CWE-252): [#def421]
vlc-3.0.21/modules/demux/oggseek.c:310:5: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
#  308|   
#  309|   clean:
#  310|->     vlc_stream_Seek( p_demux->s, i_backup_pos );
#  311|   
#  312|       ogg_sync_clear( &oy );

Error: COMPILER_WARNING (CWE-252): [#def422]
vlc-3.0.21/modules/demux/oggseek.c: scope_hint: In function ‘Oggseek_ProbeEnd’
vlc-3.0.21/modules/demux/oggseek.c:310:5: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’
#  310 |     vlc_stream_Seek( p_demux->s, i_backup_pos );
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  308|   
#  309|   clean:
#  310|->     vlc_stream_Seek( p_demux->s, i_backup_pos );
#  311|   
#  312|       ogg_sync_clear( &oy );

Error: COMPILER_WARNING (CWE-563): [#def423]
vlc-3.0.21/modules/demux/oggseek.c: scope_hint: In function ‘Oggseek_BlindSeektoPosition’
vlc-3.0.21/modules/demux/oggseek.c:961:13: warning[-Wunused-but-set-variable]: variable ‘i_pagepos’ set but not used
#  961 |     int64_t i_pagepos;
#      |             ^~~~~~~~~
#  959|       uint64_t i_startpos = vlc_stream_Tell( p_demux->s );
#  960|       int64_t i_granule;
#  961|->     int64_t i_pagepos;
#  962|   
#  963|       i_size = find_first_page_granule( p_demux,

Error: COMPILER_WARNING (CWE-252): [#def424]
vlc-3.0.21/modules/demux/oggseek.c:1082:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 1080|       if ( vlc_stream_Read ( p_demux->s, header, PAGE_HEADER_BYTES ) < PAGE_HEADER_BYTES )
# 1081|       {
# 1082|->         vlc_stream_Seek( p_demux->s, i_in_pos );
# 1083|           msg_Dbg ( p_demux, "Reached clean EOF in ogg file" );
# 1084|           return 0;

Error: COMPILER_WARNING (CWE-252): [#def425]
vlc-3.0.21/modules/demux/oggseek.c: scope_hint: In function ‘oggseek_read_page’
vlc-3.0.21/modules/demux/oggseek.c:1082:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’
# 1082 |         vlc_stream_Seek( p_demux->s, i_in_pos );
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1080|       if ( vlc_stream_Read ( p_demux->s, header, PAGE_HEADER_BYTES ) < PAGE_HEADER_BYTES )
# 1081|       {
# 1082|->         vlc_stream_Seek( p_demux->s, i_in_pos );
# 1083|           msg_Dbg ( p_demux, "Reached clean EOF in ogg file" );
# 1084|           return 0;

Error: COMPILER_WARNING (CWE-252): [#def426]
vlc-3.0.21/modules/demux/oggseek.c:1091:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 1089|       if ( vlc_stream_Read ( p_demux->s, header+PAGE_HEADER_BYTES, i_nsegs ) < i_nsegs )
# 1090|       {
# 1091|->         vlc_stream_Seek( p_demux->s, i_in_pos );
# 1092|           msg_Warn ( p_demux, "Reached broken EOF in ogg file" );
# 1093|           return 0;

Error: COMPILER_WARNING (CWE-252): [#def427]
vlc-3.0.21/modules/demux/oggseek.c:1091:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’
# 1091 |         vlc_stream_Seek( p_demux->s, i_in_pos );
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1089|       if ( vlc_stream_Read ( p_demux->s, header+PAGE_HEADER_BYTES, i_nsegs ) < i_nsegs )
# 1090|       {
# 1091|->         vlc_stream_Seek( p_demux->s, i_in_pos );
# 1092|           msg_Warn ( p_demux, "Reached broken EOF in ogg file" );
# 1093|           return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def428]
vlc-3.0.21/modules/demux/playlist/asx.c:79:12: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘psz_value’
vlc-3.0.21/modules/demux/playlist/asx.c:644:12: enter_function: entry to ‘ReadDir’
vlc-3.0.21/modules/demux/playlist/asx.c:646:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/playlist/asx.c:649:17: branch_false: ...to here
vlc-3.0.21/modules/demux/playlist/asx.c:652:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/playlist/asx.c:655:11: branch_false: ...to here
vlc-3.0.21/modules/demux/playlist/asx.c:660:26: call_function: calling ‘PreparseStream’ from ‘ReadDir’
vlc-3.0.21/modules/demux/playlist/asx.c:660:26: return_function: returning to ‘ReadDir’ from ‘PreparseStream’
vlc-3.0.21/modules/demux/playlist/asx.c:668:7: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/demux/playlist/asx.c:677:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/playlist/asx.c:680:11: branch_false: ...to here
vlc-3.0.21/modules/demux/playlist/asx.c:682:15: branch_false: following ‘false’ branch (when ‘b_first_node == 0’)...
vlc-3.0.21/modules/demux/playlist/asx.c:684:21: branch_false: ...to here
vlc-3.0.21/modules/demux/playlist/asx.c:684:19: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/playlist/asx.c:694:18: branch_true: ...to here
vlc-3.0.21/modules/demux/playlist/asx.c:700:20: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/playlist/asx.c:706:23: branch_false: ...to here
vlc-3.0.21/modules/demux/playlist/asx.c:706:20: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/playlist/asx.c:712:23: branch_false: ...to here
vlc-3.0.21/modules/demux/playlist/asx.c:712:20: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/playlist/asx.c:732:23: branch_false: ...to here
vlc-3.0.21/modules/demux/playlist/asx.c:732:20: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/playlist/asx.c:740:18: branch_false: ...to here
vlc-3.0.21/modules/demux/playlist/asx.c:740:15: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/playlist/asx.c:747:18: branch_false: ...to here
vlc-3.0.21/modules/demux/playlist/asx.c:747:15: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/playlist/asx.c:770:18: branch_false: ...to here
vlc-3.0.21/modules/demux/playlist/asx.c:770:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/playlist/asx.c:772:17: branch_true: ...to here
vlc-3.0.21/modules/demux/playlist/asx.c:772:17: call_function: calling ‘ProcessEntry’ from ‘ReadDir’
#   77|       psz_start = psz_value;
#   78|   
#   79|->     while( *psz_value )
#   80|       {
#   81|           if( isdigit( *psz_value ) )

Error: GCC_ANALYZER_WARNING (CWE-401): [#def429]
vlc-3.0.21/modules/demux/playlist/b4s.c:79:16: warning[-Wanalyzer-malloc-leak]: leak of ‘psz_mrl’
vlc-3.0.21/modules/demux/playlist/b4s.c:62:12: enter_function: entry to ‘ReadDir’
vlc-3.0.21/modules/demux/playlist/b4s.c:78:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/playlist/b4s.c:83:9: call_function: inlined call to ‘xml_ReaderNextNode’ from ‘ReadDir’
vlc-3.0.21/modules/demux/playlist/b4s.c:83:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/playlist/b4s.c:89:9: branch_false: ...to here
vlc-3.0.21/modules/demux/playlist/b4s.c:89:7: branch_false: following ‘false’ branch (when the strings are equal)...
 branch_false: ...to here
vlc-3.0.21/modules/demux/playlist/b4s.c:106:7: branch_false: following ‘false’ branch (when the strings are equal)...
 branch_false: ...to here
vlc-3.0.21/modules/demux/playlist/b4s.c:125:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/playlist/b4s.c:128:9: branch_true: ...to here
vlc-3.0.21/modules/demux/playlist/b4s.c:135:19: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/demux/playlist/b4s.c:145:35: acquire_memory: allocated here
vlc-3.0.21/modules/demux/playlist/b4s.c:139:24: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/playlist/b4s.c:141:26: branch_true: ...to here
vlc-3.0.21/modules/demux/playlist/b4s.c:79:16: danger: ‘psz_mrl’ leaks here; was allocated at [(15)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/14)
#   77|       p_xml_reader = xml_ReaderCreate( p_demux, p_demux->p_source );
#   78|       if( !p_xml_reader )
#   79|->         return -1;
#   80|   
#   81|       /* xml */

Error: GCC_ANALYZER_WARNING (CWE-688): [#def430]
vlc-3.0.21/modules/demux/playlist/ram.c:393:24: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘psz_temp_clipinfo’ where non-null expected
vlc-3.0.21/modules/demux/playlist/ram.c:392:31: acquire_memory: this call could return NULL
vlc-3.0.21/modules/demux/playlist/ram.c:393:24: danger: argument 1 (‘psz_temp_clipinfo’) from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#argument 1 of ‘__builtin_strchr’ must be non-null
#  391|       char *psz_option_next, *psz_option_start, *psz_param, *psz_value, *psz_suboption;
#  392|       char *psz_temp_clipinfo = strdup( psz_clipinfo );
#  393|->     psz_option_start = strchr( psz_temp_clipinfo, '"' );
#  394|       if( !psz_option_start )
#  395|       {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def431]
vlc-3.0.21/modules/demux/playlist/sgimb.c:222:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(psz_bol)’
vlc-3.0.21/modules/demux/playlist/sgimb.c:321:12: enter_function: entry to ‘ReadDir’
vlc-3.0.21/modules/demux/playlist/sgimb.c:327:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/playlist/sgimb.c:329:9: branch_true: ...to here
vlc-3.0.21/modules/demux/playlist/sgimb.c:329:9: call_function: calling ‘ParseLine’ from ‘ReadDir’
#  220|           /* We found the link, it was inside a sgiQTFileBegin */
#  221|           free( p_sys->psz_uri );
#  222|->         p_sys->psz_uri = strdup( psz_bol );
#  223|       }
#  224|       else if( !strncasecmp( psz_bol, "Stream=\"", sizeof("Stream=\"") - 1 ) )

Error: GCC_ANALYZER_WARNING (CWE-401): [#def432]
vlc-3.0.21/modules/demux/playlist/sgimb.c:240:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(psz_bol)’
vlc-3.0.21/modules/demux/playlist/sgimb.c:321:12: enter_function: entry to ‘ReadDir’
vlc-3.0.21/modules/demux/playlist/sgimb.c:327:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/playlist/sgimb.c:329:9: branch_true: ...to here
vlc-3.0.21/modules/demux/playlist/sgimb.c:329:9: call_function: calling ‘ParseLine’ from ‘ReadDir’
#  238|           }
#  239|           free( p_sys->psz_uri );
#  240|->         p_sys->psz_uri = strdup( psz_bol );
#  241|       }
#  242|       else if( !strncasecmp( psz_bol, "sgiNameServerHost=", sizeof("sgiNameServerHost=") - 1 ) )

Error: GCC_ANALYZER_WARNING (CWE-401): [#def433]
vlc-3.0.21/modules/demux/playlist/sgimb.c:246:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(psz_bol)’
vlc-3.0.21/modules/demux/playlist/sgimb.c:321:12: enter_function: entry to ‘ReadDir’
vlc-3.0.21/modules/demux/playlist/sgimb.c:327:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/playlist/sgimb.c:329:9: branch_true: ...to here
vlc-3.0.21/modules/demux/playlist/sgimb.c:329:9: call_function: calling ‘ParseLine’ from ‘ReadDir’
#  244|           psz_bol += sizeof("sgiNameServerHost=") - 1;
#  245|           free( p_sys->psz_server );
#  246|->         p_sys->psz_server = strdup( psz_bol );
#  247|       }
#  248|       else if( !strncasecmp( psz_bol, "sgiMovieName=", sizeof("sgiMovieName=") - 1 ) )

Error: GCC_ANALYZER_WARNING (CWE-401): [#def434]
vlc-3.0.21/modules/demux/playlist/sgimb.c:252:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(psz_bol)’
vlc-3.0.21/modules/demux/playlist/sgimb.c:321:12: enter_function: entry to ‘ReadDir’
vlc-3.0.21/modules/demux/playlist/sgimb.c:327:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/playlist/sgimb.c:329:9: branch_true: ...to here
vlc-3.0.21/modules/demux/playlist/sgimb.c:329:9: call_function: calling ‘ParseLine’ from ‘ReadDir’
#  250|           psz_bol += sizeof("sgiMovieName=") - 1;
#  251|           free( p_sys->psz_location );
#  252|->         p_sys->psz_location = strdup( psz_bol );
#  253|       }
#  254|       else if( !strncasecmp( psz_bol, "sgiUserAccount=", sizeof("sgiUserAccount=") - 1 ) )

Error: GCC_ANALYZER_WARNING (CWE-401): [#def435]
vlc-3.0.21/modules/demux/playlist/sgimb.c:258:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(psz_bol)’
vlc-3.0.21/modules/demux/playlist/sgimb.c:321:12: enter_function: entry to ‘ReadDir’
vlc-3.0.21/modules/demux/playlist/sgimb.c:327:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/playlist/sgimb.c:329:9: branch_true: ...to here
vlc-3.0.21/modules/demux/playlist/sgimb.c:329:9: call_function: calling ‘ParseLine’ from ‘ReadDir’
#  256|           psz_bol += sizeof("sgiUserAccount=") - 1;
#  257|           free( p_sys->psz_user );
#  258|->         p_sys->psz_user = strdup( psz_bol );
#  259|       }
#  260|       else if( !strncasecmp( psz_bol, "sgiUserPassword=", sizeof("sgiUserPassword=") - 1 ) )

Error: GCC_ANALYZER_WARNING (CWE-401): [#def436]
vlc-3.0.21/modules/demux/playlist/sgimb.c:264:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(psz_bol)’
vlc-3.0.21/modules/demux/playlist/sgimb.c:321:12: enter_function: entry to ‘ReadDir’
vlc-3.0.21/modules/demux/playlist/sgimb.c:327:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/playlist/sgimb.c:329:9: branch_true: ...to here
vlc-3.0.21/modules/demux/playlist/sgimb.c:329:9: call_function: calling ‘ParseLine’ from ‘ReadDir’
#  262|           psz_bol += sizeof("sgiUserPassword=") - 1;
#  263|           free( p_sys->psz_password );
#  264|->         p_sys->psz_password = strdup( psz_bol );
#  265|       }
#  266|       else if( !strncasecmp( psz_bol, "sgiShowingName=", sizeof("sgiShowingName=") - 1 ) )

Error: GCC_ANALYZER_WARNING (CWE-401): [#def437]
vlc-3.0.21/modules/demux/playlist/sgimb.c:270:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(psz_bol)’
vlc-3.0.21/modules/demux/playlist/sgimb.c:321:12: enter_function: entry to ‘ReadDir’
vlc-3.0.21/modules/demux/playlist/sgimb.c:327:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/playlist/sgimb.c:329:9: branch_true: ...to here
vlc-3.0.21/modules/demux/playlist/sgimb.c:329:9: call_function: calling ‘ParseLine’ from ‘ReadDir’
#  268|           psz_bol += sizeof("sgiShowingName=") - 1;
#  269|           free( p_sys->psz_name );
#  270|->         p_sys->psz_name = strdup( psz_bol );
#  271|       }
#  272|       else if( !strncasecmp( psz_bol, "sgiFormatName=", sizeof("sgiFormatName=") - 1 ) )

Error: GCC_ANALYZER_WARNING (CWE-401): [#def438]
vlc-3.0.21/modules/demux/playlist/sgimb.c:282:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(psz_bol)’
vlc-3.0.21/modules/demux/playlist/sgimb.c:321:12: enter_function: entry to ‘ReadDir’
vlc-3.0.21/modules/demux/playlist/sgimb.c:327:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/playlist/sgimb.c:329:9: branch_true: ...to here
vlc-3.0.21/modules/demux/playlist/sgimb.c:329:9: call_function: calling ‘ParseLine’ from ‘ReadDir’
#  280|           psz_bol += sizeof("sgiMulticastAddress=") - 1;
#  281|           free( p_sys->psz_mcast_ip );
#  282|->         p_sys->psz_mcast_ip = strdup( psz_bol );
#  283|       }
#  284|       else if( !strncasecmp( psz_bol, "sgiMulticastPort=", sizeof("sgiMulticastPort=") - 1 ) )

Error: GCC_ANALYZER_WARNING (CWE-401): [#def439]
vlc-3.0.21/modules/demux/real.c:1472:5: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.track’
vlc-3.0.21/modules/demux/real.c:1406:7: branch_false: following ‘false’ branch (when ‘i_data > 33’)...
vlc-3.0.21/modules/demux/real.c:1412:21: branch_false: ...to here
vlc-3.0.21/modules/demux/real.c:1422:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/real.c:1425:26: branch_false: ...to here
vlc-3.0.21/modules/demux/real.c:1453:7: branch_false: following ‘false’ branch (when ‘tk’ is non-NULL)...
vlc-3.0.21/modules/demux/real.c:1458:5: branch_false: ...to here
vlc-3.0.21/modules/demux/real.c:1472:5: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/real.c:1472:5: branch_true: ...to here
vlc-3.0.21/modules/demux/real.c:1472:5: danger: ‘*p_sys.track’ leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
# 1470|       tk->p_es = es_out_Add( p_demux->out, &fmt );
# 1471|   
# 1472|->     TAB_APPEND( p_sys->i_track, p_sys->track, tk );
# 1473|       return VLC_SUCCESS;
# 1474|   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def440]
vlc-3.0.21/modules/demux/subtitle.c:1638:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘psz_text’ where non-null expected
vlc-3.0.21/modules/demux/subtitle.c:1597:12: enter_function: entry to ‘ParseAQT’
vlc-3.0.21/modules/demux/subtitle.c:1603:22: acquire_memory: this call could return NULL
vlc-3.0.21/modules/demux/subtitle.c:1611:25: call_function: inlined call to ‘TextGetLine’ from ‘ParseAQT’
vlc-3.0.21/modules/demux/subtitle.c:1613:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/subtitle.c:1620:13: branch_false: ...to here
vlc-3.0.21/modules/demux/subtitle.c:1638:21: danger: argument 1 (‘psz_text’) from [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1) could be NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
# 1636|           else
# 1637|           {
# 1638|->             i_old = strlen( psz_text ) + 1;
# 1639|               psz_text = realloc_or_free( psz_text, i_old + strlen( s ) + 1 );
# 1640|               if( !psz_text )

Error: GCC_ANALYZER_WARNING (CWE-688): [#def441]
vlc-3.0.21/modules/demux/subtitle.c:1783:24: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘psz_text’ where non-null expected
vlc-3.0.21/modules/demux/subtitle.c:1700:12: enter_function: entry to ‘ParseMPSub’
vlc-3.0.21/modules/demux/subtitle.c:1705:22: acquire_memory: this call could return NULL
vlc-3.0.21/modules/demux/subtitle.c:1720:25: call_function: inlined call to ‘TextGetLine’ from ‘ParseMPSub’
vlc-3.0.21/modules/demux/subtitle.c:1721:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/subtitle.c:1727:13: branch_false: ...to here
vlc-3.0.21/modules/demux/subtitle.c:1771:25: call_function: inlined call to ‘TextGetLine’ from ‘ParseMPSub’
vlc-3.0.21/modules/demux/subtitle.c:1773:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/subtitle.c:1779:24: branch_false: ...to here
vlc-3.0.21/modules/demux/subtitle.c:1780:11: branch_false: following ‘false’ branch (when ‘i_len != 0’)...
vlc-3.0.21/modules/demux/subtitle.c:1783:24: branch_false: ...to here
vlc-3.0.21/modules/demux/subtitle.c:1783:24: danger: argument 1 (‘psz_text’) from [(2)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/1) could be NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
# 1781|               break;
# 1782|   
# 1783|->         size_t i_old = strlen( psz_text );
# 1784|   
# 1785|           psz_text = realloc_or_free( psz_text, i_old + i_len + 1 + 1 );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def442]
vlc-3.0.21/modules/demux/subtitle.c:1983:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘psz_text2’
vlc-3.0.21/modules/demux/subtitle.c:1797:12: enter_function: entry to ‘ParseJSS’
vlc-3.0.21/modules/demux/subtitle.c:1816:25: call_function: inlined call to ‘TextGetLine’ from ‘ParseJSS’
vlc-3.0.21/modules/demux/subtitle.c:1817:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/subtitle.c:1820:30: branch_false: ...to here
vlc-3.0.21/modules/demux/subtitle.c:1822:11: branch_false: following ‘false’ branch (when ‘psz_orig’ is non-NULL)...
vlc-3.0.21/modules/demux/subtitle.c:1828:13: branch_false: ...to here
vlc-3.0.21/modules/demux/subtitle.c:1920:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/demux/subtitle.c:1945:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/subtitle.c:1948:9: branch_false: ...to here
vlc-3.0.21/modules/demux/subtitle.c:1960:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/subtitle.c:1963:25: branch_false: ...to here
vlc-3.0.21/modules/demux/subtitle.c:1963:17: acquire_memory: this call could return NULL
vlc-3.0.21/modules/demux/subtitle.c:1966:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/subtitle.c:1981:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/subtitle.c:1983:17: branch_true: ...to here
vlc-3.0.21/modules/demux/subtitle.c:1983:17: danger: ‘psz_text2’ could be NULL: unchecked value from [(15)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/14)
# 1981|               if( !p_props->jss.i_comment )
# 1982|               {
# 1983|->                 *psz_text2 = ' ';
# 1984|                   psz_text2++;
# 1985|               }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def443]
vlc-3.0.21/modules/demux/subtitle.c:1993:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘psz_text2’
vlc-3.0.21/modules/demux/subtitle.c:1797:12: enter_function: entry to ‘ParseJSS’
vlc-3.0.21/modules/demux/subtitle.c:1816:25: call_function: inlined call to ‘TextGetLine’ from ‘ParseJSS’
vlc-3.0.21/modules/demux/subtitle.c:1817:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/subtitle.c:1820:30: branch_false: ...to here
vlc-3.0.21/modules/demux/subtitle.c:1822:11: branch_false: following ‘false’ branch (when ‘psz_orig’ is non-NULL)...
vlc-3.0.21/modules/demux/subtitle.c:1828:13: branch_false: ...to here
vlc-3.0.21/modules/demux/subtitle.c:1920:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/demux/subtitle.c:1945:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/subtitle.c:1948:9: branch_false: ...to here
vlc-3.0.21/modules/demux/subtitle.c:1960:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/subtitle.c:1963:25: branch_false: ...to here
vlc-3.0.21/modules/demux/subtitle.c:1963:17: acquire_memory: this call could return NULL
vlc-3.0.21/modules/demux/subtitle.c:1966:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/subtitle.c:1989:15: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/subtitle.c:1991:18: branch_false: ...to here
vlc-3.0.21/modules/demux/subtitle.c:1991:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/subtitle.c:1993:17: branch_true: ...to here
vlc-3.0.21/modules/demux/subtitle.c:1993:17: danger: ‘psz_text2’ could be NULL: unchecked value from [(15)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/14)
# 1991|               if( !p_props->jss.i_comment )
# 1992|               {
# 1993|->                 *psz_text2 = ' ';
# 1994|                   psz_text2++;
# 1995|               }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def444]
vlc-3.0.21/modules/demux/subtitle.c:2000:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘psz_text2’
vlc-3.0.21/modules/demux/subtitle.c:1797:12: enter_function: entry to ‘ParseJSS’
vlc-3.0.21/modules/demux/subtitle.c:1816:25: call_function: inlined call to ‘TextGetLine’ from ‘ParseJSS’
vlc-3.0.21/modules/demux/subtitle.c:1817:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/subtitle.c:1820:30: branch_false: ...to here
vlc-3.0.21/modules/demux/subtitle.c:1822:11: branch_false: following ‘false’ branch (when ‘psz_orig’ is non-NULL)...
vlc-3.0.21/modules/demux/subtitle.c:1828:13: branch_false: ...to here
vlc-3.0.21/modules/demux/subtitle.c:1920:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/demux/subtitle.c:1945:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/subtitle.c:1948:9: branch_false: ...to here
vlc-3.0.21/modules/demux/subtitle.c:1960:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/subtitle.c:1963:25: branch_false: ...to here
vlc-3.0.21/modules/demux/subtitle.c:1963:17: acquire_memory: this call could return NULL
vlc-3.0.21/modules/demux/subtitle.c:1966:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/subtitle.c:1998:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/subtitle.c:2000:17: branch_true: ...to here
vlc-3.0.21/modules/demux/subtitle.c:2000:17: danger: ‘psz_text2’ could be NULL: unchecked value from [(15)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/14)
# 1998|               if( (*(psz_text + 1 ) ) == 'n' )
# 1999|               {
# 2000|->                 *psz_text2 = '\n';
# 2001|                   psz_text++;
# 2002|                   psz_text2++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def445]
vlc-3.0.21/modules/demux/subtitle.c:2031:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘psz_text2’
vlc-3.0.21/modules/demux/subtitle.c:1797:12: enter_function: entry to ‘ParseJSS’
vlc-3.0.21/modules/demux/subtitle.c:1816:25: call_function: inlined call to ‘TextGetLine’ from ‘ParseJSS’
vlc-3.0.21/modules/demux/subtitle.c:1817:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/subtitle.c:1820:30: branch_false: ...to here
vlc-3.0.21/modules/demux/subtitle.c:1822:11: branch_false: following ‘false’ branch (when ‘psz_orig’ is non-NULL)...
vlc-3.0.21/modules/demux/subtitle.c:1828:13: branch_false: ...to here
vlc-3.0.21/modules/demux/subtitle.c:1920:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/demux/subtitle.c:1945:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/subtitle.c:1948:9: branch_false: ...to here
vlc-3.0.21/modules/demux/subtitle.c:1960:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/subtitle.c:1963:25: branch_false: ...to here
vlc-3.0.21/modules/demux/subtitle.c:1963:17: acquire_memory: this call could return NULL
vlc-3.0.21/modules/demux/subtitle.c:1966:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/subtitle.c:2029:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/subtitle.c:2031:17: branch_true: ...to here
vlc-3.0.21/modules/demux/subtitle.c:2031:17: danger: ‘psz_text2’ could be NULL: unchecked value from [(15)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/14)
# 2029|               if( !p_props->jss.i_comment )
# 2030|               {
# 2031|->                 *psz_text2 = *psz_text;
# 2032|                   psz_text2++;
# 2033|               }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def446]
vlc-3.0.21/modules/demux/subtitle.c:2467:15: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘psz_work’ where non-null expected
vlc-3.0.21/modules/demux/subtitle.c:2463:7: branch_false: following ‘false’ branch (when ‘psz_sub_file’ is non-NULL)...
vlc-3.0.21/modules/demux/subtitle.c:2464:22: branch_false: ...to here
vlc-3.0.21/modules/demux/subtitle.c:2464:22: acquire_memory: this call could return NULL
vlc-3.0.21/modules/demux/subtitle.c:2467:15: danger: argument 1 (‘psz_work’) from [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
# 2465|   
# 2466|       /* Removing extension, but leaving the dot */
# 2467|->     psz_tmp = strrchr( psz_work, '.' );
# 2468|       if( psz_tmp )
# 2469|       {

Error: COMPILER_WARNING (CWE-252): [#def447]
vlc-3.0.21/modules/demux/ty.c:1083:5: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 1081|       for ( int i=0; i<p_sys->i_cur_rec; i++)
# 1082|           l_skip_amt += p_sys->rec_hdrs[i].l_rec_size;
# 1083|->     vlc_stream_Seek(p_demux->s, ((p_sys->i_cur_chunk-1) * CHUNK_SIZE) +
# 1084|                    (p_sys->i_num_recs * 16) + l_skip_amt + 4);
# 1085|   

Error: COMPILER_WARNING (CWE-252): [#def448]
vlc-3.0.21/modules/demux/ty.c: scope_hint: In function ‘ty_stream_seek_pct’
vlc-3.0.21/modules/demux/ty.c:1083:5: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’
# 1083 |     vlc_stream_Seek(p_demux->s, ((p_sys->i_cur_chunk-1) * CHUNK_SIZE) +
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1084 |                  (p_sys->i_num_recs * 16) + l_skip_amt + 4);
#      |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1081|       for ( int i=0; i<p_sys->i_cur_rec; i++)
# 1082|           l_skip_amt += p_sys->rec_hdrs[i].l_rec_size;
# 1083|->     vlc_stream_Seek(p_demux->s, ((p_sys->i_cur_chunk-1) * CHUNK_SIZE) +
# 1084|                    (p_sys->i_num_recs * 16) + l_skip_amt + 4);
# 1085|   

Error: COMPILER_WARNING (CWE-252): [#def449]
vlc-3.0.21/modules/demux/ty.c:1491:13: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 1489|           /* load previous part */
# 1490|           if (i_cur_part == 0) {
# 1491|->             vlc_stream_Seek(p_demux->s, l_cur_pos);
# 1492|               msg_Err(p_demux, "Attempt to seek past BOF");
# 1493|               return VLC_EGENERIC;

Error: COMPILER_WARNING (CWE-252): [#def450]
vlc-3.0.21/modules/demux/ty.c: scope_hint: In function ‘ty_stream_seek_time’
vlc-3.0.21/modules/demux/ty.c:1491:13: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’
# 1491 |             vlc_stream_Seek(p_demux->s, l_cur_pos);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1489|           /* load previous part */
# 1490|           if (i_cur_part == 0) {
# 1491|->             vlc_stream_Seek(p_demux->s, l_cur_pos);
# 1492|               msg_Err(p_demux, "Attempt to seek past BOF");
# 1493|               return VLC_EGENERIC;

Error: COMPILER_WARNING (CWE-252): [#def451]
vlc-3.0.21/modules/demux/ty.c:1495:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 1493|               return VLC_EGENERIC;
# 1494|           }
# 1495|->         vlc_stream_Seek(p_demux->s, (i_cur_part - 1) * TIVO_PART_LENGTH);
# 1496|           i_cur_part--;
# 1497|           parse_master(p_demux);

Error: COMPILER_WARNING (CWE-252): [#def452]
vlc-3.0.21/modules/demux/ty.c:1495:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’
# 1495 |         vlc_stream_Seek(p_demux->s, (i_cur_part - 1) * TIVO_PART_LENGTH);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1493|               return VLC_EGENERIC;
# 1494|           }
# 1495|->         vlc_stream_Seek(p_demux->s, (i_cur_part - 1) * TIVO_PART_LENGTH);
# 1496|           i_cur_part--;
# 1497|           parse_master(p_demux);

Error: COMPILER_WARNING (CWE-252): [#def453]
vlc-3.0.21/modules/demux/ty.c:1505:13: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 1503|           if ((i_cur_part + 1) * TIVO_PART_LENGTH > p_sys->i_stream_size) {
# 1504|               /* error; restore previous file position */
# 1505|->             vlc_stream_Seek(p_demux->s, l_cur_pos);
# 1506|               msg_Err(p_demux, "seek error");
# 1507|               return VLC_EGENERIC;

Error: COMPILER_WARNING (CWE-252): [#def454]
vlc-3.0.21/modules/demux/ty.c:1505:13: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’
# 1505 |             vlc_stream_Seek(p_demux->s, l_cur_pos);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1503|           if ((i_cur_part + 1) * TIVO_PART_LENGTH > p_sys->i_stream_size) {
# 1504|               /* error; restore previous file position */
# 1505|->             vlc_stream_Seek(p_demux->s, l_cur_pos);
# 1506|               msg_Err(p_demux, "seek error");
# 1507|               return VLC_EGENERIC;

Error: COMPILER_WARNING (CWE-252): [#def455]
vlc-3.0.21/modules/demux/ty.c:1509:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 1507|               return VLC_EGENERIC;
# 1508|           }
# 1509|->         vlc_stream_Seek(p_demux->s, (i_cur_part + 1) * TIVO_PART_LENGTH);
# 1510|           i_cur_part++;
# 1511|           parse_master(p_demux);

Error: COMPILER_WARNING (CWE-252): [#def456]
vlc-3.0.21/modules/demux/ty.c:1509:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’
# 1509 |         vlc_stream_Seek(p_demux->s, (i_cur_part + 1) * TIVO_PART_LENGTH);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1507|               return VLC_EGENERIC;
# 1508|           }
# 1509|->         vlc_stream_Seek(p_demux->s, (i_cur_part + 1) * TIVO_PART_LENGTH);
# 1510|           i_cur_part++;
# 1511|           parse_master(p_demux);

Error: COMPILER_WARNING (CWE-252): [#def457]
vlc-3.0.21/modules/demux/ty.c:1535:13: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 1533|           if ((i_cur_part + 1) * TIVO_PART_LENGTH > p_sys->i_stream_size) {
# 1534|               /* error; restore previous file position */
# 1535|->             vlc_stream_Seek(p_demux->s, l_cur_pos);
# 1536|               msg_Err(p_demux, "seek error");
# 1537|               return VLC_EGENERIC;

Error: COMPILER_WARNING (CWE-252): [#def458]
vlc-3.0.21/modules/demux/ty.c:1535:13: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’
# 1535 |             vlc_stream_Seek(p_demux->s, l_cur_pos);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1533|           if ((i_cur_part + 1) * TIVO_PART_LENGTH > p_sys->i_stream_size) {
# 1534|               /* error; restore previous file position */
# 1535|->             vlc_stream_Seek(p_demux->s, l_cur_pos);
# 1536|               msg_Err(p_demux, "seek error");
# 1537|               return VLC_EGENERIC;

Error: COMPILER_WARNING (CWE-252): [#def459]
vlc-3.0.21/modules/demux/ty.c:1539:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 1537|               return VLC_EGENERIC;
# 1538|           }
# 1539|->         vlc_stream_Seek(p_demux->s, (i_cur_part + 1) * TIVO_PART_LENGTH);
# 1540|           i_cur_part++;
# 1541|           parse_master(p_demux);

Error: COMPILER_WARNING (CWE-252): [#def460]
vlc-3.0.21/modules/demux/ty.c:1539:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’
# 1539 |         vlc_stream_Seek(p_demux->s, (i_cur_part + 1) * TIVO_PART_LENGTH);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1537|               return VLC_EGENERIC;
# 1538|           }
# 1539|->         vlc_stream_Seek(p_demux->s, (i_cur_part + 1) * TIVO_PART_LENGTH);
# 1540|           i_cur_part++;
# 1541|           parse_master(p_demux);

Error: COMPILER_WARNING (CWE-252): [#def461]
vlc-3.0.21/modules/demux/ty.c:1556:13: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 1554|               msg_Dbg(p_demux, "has SEQ. seeking to chunk at 0x%"PRIu64,
# 1555|                   (i_cur_part * TIVO_PART_LENGTH) + l_chunk_offset);
# 1556|->             vlc_stream_Seek(p_demux->s, (i_cur_part * TIVO_PART_LENGTH) +
# 1557|                   l_chunk_offset);
# 1558|               // TODO: we don't have to parse the full header set;

Error: COMPILER_WARNING (CWE-252): [#def462]
vlc-3.0.21/modules/demux/ty.c:1556:13: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’
# 1556 |             vlc_stream_Seek(p_demux->s, (i_cur_part * TIVO_PART_LENGTH) +
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1557 |                 l_chunk_offset);
#      |                 ~~~~~~~~~~~~~~~
# 1554|               msg_Dbg(p_demux, "has SEQ. seeking to chunk at 0x%"PRIu64,
# 1555|                   (i_cur_part * TIVO_PART_LENGTH) + l_chunk_offset);
# 1556|->             vlc_stream_Seek(p_demux->s, (i_cur_part * TIVO_PART_LENGTH) +
# 1557|                   l_chunk_offset);
# 1558|               // TODO: we don't have to parse the full header set;

Error: COMPILER_WARNING (CWE-252): [#def463]
vlc-3.0.21/modules/demux/ty.c:1566:17: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 1564|                   msg_Err(p_demux, "no SEQ hdr in chunk; table had one.");
# 1565|                   /* Seek to beginning of original chunk & reload it */
# 1566|->                 vlc_stream_Seek(p_demux->s, (l_cur_pos / CHUNK_SIZE) * CHUNK_SIZE);
# 1567|                   p_sys->i_stuff_cnt = 0;
# 1568|                   get_chunk_header(p_demux);

Error: COMPILER_WARNING (CWE-252): [#def464]
vlc-3.0.21/modules/demux/ty.c:1566:17: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’
# 1566 |                 vlc_stream_Seek(p_demux->s, (l_cur_pos / CHUNK_SIZE) * CHUNK_SIZE);
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1564|                   msg_Err(p_demux, "no SEQ hdr in chunk; table had one.");
# 1565|                   /* Seek to beginning of original chunk & reload it */
# 1566|->                 vlc_stream_Seek(p_demux->s, (l_cur_pos / CHUNK_SIZE) * CHUNK_SIZE);
# 1567|                   p_sys->i_stuff_cnt = 0;
# 1568|                   get_chunk_header(p_demux);

Error: COMPILER_WARNING (CWE-252): [#def465]
vlc-3.0.21/modules/demux/ty.c:1599:5: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Read’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 1597|       for (int j=0; j<p_sys->i_seq_rec; j++)
# 1598|           i_skip_cnt += p_sys->rec_hdrs[j].l_rec_size;
# 1599|->     vlc_stream_Read(p_demux->s, NULL, i_skip_cnt);
# 1600|       p_sys->i_cur_rec = p_sys->i_seq_rec;
# 1601|       //p_sys->l_last_ty_pts = p_sys->rec_hdrs[p_sys->i_seq_rec].l_ty_pts;

Error: COMPILER_WARNING (CWE-252): [#def466]
vlc-3.0.21/modules/demux/ty.c:1599:5: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Read’ declared with attribute ‘warn_unused_result’
# 1599 |     vlc_stream_Read(p_demux->s, NULL, i_skip_cnt);
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1597|       for (int j=0; j<p_sys->i_seq_rec; j++)
# 1598|           i_skip_cnt += p_sys->rec_hdrs[j].l_rec_size;
# 1599|->     vlc_stream_Read(p_demux->s, NULL, i_skip_cnt);
# 1600|       p_sys->i_cur_rec = p_sys->i_seq_rec;
# 1601|       //p_sys->l_last_ty_pts = p_sys->rec_hdrs[p_sys->i_seq_rec].l_ty_pts;

Error: COMPILER_WARNING (CWE-252): [#def467]
vlc-3.0.21/modules/demux/ty.c:1628:5: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Read’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 1626|   
# 1627|       /* parse header info */
# 1628|->     vlc_stream_Read(p_demux->s, mst_buf, 32);
# 1629|   
# 1630|       uint32_t i_map_size = U32_AT(&mst_buf[20]);  /* size of bitmask, in bytes */

Error: COMPILER_WARNING (CWE-252): [#def468]
vlc-3.0.21/modules/demux/ty.c: scope_hint: In function ‘parse_master’
vlc-3.0.21/modules/demux/ty.c:1628:5: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Read’ declared with attribute ‘warn_unused_result’
# 1628 |     vlc_stream_Read(p_demux->s, mst_buf, 32);
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1626|   
# 1627|       /* parse header info */
# 1628|->     vlc_stream_Read(p_demux->s, mst_buf, 32);
# 1629|   
# 1630|       uint32_t i_map_size = U32_AT(&mst_buf[20]);  /* size of bitmask, in bytes */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def469]
vlc-3.0.21/modules/demux/ty.c:1644:8: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.seq_table’
vlc-3.0.21/modules/demux/ty.c:1636:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/ty.c:1643:24: branch_false: ...to here
vlc-3.0.21/modules/demux/ty.c:1643:24: acquire_memory: allocated here
vlc-3.0.21/modules/demux/ty.c:1644:8: danger: ‘*p_sys.seq_table’ leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
# 1642|       /* parse all the entries */
# 1643|       p_sys->seq_table = calloc(p_sys->i_seq_table_size, sizeof(ty_seq_table_t));
# 1644|->     if (p_sys->seq_table == NULL)
# 1645|       {
# 1646|           p_sys->i_seq_table_size = 0;

Error: COMPILER_WARNING (CWE-252): [#def470]
vlc-3.0.21/modules/demux/ty.c:1650:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Read’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 1648|       }
# 1649|       for (unsigned j=0; j<p_sys->i_seq_table_size; j++) {
# 1650|->         vlc_stream_Read(p_demux->s, mst_buf, 8);
# 1651|           p_sys->seq_table[j].l_timestamp = U64_AT(&mst_buf[0]);
# 1652|           if (i_map_size > 8) {

Error: COMPILER_WARNING (CWE-252): [#def471]
vlc-3.0.21/modules/demux/ty.c:1650:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Read’ declared with attribute ‘warn_unused_result’
# 1650 |         vlc_stream_Read(p_demux->s, mst_buf, 8);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1648|       }
# 1649|       for (unsigned j=0; j<p_sys->i_seq_table_size; j++) {
# 1650|->         vlc_stream_Read(p_demux->s, mst_buf, 8);
# 1651|           p_sys->seq_table[j].l_timestamp = U64_AT(&mst_buf[0]);
# 1652|           if (i_map_size > 8) {

Error: COMPILER_WARNING (CWE-252): [#def472]
vlc-3.0.21/modules/demux/ty.c:1654:13: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Read’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 1652|           if (i_map_size > 8) {
# 1653|               msg_Err(p_demux, "Unsupported SEQ bitmap size in master chunk");
# 1654|->             vlc_stream_Read(p_demux->s, NULL, i_map_size);
# 1655|           } else {
# 1656|               vlc_stream_Read(p_demux->s, mst_buf + 8, i_map_size);

Error: COMPILER_WARNING (CWE-252): [#def473]
vlc-3.0.21/modules/demux/ty.c:1654:13: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Read’ declared with attribute ‘warn_unused_result’
# 1654 |             vlc_stream_Read(p_demux->s, NULL, i_map_size);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1652|           if (i_map_size > 8) {
# 1653|               msg_Err(p_demux, "Unsupported SEQ bitmap size in master chunk");
# 1654|->             vlc_stream_Read(p_demux->s, NULL, i_map_size);
# 1655|           } else {
# 1656|               vlc_stream_Read(p_demux->s, mst_buf + 8, i_map_size);

Error: COMPILER_WARNING (CWE-252): [#def474]
vlc-3.0.21/modules/demux/ty.c:1656:13: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Read’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 1654|               vlc_stream_Read(p_demux->s, NULL, i_map_size);
# 1655|           } else {
# 1656|->             vlc_stream_Read(p_demux->s, mst_buf + 8, i_map_size);
# 1657|               memcpy(p_sys->seq_table[j].chunk_bitmask, &mst_buf[8], i_map_size);
# 1658|           }

Error: COMPILER_WARNING (CWE-252): [#def475]
vlc-3.0.21/modules/demux/ty.c:1656:13: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Read’ declared with attribute ‘warn_unused_result’
# 1656 |             vlc_stream_Read(p_demux->s, mst_buf + 8, i_map_size);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1654|               vlc_stream_Read(p_demux->s, NULL, i_map_size);
# 1655|           } else {
# 1656|->             vlc_stream_Read(p_demux->s, mst_buf + 8, i_map_size);
# 1657|               memcpy(p_sys->seq_table[j].chunk_bitmask, &mst_buf[8], i_map_size);
# 1658|           }

Error: COMPILER_WARNING (CWE-252): [#def476]
vlc-3.0.21/modules/demux/ty.c:1677:5: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 1675|   
# 1676|       /* seek past this chunk */
# 1677|->     vlc_stream_Seek(p_demux->s, i_save_pos + CHUNK_SIZE);
# 1678|   }
# 1679|   

Error: COMPILER_WARNING (CWE-252): [#def477]
vlc-3.0.21/modules/demux/ty.c:1677:5: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’
# 1677 |     vlc_stream_Seek(p_demux->s, i_save_pos + CHUNK_SIZE);
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1675|   
# 1676|       /* seek past this chunk */
# 1677|->     vlc_stream_Seek(p_demux->s, i_save_pos + CHUNK_SIZE);
# 1678|   }
# 1679|   

Error: COMPILER_WARNING (CWE-252): [#def478]
vlc-3.0.21/modules/demux/ty.c:1854:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Read’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 1852|       /* if we have left-over filler space from the last chunk, get that */
# 1853|       if (p_sys->i_stuff_cnt > 0) {
# 1854|->         vlc_stream_Read( p_demux->s, NULL, p_sys->i_stuff_cnt);
# 1855|           p_sys->i_stuff_cnt = 0;
# 1856|       }

Error: COMPILER_WARNING (CWE-252): [#def479]
vlc-3.0.21/modules/demux/ty.c: scope_hint: In function ‘get_chunk_header’
vlc-3.0.21/modules/demux/ty.c:1854:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Read’ declared with attribute ‘warn_unused_result’
# 1854 |         vlc_stream_Read( p_demux->s, NULL, p_sys->i_stuff_cnt);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1852|       /* if we have left-over filler space from the last chunk, get that */
# 1853|       if (p_sys->i_stuff_cnt > 0) {
# 1854|->         vlc_stream_Read( p_demux->s, NULL, p_sys->i_stuff_cnt);
# 1855|           p_sys->i_stuff_cnt = 0;
# 1856|       }

Error: COMPILER_WARNING (CWE-252): [#def480]
vlc-3.0.21/modules/demux/ty.c:1903:5: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Read’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’
# 1901|   
# 1902|       /* skip past the 4 bytes we "peeked" earlier */
# 1903|->     vlc_stream_Read( p_demux->s, NULL, 4 );
# 1904|   
# 1905|       /* read the record headers into a temp buffer */

Error: COMPILER_WARNING (CWE-252): [#def481]
vlc-3.0.21/modules/demux/ty.c:1903:5: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Read’ declared with attribute ‘warn_unused_result’
# 1903 |     vlc_stream_Read( p_demux->s, NULL, 4 );
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1901|   
# 1902|       /* skip past the 4 bytes we "peeked" earlier */
# 1903|->     vlc_stream_Read( p_demux->s, NULL, 4 );
# 1904|   
# 1905|       /* read the record headers into a temp buffer */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def482]
vlc-3.0.21/modules/demux/ty.c:1915:5: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.rec_hdrs’
vlc-3.0.21/modules/demux/ty.c:1842:12: enter_function: entry to ‘get_chunk_header’
vlc-3.0.21/modules/demux/ty.c:1862:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/ty.c:1870:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/ty.c:1878:9: branch_false: ...to here
vlc-3.0.21/modules/demux/ty.c:1878:8: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/ty.c:1881:43: branch_true: ...to here
vlc-3.0.21/modules/demux/ty.c:1906:17: call_function: calling ‘xmalloc’ from ‘get_chunk_header’
vlc-3.0.21/modules/demux/ty.c:1906:17: return_function: returning to ‘get_chunk_header’ from ‘xmalloc’
vlc-3.0.21/modules/demux/ty.c:1907:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/ty.c:1913:23: branch_false: ...to here
vlc-3.0.21/modules/demux/ty.c:1913:23: call_function: calling ‘parse_chunk_headers’ from ‘get_chunk_header’
vlc-3.0.21/modules/demux/ty.c:1913:23: return_function: returning to ‘get_chunk_header’ from ‘parse_chunk_headers’
vlc-3.0.21/modules/demux/ty.c:1915:5: danger: ‘*p_sys.rec_hdrs’ leaks here; was allocated at [(19)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/18)
# 1913|       p_sys->rec_hdrs = parse_chunk_headers(p_hdr_buf, i_num_recs,
# 1914|               &i_payload_size);
# 1915|->     free(p_hdr_buf);
# 1916|   
# 1917|       p_sys->i_stuff_cnt = CHUNK_SIZE - 4 -

Error: GCC_ANALYZER_WARNING (CWE-476): [#def483]
vlc-3.0.21/modules/demux/ty.c:1939:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_rec_hdr’
vlc-3.0.21/modules/demux/ty.c:1926:22: enter_function: entry to ‘parse_chunk_headers’
vlc-3.0.21/modules/demux/ty.c:1933:14: call_function: calling ‘xmalloc’ from ‘parse_chunk_headers’
vlc-3.0.21/modules/demux/ty.c:1933:14: return_function: returning to ‘parse_chunk_headers’ from ‘xmalloc’
vlc-3.0.21/modules/demux/ty.c:1935:17: branch_true: following ‘true’ branch (when ‘i < i_num_recs’)...
vlc-3.0.21/modules/demux/ty.c:1937:48: branch_true: ...to here
vlc-3.0.21/modules/demux/ty.c:1939:9: danger: ‘p_rec_hdr’ could be NULL: unchecked value from [(4)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/3)
# 1937|           const uint8_t *record_header = p_buf + (i * 16);
# 1938|           p_rec_hdr = &p_hdrs[i];     /* for brevity */
# 1939|->         p_rec_hdr->rec_type = record_header[3];
# 1940|           p_rec_hdr->subrec_type = record_header[2] & 0x0f;
# 1941|           if ((record_header[ 0 ] & 0x80) == 0x80)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def484]
vlc-3.0.21/modules/demux/vobsub.c:261:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b_selected’
vlc-3.0.21/modules/demux/vobsub.c:255:25: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/vobsub.c:260:33: branch_true: ...to here
vlc-3.0.21/modules/demux/vobsub.c:261:21: danger: use of uninitialized value ‘b_selected’ here
#  259|                   es_out_Control( p_demux->out, ES_OUT_GET_ES_STATE,
#  260|                                   p_sys->track[i].p_es, &b_selected );
#  261|->                 if( b_selected ) break;
#  262|               }
#  263|               if( i < p_sys->i_tracks && p_sys->track[i].i_current_subtitle < p_sys->track[i].i_subtitles )

Error: GCC_ANALYZER_WARNING (CWE-401): [#def485]
vlc-3.0.21/modules/demux/vobsub.c:605:40: warning[-Wanalyzer-malloc-leak]: leak of ‘xrealloc(*current_tk.p_subtitles, (long unsigned int)(*current_tk.i_subtitles + 2) * 16)’
vlc-3.0.21/modules/demux/vobsub.c:484:12: enter_function: entry to ‘ParseVobSubIDX’
vlc-3.0.21/modules/demux/vobsub.c:492:22: call_function: inlined call to ‘TextGetLine’ from ‘ParseVobSubIDX’
vlc-3.0.21/modules/demux/vobsub.c:492:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/vobsub.c:497:13: branch_false: ...to here
vlc-3.0.21/modules/demux/vobsub.c:581:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/vobsub.c:582:17: branch_true: ...to here
vlc-3.0.21/modules/demux/vobsub.c:581:17: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/vobsub.c:585:47: branch_true: ...to here
vlc-3.0.21/modules/demux/vobsub.c:601:21: call_function: calling ‘xrealloc’ from ‘ParseVobSubIDX’
vlc-3.0.21/modules/demux/vobsub.c:601:21: return_function: returning to ‘ParseVobSubIDX’ from ‘xrealloc’
vlc-3.0.21/modules/demux/vobsub.c:605:40: danger: ‘xrealloc(*current_tk.p_subtitles, (long unsigned int)(*current_tk.i_subtitles + 2) * 16)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
#  603|                   current_sub = &current_tk->p_subtitles[current_tk->i_subtitles - 1];
#  604|   
#  605|->                 current_sub->i_start = i_start * i_sign;
#  606|                   current_sub->i_start += current_tk->i_delay;
#  607|                   current_sub->i_vobsub_location = i_location;

Error: COMPILER_WARNING (CWE-563): [#def486]
vlc-3.0.21/modules/demux/webvtt.c: scope_hint: In function ‘demux_Range’
vlc-3.0.21/modules/demux/webvtt.c:349:79: warning[-Wunused-parameter]: unused parameter ‘i_end’
#  349 | static block_t *demux_Range( demux_t *p_demux, vlc_tick_t i_start, vlc_tick_t i_end )
#      |                                                                    ~~~~~~~~~~~^~~~~
#  347|   }
#  348|   
#  349|-> static block_t *demux_Range( demux_t *p_demux, vlc_tick_t i_start, vlc_tick_t i_end )
#  350|   {
#  351|       demux_sys_t *p_sys = p_demux->p_sys;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def487]
vlc-3.0.21/modules/demux/xiph_metadata.c:491:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/modules/demux/xiph_metadata.c:350:6: enter_function: entry to ‘vorbis_ParseComment’
vlc-3.0.21/modules/demux/xiph_metadata.c:358:7: branch_false: following ‘false’ branch (when ‘i_data > 7’)...
vlc-3.0.21/modules/demux/xiph_metadata.c:361:30: call_function: inlined call to ‘GetDWLE’ from ‘vorbis_ParseComment’
vlc-3.0.21/modules/demux/xiph_metadata.c:363:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:366:5: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:368:7: branch_false: following ‘false’ branch (when ‘i_data > 3’)...
vlc-3.0.21/modules/demux/xiph_metadata.c:371:26: call_function: inlined call to ‘GetDWLE’ from ‘vorbis_ParseComment’
vlc-3.0.21/modules/demux/xiph_metadata.c:373:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:389:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:391:33: call_function: inlined call to ‘GetDWLE’ from ‘vorbis_ParseComment’
vlc-3.0.21/modules/demux/xiph_metadata.c:393:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:396:11: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:396:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:399:37: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:401:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:404:9: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:407:9: call_function: calling ‘EnsureUTF8’ from ‘vorbis_ParseComment’
vlc-3.0.21/modules/demux/xiph_metadata.c:407:9: return_function: returning to ‘vorbis_ParseComment’ from ‘EnsureUTF8’
vlc-3.0.21/modules/demux/xiph_metadata.c:444:9: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:445:14: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:445:14: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:446:14: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:446:14: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:447:14: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:447:14: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:448:14: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:448:14: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:449:19: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:449:18: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:469:14: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:471:14: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:472:14: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:472:14: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:473:14: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:473:14: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:474:14: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:474:14: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:475:14: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:475:14: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:476:14: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:476:14: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:477:14: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:477:14: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:478:14: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:478:14: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:479:19: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:479:16: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:481:15: branch_true: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:481:15: branch_false: following ‘false’ branch (when ‘attachments’ is non-NULL)...
vlc-3.0.21/modules/demux/xiph_metadata.c:485:64: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:486:48: call_function: calling ‘ParseFlacPicture’ from ‘vorbis_ParseComment’
vlc-3.0.21/modules/demux/xiph_metadata.c:486:48: return_function: returning to ‘vorbis_ParseComment’ from ‘ParseFlacPicture’
vlc-3.0.21/modules/demux/xiph_metadata.c:489:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:491:17: branch_true: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:491:17: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/demux/xiph_metadata.c:491:17: branch_false: ...to here
vlc-3.0.21/modules/demux/xiph_metadata.c:491:17: danger: ‘<unknown>’ leaks here; was allocated at [(93)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/92)
#  489|               if( p_attachment )
#  490|               {
#  491|->                 TAB_APPEND_CAST( (input_attachment_t**),
#  492|                       *i_attachments, *attachments, p_attachment );
#  493|               }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def488]
vlc-3.0.21/modules/gui/ncurses.c:298:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*sys.dir_entries’
vlc-3.0.21/modules/gui/ncurses.c:1780:12: enter_function: entry to ‘Open’
vlc-3.0.21/modules/gui/ncurses.c:1786:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/gui/ncurses.c:1789:5: branch_false: ...to here
vlc-3.0.21/modules/gui/ncurses.c:1799:8: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/gui/ncurses.c:1800:28: branch_true: ...to here
vlc-3.0.21/modules/gui/ncurses.c:1816:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/gui/ncurses.c:1819:5: branch_false: ...to here
vlc-3.0.21/modules/gui/ncurses.c:1819:5: call_function: calling ‘ReadDir’ from ‘Open’
#  296|           dir_entry->file = IsFile(sys->current_dir, entry);
#  297|           dir_entry->path = xstrdup(entry);
#  298|->         TAB_APPEND(sys->n_dir_entries, sys->dir_entries, dir_entry);
#  299|           continue;
#  300|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def489]
vlc-3.0.21/modules/gui/ncurses.c:377:5: warning[-Wanalyzer-malloc-leak]: leak of ‘*sys.plist’
vlc-3.0.21/modules/gui/ncurses.c:1780:12: enter_function: entry to ‘Open’
vlc-3.0.21/modules/gui/ncurses.c:1786:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/gui/ncurses.c:1789:5: branch_false: ...to here
vlc-3.0.21/modules/gui/ncurses.c:1799:8: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/gui/ncurses.c:1800:28: branch_true: ...to here
vlc-3.0.21/modules/gui/ncurses.c:1821:5: call_function: calling ‘PlaylistRebuild’ from ‘Open’
#  375|       p_pl_item->item = input_item_Hold(p_child->p_input);
#  376|   
#  377|->     TAB_APPEND(sys->plist_entries, sys->plist, p_pl_item);
#  378|   
#  379|       return true;

Error: COMPILER_WARNING: [#def490]
vlc-3.0.21/modules/gui/ncurses.c: scope_hint: In function ‘DrawStatus’
vlc-3.0.21/modules/gui/ncurses.c:1081:13: warning[-Wimplicit-fallthrough=]: this statement may fall through
# 1081 |             mvnprintw(y++, 0, COLS, _(input_state[val.i_int]),
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1082 |                         repeat, random, loop);
#      |                         ~~~~~~~~~~~~~~~~~~~~~
vlc-3.0.21/modules/gui/ncurses.c:1084:9: note: here
# 1084 |         default:
#      |         ^~~~~~~
# 1079|           case OPENING_S:
# 1080|           case PAUSE_S:
# 1081|->             mvnprintw(y++, 0, COLS, _(input_state[val.i_int]),
# 1082|                           repeat, random, loop);
# 1083|   

Error: COMPILER_WARNING: [#def491]
vlc-3.0.21/modules/gui/ncurses.c: scope_hint: In function ‘HandleCommonKey’
vlc-3.0.21/modules/gui/ncurses.c:1560:12: warning[-Wimplicit-fallthrough=]: this statement may fall through
# 1560 |         if (getch() != ERR)
#      |            ^
vlc-3.0.21/modules/gui/ncurses.c:1563:5: note: here
# 1563 |     case 'q':
#      |     ^~~~
# 1558|       {
# 1559|       case 0x1b:  /* ESC */
# 1560|->         if (getch() != ERR)
# 1561|               return;
# 1562|   

Error: COMPILER_WARNING (CWE-477): [#def492]
vlc-3.0.21/modules/gui/qt/components/complete_preferences.cpp: scope_hint: In constructor ‘PrefsTree::PrefsTree(intf_thread_t*, QWidget*, module_t**, size_t)’
vlc-3.0.21/modules/gui/qt/components/complete_preferences.cpp:135:53: warning[-Wdeprecated-declarations]: ‘QVariant qVariantFromValue(const T&) [with T = PrefsItemData*]’ is deprecated: Use QVariant::fromValue() instead.
#  135 |                                    qVariantFromValue( data ) );
#      |                                    ~~~~~~~~~~~~~~~~~^~~~~~~~
/usr/include/qt5/QtCore/qlocale.h:43: included_from: Included from here.
/usr/include/qt5/QtGui/qguiapplication.h:47: included_from: Included from here.
/usr/include/qt5/QtWidgets/qapplication.h:52: included_from: Included from here.
/usr/include/qt5/QtWidgets/QApplication:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/complete_preferences.cpp:27: included_from: Included from here.
/usr/include/qt5/QtCore/qvariant.h:530:17: note: declared here
#  530 | inline QVariant qVariantFromValue(const T &t)
#      |                 ^~~~~~~~~~~~~~~~~
#  133|               //current_item->setSizeHint( 0, QSize( -1, ITEM_HEIGHT ) );
#  134|               current_item->setData( 0, Qt::UserRole,
#  135|->                                    qVariantFromValue( data ) );
#  136|               addTopLevelItem( current_item );
#  137|               expandItem( current_item );

Error: COMPILER_WARNING (CWE-477): [#def493]
vlc-3.0.21/modules/gui/qt/components/complete_preferences.cpp:185:52: warning[-Wdeprecated-declarations]: ‘QVariant qVariantFromValue(const T&) [with T = PrefsItemData*]’ is deprecated: Use QVariant::fromValue() instead.
#  185 |                                   qVariantFromValue( data_sub ) );
#      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/usr/include/qt5/QtCore/qvariant.h:530:17: note: declared here
#  530 | inline QVariant qVariantFromValue(const T &t)
#      |                 ^~~~~~~~~~~~~~~~~
#  183|               subcat_item->setText( 0, data_sub->name );
#  184|               subcat_item->setData( 0, Qt::UserRole,
#  185|->                                   qVariantFromValue( data_sub ) );
#  186|               //subcat_item->setSizeHint( 0, QSize( -1, ITEM_HEIGHT ) );
#  187|   

Error: COMPILER_WARNING (CWE-477): [#def494]
vlc-3.0.21/modules/gui/qt/components/controller.cpp:117:36: warning[-Wdeprecated-declarations]: ‘QStringList QString::split(const QString&, SplitBehavior, Qt::CaseSensitivity) const’ is deprecated: Use split(const QString &sep, Qt::SplitBehavior ...) variant instead
#  117 |     QStringList list = config.split( ";", QString::SkipEmptyParts ) ;
#      |                        ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qstring.h:606:17: note: declared here
#  606 |     QStringList split(const QString &sep, SplitBehavior behavior,
#      |                 ^~~~~
#  115|                                            QBoxLayout *newControlLayout )
#  116|   {
#  117|->     QStringList list = config.split( ";", QString::SkipEmptyParts ) ;
#  118|       for( int i = 0; i < list.count(); i++ )
#  119|       {

Error: COMPILER_WARNING (CWE-477): [#def495]
vlc-3.0.21/modules/gui/qt/components/controller.cpp: scope_hint: In member function ‘void AbstractController::parseAndCreate(const QString&, QBoxLayout*)’
vlc-3.0.21/modules/gui/qt/components/controller.cpp:117:52: warning[-Wdeprecated-declarations]: ‘QString::SkipEmptyParts’ is deprecated
#  117 |     QStringList list = config.split( ";", QString::SkipEmptyParts ) ;
#      |                                                    ^~~~~~~~~~~~~~
/usr/include/qt5/QtCore/QString:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/qt.hpp:43: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/controller.hpp:31: included_from: Included from here.
/usr/include/qt5/QtCore/qstring.h:602:9: note: declared here
#  602 |         SkipEmptyParts Q_DECL_ENUMERATOR_DEPRECATED
#      |         ^~~~~~~~~~~~~~
#  115|                                            QBoxLayout *newControlLayout )
#  116|   {
#  117|->     QStringList list = config.split( ";", QString::SkipEmptyParts ) ;
#  118|       for( int i = 0; i < list.count(); i++ )
#  119|       {

Error: COMPILER_WARNING: [#def496]
vlc-3.0.21/modules/gui/qt/components/controller.cpp: scope_hint: In member function ‘QWidget* AbstractController::createWidget(buttonType_e, int)’
vlc-3.0.21/modules/gui/qt/components/controller.cpp:380:19: warning[-Wimplicit-fallthrough=]: this statement may fall through
#  380 |         b_special = true;
#      |         ~~~~~~~~~~^~~~~~
vlc-3.0.21/modules/gui/qt/components/controller.cpp:381:5: note: here
#  381 |     case VOLUME:
#      |     ^~~~
#  378|           break;
#  379|       case VOLUME_SPECIAL:
#  380|->         b_special = true;
#  381|       case VOLUME:
#  382|           {

Error: COMPILER_WARNING (CWE-477): [#def497]
vlc-3.0.21/modules/gui/qt/components/controller.cpp: scope_hint: In constructor ‘ControlsWidget::ControlsWidget(intf_thread_t*, bool, QWidget*)’
vlc-3.0.21/modules/gui/qt/components/controller.cpp:718:23: warning[-Wdeprecated-declarations]: ‘Qt::WA_MacBrushedMetal’ is deprecated
#  718 |     setAttribute( Qt::WA_MacBrushedMetal);
#      |                       ^~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qbytearray.h:45: included_from: Included from here.
/usr/include/qt5/QtCore/qstring.h:50: included_from: Included from here.
/usr/include/qt5/QtCore/qnamespace.h:404:9: note: declared here
#  404 |         WA_MacBrushedMetal Q_DECL_ENUMERATOR_DEPRECATED = 46,
#      |         ^~~~~~~~~~~~~~~~~~
#  716|       setStyleSheet( "background: red ");
#  717|   #endif
#  718|->     setAttribute( Qt::WA_MacBrushedMetal);
#  719|       controlLayout = new QVBoxLayout( this );
#  720|       controlLayout->setContentsMargins( 3, 1, 0, 1 );

Error: COMPILER_WARNING (CWE-477): [#def498]
vlc-3.0.21/modules/gui/qt/components/controller.cpp: scope_hint: In member function ‘void FullscreenControllerWidget::restoreFSC()’
vlc-3.0.21/modules/gui/qt/components/controller.cpp:891:67: warning[-Wdeprecated-declarations]: ‘const QRect QDesktopWidget::screenGeometry(int) const’ is deprecated: Use QGuiApplication::screens()
#  891 |         QRect currentRes = QApplication::desktop()->screenGeometry( targetScreen() );
#      |                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtWidgets/qdesktopwidget.h:79:67: note: declared here
#   79 |     QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect screenGeometry(int screen = -1) const;
#      |                                                                   ^~~~~~~~~~~~~~
#  889|               return;
#  890|   
#  891|->         QRect currentRes = QApplication::desktop()->screenGeometry( targetScreen() );
#  892|           QWindow *wh = windowHandle();
#  893|           if ( wh != Q_NULLPTR )

Error: COMPILER_WARNING (CWE-477): [#def499]
vlc-3.0.21/modules/gui/qt/components/controller.cpp: scope_hint: In member function ‘void FullscreenControllerWidget::centerFSC(int)’
vlc-3.0.21/modules/gui/qt/components/controller.cpp:927:63: warning[-Wdeprecated-declarations]: ‘const QRect QDesktopWidget::screenGeometry(int) const’ is deprecated: Use QGuiApplication::screens()
#  927 |     QRect currentRes = QApplication::desktop()->screenGeometry( number );
#      |                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/usr/include/qt5/QtWidgets/qdesktopwidget.h:79:67: note: declared here
#   79 |     QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect screenGeometry(int screen = -1) const;
#      |                                                                   ^~~~~~~~~~~~~~
#  925|   void FullscreenControllerWidget::centerFSC( int number )
#  926|   {
#  927|->     QRect currentRes = QApplication::desktop()->screenGeometry( number );
#  928|   
#  929|       /* screen has changed, calculate new position */

Error: COMPILER_WARNING (CWE-477): [#def500]
vlc-3.0.21/modules/gui/qt/components/controller.cpp: scope_hint: In member function ‘void FullscreenControllerWidget::updateFullwidthGeometry(int)’
vlc-3.0.21/modules/gui/qt/components/controller.cpp:1001:67: warning[-Wdeprecated-declarations]: ‘const QRect QDesktopWidget::screenGeometry(int) const’ is deprecated: Use QGuiApplication::screens()
# 1001 |     QRect screenGeometry = QApplication::desktop()->screenGeometry( number );
#      |                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/usr/include/qt5/QtWidgets/qdesktopwidget.h:79:67: note: declared here
#   79 |     QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect screenGeometry(int screen = -1) const;
#      |                                                                   ^~~~~~~~~~~~~~
#  999|   void FullscreenControllerWidget::updateFullwidthGeometry( int number )
# 1000|   {
# 1001|->     QRect screenGeometry = QApplication::desktop()->screenGeometry( number );
# 1002|       setMinimumWidth( screenGeometry.width() );
# 1003|       setGeometry( screenGeometry.x(), screenGeometry.y() + screenGeometry.height() - height(), screenGeometry.width(), height() );

Error: COMPILER_WARNING (CWE-477): [#def501]
vlc-3.0.21/modules/gui/qt/components/controller.cpp: scope_hint: In member function ‘int FullscreenControllerWidget::targetScreen()’
vlc-3.0.21/modules/gui/qt/components/controller.cpp:1024:85: warning[-Wdeprecated-declarations]: ‘int QDesktopWidget::screenCount() const’ is deprecated: Use QGuiApplication::screens()
# 1024 |     if( i_screennumber < 0 || i_screennumber >= QApplication::desktop()->screenCount() )
#      |                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/qt5/QtWidgets/qdesktopwidget.h:118:12: note: declared here
#  118 | inline int QDesktopWidget::screenCount() const
#      |            ^~~~~~~~~~~~~~
# 1022|   int FullscreenControllerWidget::targetScreen()
# 1023|   {
# 1024|->     if( i_screennumber < 0 || i_screennumber >= QApplication::desktop()->screenCount() )
# 1025|           return QApplication::desktop()->screenNumber( p_intf->p_sys->p_mi );
# 1026|       return i_screennumber;

Error: COMPILER_WARNING (CWE-477): [#def502]
vlc-3.0.21/modules/gui/qt/components/controller.cpp: scope_hint: In member function ‘virtual void FullscreenControllerWidget::mouseMoveEvent(QMouseEvent*)’
vlc-3.0.21/modules/gui/qt/components/controller.cpp:1113:73: warning[-Wdeprecated-declarations]: ‘const QRect QDesktopWidget::screenGeometry(int) const’ is deprecated: Use QGuiApplication::screens()
# 1113 |         const QRect screenRect = QApplication::desktop()->screenGeometry( targetScreen() );
#      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtWidgets/qdesktopwidget.h:79:67: note: declared here
#   79 |     QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect screenGeometry(int screen = -1) const;
#      |                                                                   ^~~~~~~~~~~~~~
# 1111|           int i_moveY = event->globalY() - i_mouse_last_y;
# 1112|   
# 1113|->         const QRect screenRect = QApplication::desktop()->screenGeometry( targetScreen() );
# 1114|   
# 1115|           const int i_x = qBound( screenRect.left(), x() + i_moveX, screenRect.right() - width() );

Error: COMPILER_WARNING (CWE-477): [#def503]
vlc-3.0.21/modules/gui/qt/components/epg/EPGChannels.cpp: scope_hint: In member function ‘void EPGChannels::addProgram(const EPGProgram*)’
vlc-3.0.21/modules/gui/qt/components/epg/EPGChannels.cpp:53:14: warning[-Wdeprecated-declarations]: ‘void qSort(RandomAccessIterator, RandomAccessIterator, LessThan) [with RandomAccessIterator = QList<const EPGProgram*>::iterator; LessThan = bool (*)(const EPGProgram*, const EPGProgram*)]’ is deprecated: Use std::sort
#   53 |         qSort(programsList.begin(), programsList.end(), EPGProgram::lessThan);
#      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qlist.h:43: included_from: Included from here.
/usr/include/qt5/QtCore/qurl.h:47: included_from: Included from here.
/usr/include/qt5/QtCore/QUrl:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/qt.hpp:44: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/epg/EPGChannels.cpp:23: included_from: Included from here.
/usr/include/qt5/QtCore/qalgorithms.h:181:46: note: declared here
#  181 | QT_DEPRECATED_X("Use std::sort") inline void qSort(RandomAccessIterator start, RandomAccessIterator end, LessThan lessThan)
#      |                                              ^~~~~
#   51|       {
#   52|           programsList << program;
#   53|->         qSort(programsList.begin(), programsList.end(), EPGProgram::lessThan);
#   54|           update();
#   55|       }

Error: COMPILER_WARNING (CWE-477): [#def504]
vlc-3.0.21/modules/gui/qt/components/epg/EPGChannels.cpp: scope_hint: In member function ‘virtual void EPGChannels::paintEvent(QPaintEvent*)’
vlc-3.0.21/modules/gui/qt/components/epg/EPGChannels.cpp:85:42: warning[-Wdeprecated-declarations]: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance
#   85 |         int i_width = fontMetrics().width( text );
#      |                       ~~~~~~~~~~~~~~~~~~~^~~~~~~~
/usr/include/qt5/QtWidgets/qwidget.h:50: included_from: Included from here.
/usr/include/qt5/QtWidgets/QWidget:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/epg/EPGChannels.hpp:28: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/epg/EPGChannels.cpp:27: included_from: Included from here.
/usr/include/qt5/QtGui/qfontmetrics.h:106:9: note: declared here
#  106 |     int width(const QString &, int len = -1) const;
#      |         ^~~~~
#   83|                       width(), height(), Qt::AlignLeft, text );
#   84|   
#   85|->         int i_width = fontMetrics().width( text );
#   86|           if( width() < i_width )
#   87|               setMinimumWidth( i_width );

Error: COMPILER_WARNING (CWE-477): [#def505]
vlc-3.0.21/modules/gui/qt/components/epg/EPGView.cpp: scope_hint: In member function ‘virtual void EPGGraphicsScene::drawBackground(QPainter*, const QRectF&)’
vlc-3.0.21/modules/gui/qt/components/epg/EPGView.cpp:51:62: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(const QDate&)’ is deprecated: Use QDate::startOfDay()
#   51 |     QDateTime nextdaylimit = QDateTime( rectstarttime.date() );
#      |                                                              ^
/usr/include/qt5/QtCore/QDateTime:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/epg/EPGProgram.hpp:29: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/epg/EPGView.hpp:29: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/epg/EPGView.cpp:28: included_from: Included from here.
/usr/include/qt5/QtCore/qdatetime.h:298:57: note: declared here
#  298 |     QT_DEPRECATED_X("Use QDate::startOfDay()") explicit QDateTime(const QDate &);
#      |                                                         ^~~~~~~~~
#   49|       /* day change */
#   50|       QDateTime rectstarttime = epgView->startTime().addSecs( rect.left() );
#   51|->     QDateTime nextdaylimit = QDateTime( rectstarttime.date() );
#   52|       QRectF area( rect );
#   53|       while( area.left() < width() )

Error: COMPILER_WARNING (CWE-477): [#def506]
vlc-3.0.21/modules/gui/qt/components/epg/EPGView.cpp: scope_hint: In member function ‘void EPGView::setScale(double)’
vlc-3.0.21/modules/gui/qt/components/epg/EPGView.cpp:100:14: warning[-Wdeprecated-declarations]: ‘void QGraphicsView::setMatrix(const QMatrix&, bool)’ is deprecated: Use setTransform()
#  100 |     setMatrix( matrix );
#      |     ~~~~~~~~~^~~~~~~~~~
/usr/include/qt5/QtWidgets/QGraphicsView:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/epg/EPGView.hpp:33: included_from: Included from here.
/usr/include/qt5/QtWidgets/qgraphicsview.h:170:48: note: declared here
#  170 |     QT_DEPRECATED_X("Use setTransform()") void setMatrix(const QMatrix &matrix, bool combine = false);
#      |                                                ^~~~~~~~~
#   98|       QMatrix matrix;
#   99|       matrix.scale( scaleFactor, 1 );
#  100|->     setMatrix( matrix );
#  101|   }
#  102|   

Error: COMPILER_WARNING (CWE-477): [#def507]
vlc-3.0.21/modules/gui/qt/components/extended_panels.cpp:63:37: warning[-Wdeprecated-declarations]: ‘QStringList QString::split(QChar, SplitBehavior, Qt::CaseSensitivity) const’ is deprecated: Use split(QChar sep, Qt::SplitBehavior ...) variant instead
#   63 |     QStringList list = filters.split( ':', QString::SplitBehavior::SkipEmptyParts );
#      |                        ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qstring.h:612:17: note: declared here
#  612 |     QStringList split(QChar sep, SplitBehavior behavior,
#      |                 ^~~~~
#   61|   static bool filterIsPresent( const QString &filters, const QString &filter )
#   62|   {
#   63|->     QStringList list = filters.split( ':', QString::SplitBehavior::SkipEmptyParts );
#   64|       foreach( const QString &filterCmp, list )
#   65|       {

Error: COMPILER_WARNING (CWE-477): [#def508]
vlc-3.0.21/modules/gui/qt/components/extended_panels.cpp: scope_hint: In function ‘bool filterIsPresent(const QString&, const QString&)’
vlc-3.0.21/modules/gui/qt/components/extended_panels.cpp:63:68: warning[-Wdeprecated-declarations]: ‘QString::SkipEmptyParts’ is deprecated
#   63 |     QStringList list = filters.split( ':', QString::SplitBehavior::SkipEmptyParts );
#      |                                                                    ^~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qobject.h:47: included_from: Included from here.
/usr/include/qt5/QtWidgets/qwidget.h:45: included_from: Included from here.
/usr/include/qt5/QtWidgets/qframe.h:44: included_from: Included from here.
/usr/include/qt5/QtWidgets/qlabel.h:44: included_from: Included from here.
/usr/include/qt5/QtWidgets/QLabel:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/extended_panels.cpp:34: included_from: Included from here.
/usr/include/qt5/QtCore/qstring.h:602:9: note: declared here
#  602 |         SkipEmptyParts Q_DECL_ENUMERATOR_DEPRECATED
#      |         ^~~~~~~~~~~~~~
#   61|   static bool filterIsPresent( const QString &filters, const QString &filter )
#   62|   {
#   63|->     QStringList list = filters.split( ':', QString::SplitBehavior::SkipEmptyParts );
#   64|       foreach( const QString &filterCmp, list )
#   65|       {

Error: COMPILER_WARNING (CWE-477): [#def509]
vlc-3.0.21/modules/gui/qt/components/extended_panels.cpp:299:35: warning[-Wdeprecated-declarations]: ‘QStringList QString::split(QChar, SplitBehavior, Qt::CaseSensitivity) const’ is deprecated: Use split(QChar sep, Qt::SplitBehavior ...) variant instead
#  299 |     QStringList list = chain.split( ':', QString::SplitBehavior::SkipEmptyParts );
#      |                        ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qstring.h:612:17: note: declared here
#  612 |     QStringList split(QChar sep, SplitBehavior behavior,
#      |                 ^~~~~
#  297|   
#  298|       QString const chain = QString( psz_chain ? psz_chain : "" );
#  299|->     QStringList list = chain.split( ':', QString::SplitBehavior::SkipEmptyParts );
#  300|   
#  301|       if( b_add && std::find(list.begin(), list.end(), psz_name) == list.end() )

Error: COMPILER_WARNING (CWE-477): [#def510]
vlc-3.0.21/modules/gui/qt/components/extended_panels.cpp: scope_hint: In function ‘QString ChangeFiltersString(intf_thread_t*, const char*, const char*, bool)’
vlc-3.0.21/modules/gui/qt/components/extended_panels.cpp:299:66: warning[-Wdeprecated-declarations]: ‘QString::SkipEmptyParts’ is deprecated
#  299 |     QStringList list = chain.split( ':', QString::SplitBehavior::SkipEmptyParts );
#      |                                                                  ^~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qstring.h:602:9: note: declared here
#  602 |         SkipEmptyParts Q_DECL_ENUMERATOR_DEPRECATED
#      |         ^~~~~~~~~~~~~~
#  297|   
#  298|       QString const chain = QString( psz_chain ? psz_chain : "" );
#  299|->     QStringList list = chain.split( ':', QString::SplitBehavior::SkipEmptyParts );
#  300|   
#  301|       if( b_add && std::find(list.begin(), list.end(), psz_name) == list.end() )

Error: COMPILER_WARNING (CWE-477): [#def511]
vlc-3.0.21/modules/gui/qt/components/extended_panels.cpp:1037:51: warning[-Wdeprecated-declarations]: ‘QStringList QString::split(const QString&, SplitBehavior, Qt::CaseSensitivity) const’ is deprecated: Use split(const QString &sep, Qt::SplitBehavior ...) variant instead
# 1037 |                 bands = QString( psz_bands ).split( " ", QString::SkipEmptyParts );
#      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qstring.h:606:17: note: declared here
#  606 |     QStringList split(const QString &sep, SplitBehavior behavior,
#      |                 ^~~~~
# 1035|               if ( psz_bands )
# 1036|               {
# 1037|->                 bands = QString( psz_bands ).split( " ", QString::SkipEmptyParts );
# 1038|                   free( psz_bands );
# 1039|               }

Error: COMPILER_WARNING (CWE-477): [#def512]
vlc-3.0.21/modules/gui/qt/components/extended_panels.cpp: scope_hint: In member function ‘QStringList EqualizerSliderData::getBandsFromAout() const’
vlc-3.0.21/modules/gui/qt/components/extended_panels.cpp:1037:67: warning[-Wdeprecated-declarations]: ‘QString::SkipEmptyParts’ is deprecated
# 1037 |                 bands = QString( psz_bands ).split( " ", QString::SkipEmptyParts );
#      |                                                                   ^~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qstring.h:602:9: note: declared here
#  602 |         SkipEmptyParts Q_DECL_ENUMERATOR_DEPRECATED
#      |         ^~~~~~~~~~~~~~
# 1035|               if ( psz_bands )
# 1036|               {
# 1037|->                 bands = QString( psz_bands ).split( " ", QString::SkipEmptyParts );
# 1038|                   free( psz_bands );
# 1039|               }

Error: COMPILER_WARNING (CWE-477): [#def513]
vlc-3.0.21/modules/gui/qt/components/extended_panels.cpp:1053:43: warning[-Wdeprecated-declarations]: ‘QStringList QString::split(const QString&, SplitBehavior, Qt::CaseSensitivity) const’ is deprecated: Use split(const QString &sep, Qt::SplitBehavior ...) variant instead
# 1053 |         bands = QString( psz_bands ).split( " ", QString::SkipEmptyParts );
#      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qstring.h:606:17: note: declared here
#  606 |     QStringList split(const QString &sep, SplitBehavior behavior,
#      |                 ^~~~~
# 1051|       if ( psz_bands )
# 1052|       {
# 1053|->         bands = QString( psz_bands ).split( " ", QString::SkipEmptyParts );
# 1054|           free( psz_bands );
# 1055|       }

Error: COMPILER_WARNING (CWE-477): [#def514]
vlc-3.0.21/modules/gui/qt/components/extended_panels.cpp:1053:59: warning[-Wdeprecated-declarations]: ‘QString::SkipEmptyParts’ is deprecated
# 1053 |         bands = QString( psz_bands ).split( " ", QString::SkipEmptyParts );
#      |                                                           ^~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qstring.h:602:9: note: declared here
#  602 |         SkipEmptyParts Q_DECL_ENUMERATOR_DEPRECATED
#      |         ^~~~~~~~~~~~~~
# 1051|       if ( psz_bands )
# 1052|       {
# 1053|->         bands = QString( psz_bands ).split( " ", QString::SkipEmptyParts );
# 1054|           free( psz_bands );
# 1055|       }

Error: COMPILER_WARNING (CWE-477): [#def515]
vlc-3.0.21/modules/gui/qt/components/extended_panels.cpp: scope_hint: In member function ‘virtual void Equalizer::build()’
vlc-3.0.21/modules/gui/qt/components/extended_panels.cpp:1157:56: warning[-Wdeprecated-declarations]: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance
# 1157 |     int i_width = qMax( QFontMetrics( smallFont ).width( "500 Hz" ),
#      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/usr/include/qt5/QtWidgets/qwidget.h:50: included_from: Included from here.
/usr/include/qt5/QtGui/qfontmetrics.h:106:9: note: declared here
#  106 |     int width(const QString &, int len = -1) const;
#      |         ^~~~~
# 1155|   
# 1156|       /* fix sliders spacing accurately */
# 1157|->     int i_width = qMax( QFontMetrics( smallFont ).width( "500 Hz" ),
# 1158|                           QFontMetrics( smallFont ).width( "-20.0 dB" ) );
# 1159|       int i = 0;

Error: COMPILER_WARNING (CWE-477): [#def516]
vlc-3.0.21/modules/gui/qt/components/extended_panels.cpp:1158:56: warning[-Wdeprecated-declarations]: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance
# 1158 |                         QFontMetrics( smallFont ).width( "-20.0 dB" ) );
#      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/usr/include/qt5/QtGui/qfontmetrics.h:106:9: note: declared here
#  106 |     int width(const QString &, int len = -1) const;
#      |         ^~~~~
# 1156|       /* fix sliders spacing accurately */
# 1157|       int i_width = qMax( QFontMetrics( smallFont ).width( "500 Hz" ),
# 1158|->                         QFontMetrics( smallFont ).width( "-20.0 dB" ) );
# 1159|       int i = 0;
# 1160|       foreach( const FilterSliderData::slider_data_t &data, controls )

Error: COMPILER_WARNING (CWE-477): [#def517]
vlc-3.0.21/modules/gui/qt/components/info_panels.cpp: scope_hint: In member function ‘void InfoPanel::update(input_item_t*)’
vlc-3.0.21/modules/gui/qt/components/info_panels.cpp:519:34: warning[-Wdeprecated-declarations]: ‘void QTreeWidget::setItemExpanded(const QTreeWidgetItem*, bool)’ is deprecated: Use QTreeWidgetItem::setExpanded() instead
#  519 |         InfoTree->setItemExpanded( current_item, true);
#      |         ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtWidgets/QTreeWidget:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/preferences_widgets.hpp:41: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/open_panels.hpp:35: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/dialogs/open.hpp:36: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/dialogs_provider.hpp:36: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/interface_widgets.hpp:38: included_from: Included from here.
/usr/include/qt5/QtWidgets/qtreewidget.h:337:10: note: declared here
#  337 |     void setItemExpanded(const QTreeWidgetItem *item, bool expand);
#      |          ^~~~~~~~~~~~~~~
#  517|               current_item->addChild(child_item);
#  518|           }
#  519|->         InfoTree->setItemExpanded( current_item, true);
#  520|       }
#  521|   }

Error: COMPILER_WARNING (CWE-477): [#def518]
vlc-3.0.21/modules/gui/qt/components/info_panels.cpp: scope_hint: In constructor ‘InputStatsPanel::InputStatsPanel(QWidget*)’
vlc-3.0.21/modules/gui/qt/components/info_panels.cpp:551:38: warning[-Wdeprecated-declarations]: ‘constexpr QFlags<T>::QFlags(Zero) [with Enum = Qt::AlignmentFlag; Zero = int QFlags<Qt::AlignmentFlag>::Private::*]’ is deprecated: Use default constructor instead
#  551 |      layout->addWidget( topLabel, 0, 0 );
#      |                                      ^
/usr/include/qt5/QtCore/qglobal.h:1307: included_from: Included from here.
/usr/include/qt5/QtCore/qchar.h:43: included_from: Included from here.
/usr/include/qt5/QtCore/qstring.h:49: included_from: Included from here.
/usr/include/qt5/QtCore/QString:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/qt.hpp:43: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/info_panels.cpp:30: included_from: Included from here.
/usr/include/qt5/QtCore/qflags.h:123:80: note: declared here
#  123 |     QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
#      |                                                                                ^~~~~~
#  549|                    " media / stream " "statistics") );
#  550|        topLabel->setWordWrap( true );
#  551|->      layout->addWidget( topLabel, 0, 0 );
#  552|   
#  553|        StatsTree = new QTreeWidget(this);

Error: COMPILER_WARNING (CWE-477): [#def519]
vlc-3.0.21/modules/gui/qt/components/info_panels.cpp:614:37: warning[-Wdeprecated-declarations]: ‘constexpr QFlags<T>::QFlags(Zero) [with Enum = Qt::AlignmentFlag; Zero = int QFlags<Qt::AlignmentFlag>::Private::*]’ is deprecated: Use default constructor instead
#  614 |     layout->addWidget(StatsTree, 4, 0 );
#      |                                     ^
/usr/include/qt5/QtCore/qflags.h:123:80: note: declared here
#  123 |     QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
#      |                                                                                ^~~~~~
#  612|       StatsTree->setColumnWidth( 1 , 200 );
#  613|   
#  614|->     layout->addWidget(StatsTree, 4, 0 );
#  615|   
#  616|       statsView = new VLCStatsView( this );

Error: COMPILER_WARNING (CWE-477): [#def520]
vlc-3.0.21/modules/gui/qt/components/info_panels.cpp: scope_hint: In member function ‘void InputStatsPanel::update(input_item_t*)’
vlc-3.0.21/modules/gui/qt/components/info_panels.cpp:652:52: warning[-Wdeprecated-declarations]: ‘QString& QString::sprintf(const char*, ...)’ is deprecated: Use asprintf(), arg() or QTextStream instead
#  652 |     { QString str; widget->setText( 1 , str.sprintf( format, ## calc ) );  }
#      |                                         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
vlc-3.0.21/modules/gui/qt/components/info_panels.cpp:655:5: note: in expansion of macro ‘UPDATE_FLOAT’
#  655 |     UPDATE_FLOAT( input_bitrate_stat,  "%6.0f", (float)(p_item->p_stats->f_input_bitrate *  8000 ));
#      |     ^~~~~~~~~~~~
/usr/include/qt5/QtCore/qstring.h:390:14: note: declared here
#  390 |     QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3);
#      |              ^~~~~~~
#  650|   
#  651|   #define UPDATE_FLOAT( widget, format, calc... ) \
#  652|->     { QString str; widget->setText( 1 , str.sprintf( format, ## calc ) );  }
#  653|   
#  654|       UPDATE_INT( read_media_stat, (p_item->p_stats->i_read_bytes / 1024 ) );

Error: COMPILER_WARNING (CWE-477): [#def521]
vlc-3.0.21/modules/gui/qt/components/interface_widgets.cpp: scope_hint: In constructor ‘EasterEggBackgroundWidget::EasterEggBackgroundWidget(intf_thread_t*)’
vlc-3.0.21/modules/gui/qt/components/interface_widgets.cpp:561:18: warning[-Wdeprecated-declarations]: ‘template<class T> class QLinkedList’ is deprecated: Use std::list instead
#  561 |     flakes = new QLinkedList<flake *>();
#      |                  ^~~~~~~~~~~
/usr/include/qt5/QtCore/qcontainerfwd.h:51:26: note: declared here
#   51 | template <class T> class QLinkedList;
#      |                          ^~~~~~~~~~~
#  559|       : BackgroundWidget( p_intf )
#  560|   {
#  561|->     flakes = new QLinkedList<flake *>();
#  562|       i_rate = 2;
#  563|       i_speed = 1;

Error: COMPILER_WARNING (CWE-477): [#def522]
vlc-3.0.21/modules/gui/qt/components/interface_widgets.cpp: scope_hint: In member function ‘void EasterEggBackgroundWidget::spawnFlakes()’
vlc-3.0.21/modules/gui/qt/components/interface_widgets.cpp:612:35: warning[-Wdeprecated-declarations]: ‘int qrand()’ is deprecated: use QRandomGenerator instead
#  612 |     int i_spawn = ( (double) qrand() / RAND_MAX ) * i_rate;
#      |                              ~~~~~^~
/usr/include/qt5/QtCore/qchar.h:43: included_from: Included from here.
/usr/include/qt5/QtCore/qstring.h:49: included_from: Included from here.
/usr/include/qt5/QtCore/QString:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/qt.hpp:43: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/interface_widgets.cpp:31: included_from: Included from here.
/usr/include/qt5/QtCore/qglobal.h:1282:80: note: declared here
# 1282 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X_5_15("use QRandomGenerator instead") int qrand();
#      |                                                                                ^~~~~
#  610|       double w = (double) width() / RAND_MAX;
#  611|   
#  612|->     int i_spawn = ( (double) qrand() / RAND_MAX ) * i_rate;
#  613|   
#  614|       QLinkedList<flake *>::iterator it = flakes->begin();

Error: COMPILER_WARNING (CWE-477): [#def523]
vlc-3.0.21/modules/gui/qt/components/interface_widgets.cpp:614:5: warning[-Wdeprecated-declarations]: ‘template<class T> class QLinkedList’ is deprecated: Use std::list instead
#  614 |     QLinkedList<flake *>::iterator it = flakes->begin();
#      |     ^~~~~~~~~~~
/usr/include/qt5/QtCore/qcontainerfwd.h:51:26: note: declared here
#   51 | template <class T> class QLinkedList;
#      |                          ^~~~~~~~~~~
#  612|       int i_spawn = ( (double) qrand() / RAND_MAX ) * i_rate;
#  613|   
#  614|->     QLinkedList<flake *>::iterator it = flakes->begin();
#  615|       while( it != flakes->end() )
#  616|       {

Error: COMPILER_WARNING (CWE-477): [#def524]
vlc-3.0.21/modules/gui/qt/components/interface_widgets.cpp:632:29: warning[-Wdeprecated-declarations]: ‘int qrand()’ is deprecated: use QRandomGenerator instead
#  632 |         f->point.setX( qrand() * w );
#      |                        ~~~~~^~
/usr/include/qt5/QtCore/qglobal.h:1282:80: note: declared here
# 1282 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X_5_15("use QRandomGenerator instead") int qrand();
#      |                                                                                ^~~~~
#  630|       {
#  631|           flake *f = new flake;
#  632|->         f->point.setX( qrand() * w );
#  633|           f->b_fat = ( qrand() < ( RAND_MAX * .33 ) );
#  634|           flakes->append( f );

Error: COMPILER_WARNING (CWE-477): [#def525]
vlc-3.0.21/modules/gui/qt/components/interface_widgets.cpp:633:27: warning[-Wdeprecated-declarations]: ‘int qrand()’ is deprecated: use QRandomGenerator instead
#  633 |         f->b_fat = ( qrand() < ( RAND_MAX * .33 ) );
#      |                      ~~~~~^~
/usr/include/qt5/QtCore/qglobal.h:1282:80: note: declared here
# 1282 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X_5_15("use QRandomGenerator instead") int qrand();
#      |                                                                                ^~~~~
#  631|           flake *f = new flake;
#  632|           f->point.setX( qrand() * w );
#  633|->         f->b_fat = ( qrand() < ( RAND_MAX * .33 ) );
#  634|           flakes->append( f );
#  635|       }

Error: COMPILER_WARNING (CWE-477): [#def526]
vlc-3.0.21/modules/gui/qt/components/interface_widgets.cpp: scope_hint: In member function ‘virtual void EasterEggBackgroundWidget::paintEvent(QPaintEvent*)’
vlc-3.0.21/modules/gui/qt/components/interface_widgets.cpp:652:5: warning[-Wdeprecated-declarations]: ‘template<class T> class QLinkedList’ is deprecated: Use std::list instead
#  652 |     QLinkedList<flake *>::const_iterator it = flakes->constBegin();
#      |     ^~~~~~~~~~~
/usr/include/qt5/QtCore/qcontainerfwd.h:51:26: note: declared here
#   51 | template <class T> class QLinkedList;
#      |                          ^~~~~~~~~~~
#  650|       painter.setPen( QPen(Qt::white) );
#  651|   
#  652|->     QLinkedList<flake *>::const_iterator it = flakes->constBegin();
#  653|       while( it != flakes->constEnd() )
#  654|       {

Error: COMPILER_WARNING (CWE-477): [#def527]
vlc-3.0.21/modules/gui/qt/components/interface_widgets.hpp: scope_hint: At global scope
vlc-3.0.21/modules/gui/qt/components/interface_widgets.hpp:154:5: warning[-Wdeprecated-declarations]: ‘template<class T> class QLinkedList’ is deprecated: Use std::list instead
#  154 |     QLinkedList<flake *> *flakes;
#      |     ^~~~~~~~~~~
/usr/include/qt5/QtCore/qvarlengtharray.h:43: included_from: Included from here.
/usr/include/qt5/QtCore/qmetatype.h:48: included_from: Included from here.
/usr/include/qt5/QtCore/qobject.h:54: included_from: Included from here.
/usr/include/qt5/QtWidgets/qwidget.h:45: included_from: Included from here.
/usr/include/qt5/QtWidgets/QWidget:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/util/qvlcframe.hpp:27: included_from: Included from here.
/usr/include/qt5/QtCore/qcontainerfwd.h:51:26: note: declared here
#   51 | template <class T> class QLinkedList;
#      |                          ^~~~~~~~~~~
#  152|       };
#  153|       QTimer *timer;
#  154|->     QLinkedList<flake *> *flakes;
#  155|       int i_rate;
#  156|       int i_speed;

Error: COMPILER_WARNING (CWE-477): [#def528]
vlc-3.0.21/modules/gui/qt/components/playlist/playlist_model.cpp: scope_hint: In member function ‘virtual QMimeData* PLModel::mimeData(const QModelIndexList&) const’
vlc-3.0.21/modules/gui/qt/components/playlist/playlist_model.cpp:129:10: warning[-Wdeprecated-declarations]: ‘void qSort(RandomAccessIterator, RandomAccessIterator, LessThan) [with RandomAccessIterator = QList<QModelIndex>::iterator; LessThan = bool (*)(const QModelIndex&, const QModelIndex&)]’ is deprecated: Use std::sort
#  129 |     qSort(list.begin(), list.end(), modelIndexLessThen);
#      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qlist.h:43: included_from: Included from here.
/usr/include/qt5/QtCore/qurl.h:47: included_from: Included from here.
/usr/include/qt5/QtCore/QUrl:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/qt.hpp:44: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/playlist/playlist_model.cpp:30: included_from: Included from here.
/usr/include/qt5/QtCore/qalgorithms.h:181:46: note: declared here
#  181 | QT_DEPRECATED_X("Use std::sort") inline void qSort(RandomAccessIterator start, RandomAccessIterator end, LessThan lessThan)
#      |                                              ^~~~~
#  127|       }
#  128|   
#  129|->     qSort(list.begin(), list.end(), modelIndexLessThen);
#  130|   
#  131|       AbstractPLItem *item = NULL;

Error: COMPILER_WARNING (CWE-477): [#def529]
vlc-3.0.21/modules/gui/qt/components/playlist/selector.cpp: scope_hint: In member function ‘void PLSelector::setSource(QTreeWidgetItem*)’
vlc-3.0.21/modules/gui/qt/components/playlist/selector.cpp:361:55: warning[-Wdeprecated-declarations]: ‘bool playlist_IsServicesDiscoveryLoaded(playlist_t*, const char*)’ is deprecated
#  361 |         sd_loaded = playlist_IsServicesDiscoveryLoaded( THEPL, qtu( qs ) );
#      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
vlc-3.0.21/modules/gui/qt/qt.hpp:34: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/playlist/selector.cpp:29: included_from: Included from here.
vlc-3.0.21/include/vlc_playlist.h:357:14: note: declared here
#  357 | VLC_API bool playlist_IsServicesDiscoveryLoaded( playlist_t *,const char *) VLC_DEPRECATED;
#      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  359|       {
#  360|           QString qs = item->data( 0, NAME_ROLE ).toString();
#  361|->         sd_loaded = playlist_IsServicesDiscoveryLoaded( THEPL, qtu( qs ) );
#  362|           if( !sd_loaded )
#  363|           {

Error: COMPILER_WARNING (CWE-477): [#def530]
vlc-3.0.21/modules/gui/qt/components/playlist/selector.cpp: scope_hint: In member function ‘virtual void PLSelector::wheelEvent(QWheelEvent*)’
vlc-3.0.21/modules/gui/qt/components/playlist/selector.cpp:643:84: warning[-Wdeprecated-declarations]: ‘int QWheelEvent::delta() const’ is deprecated: Use angleDelta()
#  643 |         (verticalScrollBar()->value() != verticalScrollBar()->minimum() && e->delta() >= 0 ) ||
#      |                                                                            ~~~~~~~~^~
/usr/include/qt5/QtGui/QDragMoveEvent:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/playlist/selector.cpp:38: included_from: Included from here.
/usr/include/qt5/QtGui/qevent.h:219:16: note: declared here
#  219 |     inline int delta() const  { return qt4D; }
#      |                ^~~~~
#  641|   {
#  642|       if( verticalScrollBar()->isVisible() && (
#  643|->         (verticalScrollBar()->value() != verticalScrollBar()->minimum() && e->delta() >= 0 ) ||
#  644|           (verticalScrollBar()->value() != verticalScrollBar()->maximum() && e->delta() < 0 )
#  645|           ) )

Error: COMPILER_WARNING (CWE-477): [#def531]
vlc-3.0.21/modules/gui/qt/components/playlist/selector.cpp:644:84: warning[-Wdeprecated-declarations]: ‘int QWheelEvent::delta() const’ is deprecated: Use angleDelta()
#  644 |         (verticalScrollBar()->value() != verticalScrollBar()->maximum() && e->delta() < 0 )
#      |                                                                            ~~~~~~~~^~
/usr/include/qt5/QtGui/qevent.h:219:16: note: declared here
#  219 |     inline int delta() const  { return qt4D; }
#      |                ^~~~~
#  642|       if( verticalScrollBar()->isVisible() && (
#  643|           (verticalScrollBar()->value() != verticalScrollBar()->minimum() && e->delta() >= 0 ) ||
#  644|->         (verticalScrollBar()->value() != verticalScrollBar()->maximum() && e->delta() < 0 )
#  645|           ) )
#  646|           QApplication::sendEvent(verticalScrollBar(), e);

Error: COMPILER_WARNING (CWE-477): [#def532]
vlc-3.0.21/modules/gui/qt/components/playlist/standardpanel.cpp: scope_hint: In member function ‘virtual void StandardPLPanel::wheelEvent(QWheelEvent*)’
vlc-3.0.21/modules/gui/qt/components/playlist/standardpanel.cpp:540:32: warning[-Wdeprecated-declarations]: ‘int QWheelEvent::delta() const’ is deprecated: Use angleDelta()
#  540 |         int numSteps = e->delta() / 8 / 15;
#      |                        ~~~~~~~~^~
/usr/include/qt5/QtGui/QMouseEvent:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/playlist/playlist.hpp:41: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/playlist/standardpanel.hpp:32: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/playlist/standardpanel.cpp:29: included_from: Included from here.
/usr/include/qt5/QtGui/qevent.h:219:16: note: declared here
#  219 |     inline int delta() const  { return qt4D; }
#      |                ^~~~~
#  538|   {
#  539|       if( e->modifiers() & Qt::ControlModifier ) {
#  540|->         int numSteps = e->delta() / 8 / 15;
#  541|           if( numSteps > 0)
#  542|               increaseZoom();

Error: COMPILER_WARNING (CWE-477): [#def533]
vlc-3.0.21/modules/gui/qt/components/playlist/vlc_model.cpp: scope_hint: In static member function ‘static QPixmap VLCModel::getArtPixmap(const QModelIndex&, const QSize&)’
vlc-3.0.21/modules/gui/qt/components/playlist/vlc_model.cpp:86:28: warning[-Wdeprecated-declarations]: ‘static bool QPixmapCache::find(const QString&, QPixmap&)’ is deprecated: Use bool find(const QString &, QPixmap *) instead
#   86 |     if( !QPixmapCache::find( key, artPix ))
#      |          ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/qt5/QtGui/QPixmapCache:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/playlist/vlc_model.hpp:39: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/playlist/vlc_model.cpp:24: included_from: Included from here.
/usr/include/qt5/QtGui/qpixmapcache.h:81:17: note: declared here
#   81 |     static bool find(const QString &key, QPixmap &pixmap);
#      |                 ^~~~
#   84|       QString key = artUrl + QString("%1%2").arg(size.width()).arg(size.height());
#   85|   
#   86|->     if( !QPixmapCache::find( key, artPix ))
#   87|       {
#   88|           if( artUrl.isEmpty() == false )

Error: COMPILER_WARNING (CWE-477): [#def534]
vlc-3.0.21/modules/gui/qt/components/playlist/vlc_model.cpp:100:32: warning[-Wdeprecated-declarations]: ‘static bool QPixmapCache::find(const QString&, QPixmap&)’ is deprecated: Use bool find(const QString &, QPixmap *) instead
#  100 |         if( !QPixmapCache::find( key, artPix ) )
#      |              ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/qt5/QtGui/qpixmapcache.h:81:17: note: declared here
#   81 |     static bool find(const QString &key, QPixmap &pixmap);
#      |                 ^~~~
#   98|           }
#   99|           key = QString("noart%1%2").arg(size.width()).arg(size.height());
#  100|->         if( !QPixmapCache::find( key, artPix ) )
#  101|           {
#  102|               artPix = QPixmap( ":/noart" ).scaled( size,

Error: COMPILER_WARNING (CWE-477): [#def535]
vlc-3.0.21/modules/gui/qt/components/playlist/vlc_model.cpp: scope_hint: In member function ‘virtual void VLCModel::ensureArtRequested(const QModelIndex&)’
vlc-3.0.21/modules/gui/qt/components/playlist/vlc_model.cpp:209:32: warning[-Wdeprecated-declarations]: ‘QModelIndex QModelIndex::child(int, int) const’ is deprecated: Use QAbstractItemModel::index
#  209 |             child = index.child( row, COLUMN_COVER );
#      |                     ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/QModelIndex:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/playlist/vlc_model.hpp:38: included_from: Included from here.
/usr/include/qt5/QtCore/qabstractitemmodel.h:455:20: note: declared here
#  455 | inline QModelIndex QModelIndex::child(int arow, int acolumn) const
#      |                    ^~~~~~~~~~~
#  207|           for( int row = 0 ; row < nbnodes ; row++ )
#  208|           {
#  209|->             child = index.child( row, COLUMN_COVER );
#  210|               if ( child.isValid() && child.data().toString().isEmpty() )
#  211|                   THEMIM->getIM()->requestArtUpdate( getInputItem( child ), false );

Error: COMPILER_WARNING (CWE-477): [#def536]
vlc-3.0.21/modules/gui/qt/components/preferences_widgets.cpp: scope_hint: In member function ‘virtual void FileConfigControl::fillGrid(QGridLayout*, int)’
vlc-3.0.21/modules/gui/qt/components/preferences_widgets.cpp:279:53: warning[-Wdeprecated-declarations]: ‘constexpr QFlags<T>::QFlags(Zero) [with Enum = Qt::AlignmentFlag; Zero = int QFlags<Qt::AlignmentFlag>::Private::*]’ is deprecated: Use default constructor instead
#  279 |     l->addLayout( textAndButton, line, LAST_COLUMN, 0 );
#      |                                                     ^
/usr/include/qt5/QtCore/qglobal.h:1307: included_from: Included from here.
/usr/include/qt5/QtCore/qchar.h:43: included_from: Included from here.
/usr/include/qt5/QtCore/qstring.h:49: included_from: Included from here.
/usr/include/qt5/QtCore/QString:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/qt.hpp:43: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/preferences_widgets.hpp:33: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/preferences_widgets.cpp:34: included_from: Included from here.
/usr/include/qt5/QtCore/qflags.h:123:80: note: declared here
#  123 |     QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
#      |                                                                                ^~~~~~
#  277|       textAndButton->addWidget( text, 2 );
#  278|       textAndButton->addWidget( browse, 0 );
#  279|->     l->addLayout( textAndButton, line, LAST_COLUMN, 0 );
#  280|   }
#  281|   

Error: COMPILER_WARNING (CWE-477): [#def537]
vlc-3.0.21/modules/gui/qt/components/preferences_widgets.cpp: scope_hint: In member function ‘virtual void ModuleConfigControl::fillGrid(QGridLayout*, int)’
vlc-3.0.21/modules/gui/qt/components/preferences_widgets.cpp:527:45: warning[-Wdeprecated-declarations]: ‘constexpr QFlags<T>::QFlags(Zero) [with Enum = Qt::AlignmentFlag; Zero = int QFlags<Qt::AlignmentFlag>::Private::*]’ is deprecated: Use default constructor instead
#  527 |     l->addWidget( combo, line, LAST_COLUMN, 0 );
#      |                                             ^
/usr/include/qt5/QtCore/qflags.h:123:80: note: declared here
#  123 |     QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
#      |                                                                                ^~~~~~
#  525|   {
#  526|       l->addWidget( label, line, 0 );
#  527|->     l->addWidget( combo, line, LAST_COLUMN, 0 );
#  528|   }
#  529|   

Error: COMPILER_WARNING (CWE-477): [#def538]
vlc-3.0.21/modules/gui/qt/components/preferences_widgets.cpp: scope_hint: In member function ‘virtual void BoolConfigControl::fillGrid(QGridLayout*, int)’
vlc-3.0.21/modules/gui/qt/components/preferences_widgets.cpp:937:45: warning[-Wdeprecated-declarations]: ‘constexpr QFlags<T>::QFlags(Zero) [with Enum = Qt::AlignmentFlag; Zero = int QFlags<Qt::AlignmentFlag>::Private::*]’ is deprecated: Use default constructor instead
#  937 |     l->addWidget( checkbox, line, 0, 1, -1, 0 );
#      |                                             ^
/usr/include/qt5/QtCore/qflags.h:123:80: note: declared here
#  123 |     QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
#      |                                                                                ^~~~~~
#  935|   void BoolConfigControl::fillGrid( QGridLayout *l, int line )
#  936|   {
#  937|->     l->addWidget( checkbox, line, 0, 1, -1, 0 );
#  938|   }
#  939|   

Error: COMPILER_WARNING (CWE-477): [#def539]
vlc-3.0.21/modules/gui/qt/components/preferences_widgets.cpp: scope_hint: In member function ‘void KeySelectorControl::finish()’
vlc-3.0.21/modules/gui/qt/components/preferences_widgets.cpp:1237:36: warning[-Wdeprecated-declarations]: ‘QMap<K, V>::iterator QMap<K, V>::insertMulti(const Key&, const T&) [with Key = QString; T = QString]’ is deprecated: Use QMultiMap for maps storing multiple values with the same key.
# 1237 |             global_keys.insertMulti( qtr( p_config_item->psz_text ), qfu( p_config_item->value.psz ) );
#      |             ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qvariant.h:47: included_from: Included from here.
/usr/include/qt5/QtCore/qlocale.h:43: included_from: Included from here.
/usr/include/qt5/QtWidgets/qstyleoption.h:44: included_from: Included from here.
/usr/include/qt5/QtWidgets/qabstractitemdelegate.h:45: included_from: Included from here.
/usr/include/qt5/QtWidgets/qcombobox.h:45: included_from: Included from here.
/usr/include/qt5/QtWidgets/QComboBox:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/preferences_widgets.hpp:39: included_from: Included from here.
/usr/include/qt5/QtCore/qmap.h:1366:33: note: declared here
# 1366 | typename QMap<Key, T>::iterator QMap<Key, T>::insertMulti(const Key &key, const T &value)
#      |                                 ^~~~~~~~~~~~
# 1235|            && !EMPTY_STR( p_config_item->value.psz ) )
# 1236|           {
# 1237|->             global_keys.insertMulti( qtr( p_config_item->psz_text ), qfu( p_config_item->value.psz ) );
# 1238|           }
# 1239|       }

Error: COMPILER_WARNING (CWE-477): [#def540]
vlc-3.0.21/modules/gui/qt/components/simple_preferences.cpp:615:41: warning[-Wdeprecated-declarations]: ‘QStringList QString::split(QChar, SplitBehavior, Qt::CaseSensitivity) const’ is deprecated: Use split(QChar sep, Qt::SplitBehavior ...) variant instead
#  615 |             qs_filter = qfu( psz ).split( ':', QString::SkipEmptyParts );
/usr/include/qt5/QtCore/qstring.h:612:17: note: declared here
#  612 |     QStringList split(QChar sep, SplitBehavior behavior,
#      |                 ^~~~~
#  613|   
#  614|               char* psz = config_GetPsz( p_intf, "audio-filter" );
#  615|->             qs_filter = qfu( psz ).split( ':', QString::SkipEmptyParts );
#  616|               free( psz );
#  617|   

Error: COMPILER_WARNING (CWE-477): [#def541]
vlc-3.0.21/modules/gui/qt/components/simple_preferences.cpp: scope_hint: In constructor ‘SPrefsPanel::SPrefsPanel(intf_thread_t*, QWidget*, int)’
vlc-3.0.21/modules/gui/qt/components/simple_preferences.cpp:615:57: warning[-Wdeprecated-declarations]: ‘QString::SkipEmptyParts’ is deprecated
#  615 |             qs_filter = qfu( psz ).split( ':', QString::SkipEmptyParts );
#      |                                                         ^~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qhashfunctions.h:44: included_from: Included from here.
/usr/include/qt5/QtCore/qlist.h:47: included_from: Included from here.
/usr/include/qt5/QtCore/qvariant.h:45: included_from: Included from here.
/usr/include/qt5/QtCore/QVariant:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/ui/sprefs_input.h:13: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/simple_preferences.hpp:34: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/components/simple_preferences.cpp:30: included_from: Included from here.
/usr/include/qt5/QtCore/qstring.h:602:9: note: declared here
#  602 |         SkipEmptyParts Q_DECL_ENUMERATOR_DEPRECATED
#      |         ^~~~~~~~~~~~~~
#  613|   
#  614|               char* psz = config_GetPsz( p_intf, "audio-filter" );
#  615|->             qs_filter = qfu( psz ).split( ':', QString::SkipEmptyParts );
#  616|               free( psz );
#  617|   

Error: COMPILER_WARNING (CWE-477): [#def542]
vlc-3.0.21/modules/gui/qt/dialogs/bookmarks.cpp: scope_hint: In member function ‘void BookmarksDialog::update()’
vlc-3.0.21/modules/gui/qt/dialogs/bookmarks.cpp:149:33: warning[-Wdeprecated-declarations]: ‘QString& QString::sprintf(const char*, ...)’ is deprecated: Use asprintf(), arg() or QTextStream instead
#  149 |         row << QString().sprintf( "%02u:%02u:%06.3f", hours, minutes, seconds );
#      |                ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qobject.h:47: included_from: Included from here.
/usr/include/qt5/QtWidgets/qwidget.h:45: included_from: Included from here.
/usr/include/qt5/QtWidgets/QWidget:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/util/qvlcframe.hpp:27: included_from: Included from here.
/usr/include/qt5/QtCore/qstring.h:390:14: note: declared here
#  390 |     QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3);
#      |              ^~~~~~~
#  147|           row << QString( qfu( pp_bookmarks[i]->psz_name ) );
#  148|           row << qfu("-");
#  149|->         row << QString().sprintf( "%02u:%02u:%06.3f", hours, minutes, seconds );
#  150|   
#  151|           QTreeWidgetItem *item = new QTreeWidgetItem( bookmarksList, row );

Error: COMPILER_WARNING (CWE-477): [#def543]
vlc-3.0.21/modules/gui/qt/dialogs/bookmarks.cpp: scope_hint: In member function ‘void BookmarksDialog::del()’
vlc-3.0.21/modules/gui/qt/dialogs/bookmarks.cpp:189:14: warning[-Wdeprecated-declarations]: ‘void qSort(RandomAccessIterator, RandomAccessIterator) [with RandomAccessIterator = QList<QModelIndex>::iterator]’ is deprecated: Use std::sort
#  189 |         qSort( selected.begin(), selected.end() );
#      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qlist.h:43: included_from: Included from here.
/usr/include/qt5/QtCore/qobject.h:49: included_from: Included from here.
/usr/include/qt5/QtCore/qalgorithms.h:174:46: note: declared here
#  174 | QT_DEPRECATED_X("Use std::sort") inline void qSort(RandomAccessIterator start, RandomAccessIterator end)
#      |                                              ^~~~~
#  187|           /* Sort needed to make sure that selected elements are deleted in descending
#  188|              order, otherwise the indexes might change and wrong bookmarks are deleted. */
#  189|->         qSort( selected.begin(), selected.end() );
#  190|           QModelIndexList::Iterator it = selected.end();
#  191|           for( --it; it != selected.begin(); it-- )

Error: COMPILER_WARNING (CWE-477): [#def544]
vlc-3.0.21/modules/gui/qt/dialogs/bookmarks.cpp:245:44: warning[-Wdeprecated-declarations]: ‘QStringList QString::split(const QString&, SplitBehavior, Qt::CaseSensitivity) const’ is deprecated: Use split(const QString &sep, Qt::SplitBehavior ...) variant instead
#  245 |         fields = item->text( column ).split( ":", QString::SkipEmptyParts );
#      |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qstring.h:606:17: note: declared here
#  606 |     QStringList split(const QString &sep, SplitBehavior behavior,
#      |                 ^~~~~
#  243|       else if( column == 2 )
#  244|       {
#  245|->         fields = item->text( column ).split( ":", QString::SkipEmptyParts );
#  246|           if( fields.count() == 1 )
#  247|               p_seekpoint->i_time_offset = 1000000 * ( fields[0].toFloat() );

Error: COMPILER_WARNING (CWE-477): [#def545]
vlc-3.0.21/modules/gui/qt/dialogs/bookmarks.cpp: scope_hint: In member function ‘void BookmarksDialog::edit(QTreeWidgetItem*, int)’
vlc-3.0.21/modules/gui/qt/dialogs/bookmarks.cpp:245:60: warning[-Wdeprecated-declarations]: ‘QString::SkipEmptyParts’ is deprecated
#  245 |         fields = item->text( column ).split( ":", QString::SkipEmptyParts );
#      |                                                            ^~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qstring.h:602:9: note: declared here
#  602 |         SkipEmptyParts Q_DECL_ENUMERATOR_DEPRECATED
#      |         ^~~~~~~~~~~~~~
#  243|       else if( column == 2 )
#  244|       {
#  245|->         fields = item->text( column ).split( ":", QString::SkipEmptyParts );
#  246|           if( fields.count() == 1 )
#  247|               p_seekpoint->i_time_offset = 1000000 * ( fields[0].toFloat() );

Error: COMPILER_WARNING (CWE-477): [#def546]
vlc-3.0.21/modules/gui/qt/dialogs/epg.cpp: scope_hint: In member function ‘void EpgDialog::displayEvent(EPGItem*)’
vlc-3.0.21/modules/gui/qt/dialogs/epg.cpp:150:48: warning[-Wdeprecated-declarations]: ‘Qt::SystemLocaleLongDate’ is deprecated: Use QLocale
#  150 |         start = epgItem->start().toString( Qt::SystemLocaleLongDate );
#      |                                                ^~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qobjectdefs.h:48: included_from: Included from here.
/usr/include/qt5/QtGui/qwindowdefs.h:44: included_from: Included from here.
/usr/include/qt5/QtWidgets/qwidget.h:44: included_from: Included from here.
/usr/include/qt5/QtWidgets/QWidget:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/util/qvlcframe.hpp:27: included_from: Included from here.
/usr/include/qt5/QtCore/qnamespace.h:1292:9: note: declared here
# 1292 |         SystemLocaleLongDate Q_DECL_ENUMERATOR_DEPRECATED_X("Use QLocale"),
#      |         ^~~~~~~~~~~~~~~~~~~~
#  148|       QString start, end;
#  149|       if( epgItem->start().daysTo(now) != 0 )
#  150|->         start = epgItem->start().toString( Qt::SystemLocaleLongDate );
#  151|       else
#  152|           start = epgItem->start().time().toString( "hh:mm" );

Error: COMPILER_WARNING: [#def547]
vlc-3.0.21/modules/gui/qt/dialogs/firstrun.cpp:50:2: warning[-Wcpp]: #warning FIXME
#   50 | #warning FIXME
#      |  ^~~~~~~
#   48|       /* FIXME Should not save here. This will not work as expected if another
#   49|        * plugin overwrote items of its own. */
#   50|-> #warning FIXME
#   51|       /* We have to save here because the user may not launch Prefs */
#   52|       config_SaveConfigFile( p_intf );

Error: COMPILER_WARNING (CWE-477): [#def548]
vlc-3.0.21/modules/gui/qt/dialogs/messages.cpp: scope_hint: In static member function ‘static void MessagesDialog::MsgCallback(void*, int, const vlc_log_t*, const char*, __va_list_tag*)’
vlc-3.0.21/modules/gui/qt/dialogs/messages.cpp:343:43: warning[-Wdeprecated-declarations]: ‘T QBasicAtomicInteger<T>::load() const [with T = int]’ is deprecated: Use loadRelaxed
#  343 |     int verbosity = dialog->verbosity.load();
#      |                     ~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/qt5/QtCore/qatomic.h:46: included_from: Included from here.
/usr/include/qt5/QtCore/qglobal.h:1309: included_from: Included from here.
/usr/include/qt5/QtGui/qtguiglobal.h:43: included_from: Included from here.
/usr/include/qt5/QtWidgets/qtwidgetsglobal.h:43: included_from: Included from here.
/usr/include/qt5/QtWidgets/qplaintextedit.h:43: included_from: Included from here.
/usr/include/qt5/QtWidgets/QPlainTextEdit:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/dialogs/messages.cpp:27: included_from: Included from here.
/usr/include/qt5/QtCore/qbasicatomic.h:103:55: note: declared here
#  103 |     QT_DEPRECATED_VERSION_X_5_14("Use loadRelaxed") T load() const noexcept { return loadRelaxed(); }
#      |                                                       ^~~~
#  341|       MessagesDialog *dialog = (MessagesDialog *)self;
#  342|       char *str;
#  343|->     int verbosity = dialog->verbosity.load();
#  344|   
#  345|       if( verbosity < 0 || verbosity < (type - VLC_MSG_ERR)

Error: COMPILER_WARNING (CWE-563): [#def549]
vlc-3.0.21/modules/gui/qt/dialogs/plugins.cpp: scope_hint: In constructor ‘ExtensionTab::ExtensionTab(intf_thread_t*)’
vlc-3.0.21/modules/gui/qt/dialogs/plugins.cpp:265:24: warning[-Wunused-variable]: unused variable ‘EM’
#  265 |     ExtensionsManager *EM = ExtensionsManager::getInstance( p_intf );
#      |                        ^~
#  263|   
#  264|       // Reload button
#  265|->     ExtensionsManager *EM = ExtensionsManager::getInstance( p_intf );
#  266|       QPushButton *reload = new QPushButton( QIcon( ":/update.svg" ),
#  267|                                              qtr( "Reload extensions" ),

Error: COMPILER_WARNING (CWE-477): [#def550]
vlc-3.0.21/modules/gui/qt/dialogs/podcast_configuration.cpp: scope_hint: In member function ‘virtual void PodcastConfigDialog::accept()’
vlc-3.0.21/modules/gui/qt/dialogs/podcast_configuration.cpp:75:43: warning[-Wdeprecated-declarations]: ‘bool playlist_IsServicesDiscoveryLoaded(playlist_t*, const char*)’ is deprecated
#   75 |     if( playlist_IsServicesDiscoveryLoaded( THEPL, "podcast" ) )
#      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
vlc-3.0.21/modules/gui/qt/qt.hpp:34: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/util/qvlcframe.hpp:37: included_from: Included from here.
vlc-3.0.21/include/vlc_playlist.h:357:14: note: declared here
#  357 | VLC_API bool playlist_IsServicesDiscoveryLoaded( playlist_t *,const char *) VLC_DEPRECATED;
#      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   73|       config_PutPsz( p_intf, "podcast-urls", qtu( urls ) );
#   74|   
#   75|->     if( playlist_IsServicesDiscoveryLoaded( THEPL, "podcast" ) )
#   76|       {
#   77|           var_SetString( THEPL, "podcast-urls", qtu( urls ) );

Error: COMPILER_WARNING (CWE-477): [#def551]
vlc-3.0.21/modules/gui/qt/dialogs/toolbar.cpp: scope_hint: In member function ‘virtual void PreviewWidget::paintEvent(QPaintEvent*)’
vlc-3.0.21/modules/gui/qt/dialogs/toolbar.cpp:336:72: warning[-Wdeprecated-declarations]: ‘const QBrush& QPalette::background() const’ is deprecated: Use QPalette::window() instead
#  336 |                 eraser.fillRect( item->geometry(), palette().background() );
#      |                                                    ~~~~~~~~~~~~~~~~~~~~^~
/usr/include/qt5/QtWidgets/qwidget.h:48: included_from: Included from here.
/usr/include/qt5/QtGui/qpalette.h:149:26: note: declared here
#  149 |     inline const QBrush &background() const { return window(); }
#      |                          ^~~~~~~~~~
#  334|               {
#  335|                   QPainter eraser( &pixmaps[i] );
#  336|->                 eraser.fillRect( item->geometry(), palette().background() );
#  337|                   eraser.end();
#  338|               }

Error: COMPILER_WARNING (CWE-477): [#def552]
vlc-3.0.21/modules/gui/qt/dialogs/vlm.cpp:695:49: warning[-Wdeprecated-declarations]: ‘QStringList QString::split(const QString&, SplitBehavior, Qt::CaseSensitivity) const’ is deprecated: Use split(const QString &sep, Qt::SplitBehavior ...) variant instead
#  695 |         QStringList options = inputOptions.split( " :", QString::SkipEmptyParts );
#      |                               ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qstring.h:606:17: note: declared here
#  606 |     QStringList split(const QString &sep, SplitBehavior behavior,
#      |                 ^~~~~
#  693|           vlm_MessageDelete( message );
#  694|   
#  695|->         QStringList options = inputOptions.split( " :", QString::SkipEmptyParts );
#  696|           for( int i = 0; i < options.count(); i++ )
#  697|           {

Error: COMPILER_WARNING (CWE-477): [#def553]
vlc-3.0.21/modules/gui/qt/dialogs/vlm.cpp: scope_hint: In member function ‘void VLMWrapper::EditBroadcast(const QString&, const QString&, const QString&, const QString&, bool, bool)’
vlc-3.0.21/modules/gui/qt/dialogs/vlm.cpp:695:66: warning[-Wdeprecated-declarations]: ‘QString::SkipEmptyParts’ is deprecated
#  695 |         QStringList options = inputOptions.split( " :", QString::SkipEmptyParts );
#      |                                                                  ^~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qhashfunctions.h:44: included_from: Included from here.
/usr/include/qt5/QtCore/qlist.h:47: included_from: Included from here.
/usr/include/qt5/QtCore/qvariant.h:45: included_from: Included from here.
/usr/include/qt5/QtCore/QVariant:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/ui/vlm.h:13: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/dialogs/vlm.hpp:34: included_from: Included from here.
/usr/include/qt5/QtCore/qstring.h:602:9: note: declared here
#  602 |         SkipEmptyParts Q_DECL_ENUMERATOR_DEPRECATED
#      |         ^~~~~~~~~~~~~~
#  693|           vlm_MessageDelete( message );
#  694|   
#  695|->         QStringList options = inputOptions.split( " :", QString::SkipEmptyParts );
#  696|           for( int i = 0; i < options.count(); i++ )
#  697|           {

Error: COMPILER_WARNING (CWE-477): [#def554]
vlc-3.0.21/modules/gui/qt/dialogs/vlm.cpp:782:49: warning[-Wdeprecated-declarations]: ‘QStringList QString::split(const QString&, SplitBehavior, Qt::CaseSensitivity) const’ is deprecated: Use split(const QString &sep, Qt::SplitBehavior ...) variant instead
#  782 |         QStringList options = inputOptions.split( " :", QString::SkipEmptyParts );
#      |                               ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qstring.h:606:17: note: declared here
#  606 |     QStringList split(const QString &sep, SplitBehavior behavior,
#      |                 ^~~~~
#  780|           vlm_MessageDelete( message );
#  781|   
#  782|->         QStringList options = inputOptions.split( " :", QString::SkipEmptyParts );
#  783|           for( int i = 0; i < options.count(); i++ )
#  784|           {

Error: COMPILER_WARNING (CWE-477): [#def555]
vlc-3.0.21/modules/gui/qt/dialogs/vlm.cpp: scope_hint: In member function ‘void VLMWrapper::EditVod(const QString&, const QString&, const QString&, const QString&, bool, const QString&)’
vlc-3.0.21/modules/gui/qt/dialogs/vlm.cpp:782:66: warning[-Wdeprecated-declarations]: ‘QString::SkipEmptyParts’ is deprecated
#  782 |         QStringList options = inputOptions.split( " :", QString::SkipEmptyParts );
#      |                                                                  ^~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qstring.h:602:9: note: declared here
#  602 |         SkipEmptyParts Q_DECL_ENUMERATOR_DEPRECATED
#      |         ^~~~~~~~~~~~~~
#  780|           vlm_MessageDelete( message );
#  781|   
#  782|->         QStringList options = inputOptions.split( " :", QString::SkipEmptyParts );
#  783|           for( int i = 0; i < options.count(); i++ )
#  784|           {

Error: COMPILER_WARNING (CWE-477): [#def556]
vlc-3.0.21/modules/gui/qt/dialogs/vlm.cpp:841:49: warning[-Wdeprecated-declarations]: ‘QStringList QString::split(const QString&, SplitBehavior, Qt::CaseSensitivity) const’ is deprecated: Use split(const QString &sep, Qt::SplitBehavior ...) variant instead
#  841 |         QStringList options = inputOptions.split( " :", QString::SkipEmptyParts );
#      |                               ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qstring.h:606:17: note: declared here
#  606 |     QStringList split(const QString &sep, SplitBehavior behavior,
#      |                 ^~~~~
#  839|           vlm_MessageDelete( message );
#  840|   
#  841|->         QStringList options = inputOptions.split( " :", QString::SkipEmptyParts );
#  842|           for( int i = 0; i < options.count(); i++ )
#  843|           {

Error: COMPILER_WARNING (CWE-477): [#def557]
vlc-3.0.21/modules/gui/qt/dialogs/vlm.cpp: scope_hint: In member function ‘void VLMWrapper::EditSchedule(const QString&, const QString&, const QString&, const QString&, QDateTime, QDateTime, int, int, bool, const QString&)’
vlc-3.0.21/modules/gui/qt/dialogs/vlm.cpp:841:66: warning[-Wdeprecated-declarations]: ‘QString::SkipEmptyParts’ is deprecated
#  841 |         QStringList options = inputOptions.split( " :", QString::SkipEmptyParts );
#      |                                                                  ^~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qstring.h:602:9: note: declared here
#  602 |         SkipEmptyParts Q_DECL_ENUMERATOR_DEPRECATED
#      |         ^~~~~~~~~~~~~~
#  839|           vlm_MessageDelete( message );
#  840|   
#  841|->         QStringList options = inputOptions.split( " :", QString::SkipEmptyParts );
#  842|           for( int i = 0; i < options.count(); i++ )
#  843|           {

Error: COMPILER_WARNING (CWE-477): [#def558]
vlc-3.0.21/modules/gui/qt/main_interface.cpp: scope_hint: In member function ‘void MainInterface::setVideoSize(unsigned int, unsigned int)’
vlc-3.0.21/modules/gui/qt/main_interface.cpp:815:70: warning[-Wdeprecated-declarations]: ‘const QRect QDesktopWidget::availableGeometry(int) const’ is deprecated: Use QGuiApplication::screens()
#  815 |             QRect screen = QApplication::desktop()->availableGeometry();
#      |                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/qt5/QtWidgets/qdesktopwidget.h:88:67: note: declared here
#   88 |     QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect availableGeometry(int screen = -1) const;
#      |                                                                   ^~~~~~~~~~~~~~~~~
#  813|           if (b_autoresize)
#  814|           {
#  815|->             QRect screen = QApplication::desktop()->availableGeometry();
#  816|   #if HAS_QT56
#  817|               float factor = videoWidget->devicePixelRatioF();

Error: COMPILER_WARNING (CWE-477): [#def559]
vlc-3.0.21/modules/gui/qt/main_interface.cpp: scope_hint: In member function ‘virtual void MainInterface::setVideoFullScreen(bool)’
vlc-3.0.21/modules/gui/qt/main_interface.cpp:867:80: warning[-Wdeprecated-declarations]: ‘int QDesktopWidget::screenCount() const’ is deprecated: Use QGuiApplication::screens()
#  867 |         if ( numscreen >= 0 && numscreen < QApplication::desktop()->screenCount() )
#      |                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/qt5/QtWidgets/qdesktopwidget.h:118:12: note: declared here
#  118 | inline int QDesktopWidget::screenCount() const
#      |            ^~~~~~~~~~~~~~
#  865|           int numscreen = var_InheritInteger( p_intf, "qt-fullscreen-screennumber" );
#  866|   
#  867|->         if ( numscreen >= 0 && numscreen < QApplication::desktop()->screenCount() )
#  868|           {
#  869|               if( fullscreenControls )

Error: COMPILER_WARNING (CWE-477): [#def560]
vlc-3.0.21/modules/gui/qt/main_interface.cpp:872:70: warning[-Wdeprecated-declarations]: ‘const QRect QDesktopWidget::screenGeometry(int) const’ is deprecated: Use QGuiApplication::screens()
#  872 |             QRect screenres = QApplication::desktop()->screenGeometry( numscreen );
#      |                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/usr/include/qt5/QtWidgets/qdesktopwidget.h:79:67: note: declared here
#   79 |     QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect screenGeometry(int screen = -1) const;
#      |                                                                   ^~~~~~~~~~~~~~
#  870|                   fullscreenControls->setTargetScreen( numscreen );
#  871|   
#  872|->             QRect screenres = QApplication::desktop()->screenGeometry( numscreen );
#  873|               lastWinScreen = windowHandle()->screen();
#  874|   #ifdef QT5_HAS_WAYLAND

Error: COMPILER_WARNING (CWE-563): [#def561]
vlc-3.0.21/modules/gui/qt/menus.cpp: scope_hint: In static member function ‘static void VLCMenuBar::UpdateItem(intf_thread_t*, QMenu*, const char*, vlc_object_t*, bool)’
vlc-3.0.21/modules/gui/qt/menus.cpp:1247:45: warning[-Wunused-parameter]: unused parameter ‘p_intf’
# 1247 | void VLCMenuBar::UpdateItem( intf_thread_t *p_intf, QMenu *menu,
#      |                              ~~~~~~~~~~~~~~~^~~~~~
# 1245|   #define TEXT_OR_VAR qfue ( text.psz_string ? text.psz_string : psz_var )
# 1246|   
# 1247|-> void VLCMenuBar::UpdateItem( intf_thread_t *p_intf, QMenu *menu,
# 1248|           const char *psz_var, vlc_object_t *p_object, bool b_submenu )
# 1249|   {

Error: COMPILER_WARNING (CWE-477): [#def562]
vlc-3.0.21/modules/gui/qt/menus.cpp: scope_hint: In static member function ‘static int VLCMenuBar::CreateChoicesMenu(QMenu*, const char*, vlc_object_t*)’
vlc-3.0.21/modules/gui/qt/menus.cpp:1441:38: warning[-Wdeprecated-declarations]: ‘QString& QString::sprintf(const char*, ...)’ is deprecated: Use asprintf(), arg() or QTextStream instead
# 1441 |                 else menutext.sprintf( "%.2f", CURVAL.f_float );
#      |                      ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/QString:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/qt.hpp:43: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/menus.hpp:28: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/menus.cpp:39: included_from: Included from here.
/usr/include/qt5/QtCore/qstring.h:390:14: note: declared here
#  390 |     QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3);
#      |              ^~~~~~~
# 1439|                   var_Get( p_object, psz_var, &val );
# 1440|                   if( CURTEXT ) menutext = qfue( CURTEXT );
# 1441|->                 else menutext.sprintf( "%.2f", CURVAL.f_float );
# 1442|                   CreateAndConnect( submenu, psz_var, menutext, "", RADIO_OR_COMMAND,
# 1443|                           p_object, CURVAL, i_type,

Error: COMPILER_WARNING (CWE-457): [#def563]
vlc-3.0.21/modules/gui/qt/qt.cpp: scope_hint: In function ‘WindowOpen(vout_window_t*, vout_window_cfg_t const*)’
vlc-3.0.21/modules/gui/qt/qt.cpp:791:24: warning[-Wmaybe-uninitialized]: ‘xid’ may be used uninitialized
#  791 |         XReparentWindow(sys->dpy, xid, p_wnd->handle.xid, 0, 0);
#      |         ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vlc-3.0.21/modules/gui/qt/qt.cpp:756:12: note: ‘xid’ was declared here
#  756 |     Window xid;
#      |            ^~~
#  789|           QMutexLocker locker2(&sys->lock);
#  790|   
#  791|->         XReparentWindow(sys->dpy, xid, p_wnd->handle.xid, 0, 0);
#  792|           XMapWindow(sys->dpy, xid);
#  793|           XSync(sys->dpy, True);

Error: COMPILER_WARNING (CWE-477): [#def564]
vlc-3.0.21/modules/gui/qt/util/input_slider.cpp: scope_hint: In member function ‘virtual void SeekSlider::mouseReleaseEvent(QMouseEvent*)’
vlc-3.0.21/modules/gui/qt/util/input_slider.cpp:284:70: warning[-Wdeprecated-declarations]: ‘Qt::MidButton’ is deprecated: MidButton is deprecated. Use MiddleButton instead
#  284 |     if ( event->button() != Qt::LeftButton && event->button() != Qt::MidButton )
#      |                                                                      ^~~~~~~~~
/usr/include/qt5/QtCore/qbytearray.h:45: included_from: Included from here.
/usr/include/qt5/QtCore/qstring.h:50: included_from: Included from here.
/usr/include/qt5/QtCore/QString:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/qt.hpp:43: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/util/input_slider.cpp:30: included_from: Included from here.
/usr/include/qt5/QtCore/qnamespace.h:138:9: note: declared here
#  138 |         MidButton Q_DECL_ENUMERATOR_DEPRECATED_X("MidButton is deprecated. Use MiddleButton instead") = MiddleButton,
#      |         ^~~~~~~~~
#  282|   void SeekSlider::mouseReleaseEvent( QMouseEvent *event )
#  283|   {
#  284|->     if ( event->button() != Qt::LeftButton && event->button() != Qt::MidButton )
#  285|       {
#  286|           QSlider::mouseReleaseEvent( event );

Error: COMPILER_WARNING (CWE-477): [#def565]
vlc-3.0.21/modules/gui/qt/util/input_slider.cpp: scope_hint: In member function ‘virtual void SeekSlider::mousePressEvent(QMouseEvent*)’
vlc-3.0.21/modules/gui/qt/util/input_slider.cpp:297:72: warning[-Wdeprecated-declarations]: ‘Qt::MidButton’ is deprecated: MidButton is deprecated. Use MiddleButton instead
#  297 |          ( event->button() != Qt::LeftButton && event->button() != Qt::MidButton )
#      |                                                                        ^~~~~~~~~
/usr/include/qt5/QtCore/qnamespace.h:138:9: note: declared here
#  138 |         MidButton Q_DECL_ENUMERATOR_DEPRECATED_X("MidButton is deprecated. Use MiddleButton instead") = MiddleButton,
#      |         ^~~~~~~~~
#  295|       /* Right-click */
#  296|       if ( !isEnabled() ||
#  297|->          ( event->button() != Qt::LeftButton && event->button() != Qt::MidButton )
#  298|          )
#  299|       {

Error: COMPILER_WARNING (CWE-477): [#def566]
vlc-3.0.21/modules/gui/qt/util/input_slider.cpp: scope_hint: In member function ‘virtual void SeekSlider::mouseMoveEvent(QMouseEvent*)’
vlc-3.0.21/modules/gui/qt/util/input_slider.cpp:351:56: warning[-Wdeprecated-declarations]: ‘Qt::MidButton’ is deprecated: MidButton is deprecated. Use MiddleButton instead
#  351 |     if ( ! ( event->buttons() & ( Qt::LeftButton | Qt::MidButton ) ) )
#      |                                                        ^~~~~~~~~
/usr/include/qt5/QtCore/qnamespace.h:138:9: note: declared here
#  138 |         MidButton Q_DECL_ENUMERATOR_DEPRECATED_X("MidButton is deprecated. Use MiddleButton instead") = MiddleButton,
#      |         ^~~~~~~~~
#  349|   void SeekSlider::mouseMoveEvent( QMouseEvent *event )
#  350|   {
#  351|->     if ( ! ( event->buttons() & ( Qt::LeftButton | Qt::MidButton ) ) )
#  352|       {
#  353|           /* Handle button release when mouserelease has been hijacked by popup */

Error: COMPILER_WARNING (CWE-477): [#def567]
vlc-3.0.21/modules/gui/qt/util/input_slider.cpp: scope_hint: In member function ‘virtual void SeekSlider::wheelEvent(QWheelEvent*)’
vlc-3.0.21/modules/gui/qt/util/input_slider.cpp:406:28: warning[-Wdeprecated-declarations]: ‘int QWheelEvent::delta() const’ is deprecated: Use angleDelta()
#  406 |         if ( ( event->delta() < 0 && i_mode != 3 ) || ( event->delta() > 0 && i_mode == 3 ) )
#      |                ~~~~~~~~~~~~^~
/usr/include/qt5/QtGui/QPaintEvent:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/util/input_slider.cpp:38: included_from: Included from here.
/usr/include/qt5/QtGui/qevent.h:219:16: note: declared here
#  219 |     inline int delta() const  { return qt4D; }
#      |                ^~~~~
#  404|           vlc_tick_t i_size = var_InheritInteger( p_intf->obj.libvlc, "short-jump-size" );
#  405|           int i_mode = var_InheritInteger( p_intf->obj.libvlc, "hotkeys-x-wheel-mode" );
#  406|->         if ( ( event->delta() < 0 && i_mode != 3 ) || ( event->delta() > 0 && i_mode == 3 ) )
#  407|               i_size = - i_size;
#  408|           float posOffset = static_cast<float>( i_size ) / static_cast<float>( inputLength );

Error: COMPILER_WARNING (CWE-477): [#def568]
vlc-3.0.21/modules/gui/qt/util/input_slider.cpp:406:69: warning[-Wdeprecated-declarations]: ‘int QWheelEvent::delta() const’ is deprecated: Use angleDelta()
#  406 |         if ( ( event->delta() < 0 && i_mode != 3 ) || ( event->delta() > 0 && i_mode == 3 ) )
#      |                                                         ~~~~~~~~~~~~^~
/usr/include/qt5/QtGui/qevent.h:219:16: note: declared here
#  219 |     inline int delta() const  { return qt4D; }
#      |                ^~~~~
#  404|           vlc_tick_t i_size = var_InheritInteger( p_intf->obj.libvlc, "short-jump-size" );
#  405|           int i_mode = var_InheritInteger( p_intf->obj.libvlc, "hotkeys-x-wheel-mode" );
#  406|->         if ( ( event->delta() < 0 && i_mode != 3 ) || ( event->delta() > 0 && i_mode == 3 ) )
#  407|               i_size = - i_size;
#  408|           float posOffset = static_cast<float>( i_size ) / static_cast<float>( inputLength );

Error: COMPILER_WARNING (CWE-691): [#def569]
vlc-3.0.21/modules/gui/qt/util/input_slider.cpp: scope_hint: In member function ‘virtual void SeekSlider::paintEvent(QPaintEvent*)’
vlc-3.0.21/modules/gui/qt/util/input_slider.cpp:466:12: warning[-Wdangling-else]: suggest explicit braces to avoid ambiguous ‘else’
#  466 |         if ( chapters ) foreach( const SeekPoint &point, chapters->getPoints() )
#      |            ^
#  464|           option.maximum = maximum();
#  465|           option.minimum = minimum();
#  466|->         if ( chapters ) foreach( const SeekPoint &point, chapters->getPoints() )
#  467|               option.points << point.time;
#  468|           QPainter painter( this );

Error: COMPILER_WARNING (CWE-477): [#def570]
vlc-3.0.21/modules/gui/qt/util/input_slider.cpp: scope_hint: In member function ‘virtual void SoundSlider::wheelEvent(QWheelEvent*)’
vlc-3.0.21/modules/gui/qt/util/input_slider.cpp:677:42: warning[-Wdeprecated-declarations]: ‘int QWheelEvent::delta() const’ is deprecated: Use angleDelta()
#  677 |     int newvalue = value() + event->delta() / ( 8 * 15 ) * f_step;
#      |                              ~~~~~~~~~~~~^~
/usr/include/qt5/QtGui/qevent.h:219:16: note: declared here
#  219 |     inline int delta() const  { return qt4D; }
#      |                ^~~~~
#  675|   void SoundSlider::wheelEvent( QWheelEvent *event )
#  676|   {
#  677|->     int newvalue = value() + event->delta() / ( 8 * 15 ) * f_step;
#  678|       setValue( __MIN( __MAX( minimum(), newvalue ), maximum() ) );
#  679|   

Error: COMPILER_WARNING (CWE-477): [#def571]
vlc-3.0.21/modules/gui/qt/util/pictureflow.cpp: scope_hint: In member function ‘virtual void PictureFlow::wheelEvent(QWheelEvent*)’
vlc-3.0.21/modules/gui/qt/util/pictureflow.cpp:866:27: warning[-Wdeprecated-declarations]: ‘Qt::Orientation QWheelEvent::orientation() const’ is deprecated: Use angleDelta()
#  866 |     if (event->orientation() == Qt::Horizontal)
#      |         ~~~~~~~~~~~~~~~~~~^~
/usr/include/qt5/QtGui/QKeyEvent:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/util/pictureflow.hpp:39: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/util/pictureflow.cpp:32: included_from: Included from here.
/usr/include/qt5/QtGui/qevent.h:222:28: note: declared here
#  222 |     inline Qt::Orientation orientation() const { return qt4O; }
#      |                            ^~~~~~~~~~~
#  864|   void PictureFlow::wheelEvent(QWheelEvent * event)
#  865|   {
#  866|->     if (event->orientation() == Qt::Horizontal)
#  867|       {
#  868|           event->ignore();

Error: COMPILER_WARNING (CWE-477): [#def572]
vlc-3.0.21/modules/gui/qt/util/pictureflow.cpp:872:39: warning[-Wdeprecated-declarations]: ‘int QWheelEvent::delta() const’ is deprecated: Use angleDelta()
#  872 |         int numSteps = -((event->delta() / 8) / 15);
#      |                           ~~~~~~~~~~~~^~
/usr/include/qt5/QtGui/qevent.h:219:16: note: declared here
#  219 |     inline int delta() const  { return qt4D; }
#      |                ^~~~~
#  870|       else
#  871|       {
#  872|->         int numSteps = -((event->delta() / 8) / 15);
#  873|   
#  874|           if (numSteps > 0)

Error: COMPILER_WARNING (CWE-477): [#def573]
vlc-3.0.21/modules/gui/qt/dialogs/open.hpp:34: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/dialogs_provider.hpp:36: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/recents.cpp:27: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/util/qvlcframe.hpp: scope_hint: In static member function ‘static bool QVLCTools::restoreWidgetPosition(QSettings*, QWidget*, QSize, QPoint)’
vlc-3.0.21/modules/gui/qt/util/qvlcframe.hpp:78:140: warning[-Wdeprecated-declarations]: ‘const QRect QDesktopWidget::availableGeometry(int) const’ is deprecated: Use QGuiApplication::screens()
#   78 |                widget->setGeometry(QStyle::alignedRect(Qt::LeftToRight, Qt::AlignCenter, widget->size(), qApp->desktop()->availableGeometry()));
/usr/include/qt5/QtWidgets/QDesktopWidget:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/util/qvlcframe.hpp:33: included_from: Included from here.
/usr/include/qt5/QtWidgets/qdesktopwidget.h:88:67: note: declared here
#   88 |     QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect availableGeometry(int screen = -1) const;
#      |                                                                   ^~~~~~~~~~~~~~~~~
#   76|   
#   77|               if(defPos.x() == 0 && defPos.y()==0)
#   78|->                widget->setGeometry(QStyle::alignedRect(Qt::LeftToRight, Qt::AlignCenter, widget->size(), qApp->desktop()->availableGeometry()));
#   79|               return true;
#   80|             }

Error: COMPILER_WARNING (CWE-477): [#def574]
vlc-3.0.21/modules/gui/qt/util/timetooltip.cpp: scope_hint: In member function ‘void TimeTooltip::adjustPosition()’
vlc-3.0.21/modules/gui/qt/util/timetooltip.cpp:79:59: warning[-Wdeprecated-declarations]: ‘const QRect QDesktopWidget::screenGeometry(const QPoint&) const’ is deprecated: Use QGuiApplication::screenAt()
#   79 |     QRect screen = QApplication::desktop()->screenGeometry( mTarget );
#      |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/usr/include/qt5/QtWidgets/QDesktopWidget:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/util/timetooltip.cpp:28: included_from: Included from here.
/usr/include/qt5/QtWidgets/qdesktopwidget.h:80:68: note: declared here
#   80 |     QT_DEPRECATED_X("Use QGuiApplication::screenAt()") const QRect screenGeometry(const QPoint &point) const
#      |                                                                    ^~~~~~~~~~~~~~
#   77|   
#   78|       // Keep the tooltip on the same screen if possible
#   79|->     QRect screen = QApplication::desktop()->screenGeometry( mTarget );
#   80|       position.setX( qMax( screen.left(), qMin( position.x(),
#   81|           screen.left() + screen.width() - size.width() ) ) );

Error: COMPILER_WARNING (CWE-477): [#def575]
vlc-3.0.21/modules/gui/qt/util/timetooltip.cpp: scope_hint: In member function ‘virtual void TimeTooltip::paintEvent(QPaintEvent*)’
vlc-3.0.21/modules/gui/qt/util/timetooltip.cpp:145:33: warning[-Wdeprecated-declarations]: ‘QPainter::HighQualityAntialiasing’ is deprecated: Use Antialiasing instead
#  145 |     p.setRenderHints( QPainter::HighQualityAntialiasing | QPainter::TextAntialiasing );
#      |                                 ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtGui/QPainter:1: included_from: Included from here.
vlc-3.0.21/modules/gui/qt/util/timetooltip.cpp:25: included_from: Included from here.
/usr/include/qt5/QtGui/qpainter.h:92:9: note: declared here
#   92 |         HighQualityAntialiasing Q_DECL_ENUMERATOR_DEPRECATED_X("Use Antialiasing instead") = 0x08,
#      |         ^~~~~~~~~~~~~~~~~~~~~~~
#  143|   {
#  144|       QPainter p( this );
#  145|->     p.setRenderHints( QPainter::HighQualityAntialiasing | QPainter::TextAntialiasing );
#  146|   
#  147|       p.setPen( Qt::black );

Error: CPPCHECK_WARNING (CWE-476): [#def576]
vlc-3.0.21/modules/gui/skins2/src/dialogs.cpp:195: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p_arg
#  193|                                       calloc( 1, sizeof( intf_dialog_args_t ) );
#  194|   
#  195|->         p_arg->psz_title = strdup( rTitle.c_str() );
#  196|           p_arg->psz_extensions = strdup( rExtensions.c_str() );
#  197|   

Error: CPPCHECK_WARNING (CWE-476): [#def577]
vlc-3.0.21/modules/gui/skins2/src/dialogs.cpp:196: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p_arg
#  194|   
#  195|           p_arg->psz_title = strdup( rTitle.c_str() );
#  196|->         p_arg->psz_extensions = strdup( rExtensions.c_str() );
#  197|   
#  198|           p_arg->b_save = flags & kSAVE;

Error: CPPCHECK_WARNING (CWE-476): [#def578]
vlc-3.0.21/modules/gui/skins2/src/dialogs.cpp:198: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p_arg
#  196|           p_arg->psz_extensions = strdup( rExtensions.c_str() );
#  197|   
#  198|->         p_arg->b_save = flags & kSAVE;
#  199|           p_arg->b_multiple = flags & kMULTIPLE;
#  200|   

Error: CPPCHECK_WARNING (CWE-476): [#def579]
vlc-3.0.21/modules/gui/skins2/src/dialogs.cpp:199: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p_arg
#  197|   
#  198|           p_arg->b_save = flags & kSAVE;
#  199|->         p_arg->b_multiple = flags & kMULTIPLE;
#  200|   
#  201|           p_arg->p_arg = getIntf();

Error: CPPCHECK_WARNING (CWE-476): [#def580]
vlc-3.0.21/modules/gui/skins2/src/dialogs.cpp:201: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p_arg
#  199|           p_arg->b_multiple = flags & kMULTIPLE;
#  200|   
#  201|->         p_arg->p_arg = getIntf();
#  202|           p_arg->pf_callback = callback;
#  203|   

Error: CPPCHECK_WARNING (CWE-476): [#def581]
vlc-3.0.21/modules/gui/skins2/src/dialogs.cpp:202: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p_arg
#  200|   
#  201|           p_arg->p_arg = getIntf();
#  202|->         p_arg->pf_callback = callback;
#  203|   
#  204|           m_pProvider->pf_show_dialog( m_pProvider, INTF_DIALOG_FILE_GENERIC,

Error: CPPCHECK_WARNING (CWE-476): [#def582]
vlc-3.0.21/modules/gui/skins2/src/dialogs.cpp:347: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p_arg
#  345|                                       calloc( 1, sizeof(intf_dialog_args_t) );
#  346|   
#  347|->         p_arg->p_dialog = p_dialog;
#  348|           p_arg->p_intf = getIntf();
#  349|   

Error: CPPCHECK_WARNING (CWE-476): [#def583]
vlc-3.0.21/modules/gui/skins2/src/dialogs.cpp:348: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p_arg
#  346|   
#  347|           p_arg->p_dialog = p_dialog;
#  348|->         p_arg->p_intf = getIntf();
#  349|   
#  350|           m_pProvider->pf_show_dialog( m_pProvider, INTF_DIALOG_INTERACTION,

Error: CPPCHECK_WARNING (CWE-476): [#def584]
vlc-3.0.21/modules/gui/skins2/src/theme_loader.cpp:60: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
#   58|   {
#   59|       char *p, *buffer = strdup( newdir );
#   60|->     int  len = strlen( buffer );
#   61|   
#   62|       if( len <= 0 )

Error: CPPCHECK_WARNING (CWE-476): [#def585]
vlc-3.0.21/modules/gui/skins2/src/theme_loader.cpp:68: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
#   66|       }
#   67|   
#   68|->     if( buffer[len-1] == '/' )
#   69|       {
#   70|           buffer[len-1] = '\0';

Error: COMPILER_WARNING: [#def586]
vlc-3.0.21/include/vlc_common.h:1034: included_from: Included from here.
vlc-3.0.21/modules/gui/skins2/src/skin_common.hpp:32: included_from: Included from here.
vlc-3.0.21/modules/gui/skins2/utils/ustring.hpp:28: included_from: Included from here.
vlc-3.0.21/modules/gui/skins2/utils/ustring.cpp:26: included_from: Included from here.
vlc-3.0.21/modules/gui/skins2/utils/ustring.cpp: scope_hint: In member function ‘UString::UString(intf_thread_t*, char const*)’
vlc-3.0.21/modules/gui/skins2/utils/ustring.cpp:74:25: warning[-Wformat-overflow=]: ‘%s’ directive argument is null
#   74 |         msg_Err( pIntf, "invalid UTF8 string: %s", pString );
#      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
vlc-3.0.21/modules/gui/skins2/utils/ustring.cpp:74:47: note: format string is defined here
#   74 |         msg_Err( pIntf, "invalid UTF8 string: %s", pString );
#      |                                               ^~
#   72|       if( !pCur || *pCur )
#   73|       {
#   74|->         msg_Err( pIntf, "invalid UTF8 string: %s", pString );
#   75|           m_length = 0;
#   76|           m_pString = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def587]
vlc-3.0.21/modules/hw/vaapi/vlc_vaapi.c:590:12: warning[-Wanalyzer-malloc-leak]: leak of ‘dst_ctx’
vlc-3.0.21/modules/hw/vaapi/vlc_vaapi.c:582:37: acquire_memory: allocated here
vlc-3.0.21/modules/hw/vaapi/vlc_vaapi.c:583:8: branch_false: following ‘false’ branch (when ‘dst_ctx’ is non-NULL)...
vlc-3.0.21/modules/hw/vaapi/vlc_vaapi.c:586:5: branch_false: ...to here
vlc-3.0.21/modules/hw/vaapi/vlc_vaapi.c:590:12: danger: ‘dst_ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  588|       dst_ctx->surface = src_ctx->surface;
#  589|       dst_ctx->picref = picture_Hold(src_ctx->picref);
#  590|->     return &dst_ctx->s;
#  591|   }
#  592|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def588]
vlc-3.0.21/modules/hw/vdpau/picture.c:75:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fnew’
vlc-3.0.21/modules/hw/vdpau/picture.c:63:35: acquire_memory: allocated here
vlc-3.0.21/modules/hw/vdpau/picture.c:64:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/hw/vdpau/picture.c:67:5: branch_false: ...to here
vlc-3.0.21/modules/hw/vdpau/picture.c:75:12: danger: ‘fnew’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   73|   
#   74|       atomic_fetch_add(&frame->refs, 1);
#   75|->     return &fnew->context;
#   76|   }
#   77|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def589]
vlc-3.0.21/modules/hw/vdpau/picture.c:124:5: warning[-Wanalyzer-malloc-leak]: leak of ‘vlc_vdp_video_create(vdp,  surface)’
vlc-3.0.21/modules/hw/vdpau/picture.c:113:11: enter_function: entry to ‘vlc_vdp_video_attach’
vlc-3.0.21/modules/hw/vdpau/picture.c:116:36: call_function: calling ‘vlc_vdp_video_create’ from ‘vlc_vdp_video_attach’
vlc-3.0.21/modules/hw/vdpau/picture.c:116:36: return_function: returning to ‘vlc_vdp_video_attach’ from ‘vlc_vdp_video_create’
vlc-3.0.21/modules/hw/vdpau/picture.c:117:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/hw/vdpau/picture.c:124:20: branch_false: ...to here
vlc-3.0.21/modules/hw/vdpau/picture.c:124:5: danger: ‘vlc_vdp_video_create(vdp,  surface)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/3)
#  122|           || pic->format.i_chroma == VLC_CODEC_VDPAU_VIDEO_444);
#  123|       assert(pic->context == NULL);
#  124|->     pic->context = &field->context;
#  125|       return VDP_STATUS_OK;
#  126|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def590]
vlc-3.0.21/modules/lua/demux.c:200:13: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(filename)’
vlc-3.0.21/modules/lua/demux.c:133:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/lua/demux.c:136:5: branch_false: ...to here
vlc-3.0.21/modules/lua/demux.c:164:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/lua/demux.c:171:9: branch_false: ...to here
vlc-3.0.21/modules/lua/demux.c:171:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/lua/demux.c:178:5: branch_false: ...to here
vlc-3.0.21/modules/lua/demux.c:179:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/lua/demux.c:186:9: branch_false: ...to here
vlc-3.0.21/modules/lua/demux.c:186:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/lua/demux.c:193:9: branch_false: ...to here
vlc-3.0.21/modules/lua/demux.c:193:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/lua/demux.c:195:13: branch_true: ...to here
vlc-3.0.21/modules/lua/demux.c:195:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/lua/demux.c:197:13: branch_true: ...to here
vlc-3.0.21/modules/lua/demux.c:200:29: acquire_memory: allocated here
vlc-3.0.21/modules/lua/demux.c:200:13: danger: ‘strdup(filename)’ leaks here; was allocated at [(15)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/14)
#  198|                       "probe() function was successful", filename );
#  199|               lua_pop( L, 1 );
#  200|->             sys->filename = strdup(filename);
#  201|               return VLC_SUCCESS;
#  202|           }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def591]
vlc-3.0.21/modules/lua/extension.c:240:11: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘psz_package’ where non-null expected
vlc-3.0.21/modules/lua/extension.c:239:19: acquire_memory: this call could return NULL
vlc-3.0.21/modules/lua/extension.c:240:11: danger: argument 1 (‘psz_package’) from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  238|       char *psz_fullpath, *psz_package, *sep;
#  239|       psz_package = strdup( p_ext->psz_name );
#  240|->     sep = strrchr( psz_package, '/' );
#  241|       if( !sep )
#  242|       {

Error: COMPILER_WARNING: [#def592]
vlc-3.0.21/modules/lua/extension.c: scope_hint: In function ‘ScanLuaCallback’
vlc-3.0.21/modules/lua/extension.c:383:26: warning[-Wshadow=compatible-local]: declaration of ‘b_ok’ shadows a previous local
#  383 |                     bool b_ok = false;
#      |                          ^~~~
vlc-3.0.21/modules/lua/extension.c:282:10: note: shadowed declaration is here
#  282 |     bool b_ok = false;
#      |          ^~~~
#  381|                       /* Key is at index -2 and value at index -1. Discard key */
#  382|                       const char *psz_cap = luaL_checkstring( L, -1 );
#  383|->                     bool b_ok = false;
#  384|                       /* Find this capability's flag */
#  385|                       for( size_t i = 0; i < sizeof(caps)/sizeof(caps[0]); i++ )

Error: GCC_ANALYZER_WARNING: [#def593]
vlc-3.0.21/modules/lua/extension.c:503:9: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
vlc-3.0.21/modules/lua/extension.c:302:11: branch_false: following ‘false’ branch (when ‘psz_script’ is non-NULL)...
vlc-3.0.21/modules/lua/extension.c:307:43: branch_false: ...to here
vlc-3.0.21/modules/lua/extension.c:308:7: branch_false: following ‘false’ branch (when ‘p_ext’ is non-NULL)...
vlc-3.0.21/modules/lua/extension.c:314:5: branch_false: ...to here
vlc-3.0.21/modules/lua/extension.c:316:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/lua/extension.c:323:5: branch_false: ...to here
vlc-3.0.21/modules/lua/extension.c:326:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/lua/extension.c:335:22: branch_false: ...to here
vlc-3.0.21/modules/lua/extension.c:485:7: branch_true: following ‘true’ branch (when ‘b_ok != 0’)...
vlc-3.0.21/modules/lua/extension.c:503:9: branch_true: ...to here
vlc-3.0.21/modules/lua/extension.c:503:9: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/lua/extension.c:503:9: branch_false: ...to here
vlc-3.0.21/modules/lua/extension.c:503:9: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/lua/extension.c:503:9: branch_true: ...to here
vlc-3.0.21/modules/lua/extension.c:503:9: danger: operand ‘1.5e+0’ is of type ‘double’
#  501|       {
#  502|           /* Add the extension to the list of known extensions */
#  503|->         ARRAY_APPEND( p_mgr->extensions, p_ext );
#  504|       }
#  505|   

Error: COMPILER_WARNING: [#def594]
vlc-3.0.21/modules/lua/extension.c: scope_hint: In function ‘Control’
vlc-3.0.21/modules/lua/extension.c:627:26: warning[-Wshadow=compatible-local]: declaration of ‘p_ext’ shadows a previous local
#  627 |             extension_t *p_ext;
#      |                          ^~~~~
vlc-3.0.21/modules/lua/extension.c:512:18: note: shadowed declaration is here
#  512 |     extension_t *p_ext = NULL;
#      |                  ^~~~~
#  625|           case EXTENSION_PLAYING_CHANGED:
#  626|           {
#  627|->             extension_t *p_ext;
#  628|               p_ext = ( extension_t* ) va_arg( args, extension_t* );
#  629|               assert( p_ext->psz_name != NULL );

Error: COMPILER_WARNING: [#def595]
vlc-3.0.21/modules/lua/extension.c:639:26: warning[-Wshadow=compatible-local]: declaration of ‘p_ext’ shadows a previous local
#  639 |             extension_t *p_ext;
#      |                          ^~~~~
vlc-3.0.21/modules/lua/extension.c:512:18: note: shadowed declaration is here
#  512 |     extension_t *p_ext = NULL;
#      |                  ^~~~~
#  637|           case EXTENSION_META_CHANGED:
#  638|           {
#  639|->             extension_t *p_ext;
#  640|               p_ext = ( extension_t* ) va_arg( args, extension_t* );
#  641|               PushCommand( p_ext, CMD_UPDATE_META );

Error: COMPILER_WARNING (CWE-563): [#def596]
vlc-3.0.21/modules/lua/extension.c: scope_hint: In function ‘inputItemMetaChanged’
vlc-3.0.21/modules/lua/extension.c:1153:54: warning[-Wunused-parameter]: unused parameter ‘p_event’
# 1153 | static void inputItemMetaChanged( const vlc_event_t *p_event,
#      |                                   ~~~~~~~~~~~~~~~~~~~^~~~~~~
# 1151|   /** Callback on vlc_InputItemMetaChanged event
# 1152|    **/
# 1153|-> static void inputItemMetaChanged( const vlc_event_t *p_event,
# 1154|                                     void *data )
# 1155|   {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def597]
vlc-3.0.21/modules/lua/extension_thread.c:260:5: warning[-Wanalyzer-malloc-leak]: leak of ‘cmd’
vlc-3.0.21/modules/lua/extension_thread.c:181:29: acquire_memory: allocated here
vlc-3.0.21/modules/lua/extension_thread.c:182:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/lua/extension_thread.c:184:5: branch_false: ...to here
vlc-3.0.21/modules/lua/extension_thread.c:229:7: branch_true: following ‘true’ branch (when ‘last’ is NULL)...
vlc-3.0.21/modules/lua/extension_thread.c:231:9: branch_true: ...to here
vlc-3.0.21/modules/lua/extension_thread.c:260:5: danger: ‘cmd’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  258|   
#  259|       vlc_cond_signal( &p_ext->p_sys->wait );
#  260|->     vlc_mutex_unlock( &p_ext->p_sys->command_lock );
#  261|       return VLC_SUCCESS;
#  262|   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def598]
vlc-3.0.21/modules/lua/intf.c:91:14: warning[-Wanalyzer-null-argument]: use of NULL ‘psz_config’ where non-null expected
vlc-3.0.21/modules/lua/intf.c:432:5: enter_function: entry to ‘Open_LuaCLI’
vlc-3.0.21/modules/lua/intf.c:434:12: call_function: calling ‘Start_LuaIntf’ from ‘Open_LuaCLI’
#   89|       {
#   90|           char *psz_host = var_InheritString( p_intf, "telnet-host" );
#   91|->         if( !strcmp( psz_host, "*console" ) )
#   92|               ;
#   93|           else

Error: GCC_ANALYZER_WARNING (CWE-476): [#def599]
vlc-3.0.21/modules/lua/libs/dialog.c:425:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_widget’
vlc-3.0.21/modules/lua/libs/dialog.c:424:36: acquire_memory: this call could return NULL
vlc-3.0.21/modules/lua/libs/dialog.c:425:5: danger: ‘p_widget’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  423|   
#  424|       extension_widget_t *p_widget = calloc( 1, sizeof( extension_widget_t ) );
#  425|->     p_widget->type = EXTENSION_WIDGET_BUTTON;
#  426|       p_widget->psz_text = strdup( luaL_checkstring( L, 2 ) );
#  427|       lua_settop( L, 10 );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def600]
vlc-3.0.21/modules/lua/libs/dialog.c:448:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_widget’
vlc-3.0.21/modules/lua/libs/dialog.c:446:36: acquire_memory: this call could return NULL
vlc-3.0.21/modules/lua/libs/dialog.c:448:5: danger: ‘p_widget’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  446|       extension_widget_t *p_widget = calloc( 1, sizeof( extension_widget_t ) );
#  447|       p_widget->type = EXTENSION_WIDGET_LABEL;
#  448|->     p_widget->psz_text = strdup( luaL_checkstring( L, 2 ) );
#  449|   
#  450|       return vlclua_create_widget_inner( L, 1, p_widget );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def601]
vlc-3.0.21/modules/lua/libs/dialog.c:465:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_widget’
vlc-3.0.21/modules/lua/libs/dialog.c:464:36: acquire_memory: this call could return NULL
vlc-3.0.21/modules/lua/libs/dialog.c:465:5: danger: ‘p_widget’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  463|   
#  464|       extension_widget_t *p_widget = calloc( 1, sizeof( extension_widget_t ) );
#  465|->     p_widget->type = i_type;
#  466|       if( !lua_isnil( L, 2 ) )
#  467|           p_widget->psz_text = strdup( luaL_checkstring( L, 2 ) );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def602]
vlc-3.0.21/modules/lua/libs/dialog.c:484:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_widget’
vlc-3.0.21/modules/lua/libs/dialog.c:483:36: acquire_memory: this call could return NULL
vlc-3.0.21/modules/lua/libs/dialog.c:484:5: danger: ‘p_widget’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  482|   
#  483|       extension_widget_t *p_widget = calloc( 1, sizeof( extension_widget_t ) );
#  484|->     p_widget->type = EXTENSION_WIDGET_CHECK_BOX;
#  485|       p_widget->psz_text = strdup( luaL_checkstring( L, 2 ) );
#  486|       p_widget->b_checked = lua_toboolean( L, 3 );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def603]
vlc-3.0.21/modules/lua/libs/dialog.c:500:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_widget’
vlc-3.0.21/modules/lua/libs/dialog.c:499:36: acquire_memory: this call could return NULL
vlc-3.0.21/modules/lua/libs/dialog.c:500:5: danger: ‘p_widget’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  498|   {
#  499|       extension_widget_t *p_widget = calloc( 1, sizeof( extension_widget_t ) );
#  500|->     p_widget->type = EXTENSION_WIDGET_DROPDOWN;
#  501|   
#  502|       return vlclua_create_widget_inner( L, 0, p_widget );

Error: GCC_ANALYZER_WARNING (CWE-401): [#def604]
vlc-3.0.21/modules/lua/libs/dialog.c:502:12: warning[-Wanalyzer-malloc-leak]: leak of ‘p_widget’
vlc-3.0.21/modules/lua/libs/dialog.c:499:36: acquire_memory: allocated here
vlc-3.0.21/modules/lua/libs/dialog.c:502:12: danger: ‘p_widget’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  500|       p_widget->type = EXTENSION_WIDGET_DROPDOWN;
#  501|   
#  502|->     return vlclua_create_widget_inner( L, 0, p_widget );
#  503|   }
#  504|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def605]
vlc-3.0.21/modules/lua/libs/dialog.c:513:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_widget’
vlc-3.0.21/modules/lua/libs/dialog.c:512:36: acquire_memory: this call could return NULL
vlc-3.0.21/modules/lua/libs/dialog.c:513:5: danger: ‘p_widget’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  511|   {
#  512|       extension_widget_t *p_widget = calloc( 1, sizeof( extension_widget_t ) );
#  513|->     p_widget->type = EXTENSION_WIDGET_LIST;
#  514|   
#  515|       return vlclua_create_widget_inner( L, 0, p_widget );

Error: GCC_ANALYZER_WARNING (CWE-401): [#def606]
vlc-3.0.21/modules/lua/libs/dialog.c:515:12: warning[-Wanalyzer-malloc-leak]: leak of ‘p_widget’
vlc-3.0.21/modules/lua/libs/dialog.c:512:36: acquire_memory: allocated here
vlc-3.0.21/modules/lua/libs/dialog.c:515:12: danger: ‘p_widget’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  513|       p_widget->type = EXTENSION_WIDGET_LIST;
#  514|   
#  515|->     return vlclua_create_widget_inner( L, 0, p_widget );
#  516|   }
#  517|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def607]
vlc-3.0.21/modules/lua/libs/dialog.c:530:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_widget’
vlc-3.0.21/modules/lua/libs/dialog.c:529:36: acquire_memory: this call could return NULL
vlc-3.0.21/modules/lua/libs/dialog.c:530:5: danger: ‘p_widget’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  528|   
#  529|       extension_widget_t *p_widget = calloc( 1, sizeof( extension_widget_t ) );
#  530|->     p_widget->type = EXTENSION_WIDGET_IMAGE;
#  531|       p_widget->psz_text = strdup( luaL_checkstring( L, 2 ) );
#  532|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def608]
vlc-3.0.21/modules/lua/libs/dialog.c:548:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_widget’
vlc-3.0.21/modules/lua/libs/dialog.c:544:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/lua/libs/dialog.c:547:36: branch_false: ...to here
vlc-3.0.21/modules/lua/libs/dialog.c:547:36: acquire_memory: this call could return NULL
vlc-3.0.21/modules/lua/libs/dialog.c:548:5: danger: ‘p_widget’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
#  546|   
#  547|       extension_widget_t *p_widget = calloc( 1, sizeof( extension_widget_t ) );
#  548|->     p_widget->type = EXTENSION_WIDGET_SPIN_ICON;
#  549|   
#  550|       return vlclua_create_widget_inner( L, 0, p_widget );

Error: GCC_ANALYZER_WARNING (CWE-401): [#def609]
vlc-3.0.21/modules/lua/libs/dialog.c:568:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/modules/lua/libs/dialog.c:531:26: acquire_memory: allocated here
vlc-3.0.21/modules/lua/libs/dialog.c:568:16: danger: ‘<unknown>’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  566|               (extension_dialog_t**) luaL_checkudata( L, 1, "dialog" );
#  567|       if( !pp_dlg || !*pp_dlg )
#  568|->         return luaL_error( L, "Can't get pointer to dialog" );
#  569|       extension_dialog_t *p_dlg = *pp_dlg;
#  570|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def610]
vlc-3.0.21/modules/lua/libs/dialog.c:568:16: warning[-Wanalyzer-malloc-leak]: leak of ‘p_widget’
vlc-3.0.21/modules/lua/libs/dialog.c:544:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/lua/libs/dialog.c:547:36: branch_false: ...to here
vlc-3.0.21/modules/lua/libs/dialog.c:547:36: acquire_memory: allocated here
vlc-3.0.21/modules/lua/libs/dialog.c:568:16: danger: ‘p_widget’ leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
#  566|               (extension_dialog_t**) luaL_checkudata( L, 1, "dialog" );
#  567|       if( !pp_dlg || !*pp_dlg )
#  568|->         return luaL_error( L, "Can't get pointer to dialog" );
#  569|       extension_dialog_t *p_dlg = *pp_dlg;
#  570|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def611]
vlc-3.0.21/modules/lua/libs/dialog.c:739:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_new_value’
vlc-3.0.21/modules/lua/libs/dialog.c:726:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/lua/libs/dialog.c:730:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/lua/libs/dialog.c:734:10: branch_false: ...to here
vlc-3.0.21/modules/lua/libs/dialog.c:734:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/lua/libs/dialog.c:738:24: branch_false: ...to here
vlc-3.0.21/modules/lua/libs/dialog.c:738:24: acquire_memory: this call could return NULL
vlc-3.0.21/modules/lua/libs/dialog.c:739:5: danger: ‘p_new_value’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/6)
#  737|       struct extension_widget_value_t *p_value,
#  738|           *p_new_value = calloc( 1, sizeof( struct extension_widget_value_t ) );
#  739|->     p_new_value->psz_text = strdup( luaL_checkstring( L, 2 ) );
#  740|       p_new_value->i_id = lua_tointeger( L, 3 );
#  741|   

Error: GCC_ANALYZER_WARNING: [#def612]
vlc-3.0.21/modules/lua/libs/dialog.c:1047:5: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
vlc-3.0.21/modules/lua/libs/dialog.c:1047:5: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/lua/libs/dialog.c:1047:5: branch_false: ...to here
vlc-3.0.21/modules/lua/libs/dialog.c:1047:5: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/lua/libs/dialog.c:1047:5: branch_true: ...to here
vlc-3.0.21/modules/lua/libs/dialog.c:1047:5: danger: operand ‘1.5e+0’ is of type ‘double’
# 1045|                          extension_widget_t *p_widget )
# 1046|   {
# 1047|->     ARRAY_APPEND( p_dialog->widgets, p_widget );
# 1048|   }
# 1049|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def613]
vlc-3.0.21/modules/lua/libs/equalizer.c:215:23: warning[-Wanalyzer-null-argument]: use of NULL ‘b’ where non-null expected
vlc-3.0.21/modules/lua/libs/equalizer.c:187:12: enter_function: entry to ‘vlclua_equalizer_set’
vlc-3.0.21/modules/lua/libs/equalizer.c:190:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/lua/libs/equalizer.c:193:30: branch_false: ...to here
vlc-3.0.21/modules/lua/libs/equalizer.c:195:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/lua/libs/equalizer.c:198:20: branch_false: ...to here
vlc-3.0.21/modules/lua/libs/equalizer.c:198:20: call_function: calling ‘var_GetNonEmptyString’ from ‘vlclua_equalizer_set’
vlc-3.0.21/modules/lua/libs/equalizer.c:198:20: return_function: returning to ‘vlclua_equalizer_set’ from ‘var_GetNonEmptyString’
vlc-3.0.21/modules/lua/libs/equalizer.c:199:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/lua/libs/equalizer.c:199:20: branch_false: ...to here
vlc-3.0.21/modules/lua/libs/equalizer.c:199:9: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/lua/libs/equalizer.c:205:5: branch_false: ...to here
vlc-3.0.21/modules/lua/libs/equalizer.c:208:19: call_function: calling ‘var_GetString’ from ‘vlclua_equalizer_set’
vlc-3.0.21/modules/lua/libs/equalizer.c:208:19: return_function: returning to ‘vlclua_equalizer_set’ from ‘var_GetString’
vlc-3.0.21/modules/lua/libs/equalizer.c:212:11: release_memory: ‘b’ is NULL
vlc-3.0.21/modules/lua/libs/equalizer.c:213:12: branch_true: following ‘true’ branch (when ‘bandid != 0’)...
vlc-3.0.21/modules/lua/libs/equalizer.c:215:23: branch_true: ...to here
vlc-3.0.21/modules/lua/libs/equalizer.c:215:23: release_memory: ‘b’ is NULL
vlc-3.0.21/modules/lua/libs/equalizer.c:215:23: danger: argument 1 (‘b’) NULL where non-null expected
#  213|       while( bandid > 0 )
#  214|       {
#  215|->         float dummy = strtof( b, &b );
#  216|           (void)dummy;
#  217|           bandid--;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def614]
vlc-3.0.21/modules/lua/libs/equalizer.c:219:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
vlc-3.0.21/modules/lua/libs/equalizer.c:187:12: enter_function: entry to ‘vlclua_equalizer_set’
vlc-3.0.21/modules/lua/libs/equalizer.c:190:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/lua/libs/equalizer.c:193:30: branch_false: ...to here
vlc-3.0.21/modules/lua/libs/equalizer.c:195:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/lua/libs/equalizer.c:198:20: branch_false: ...to here
vlc-3.0.21/modules/lua/libs/equalizer.c:198:20: call_function: calling ‘var_GetNonEmptyString’ from ‘vlclua_equalizer_set’
vlc-3.0.21/modules/lua/libs/equalizer.c:198:20: return_function: returning to ‘vlclua_equalizer_set’ from ‘var_GetNonEmptyString’
vlc-3.0.21/modules/lua/libs/equalizer.c:199:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/lua/libs/equalizer.c:199:20: branch_false: ...to here
vlc-3.0.21/modules/lua/libs/equalizer.c:199:9: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/lua/libs/equalizer.c:205:5: branch_false: ...to here
vlc-3.0.21/modules/lua/libs/equalizer.c:208:19: call_function: calling ‘var_GetString’ from ‘vlclua_equalizer_set’
vlc-3.0.21/modules/lua/libs/equalizer.c:208:19: return_function: returning to ‘vlclua_equalizer_set’ from ‘var_GetString’
vlc-3.0.21/modules/lua/libs/equalizer.c:212:11: release_memory: ‘b’ is NULL
vlc-3.0.21/modules/lua/libs/equalizer.c:213:12: branch_false: following ‘false’ branch (when ‘bandid == 0’)...
vlc-3.0.21/modules/lua/libs/equalizer.c:219:9: branch_false: ...to here
vlc-3.0.21/modules/lua/libs/equalizer.c:219:9: release_memory: ‘b’ is NULL
vlc-3.0.21/modules/lua/libs/equalizer.c:219:9: danger: dereference of NULL ‘b’
#  217|           bandid--;
#  218|       }
#  219|->     if( *b != '\0' )
#  220|           *b++ = '\0';
#  221|       float dummy = strtof( b, &b );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def615]
vlc-3.0.21/modules/lua/libs/net.c:315:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc((long unsigned int)i_fds * 4)’
vlc-3.0.21/modules/lua/libs/net.c:297:12: enter_function: entry to ‘vlclua_net_poll’
vlc-3.0.21/modules/lua/libs/net.c:309:28: call_function: calling ‘xmalloc’ from ‘vlclua_net_poll’
vlc-3.0.21/modules/lua/libs/net.c:309:28: return_function: returning to ‘vlclua_net_poll’ from ‘xmalloc’
vlc-3.0.21/modules/lua/libs/net.c:310:19: call_function: calling ‘xmalloc’ from ‘vlclua_net_poll’
vlc-3.0.21/modules/lua/libs/net.c:310:19: return_function: returning to ‘vlclua_net_poll’ from ‘xmalloc’
vlc-3.0.21/modules/lua/libs/net.c:313:21: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/lua/libs/net.c:315:21: branch_true: ...to here
vlc-3.0.21/modules/lua/libs/net.c:315:9: danger: ‘xmalloc((long unsigned int)i_fds * 4) + (long unsigned int)i * 4’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
#  313|       for( int i = 0; lua_next( L, 1 ); i++ )
#  314|       {
#  315|->         luafds[i] = luaL_checkint( L, -2 );
#  316|           p_fds[i].fd = vlclua_fd_get( L, luafds[i] );
#  317|           p_fds[i].events = luaL_checkinteger( L, -1 );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def616]
vlc-3.0.21/modules/lua/libs/net.c:316:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc((long unsigned int)i_fds * 8) + (long unsigned int)i * 8’
vlc-3.0.21/modules/lua/libs/net.c:297:12: enter_function: entry to ‘vlclua_net_poll’
vlc-3.0.21/modules/lua/libs/net.c:309:28: call_function: calling ‘xmalloc’ from ‘vlclua_net_poll’
vlc-3.0.21/modules/lua/libs/net.c:309:28: return_function: returning to ‘vlclua_net_poll’ from ‘xmalloc’
vlc-3.0.21/modules/lua/libs/net.c:310:19: call_function: calling ‘xmalloc’ from ‘vlclua_net_poll’
vlc-3.0.21/modules/lua/libs/net.c:310:19: return_function: returning to ‘vlclua_net_poll’ from ‘xmalloc’
vlc-3.0.21/modules/lua/libs/net.c:313:21: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/lua/libs/net.c:315:21: branch_true: ...to here
vlc-3.0.21/modules/lua/libs/net.c:316:23: call_function: calling ‘vlclua_fd_get’ from ‘vlclua_net_poll’
vlc-3.0.21/modules/lua/libs/net.c:316:23: return_function: returning to ‘vlclua_net_poll’ from ‘vlclua_fd_get’
vlc-3.0.21/modules/lua/libs/net.c:316:9: danger: ‘xmalloc((long unsigned int)i_fds * 8) + (long unsigned int)i * 8’ could be NULL: unchecked value from [(4)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/3)
#  314|       {
#  315|           luafds[i] = luaL_checkint( L, -2 );
#  316|->         p_fds[i].fd = vlclua_fd_get( L, luafds[i] );
#  317|           p_fds[i].events = luaL_checkinteger( L, -1 );
#  318|           p_fds[i].events &= POLLIN | POLLOUT | POLLPRI;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def617]
vlc-3.0.21/modules/lua/libs/net.c:337:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc((long unsigned int)i_fds * 4)’
vlc-3.0.21/modules/lua/libs/net.c:297:12: enter_function: entry to ‘vlclua_net_poll’
vlc-3.0.21/modules/lua/libs/net.c:309:28: call_function: calling ‘xmalloc’ from ‘vlclua_net_poll’
vlc-3.0.21/modules/lua/libs/net.c:309:28: return_function: returning to ‘vlclua_net_poll’ from ‘xmalloc’
vlc-3.0.21/modules/lua/libs/net.c:310:19: call_function: calling ‘xmalloc’ from ‘vlclua_net_poll’
vlc-3.0.21/modules/lua/libs/net.c:310:19: return_function: returning to ‘vlclua_net_poll’ from ‘xmalloc’
vlc-3.0.21/modules/lua/libs/net.c:313:21: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/lua/libs/net.c:322:29: branch_false: ...to here
vlc-3.0.21/modules/lua/libs/net.c:327:11: branch_true: following ‘true’ branch...
 branch_true: ...to here
vlc-3.0.21/modules/lua/libs/net.c:335:21: branch_true: following ‘true’ branch (when ‘i_fds > i’)...
vlc-3.0.21/modules/lua/libs/net.c:337:35: branch_true: ...to here
vlc-3.0.21/modules/lua/libs/net.c:337:29: danger: ‘xmalloc((long unsigned int)i_fds * 4) + (long unsigned int)i * 4’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
#  335|       for( int i = 0; i < i_fds; i++ )
#  336|       {
#  337|->         lua_pushinteger( L, luafds[i] );
#  338|           lua_pushinteger( L, (val >= 0) ? p_fds[i].revents : 0 );
#  339|           lua_settable( L, 1 );

Error: GCC_ANALYZER_WARNING (CWE-457): [#def618]
vlc-3.0.21/modules/lua/libs/net.c:337:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
vlc-3.0.21/modules/lua/libs/net.c:297:12: enter_function: entry to ‘vlclua_net_poll’
vlc-3.0.21/modules/lua/libs/net.c:309:28: call_function: calling ‘xmalloc’ from ‘vlclua_net_poll’
vlc-3.0.21/modules/lua/libs/net.c:309:28: return_function: returning to ‘vlclua_net_poll’ from ‘xmalloc’
vlc-3.0.21/modules/lua/libs/net.c:310:19: call_function: calling ‘xmalloc’ from ‘vlclua_net_poll’
vlc-3.0.21/modules/lua/libs/net.c:310:19: return_function: returning to ‘vlclua_net_poll’ from ‘xmalloc’
vlc-3.0.21/modules/lua/libs/net.c:313:21: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/lua/libs/net.c:322:29: branch_false: ...to here
vlc-3.0.21/modules/lua/libs/net.c:327:11: branch_true: following ‘true’ branch...
 branch_true: ...to here
vlc-3.0.21/modules/lua/libs/net.c:335:21: branch_true: following ‘true’ branch (when ‘i_fds > i’)...
vlc-3.0.21/modules/lua/libs/net.c:337:35: branch_true: ...to here
vlc-3.0.21/modules/lua/libs/net.c:337:29: danger: use of uninitialized value ‘*<unknown>’ here
#  335|       for( int i = 0; i < i_fds; i++ )
#  336|       {
#  337|->         lua_pushinteger( L, luafds[i] );
#  338|           lua_pushinteger( L, (val >= 0) ? p_fds[i].revents : 0 );
#  339|           lua_settable( L, 1 );

Error: COMPILER_WARNING (CWE-477): [#def619]
vlc-3.0.21/modules/lua/libs/sd.c: scope_hint: In function ‘vlclua_sd_is_loaded’
vlc-3.0.21/modules/lua/libs/sd.c:449:5: warning[-Wdeprecated-declarations]: ‘playlist_IsServicesDiscoveryLoaded’ is deprecated
#  449 |     lua_pushboolean( L, playlist_IsServicesDiscoveryLoaded( p_playlist, psz_sd ));
#      |     ^~~~~~~~~~~~~~~
vlc-3.0.21/modules/lua/libs/sd.c:40: included_from: Included from here.
vlc-3.0.21/include/vlc_playlist.h:357:14: note: declared here
#  357 | VLC_API bool playlist_IsServicesDiscoveryLoaded( playlist_t *,const char *) VLC_DEPRECATED;
#      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  447|       const char *psz_sd = luaL_checkstring( L, 1 );
#  448|       playlist_t *p_playlist = vlclua_get_playlist_internal( L );
#  449|->     lua_pushboolean( L, playlist_IsServicesDiscoveryLoaded( p_playlist, psz_sd ));
#  450|       return 1;
#  451|   }

Error: COMPILER_WARNING (CWE-477): [#def620]
vlc-3.0.21/modules/lua/libs/sd.c:449:5: warning[-Wdeprecated-declarations]: ‘playlist_IsServicesDiscoveryLoaded’ is deprecated
#  447|       const char *psz_sd = luaL_checkstring( L, 1 );
#  448|       playlist_t *p_playlist = vlclua_get_playlist_internal( L );
#  449|->     lua_pushboolean( L, playlist_IsServicesDiscoveryLoaded( p_playlist, psz_sd ));
#  450|       return 1;
#  451|   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def621]
vlc-3.0.21/modules/lua/libs/stream.c:103:26: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘psz_content’ where non-null expected
vlc-3.0.21/modules/lua/libs/stream.c:102:26: acquire_memory: this call could return NULL
vlc-3.0.21/modules/lua/libs/stream.c:103:26: danger: argument 1 (‘psz_content’) from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
#  101|       /* FIXME: duplicating the whole buffer is suboptimal. Keeping a reference to the string so that it doesn't get garbage collected would be better */
#  102|       char * psz_content = strdup( luaL_checkstring( L, 1 ) );
#  103|->     stream_t *p_stream = vlc_stream_MemoryNew( p_this, (uint8_t *)psz_content, strlen( psz_content ), false );
#  104|       return vlclua_stream_new_inner( L, p_stream );
#  105|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def622]
vlc-3.0.21/modules/lua/vlc.c:445:17: warning[-Wanalyzer-malloc-leak]: leak of ‘optv’
vlc-3.0.21/modules/lua/vlc.c:457:15: enter_function: entry to ‘vlclua_read_input_item’
vlc-3.0.21/modules/lua/vlc.c:459:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/lua/vlc.c:465:5: branch_false: ...to here
vlc-3.0.21/modules/lua/vlc.c:468:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/lua/vlc.c:476:24: branch_false: ...to here
vlc-3.0.21/modules/lua/vlc.c:481:8: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/lua/vlc.c:483:16: branch_true: ...to here
vlc-3.0.21/modules/lua/vlc.c:504:5: call_function: calling ‘vlclua_read_options’ from ‘vlclua_read_input_item’
#  443|                   char *psz_option = strdup( lua_tostring( L, -1 ) );
#  444|                   msg_Dbg( p_this, "Option: %s", psz_option );
#  445|->                 TAB_APPEND( *pi_options, *pppsz_options, psz_option );
#  446|               }
#  447|               else

Error: GCC_ANALYZER_WARNING (CWE-476): [#def623]
vlc-3.0.21/modules/lua/vlc.c:648:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ppsz_dir’
vlc-3.0.21/modules/lua/vlc.c:605:5: enter_function: entry to ‘vlclua_add_modules_path’
vlc-3.0.21/modules/lua/vlc.c:613:7: branch_false: following ‘false’ branch (when ‘psz_path’ is non-NULL)...
vlc-3.0.21/modules/lua/vlc.c:616:22: branch_false: ...to here
vlc-3.0.21/modules/lua/vlc.c:617:7: branch_false: following ‘false’ branch (when ‘psz_char’ is non-NULL)...
vlc-3.0.21/modules/lua/vlc.c:622:5: branch_false: ...to here
vlc-3.0.21/modules/lua/vlc.c:626:7: branch_false: following ‘false’ branch (when ‘psz_char’ is non-NULL)...
vlc-3.0.21/modules/lua/vlc.c:631:5: branch_false: ...to here
vlc-3.0.21/modules/lua/vlc.c:638:14: call_function: calling ‘vlclua_add_modules_path_inner’ from ‘vlclua_add_modules_path’
vlc-3.0.21/modules/lua/vlc.c:638:14: return_function: returning to ‘vlclua_add_modules_path’ from ‘vlclua_add_modules_path_inner’
vlc-3.0.21/modules/lua/vlc.c:642:14: call_function: calling ‘vlclua_add_modules_path_inner’ from ‘vlclua_add_modules_path’
vlc-3.0.21/modules/lua/vlc.c:642:14: return_function: returning to ‘vlclua_add_modules_path’ from ‘vlclua_add_modules_path_inner’
vlc-3.0.21/modules/lua/vlc.c:644:12: release_memory: ‘ppsz_dir_list’ is NULL
vlc-3.0.21/modules/lua/vlc.c:644:12: release_memory: ‘ppsz_dir_list’ is NULL
vlc-3.0.21/modules/lua/vlc.c:645:5: call_function: calling ‘vlclua_dir_list’ from ‘vlclua_add_modules_path’
vlc-3.0.21/modules/lua/vlc.c:645:5: return_function: returning to ‘vlclua_add_modules_path’ from ‘vlclua_dir_list’
vlc-3.0.21/modules/lua/vlc.c:646:12: release_memory: ‘ppsz_dir_list’ is NULL
vlc-3.0.21/modules/lua/vlc.c:648:12: danger: dereference of NULL ‘ppsz_dir’
#  646|       char **ppsz_dir = ppsz_dir_list;
#  647|   
#  648|->     for( ; *ppsz_dir && strcmp( *ppsz_dir, psz_path ); ppsz_dir++ );
#  649|       free( psz_path );
#  650|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def624]
vlc-3.0.21/modules/lua/vlc.c:682:10: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘uri’ where non-null expected
vlc-3.0.21/modules/lua/vlc.c:681:17: acquire_memory: this call could return NULL
vlc-3.0.21/modules/lua/vlc.c:682:10: danger: argument 1 (‘uri’) from [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  680|   {
#  681|       char *uri = ToLocaleDup( curi );
#  682|->     if( !strstr( uri, "://" ) ) {
#  683|           int ret = luaL_dofile( L, uri );
#  684|           free( uri );

Error: COMPILER_WARNING: [#def625]
vlc-3.0.21/modules/meta_engine/folder.c: scope_hint: In function ‘FindMeta’
vlc-3.0.21/modules/meta_engine/folder.c:162:19: warning[-Wshadow=compatible-local]: declaration of ‘psz_uri’ shadows a previous local
#  162 |             char *psz_uri = vlc_path2uri( filepath, "file" );
#      |                   ^~~~~~~
vlc-3.0.21/modules/meta_engine/folder.c:93:11: note: shadowed declaration is here
#   93 |     char *psz_uri = input_item_GetURI( p_item );
#      |           ^~~~~~~
#  160|           if( vlc_stat( filepath, &statinfo ) == 0 && S_ISREG(statinfo.st_mode) )
#  161|           {
#  162|->             char *psz_uri = vlc_path2uri( filepath, "file" );
#  163|               if( psz_uri )
#  164|               {

Error: COMPILER_WARNING (CWE-477): [#def626]
vlc-3.0.21/modules/meta_engine/taglib.cpp: scope_hint: In member function ‘virtual TagLib::ByteVector VlcIostream::readBlock(ulong)’
vlc-3.0.21/modules/meta_engine/taglib.cpp:188:32: warning[-Wdeprecated-declarations]: ‘TagLib::ByteVector::null’ is deprecated
#  188 |             return ByteVector::null;
#      |                                ^~~~
/usr/include/taglib/tfilestream.h:31: included_from: Included from here.
vlc-3.0.21/modules/meta_engine/taglib.cpp:62: included_from: Included from here.
/usr/include/taglib/tbytevector.h:598:41: note: declared here
#  598 |     TAGLIB_DEPRECATED static ByteVector null;
#      |                                         ^~~~
#  186|           ssize_t i_read = vlc_stream_Read( m_stream, res.data(), length);
#  187|           if (i_read < 0)
#  188|->             return ByteVector::null;
#  189|           else if ((size_t)i_read != length)
#  190|               res.resize(i_read);

Error: COMPILER_WARNING (CWE-477): [#def627]
vlc-3.0.21/modules/meta_engine/taglib.cpp: scope_hint: In function ‘void ReadMetaFromBasicTag(const TagLib::Tag*, vlc_meta_t*)’
vlc-3.0.21/modules/meta_engine/taglib.cpp:468:32: warning[-Wdeprecated-declarations]: ‘bool TagLib::String::isNull() const’ is deprecated
#  468 |     if( !tag->accessor().isNull() && !tag->accessor().isEmpty() )              \
#      |          ~~~~~~~~~~~~~~~~~~~~~~^~
vlc-3.0.21/modules/meta_engine/taglib.cpp:478:5: note: in expansion of macro ‘SET’
#  478 |     SET( title, Title );
#      |     ^~~
/usr/include/taglib/tag.h:30: included_from: Included from here.
/usr/include/taglib/tfile.h:31: included_from: Included from here.
/usr/include/taglib/fileref.h:29: included_from: Included from here.
vlc-3.0.21/modules/meta_engine/taglib.cpp:64: included_from: Included from here.
/usr/include/taglib/tstring.h:343:28: note: declared here
#  343 |     TAGLIB_DEPRECATED bool isNull() const;
#      |                            ^~~~~~
#  466|   {
#  467|   #define SET( accessor, meta )                                                  \
#  468|->     if( !tag->accessor().isNull() && !tag->accessor().isEmpty() )              \
#  469|           vlc_meta_Set##meta( dest, tag->accessor().toCString(true) )
#  470|   #define SETINT( accessor, meta )                                               \

Error: COMPILER_WARNING (CWE-477): [#def628]
vlc-3.0.21/modules/meta_engine/taglib.cpp: scope_hint: In function ‘void ReadMetaFromXiph(TagLib::Ogg::XiphComment*, demux_meta_t*, vlc_meta_t*)’
vlc-3.0.21/modules/meta_engine/taglib.cpp:703:39: warning[-Wdeprecated-copy]: implicitly-declared ‘TagLib::StringList& TagLib::StringList::operator=(const TagLib::StringList&)’ is deprecated
#  703 |     list = tag->fieldListMap()[keyName];                                       \
#      |                                       ^
vlc-3.0.21/modules/meta_engine/taglib.cpp:712:5: note: in expansion of macro ‘SET’
#  712 |     SET( "COPYRIGHT", Copyright );
#      |     ^~~
/usr/include/taglib/fileref.h:30: included_from: Included from here.
/usr/include/taglib/tstringlist.h:59:5: note: because ‘TagLib::StringList’ has user-provided ‘TagLib::StringList::StringList(const TagLib::StringList&)’
#   59 |     StringList(const StringList &l);
#      |     ^~~~~~~~~~
#  701|       bool hasTrackTotal = false;
#  702|   #define SET( keyName, metaName )                                               \
#  703|->     list = tag->fieldListMap()[keyName];                                       \
#  704|       if( !list.isEmpty() )                                                      \
#  705|           vlc_meta_Set##metaName( p_meta, (*list.begin()).toCString( true ) );

Error: COMPILER_WARNING (CWE-477): [#def629]
vlc-3.0.21/modules/meta_engine/taglib.cpp:708:39: warning[-Wdeprecated-copy]: implicitly-declared ‘TagLib::StringList& TagLib::StringList::operator=(const TagLib::StringList&)’ is deprecated
#  708 |     list = tag->fieldListMap()[keyName]; \
#      |                                       ^
vlc-3.0.21/modules/meta_engine/taglib.cpp:722:5: note: in expansion of macro ‘SET_EXTRA’
#  722 |     SET_EXTRA( "MUSICBRAINZ_ALBUMID", VLC_META_EXTRA_MB_ALBUMID );
#      |     ^~~~~~~~~
/usr/include/taglib/tstringlist.h:59:5: note: because ‘TagLib::StringList’ has user-provided ‘TagLib::StringList::StringList(const TagLib::StringList&)’
#   59 |     StringList(const StringList &l);
#      |     ^~~~~~~~~~
#  706|   
#  707|   #define SET_EXTRA( keyName, metaName ) \
#  708|->     list = tag->fieldListMap()[keyName]; \
#  709|       if( !list.isEmpty() ) \
#  710|           vlc_meta_AddExtra( p_meta, keyName, (*list.begin()).toCString( true ) );

Error: COMPILER_WARNING (CWE-477): [#def630]
vlc-3.0.21/modules/meta_engine/taglib.cpp:726:45: warning[-Wdeprecated-copy]: implicitly-declared ‘TagLib::StringList& TagLib::StringList::operator=(const TagLib::StringList&)’ is deprecated
#  726 |     list = tag->fieldListMap()["TRACKNUMBER"];
#      |                                             ^
/usr/include/taglib/tstringlist.h:59:5: note: because ‘TagLib::StringList’ has user-provided ‘TagLib::StringList::StringList(const TagLib::StringList&)’
#   59 |     StringList(const StringList &l);
#      |     ^~~~~~~~~~
#  724|   #undef SET_EXTRA
#  725|   
#  726|->     list = tag->fieldListMap()["TRACKNUMBER"];
#  727|       if( !list.isEmpty() )
#  728|       {

Error: COMPILER_WARNING (CWE-477): [#def631]
vlc-3.0.21/modules/meta_engine/taglib.cpp:735:48: warning[-Wdeprecated-copy]: implicitly-declared ‘TagLib::StringList& TagLib::StringList::operator=(const TagLib::StringList&)’ is deprecated
#  735 |         list = tag->fieldListMap()["TRACKTOTAL"];
#      |                                                ^
/usr/include/taglib/tstringlist.h:59:5: note: because ‘TagLib::StringList’ has user-provided ‘TagLib::StringList::StringList(const TagLib::StringList&)’
#   59 |     StringList(const StringList &l);
#      |     ^~~~~~~~~~
#  733|       if( !hasTrackTotal )
#  734|       {
#  735|->         list = tag->fieldListMap()["TRACKTOTAL"];
#  736|           if( list.isEmpty() )
#  737|               list = tag->fieldListMap()["TOTALTRACKS"];

Error: COMPILER_WARNING (CWE-477): [#def632]
vlc-3.0.21/modules/meta_engine/taglib.cpp:737:53: warning[-Wdeprecated-copy]: implicitly-declared ‘TagLib::StringList& TagLib::StringList::operator=(const TagLib::StringList&)’ is deprecated
#  737 |             list = tag->fieldListMap()["TOTALTRACKS"];
#      |                                                     ^
/usr/include/taglib/tstringlist.h:59:5: note: because ‘TagLib::StringList’ has user-provided ‘TagLib::StringList::StringList(const TagLib::StringList&)’
#   59 |     StringList(const StringList &l);
#      |     ^~~~~~~~~~
#  735|           list = tag->fieldListMap()["TRACKTOTAL"];
#  736|           if( list.isEmpty() )
#  737|->             list = tag->fieldListMap()["TOTALTRACKS"];
#  738|           if( !list.isEmpty() )
#  739|               vlc_meta_SetTrackTotal( p_meta, (*list.begin()).toCString( true ) );

Error: COMPILER_WARNING (CWE-477): [#def633]
vlc-3.0.21/modules/meta_engine/taglib.cpp:771:66: warning[-Wdeprecated-copy]: implicitly-declared ‘TagLib::StringList& TagLib::StringList::operator=(const TagLib::StringList&)’ is deprecated
#  771 |         art_list = tag->fieldListMap()[ "METADATA_BLOCK_PICTURE" ];
#      |                                                                  ^
/usr/include/taglib/tstringlist.h:59:5: note: because ‘TagLib::StringList’ has user-provided ‘TagLib::StringList::StringList(const TagLib::StringList&)’
#   59 |     StringList(const StringList &l);
#      |     ^~~~~~~~~~
#  769|       else
#  770|       {
#  771|->         art_list = tag->fieldListMap()[ "METADATA_BLOCK_PICTURE" ];
#  772|           if( art_list.size() == 0 )
#  773|               return;

Error: COMPILER_WARNING (CWE-477): [#def634]
vlc-3.0.21/modules/meta_engine/taglib.cpp: scope_hint: In function ‘void ReadMetaFromMP4(TagLib::MP4::Tag*, demux_meta_t*, vlc_meta_t*)’
vlc-3.0.21/modules/meta_engine/taglib.cpp:809:25: warning[-Wdeprecated-declarations]: ‘TagLib::MP4::ItemMap& TagLib::MP4::Tag::itemListMap()’ is deprecated
#  809 |     if( tag->itemListMap().contains(keyName) )                                               \
#      |         ~~~~~~~~~~~~~~~~^~
vlc-3.0.21/modules/meta_engine/taglib.cpp:821:5: note: in expansion of macro ‘SET’
#  821 |     SET("----:com.apple.iTunes:MusicBrainz Track Id", TrackID );
#      |     ^~~
/usr/include/taglib/mp4file.h:33: included_from: Included from here.
vlc-3.0.21/modules/meta_engine/taglib.cpp:80: included_from: Included from here.
/usr/include/taglib/mp4tag.h:75:36: note: declared here
#   75 |         TAGLIB_DEPRECATED ItemMap &itemListMap();
#      |                                    ^~~~~~~~~~~
#  807|       MP4::Item list;
#  808|   #define SET( keyName, metaName )                                                             \
#  809|->     if( tag->itemListMap().contains(keyName) )                                               \
#  810|       {                                                                                        \
#  811|           list = tag->itemListMap()[keyName];                                                  \

Error: COMPILER_WARNING (CWE-477): [#def635]
vlc-3.0.21/modules/meta_engine/taglib.cpp:811:32: warning[-Wdeprecated-declarations]: ‘TagLib::MP4::ItemMap& TagLib::MP4::Tag::itemListMap()’ is deprecated
#  811 |         list = tag->itemListMap()[keyName];                                                  \
#      |                ~~~~~~~~~~~~~~~~^~
vlc-3.0.21/modules/meta_engine/taglib.cpp:821:5: note: in expansion of macro ‘SET’
#  821 |     SET("----:com.apple.iTunes:MusicBrainz Track Id", TrackID );
#      |     ^~~
/usr/include/taglib/mp4tag.h:75:36: note: declared here
#   75 |         TAGLIB_DEPRECATED ItemMap &itemListMap();
#      |                                    ^~~~~~~~~~~
#  809|       if( tag->itemListMap().contains(keyName) )                                               \
#  810|       {                                                                                        \
#  811|->         list = tag->itemListMap()[keyName];                                                  \
#  812|           vlc_meta_Set##metaName( p_meta, list.toStringList().front().toCString( true ) );     \
#  813|       }

Error: COMPILER_WARNING (CWE-477): [#def636]
vlc-3.0.21/modules/meta_engine/taglib.cpp:815:25: warning[-Wdeprecated-declarations]: ‘TagLib::MP4::ItemMap& TagLib::MP4::Tag::itemListMap()’ is deprecated
#  815 |     if( tag->itemListMap().contains(keyName) )                                  \
#      |         ~~~~~~~~~~~~~~~~^~
vlc-3.0.21/modules/meta_engine/taglib.cpp:822:5: note: in expansion of macro ‘SET_EXTRA’
#  822 |     SET_EXTRA("----:com.apple.iTunes:MusicBrainz Album Id", VLC_META_EXTRA_MB_ALBUMID );
#      |     ^~~~~~~~~
/usr/include/taglib/mp4tag.h:75:36: note: declared here
#   75 |         TAGLIB_DEPRECATED ItemMap &itemListMap();
#      |                                    ^~~~~~~~~~~
#  813|       }
#  814|   #define SET_EXTRA( keyName, metaName )                                                   \
#  815|->     if( tag->itemListMap().contains(keyName) )                                  \
#  816|       {                                                                                \
#  817|           list = tag->itemListMap()[keyName];                                     \

Error: COMPILER_WARNING (CWE-477): [#def637]
vlc-3.0.21/modules/meta_engine/taglib.cpp:817:32: warning[-Wdeprecated-declarations]: ‘TagLib::MP4::ItemMap& TagLib::MP4::Tag::itemListMap()’ is deprecated
#  817 |         list = tag->itemListMap()[keyName];                                     \
#      |                ~~~~~~~~~~~~~~~~^~
vlc-3.0.21/modules/meta_engine/taglib.cpp:822:5: note: in expansion of macro ‘SET_EXTRA’
#  822 |     SET_EXTRA("----:com.apple.iTunes:MusicBrainz Album Id", VLC_META_EXTRA_MB_ALBUMID );
#      |     ^~~~~~~~~
/usr/include/taglib/mp4tag.h:75:36: note: declared here
#   75 |         TAGLIB_DEPRECATED ItemMap &itemListMap();
#      |                                    ^~~~~~~~~~~
#  815|       if( tag->itemListMap().contains(keyName) )                                  \
#  816|       {                                                                                \
#  817|->         list = tag->itemListMap()[keyName];                                     \
#  818|           vlc_meta_AddExtra( p_meta, metaName, list.toStringList().front().toCString( true ) ); \
#  819|       }

Error: COMPILER_WARNING (CWE-477): [#def638]
vlc-3.0.21/modules/meta_engine/taglib.cpp:827:25: warning[-Wdeprecated-declarations]: ‘TagLib::MP4::ItemMap& TagLib::MP4::Tag::itemListMap()’ is deprecated
#  827 |     if( tag->itemListMap().contains("covr") )
#      |         ~~~~~~~~~~~~~~~~^~
/usr/include/taglib/mp4tag.h:75:36: note: declared here
#   75 |         TAGLIB_DEPRECATED ItemMap &itemListMap();
#      |                                    ^~~~~~~~~~~
#  825|   #undef SET_EXTRA
#  826|   
#  827|->     if( tag->itemListMap().contains("covr") )
#  828|       {
#  829|           MP4::CoverArtList list = tag->itemListMap()["covr"].toCoverArtList();

Error: COMPILER_WARNING (CWE-477): [#def639]
vlc-3.0.21/modules/meta_engine/taglib.cpp:829:50: warning[-Wdeprecated-declarations]: ‘TagLib::MP4::ItemMap& TagLib::MP4::Tag::itemListMap()’ is deprecated
#  829 |         MP4::CoverArtList list = tag->itemListMap()["covr"].toCoverArtList();
#      |                                  ~~~~~~~~~~~~~~~~^~
/usr/include/taglib/mp4tag.h:75:36: note: declared here
#   75 |         TAGLIB_DEPRECATED ItemMap &itemListMap();
#      |                                    ^~~~~~~~~~~
#  827|       if( tag->itemListMap().contains("covr") )
#  828|       {
#  829|->         MP4::CoverArtList list = tag->itemListMap()["covr"].toCoverArtList();
#  830|           const char *psz_format = list[0].format() == MP4::CoverArt::PNG ? "image/png" : "image/jpeg";
#  831|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def640]
vlc-3.0.21/modules/misc/addons/fsstorage.c:813:17: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(p_node)’
vlc-3.0.21/modules/misc/addons/fsstorage.c:671:12: enter_function: entry to ‘LoadCatalog’
vlc-3.0.21/modules/misc/addons/fsstorage.c:675:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/addons/fsstorage.c:677:10: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:677:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/addons/fsstorage.c:682:5: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:697:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/addons/fsstorage.c:703:29: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:705:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/addons/fsstorage.c:708:26: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:710:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/addons/fsstorage.c:712:34: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:713:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/addons/fsstorage.c:719:9: call_function: inlined call to ‘xml_ReaderNextNode’ from ‘LoadCatalog’
vlc-3.0.21/modules/misc/addons/fsstorage.c:719:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/addons/fsstorage.c:726:10: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:726:8: branch_false: following ‘false’ branch (when the strings are equal)...
 branch_false: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:733:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/misc/addons/fsstorage.c:735:9: branch_true: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:741:20: branch_false: following ‘false’ branch (when ‘p_entry’ is NULL)...
vlc-3.0.21/modules/misc/addons/fsstorage.c:744:27: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:733:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/misc/addons/fsstorage.c:735:9: branch_true: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:823:16: branch_false: following ‘false’ branch (when ‘p_entry’ is non-NULL)...
vlc-3.0.21/modules/misc/addons/fsstorage.c:825:20: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:825:16: branch_false: following ‘false’ branch (when the strings are non-equal)...
vlc-3.0.21/modules/misc/addons/fsstorage.c:832:20: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:832:16: branch_true: following ‘true’ branch (when the strings are equal)...
vlc-3.0.21/modules/misc/addons/fsstorage.c:834:20: branch_true: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:834:20: branch_true: following ‘true’ branch (when ‘p_entry’ is non-NULL)...
vlc-3.0.21/modules/misc/addons/fsstorage.c:834:30: branch_true: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:733:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/misc/addons/fsstorage.c:735:9: branch_true: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:811:16: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/addons/fsstorage.c:812:16: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/misc/addons/fsstorage.c:813:45: branch_true: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:813:45: acquire_memory: allocated here
vlc-3.0.21/modules/misc/addons/fsstorage.c:813:17: danger: ‘strdup(p_node)’ leaks here; was allocated at [(41)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/40)
#  811|               if ( data_pointer.e_type == TYPE_NONE || !p_entry ) break;
#  812|               if ( data_pointer.e_type == TYPE_STRING )
#  813|->                 *data_pointer.u_data.ppsz = strdup( p_node );
#  814|               else
#  815|               if ( data_pointer.e_type == TYPE_LONG )

Error: GCC_ANALYZER_WARNING: [#def641]
vlc-3.0.21/modules/misc/addons/fsstorage.c:828:17: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
vlc-3.0.21/modules/misc/addons/fsstorage.c:671:12: enter_function: entry to ‘LoadCatalog’
vlc-3.0.21/modules/misc/addons/fsstorage.c:675:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/addons/fsstorage.c:677:10: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:677:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/addons/fsstorage.c:682:5: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:697:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/addons/fsstorage.c:703:29: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:705:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/addons/fsstorage.c:708:26: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:710:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/addons/fsstorage.c:712:34: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:713:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/addons/fsstorage.c:719:9: call_function: inlined call to ‘xml_ReaderNextNode’ from ‘LoadCatalog’
vlc-3.0.21/modules/misc/addons/fsstorage.c:719:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/addons/fsstorage.c:726:10: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:726:8: branch_false: following ‘false’ branch (when the strings are equal)...
 branch_false: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:733:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/misc/addons/fsstorage.c:735:9: branch_true: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:741:20: branch_false: following ‘false’ branch (when ‘p_entry’ is NULL)...
vlc-3.0.21/modules/misc/addons/fsstorage.c:744:27: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:733:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/misc/addons/fsstorage.c:735:9: branch_true: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:823:16: branch_false: following ‘false’ branch (when ‘p_entry’ is non-NULL)...
vlc-3.0.21/modules/misc/addons/fsstorage.c:825:20: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:825:16: branch_true: following ‘true’ branch (when the strings are equal)...
vlc-3.0.21/modules/misc/addons/fsstorage.c:828:17: branch_true: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:828:17: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/addons/fsstorage.c:828:17: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:828:17: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/misc/addons/fsstorage.c:828:17: branch_true: ...to here
vlc-3.0.21/modules/misc/addons/fsstorage.c:828:17: danger: operand ‘1.5e+0’ is of type ‘double’
#  826|               {
#  827|                   /* then append entry */
#  828|->                 ARRAY_APPEND( p_finder->entries, p_entry );
#  829|                   p_entry = NULL;
#  830|               }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def642]
vlc-3.0.21/modules/misc/addons/vorepository.c:155:17: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(p_node)’
vlc-3.0.21/modules/misc/addons/vorepository.c:359:12: enter_function: entry to ‘Retrieve’
vlc-3.0.21/modules/misc/addons/vorepository.c:362:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/addons/vorepository.c:367:29: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/vorepository.c:369:8: branch_false: following ‘false’ branch (when ‘psz_archive_uri’ is non-NULL)...
vlc-3.0.21/modules/misc/addons/vorepository.c:375:10: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/vorepository.c:389:20: call_function: calling ‘vlc_stream_NewURL_ND’ from ‘Retrieve’
vlc-3.0.21/modules/misc/addons/vorepository.c:389:20: return_function: returning to ‘Retrieve’ from ‘vlc_stream_NewURL_ND’
vlc-3.0.21/modules/misc/addons/vorepository.c:394:8: branch_false: following ‘false’ branch (when ‘p_stream’ is non-NULL)...
vlc-3.0.21/modules/misc/addons/vorepository.c:397:10: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/vorepository.c:404:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/addons/vorepository.c:411:14: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/vorepository.c:413:7: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/misc/addons/vorepository.c:438:8: branch_false: following ‘false’ branch (when ‘i_ret == 0’)...
vlc-3.0.21/modules/misc/addons/vorepository.c:441:5: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/vorepository.c:444:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/addons/vorepository.c:448:10: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/vorepository.c:448:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/addons/vorepository.c:454:16: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/vorepository.c:456:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/addons/vorepository.c:462:5: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/vorepository.c:463:15: call_function: calling ‘ParseManifest’ from ‘Retrieve’
#  153|                   if( data_pointer.u_data.ppsz )
#  154|                       free( *data_pointer.u_data.ppsz );
#  155|->                 *data_pointer.u_data.ppsz = strdup( p_node );
#  156|               }
#  157|               else

Error: GCC_ANALYZER_WARNING: [#def643]
vlc-3.0.21/modules/misc/addons/vorepository.c:312:17: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
vlc-3.0.21/modules/misc/addons/vorepository.c:207:12: enter_function: entry to ‘ParseCategoriesInfo’
vlc-3.0.21/modules/misc/addons/vorepository.c:217:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/addons/vorepository.c:219:9: call_function: inlined call to ‘xml_ReaderNextNode’ from ‘ParseCategoriesInfo’
vlc-3.0.21/modules/misc/addons/vorepository.c:219:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/addons/vorepository.c:225:10: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/vorepository.c:225:8: branch_false: following ‘false’ branch (when the strings are equal)...
 branch_false: ...to here
vlc-3.0.21/modules/misc/addons/vorepository.c:231:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/misc/addons/vorepository.c:233:9: branch_true: ...to here
vlc-3.0.21/modules/misc/addons/vorepository.c:239:20: branch_false: following ‘false’ branch (when ‘p_entry’ is NULL)...
vlc-3.0.21/modules/misc/addons/vorepository.c:241:27: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/vorepository.c:231:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/misc/addons/vorepository.c:233:9: branch_true: ...to here
vlc-3.0.21/modules/misc/addons/vorepository.c:308:16: branch_false: following ‘false’ branch (when ‘p_entry’ is non-NULL)...
vlc-3.0.21/modules/misc/addons/vorepository.c:309:20: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/vorepository.c:309:16: branch_true: following ‘true’ branch (when the strings are equal)...
vlc-3.0.21/modules/misc/addons/vorepository.c:312:17: branch_true: ...to here
vlc-3.0.21/modules/misc/addons/vorepository.c:312:17: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/addons/vorepository.c:312:17: branch_false: ...to here
vlc-3.0.21/modules/misc/addons/vorepository.c:312:17: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/misc/addons/vorepository.c:312:17: branch_true: ...to here
vlc-3.0.21/modules/misc/addons/vorepository.c:312:17: danger: operand ‘1.5e+0’ is of type ‘double’
#  310|               {
#  311|                   /* then append entry */
#  312|->                 ARRAY_APPEND( p_finder->entries, p_entry );
#  313|                   p_entry = NULL;
#  314|                   i_num_entries_created++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def644]
vlc-3.0.21/modules/misc/gnutls.c:226:9: warning[-Wanalyzer-malloc-leak]: leak of ‘gnutls_SessionOpen(crd, 1, *sys.x509_cred,  sk,  alpn)’
vlc-3.0.21/modules/misc/gnutls.c:625:19: enter_function: entry to ‘gnutls_ServerSessionOpen’
vlc-3.0.21/modules/misc/gnutls.c:633:12: call_function: calling ‘gnutls_SessionOpen’ from ‘gnutls_ServerSessionOpen’
vlc-3.0.21/modules/misc/gnutls.c:633:12: return_function: returning to ‘gnutls_ServerSessionOpen’ from ‘gnutls_SessionOpen’
vlc-3.0.21/modules/misc/gnutls.c:634:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/misc/gnutls.c:634:12: branch_true: ...to here
vlc-3.0.21/modules/misc/gnutls.c:226:9: danger: ‘gnutls_SessionOpen(crd, 1, *sys.x509_cred,  sk,  alpn)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/3)
#  224|   {
#  225|       vlc_tls_gnutls_t *priv = malloc(sizeof (*priv));
#  226|->     if (unlikely(priv == NULL))
#  227|           return NULL;
#  228|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def645]
vlc-3.0.21/modules/misc/gnutls.c:226:9: warning[-Wanalyzer-malloc-leak]: leak of ‘gnutls_SessionOpen(crd, 2, *crd.sys,  sk,  alpn)’
vlc-3.0.21/modules/misc/gnutls.c:390:19: enter_function: entry to ‘gnutls_ClientSessionOpen’
vlc-3.0.21/modules/misc/gnutls.c:396:12: call_function: calling ‘gnutls_SessionOpen’ from ‘gnutls_ClientSessionOpen’
vlc-3.0.21/modules/misc/gnutls.c:396:12: return_function: returning to ‘gnutls_ClientSessionOpen’ from ‘gnutls_SessionOpen’
vlc-3.0.21/modules/misc/gnutls.c:397:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/gnutls.c:400:22: branch_false: ...to here
vlc-3.0.21/modules/misc/gnutls.c:226:9: danger: ‘gnutls_SessionOpen(crd, 2, *crd.sys,  sk,  alpn)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/3)
#  224|   {
#  225|       vlc_tls_gnutls_t *priv = malloc(sizeof (*priv));
#  226|->     if (unlikely(priv == NULL))
#  227|           return NULL;
#  228|   

Error: COMPILER_WARNING (CWE-563): [#def646]
vlc-3.0.21/modules/misc/gnutls.c: scope_hint: In function ‘gnutls_ServerSessionOpen’
vlc-3.0.21/modules/misc/gnutls.c:626:71: warning[-Wunused-parameter]: unused parameter ‘hostname’
#  626 |                                            vlc_tls_t *sk, const char *hostname,
#      |                                                           ~~~~~~~~~~~~^~~~~~~~
#  624|    */
#  625|   static vlc_tls_t *gnutls_ServerSessionOpen(vlc_tls_creds_t *crd,
#  626|->                                            vlc_tls_t *sk, const char *hostname,
#  627|                                              const char *const *alpn)
#  628|   {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def647]
vlc-3.0.21/modules/misc/playlist/xspf.c:91:16: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
vlc-3.0.21/modules/misc/playlist/xspf.c:226:5: enter_function: entry to ‘xspf_export_playlist’
vlc-3.0.21/modules/misc/playlist/xspf.c:240:7: branch_false: following ‘false’ branch (when ‘p_node’ is non-NULL)...
vlc-3.0.21/modules/misc/playlist/xspf.c:243:32: branch_false: ...to here
vlc-3.0.21/modules/misc/playlist/xspf.c:253:17: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/misc/playlist/xspf.c:255:51: branch_true: ...to here
vlc-3.0.21/modules/misc/playlist/xspf.c:255:9: call_function: calling ‘xspf_export_item’ from ‘xspf_export_playlist’
#   89|       /* -> the name/title (only if different from uri)*/
#   90|       psz = input_xml( p_input, input_item_GetTitle );
#   91|->     if( psz && strcmp( psz_uri, psz ) )
#   92|           fprintf( p_file, "\t\t\t<title>%s</title>\n", psz );
#   93|       free( psz );

Error: GCC_ANALYZER_WARNING (CWE-415): [#def648]
vlc-3.0.21/modules/misc/playlist/xspf.c:94:5: warning[-Wanalyzer-double-free]: double-‘free’ of ‘0’
vlc-3.0.21/modules/misc/playlist/xspf.c:226:5: enter_function: entry to ‘xspf_export_playlist’
vlc-3.0.21/modules/misc/playlist/xspf.c:240:7: branch_false: following ‘false’ branch (when ‘p_node’ is non-NULL)...
vlc-3.0.21/modules/misc/playlist/xspf.c:243:32: branch_false: ...to here
vlc-3.0.21/modules/misc/playlist/xspf.c:253:17: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/misc/playlist/xspf.c:255:51: branch_true: ...to here
vlc-3.0.21/modules/misc/playlist/xspf.c:255:9: call_function: calling ‘xspf_export_item’ from ‘xspf_export_playlist’
#   92|           fprintf( p_file, "\t\t\t<title>%s</title>\n", psz );
#   93|       free( psz );
#   94|->     free( psz_uri );
#   95|   
#   96|       if( p_item->p_input->p_meta == NULL )

Error: COMPILER_WARNING: [#def649]
vlc-3.0.21/modules/misc/rtsp.c: scope_hint: In function ‘sprintf_hexa’
vlc-3.0.21/modules/misc/rtsp.c:239:33: warning[-Wunterminated-string-initialization]: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (17 chars into 16 available)
#  239 |     static const char hex[16] = "0123456789abcdef";
#      |                                 ^~~~~~~~~~~~~~~~~~
#  237|   static void sprintf_hexa( char *s, uint8_t *p_data, int i_data )
#  238|   {
#  239|->     static const char hex[16] = "0123456789abcdef";
#  240|   
#  241|       for( int i = 0; i < i_data; i++ )

Error: GCC_ANALYZER_WARNING (CWE-476): [#def650]
vlc-3.0.21/modules/misc/rtsp.c:243:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘s’
vlc-3.0.21/modules/misc/rtsp.c:471:12: enter_function: entry to ‘MediaAddES’
vlc-3.0.21/modules/misc/rtsp.c:476:7: branch_false: following ‘false’ branch (when ‘p_es’ is non-NULL)...
vlc-3.0.21/modules/misc/rtsp.c:479:5: branch_false: ...to here
vlc-3.0.21/modules/misc/rtsp.c:482:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/rtsp.c:488:5: branch_false: ...to here
vlc-3.0.21/modules/misc/rtsp.c:624:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/misc/rtsp.c:626:40: branch_true: ...to here
vlc-3.0.21/modules/misc/rtsp.c:626:32: acquire_memory: this call could return NULL
vlc-3.0.21/modules/misc/rtsp.c:627:17: call_function: calling ‘sprintf_hexa’ from ‘MediaAddES’
#  241|       for( int i = 0; i < i_data; i++ )
#  242|       {
#  243|->         s[2*i+0] = hex[(p_data[i]>>4)&0xf];
#  244|           s[2*i+1] = hex[(p_data[i]   )&0xf];
#  245|       }

Error: COMPILER_WARNING (CWE-477): [#def651]
vlc-3.0.21/modules/misc/rtsp.c: scope_hint: In function ‘Close’
vlc-3.0.21/modules/misc/rtsp.c:326:5: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
#  326 |     while( block_FifoCount( p_sys->p_fifo_cmd ) > 0 )
#      |     ^~~~~
vlc-3.0.21/modules/misc/rtsp.c:38: included_from: Included from here.
vlc-3.0.21/include/vlc_block.h:477:16: note: declared here
#  477 | VLC_API size_t block_FifoCount(block_fifo_t *) VLC_USED VLC_DEPRECATED;
#      |                ^~~~~~~~~~~~~~~
#  324|       vlc_join( p_sys->thread, NULL );
#  325|   
#  326|->     while( block_FifoCount( p_sys->p_fifo_cmd ) > 0 )
#  327|       {
#  328|           rtsp_cmd_t cmd;

Error: COMPILER_WARNING (CWE-477): [#def652]
vlc-3.0.21/modules/misc/rtsp.c:326:5: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
#  324|       vlc_join( p_sys->thread, NULL );
#  325|   
#  326|->     while( block_FifoCount( p_sys->p_fifo_cmd ) > 0 )
#  327|       {
#  328|           rtsp_cmd_t cmd;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def653]
vlc-3.0.21/modules/misc/rtsp.c:688:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/modules/misc/rtsp.c:476:7: branch_false: following ‘false’ branch (when ‘p_es’ is non-NULL)...
vlc-3.0.21/modules/misc/rtsp.c:479:5: branch_false: ...to here
vlc-3.0.21/modules/misc/rtsp.c:482:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/rtsp.c:488:5: branch_false: ...to here
vlc-3.0.21/modules/misc/rtsp.c:619:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/misc/rtsp.c:620:34: branch_true: ...to here
vlc-3.0.21/modules/misc/rtsp.c:620:34: acquire_memory: allocated here
vlc-3.0.21/modules/misc/rtsp.c:684:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/misc/rtsp.c:686:9: branch_true: ...to here
vlc-3.0.21/modules/misc/rtsp.c:688:9: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
#  686|           msg_Err( p_vod, "cannot create RTSP url (%s)", psz_urlc );
#  687|           free( psz_urlc );
#  688|->         free( p_es );
#  689|           return VLC_EGENERIC;
#  690|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def654]
vlc-3.0.21/modules/misc/rtsp.c:790:13: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.media’
vlc-3.0.21/modules/misc/rtsp.c:779:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/rtsp.c:782:23: branch_false: ...to here
vlc-3.0.21/modules/misc/rtsp.c:785:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/rtsp.c:788:12: branch_false: ...to here
vlc-3.0.21/modules/misc/rtsp.c:788:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/misc/rtsp.c:790:13: branch_true: ...to here
vlc-3.0.21/modules/misc/rtsp.c:790:13: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/misc/rtsp.c:790:13: branch_true: ...to here
vlc-3.0.21/modules/misc/rtsp.c:790:13: danger: ‘*p_sys.media’ leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
#  788|           if ( cmd.i_type == RTSP_CMD_TYPE_ADD )
#  789|           {
#  790|->             TAB_APPEND( p_sys->i_media, p_sys->media, cmd.p_media );
#  791|               goto next;
#  792|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def655]
vlc-3.0.21/modules/misc/rtsp.c:869:5: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_media.rtsp’
vlc-3.0.21/modules/misc/rtsp.c:1265:12: enter_function: entry to ‘RtspCallbackES’
vlc-3.0.21/modules/misc/rtsp.c:1280:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/rtsp.c:1282:5: branch_false: ...to here
vlc-3.0.21/modules/misc/rtsp.c:1298:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/misc/rtsp.c:1299:17: branch_true: ...to here
vlc-3.0.21/modules/misc/rtsp.c:1298:17: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/misc/rtsp.c:1304:36: branch_true: ...to here
vlc-3.0.21/modules/misc/rtsp.c:1307:19: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/rtsp.c:1315:17: branch_false: ...to here
vlc-3.0.21/modules/misc/rtsp.c:1331:23: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/rtsp.c:1333:21: branch_false: ...to here
vlc-3.0.21/modules/misc/rtsp.c:1335:30: call_function: calling ‘RtspClientNew’ from ‘RtspCallbackES’
#  867|   
#  868|       p_rtsp->psz_session = psz_session;
#  869|->     TAB_APPEND( p_media->i_rtsp, p_media->rtsp, p_rtsp );
#  870|   
#  871|       p_media->p_vod->p_sys->i_connections++;

Error: COMPILER_WARNING: [#def656]
vlc-3.0.21/modules/misc/rtsp.c: scope_hint: In function ‘RtspCallback’
vlc-3.0.21/modules/misc/rtsp.c:969:32: warning[-Wshadow=compatible-local]: declaration of ‘p_rtsp’ shadows a previous local
#  969 |                 rtsp_client_t *p_rtsp = NULL;
#      |                                ^~~~~~
vlc-3.0.21/modules/misc/rtsp.c:940:20: note: shadowed declaration is here
#  940 |     rtsp_client_t *p_rtsp;
#      |                    ^~~~~~
#  967|                   strstr( psz_transport, "client_port=" ) )
#  968|               {
#  969|->                 rtsp_client_t *p_rtsp = NULL;
#  970|                   char ip[NI_MAXNUMERICHOST];
#  971|                   int i_port = atoi( strstr( psz_transport, "client_port=" ) +

Error: COMPILER_WARNING: [#def657]
vlc-3.0.21/modules/misc/rtsp.c:1004:2: warning[-Wcpp]: #warning Should use secure randomness here! (spoofing risk)
# 1004 | #warning Should use secure randomness here! (spoofing risk)
#      |  ^~~~~~~
# 1002|                           break;
# 1003|                       }
# 1004|-> #warning Should use secure randomness here! (spoofing risk)
# 1005|                       if( asprintf( &psz_new, "%lu", vlc_mrand48() ) < 0 )
# 1006|                           return VLC_ENOMEM;

Error: COMPILER_WARNING: [#def658]
vlc-3.0.21/modules/misc/rtsp.c:1004:2: warning[-Wcpp]: #warning Should use secure randomness here! (spoofing risk)
# 1002|                           break;
# 1003|                       }
# 1004|-> #warning Should use secure randomness here! (spoofing risk)
# 1005|                       if( asprintf( &psz_new, "%lu", vlc_mrand48() ) < 0 )
# 1006|                           return VLC_ENOMEM;

Error: COMPILER_WARNING: [#def659]
vlc-3.0.21/modules/misc/rtsp.c: scope_hint: In function ‘RtspCallbackES’
vlc-3.0.21/modules/misc/rtsp.c:1301:32: warning[-Wshadow=compatible-local]: declaration of ‘p_rtsp’ shadows a previous local
# 1301 |                 rtsp_client_t *p_rtsp = NULL;
#      |                                ^~~~~~
vlc-3.0.21/modules/misc/rtsp.c:1272:20: note: shadowed declaration is here
# 1272 |     rtsp_client_t *p_rtsp = NULL;
#      |                    ^~~~~~
# 1299|                   strstr( psz_transport, "client_port=" ) )
# 1300|               {
# 1301|->                 rtsp_client_t *p_rtsp = NULL;
# 1302|                   rtsp_client_es_t *p_rtsp_es = NULL;
# 1303|                   char ip[NI_MAXNUMERICHOST];

Error: COMPILER_WARNING: [#def660]
vlc-3.0.21/modules/misc/rtsp.c:1330:2: warning[-Wcpp]: #warning Session ID should be securely random (spoofing risk)
# 1330 | #warning Session ID should be securely random (spoofing risk)
#      |  ^~~~~~~
# 1328|                           break;
# 1329|                       }
# 1330|-> #warning Session ID should be securely random (spoofing risk)
# 1331|                       if( asprintf( &psz_new, "%lu", vlc_mrand48() ) < 0 )
# 1332|                           return VLC_ENOMEM;

Error: COMPILER_WARNING: [#def661]
vlc-3.0.21/modules/misc/rtsp.c:1330:2: warning[-Wcpp]: #warning Session ID should be securely random (spoofing risk)
# 1328|                           break;
# 1329|                       }
# 1330|-> #warning Session ID should be securely random (spoofing risk)
# 1331|                       if( asprintf( &psz_new, "%lu", vlc_mrand48() ) < 0 )
# 1332|                           return VLC_ENOMEM;

Error: COMPILER_WARNING (CWE-9001): [#def662]
vlc-3.0.21/modules/misc/webservices/json.c: scope_hint: In function ‘new_value’
vlc-3.0.21/modules/misc/webservices/json.c:134:45: warning[-Wstrict-aliasing]: dereferencing type-punned pointer will break strict-aliasing rules
#  134 |             value->_reserved.object_mem = (*(char **) &value->u.object.values) + values_size;
#      |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  132|               }
#  133|   
#  134|->             value->_reserved.object_mem = (*(char **) &value->u.object.values) + values_size;
#  135|   
#  136|               value->u.object.length = 0;

Error: COMPILER_WARNING (CWE-9001): [#def663]
vlc-3.0.21/modules/misc/webservices/json.c: scope_hint: In function ‘json_parse_ex’
vlc-3.0.21/modules/misc/webservices/json.c:343:27: warning[-Wstrict-aliasing]: dereferencing type-punned pointer will break strict-aliasing rules
#  343 |                         (*(json_char **) &top->u.object.values) += string_length + 1;
#      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  341|   
#  342|                        if (state.first_pass)
#  343|->                         (*(json_char **) &top->u.object.values) += string_length + 1;
#  344|                        else
#  345|                        {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def664]
vlc-3.0.21/modules/misc/webservices/json.c:375:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘top’
vlc-3.0.21/modules/misc/webservices/json.c:782:14: enter_function: entry to ‘json_parse’
vlc-3.0.21/modules/misc/webservices/json.c:787:11: call_function: calling ‘json_parse_ex’ from ‘json_parse’
#  373|                  case ']':
#  374|   
#  375|->                   if (top->type == json_array)
#  376|                        flags = (flags & ~ (flag_need_comma | flag_seek_value)) | flag_next;
#  377|                     else if (!state.settings.settings & json_relaxed_commas)

Error: CPPCHECK_WARNING (CWE-476): [#def665]
vlc-3.0.21/modules/misc/webservices/json.c:521: warning[nullPointer]: Possible null pointer dereference: top
#  519|            else
#  520|            {
#  521|->             switch (top->type)
#  522|               {
#  523|               case json_object:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def666]
vlc-3.0.21/modules/misc/webservices/json_helper.h:33:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/modules/misc/webservices/musicbrainz.c:300:26: enter_function: entry to ‘musicbrainz_lookup_recording_by_discid’
vlc-3.0.21/modules/misc/webservices/musicbrainz.c:303:21: call_function: calling ‘musicbrainz_build_discid_json_url’ from ‘musicbrainz_lookup_recording_by_discid’
vlc-3.0.21/modules/misc/webservices/musicbrainz.c:303:21: return_function: returning to ‘musicbrainz_lookup_recording_by_discid’ from ‘musicbrainz_build_discid_json_url’
vlc-3.0.21/modules/misc/webservices/musicbrainz.c:304:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/webservices/musicbrainz.c:307:34: branch_false: ...to here
vlc-3.0.21/modules/misc/webservices/musicbrainz.c:307:34: call_function: calling ‘musicbrainz_lookup_recording_by_apiurl’ from ‘musicbrainz_lookup_recording_by_discid’
#   31|   const json_value * json_getbyname(const json_value *object, const char *psz_name)
#   32|   {
#   33|->     if (object->type != json_object) return NULL;
#   34|       for (unsigned int i=0; i < object->u.object.length; i++)
#   35|           if (strcmp(object->u.object.values[i].name, psz_name) == 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def667]
vlc-3.0.21/modules/misc/webservices/json_helper.h:106:45: warning[-Wanalyzer-malloc-leak]: leak of ‘musicbrainz_lookup(*cfg.obj,  psz_url)’
vlc-3.0.21/modules/misc/webservices/musicbrainz.c:327:21: enter_function: entry to ‘coverartarchive_lookup_releasegroup’
vlc-3.0.21/modules/misc/webservices/musicbrainz.c:330:7: branch_false: following ‘false’ branch (when ‘c’ is non-NULL)...
vlc-3.0.21/modules/misc/webservices/musicbrainz.c:334:12: branch_false: ...to here
vlc-3.0.21/modules/misc/webservices/musicbrainz.c:334:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/misc/webservices/musicbrainz.c:339:39: branch_false: ...to here
vlc-3.0.21/modules/misc/webservices/musicbrainz.c:339:39: call_function: calling ‘musicbrainz_lookup’ from ‘coverartarchive_lookup_releasegroup’
vlc-3.0.21/modules/misc/webservices/musicbrainz.c:339:39: return_function: returning to ‘coverartarchive_lookup_releasegroup’ from ‘musicbrainz_lookup’
vlc-3.0.21/modules/misc/webservices/json_helper.h:106:45: danger: ‘musicbrainz_lookup(*cfg.obj,  psz_url)’ leaks here; was allocated at [(21)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/20)
#  104|               break;
#  105|   
#  106|->         char *p_realloc = realloc(p_buffer, 1 + i_ret + i_read);
#  107|           if(unlikely(p_realloc == NULL))
#  108|           {

Error: COMPILER_WARNING: [#def668]
vlc-3.0.21/modules/mux/asf.c: scope_hint: In function ‘asf_header_create’
vlc-3.0.21/modules/mux/asf.c:1000:22: warning[-Wshadow=compatible-local]: declaration of ‘tk’ shadows a previous local
# 1000 |         asf_track_t *tk = NULL;
#      |                      ^~
vlc-3.0.21/modules/mux/asf.c:847:21: note: shadowed declaration is here
#  847 |     asf_track_t    *tk;
#      |                     ^~
#  998|           unsigned int i_dst_num, i_dst_den;
#  999|   
# 1000|->         asf_track_t *tk = NULL;
# 1001|           for( size_t i = 0; i < vlc_array_count( &p_sys->tracks ); i++ )
# 1002|           {

Error: COMPILER_WARNING (CWE-477): [#def669]
vlc-3.0.21/modules/mux/avi.c: scope_hint: In function ‘Mux’
vlc-3.0.21/modules/mux/avi.c:516:9: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
#  516 |         i_count = block_FifoCount(  p_fifo );
#      |         ^~~~~~~
vlc-3.0.21/modules/mux/avi.c:37: included_from: Included from here.
vlc-3.0.21/include/vlc_block.h:477:16: note: declared here
#  477 | VLC_API size_t block_FifoCount(block_fifo_t *) VLC_USED VLC_DEPRECATED;
#      |                ^~~~~~~~~~~~~~~
#  514|   
#  515|           p_fifo = p_mux->pp_inputs[i]->p_fifo;
#  516|->         i_count = block_FifoCount(  p_fifo );
#  517|           while( i_count > 1 )
#  518|           {

Error: COMPILER_WARNING (CWE-477): [#def670]
vlc-3.0.21/modules/mux/avi.c:516:9: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
#  514|   
#  515|           p_fifo = p_mux->pp_inputs[i]->p_fifo;
#  516|->         i_count = block_FifoCount(  p_fifo );
#  517|           while( i_count > 1 )
#  518|           {

Error: COMPILER_WARNING (CWE-477): [#def671]
vlc-3.0.21/modules/mux/avi.c:523:13: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
#  523 |             if( block_FifoCount( p_fifo ) > 0 )
#      |             ^~
vlc-3.0.21/include/vlc_block.h:477:16: note: declared here
#  477 | VLC_API size_t block_FifoCount(block_fifo_t *) VLC_USED VLC_DEPRECATED;
#      |                ^~~~~~~~~~~~~~~
#  521|   
#  522|               p_data = block_FifoGet( p_fifo );
#  523|->             if( block_FifoCount( p_fifo ) > 0 )
#  524|               {
#  525|                   block_t *p_next = block_FifoShow( p_fifo );

Error: COMPILER_WARNING (CWE-477): [#def672]
vlc-3.0.21/modules/mux/avi.c:523:13: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
#  521|   
#  522|               p_data = block_FifoGet( p_fifo );
#  523|->             if( block_FifoCount( p_fifo ) > 0 )
#  524|               {
#  525|                   block_t *p_next = block_FifoShow( p_fifo );

Error: COMPILER_WARNING (CWE-477): [#def673]
vlc-3.0.21/modules/mux/dummy.c: scope_hint: In function ‘Mux’
vlc-3.0.21/modules/mux/dummy.c:167:9: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
#  167 |         i_count = block_FifoCount( p_fifo );
#      |         ^~~~~~~
vlc-3.0.21/modules/mux/dummy.c:36: included_from: Included from here.
vlc-3.0.21/include/vlc_block.h:477:16: note: declared here
#  477 | VLC_API size_t block_FifoCount(block_fifo_t *) VLC_USED VLC_DEPRECATED;
#      |                ^~~~~~~~~~~~~~~
#  165|   
#  166|           p_fifo = p_mux->pp_inputs[i]->p_fifo;
#  167|->         i_count = block_FifoCount( p_fifo );
#  168|           while( i_count > 0 )
#  169|           {

Error: COMPILER_WARNING (CWE-477): [#def674]
vlc-3.0.21/modules/mux/dummy.c:167:9: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
#  165|   
#  166|           p_fifo = p_mux->pp_inputs[i]->p_fifo;
#  167|->         i_count = block_FifoCount( p_fifo );
#  168|           while( i_count > 0 )
#  169|           {

Error: COMPILER_WARNING (CWE-477): [#def675]
vlc-3.0.21/modules/mux/mp4/mp4.c: scope_hint: In function ‘Mux’
vlc-3.0.21/modules/mux/mp4/mp4.c:650:13: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
#  650 |             if (block_FifoCount(p_input->p_fifo) > 0) {
#      |             ^~
vlc-3.0.21/modules/mux/mp4/mp4.c:35: included_from: Included from here.
vlc-3.0.21/include/vlc_block.h:477:16: note: declared here
#  477 | VLC_API size_t block_FifoCount(block_fifo_t *) VLC_USED VLC_DEPRECATED;
#      |                ^~~~~~~~~~~~~~~
#  648|           if (p_stream->mux.fmt.i_cat != SPU_ES) {
#  649|               /* Fix length of the sample */
#  650|->             if (block_FifoCount(p_input->p_fifo) > 0) {
#  651|                   block_t *p_next = block_FifoShow(p_input->p_fifo);
#  652|                   if ( p_next->i_flags & BLOCK_FLAG_DISCONTINUITY )

Error: COMPILER_WARNING (CWE-477): [#def676]
vlc-3.0.21/modules/mux/mp4/mp4.c:650:13: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
#  648|           if (p_stream->mux.fmt.i_cat != SPU_ES) {
#  649|               /* Fix length of the sample */
#  650|->             if (block_FifoCount(p_input->p_fifo) > 0) {
#  651|                   block_t *p_next = block_FifoShow(p_input->p_fifo);
#  652|                   if ( p_next->i_flags & BLOCK_FLAG_DISCONTINUITY )

Error: COMPILER_WARNING (CWE-477): [#def677]
vlc-3.0.21/modules/mux/mpeg/ts.c: scope_hint: In function ‘SetBlockDuration’
vlc-3.0.21/modules/mux/mpeg/ts.c:1071:9: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
# 1071 |         block_FifoCount( p_input->p_fifo ) > 0 )
#      |         ^~~~~~~~~~~~~~~
vlc-3.0.21/modules/mux/mpeg/ts.c:40: included_from: Included from here.
vlc-3.0.21/include/vlc_block.h:477:16: note: declared here
#  477 | VLC_API size_t block_FifoCount(block_fifo_t *) VLC_USED VLC_DEPRECATED;
#      |                ^~~~~~~~~~~~~~~
# 1069|   
# 1070|       if( p_input->p_fmt->i_cat != SPU_ES &&
# 1071|->         block_FifoCount( p_input->p_fifo ) > 0 )
# 1072|       {
# 1073|           block_t *p_next = block_FifoShow( p_input->p_fifo );

Error: COMPILER_WARNING (CWE-477): [#def678]
vlc-3.0.21/modules/mux/mpeg/ts.c:1071:9: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
# 1069|   
# 1070|       if( p_input->p_fmt->i_cat != SPU_ES &&
# 1071|->         block_FifoCount( p_input->p_fifo ) > 0 )
# 1072|       {
# 1073|           block_t *p_next = block_FifoShow( p_input->p_fifo );

Error: COMPILER_WARNING (CWE-477): [#def679]
vlc-3.0.21/modules/mux/mpeg/ts.c: scope_hint: In function ‘MuxStreams’
vlc-3.0.21/modules/mux/mpeg/ts.c:1235:9: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
# 1235 |         if( block_FifoCount( p_input->p_fifo ) <= 1 )
#      |         ^~
vlc-3.0.21/include/vlc_block.h:477:16: note: declared here
#  477 | VLC_API size_t block_FifoCount(block_fifo_t *) VLC_USED VLC_DEPRECATED;
#      |                ^~~~~~~~~~~~~~~
# 1233|   
# 1234|           /* Need more data */
# 1235|->         if( block_FifoCount( p_input->p_fifo ) <= 1 )
# 1236|           {
# 1237|               if( ( p_input->p_fmt->i_cat == AUDIO_ES ) ||

Error: COMPILER_WARNING (CWE-477): [#def680]
vlc-3.0.21/modules/mux/mpeg/ts.c:1235:9: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
# 1233|   
# 1234|           /* Need more data */
# 1235|->         if( block_FifoCount( p_input->p_fifo ) <= 1 )
# 1236|           {
# 1237|               if( ( p_input->p_fmt->i_cat == AUDIO_ES ) ||

Error: COMPILER_WARNING (CWE-477): [#def681]
vlc-3.0.21/modules/mux/mpeg/ts.c:1243:13: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
# 1243 |             else if( block_FifoCount( p_input->p_fifo ) <= 0 )
#      |             ^~~~
vlc-3.0.21/include/vlc_block.h:477:16: note: declared here
#  477 | VLC_API size_t block_FifoCount(block_fifo_t *) VLC_USED VLC_DEPRECATED;
#      |                ^~~~~~~~~~~~~~~
# 1241|                   return true;
# 1242|               }
# 1243|->             else if( block_FifoCount( p_input->p_fifo ) <= 0 )
# 1244|               {
# 1245|                   /* spu, only one packet is needed */

Error: COMPILER_WARNING (CWE-477): [#def682]
vlc-3.0.21/modules/mux/mpeg/ts.c:1243:13: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
# 1241|                   return true;
# 1242|               }
# 1243|->             else if( block_FifoCount( p_input->p_fifo ) <= 0 )
# 1244|               {
# 1245|                   /* spu, only one packet is needed */

Error: COMPILER_WARNING (CWE-477): [#def683]
vlc-3.0.21/modules/mux/mpeg/ts.c:1306:21: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
# 1306 |                     block_FifoCount( p_mux->pp_inputs[j]->p_fifo) > 0 )
#      |                     ^~~~~~~~~~~~~~~
vlc-3.0.21/include/vlc_block.h:477:16: note: declared here
#  477 | VLC_API size_t block_FifoCount(block_fifo_t *) VLC_USED VLC_DEPRECATED;
#      |                ^~~~~~~~~~~~~~~
# 1304|               {
# 1305|                   if( p_mux->pp_inputs[j] != p_input &&
# 1306|->                     block_FifoCount( p_mux->pp_inputs[j]->p_fifo) > 0 )
# 1307|                   {
# 1308|                       block_t *p_block = block_FifoShow( p_mux->pp_inputs[j]->p_fifo );

Error: COMPILER_WARNING (CWE-477): [#def684]
vlc-3.0.21/modules/mux/mpeg/ts.c:1306:21: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
# 1304|               {
# 1305|                   if( p_mux->pp_inputs[j] != p_input &&
# 1306|->                     block_FifoCount( p_mux->pp_inputs[j]->p_fifo) > 0 )
# 1307|                   {
# 1308|                       block_t *p_block = block_FifoShow( p_mux->pp_inputs[j]->p_fifo );

Error: COMPILER_WARNING (CWE-477): [#def685]
vlc-3.0.21/modules/mux/mpjpeg.c: scope_hint: In function ‘Mux’
vlc-3.0.21/modules/mux/mpjpeg.c:153:5: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
#  153 |     while( block_FifoCount( p_fifo ) > 0 )
#      |     ^~~~~
vlc-3.0.21/modules/mux/mpjpeg.c:35: included_from: Included from here.
vlc-3.0.21/include/vlc_block.h:477:16: note: declared here
#  477 | VLC_API size_t block_FifoCount(block_fifo_t *) VLC_USED VLC_DEPRECATED;
#      |                ^~~~~~~~~~~~~~~
#  151|       p_fifo = p_mux->pp_inputs[0]->p_fifo;
#  152|   
#  153|->     while( block_FifoCount( p_fifo ) > 0 )
#  154|       {
#  155|           static const char psz_hfmt[] = "\r\n"

Error: COMPILER_WARNING (CWE-477): [#def686]
vlc-3.0.21/modules/mux/mpjpeg.c:153:5: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
#  151|       p_fifo = p_mux->pp_inputs[0]->p_fifo;
#  152|   
#  153|->     while( block_FifoCount( p_fifo ) > 0 )
#  154|       {
#  155|           static const char psz_hfmt[] = "\r\n"

Error: COMPILER_WARNING: [#def687]
vlc-3.0.21/modules/mux/ogg.c: scope_hint: In function ‘AddStream’
vlc-3.0.21/modules/mux/ogg.c:506:13: warning[-Wstringop-truncation]: ‘strncpy’ output may be truncated copying 4 bytes from a string of length 4
#  506 |             strncpy( p_stream->p_oggds_header->sub_type, buf, 4 );
#      |             ^
#  504|               char buf[5];
#  505|               snprintf( buf, sizeof(buf), "%"PRIx16, i_tag );
#  506|->             strncpy( p_stream->p_oggds_header->sub_type, buf, 4 );
#  507|   
#  508|               p_stream->p_oggds_header->i_time_unit = INT64_C(10000000);

Error: COMPILER_WARNING (CWE-477): [#def688]
vlc-3.0.21/modules/mux/ogg.c: scope_hint: In function ‘DelStream’
vlc-3.0.21/modules/mux/ogg.c:570:13: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
#  570 |             while( block_FifoCount( p_input->p_fifo ) )
#      |             ^~~~~
vlc-3.0.21/modules/mux/ogg.c:36: included_from: Included from here.
vlc-3.0.21/include/vlc_block.h:477:16: note: declared here
#  477 | VLC_API size_t block_FifoCount(block_fifo_t *) VLC_USED VLC_DEPRECATED;
#      |                ^~~~~~~~~~~~~~~
#  568|           if( !p_stream->b_new )
#  569|           {
#  570|->             while( block_FifoCount( p_input->p_fifo ) )
#  571|                   MuxBlock( p_mux, p_input );
#  572|           }

Error: COMPILER_WARNING (CWE-477): [#def689]
vlc-3.0.21/modules/mux/ogg.c:570:13: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
#  568|           if( !p_stream->b_new )
#  569|           {
#  570|->             while( block_FifoCount( p_input->p_fifo ) )
#  571|                   MuxBlock( p_mux, p_input );
#  572|           }

Error: COMPILER_WARNING: [#def690]
vlc-3.0.21/modules/mux/ogg.c: scope_hint: In function ‘OggCreateHeaders’
vlc-3.0.21/modules/mux/ogg.c:1125:27: warning[-Wshadow=compatible-local]: declaration of ‘p_stream’ shadows a previous local
# 1125 |             ogg_stream_t *p_stream = (ogg_stream_t*)p_input->p_sys;
#      |                           ^~~~~~~~
vlc-3.0.21/modules/mux/ogg.c:945:19: note: shadowed declaration is here
#  945 |     ogg_stream_t *p_stream;
#      |                   ^~~~~~~~
# 1123|           {
# 1124|               sout_input_t *p_input = p_mux->pp_inputs[i];
# 1125|->             ogg_stream_t *p_stream = (ogg_stream_t*)p_input->p_sys;
# 1126|               if ( p_stream->skeleton.b_fisbone_done ) continue;
# 1127|               OggGetSkeletonFisbone( &op.packet, &op.bytes, p_input, p_mux );

Error: COMPILER_WARNING: [#def691]
vlc-3.0.21/modules/mux/ogg.c:1154:23: warning[-Wshadow=compatible-local]: declaration of ‘p_stream’ shadows a previous local
# 1154 |         ogg_stream_t *p_stream = (ogg_stream_t*)p_input->p_sys;
#      |                       ^~~~~~~~
vlc-3.0.21/modules/mux/ogg.c:945:19: note: shadowed declaration is here
#  945 |     ogg_stream_t *p_stream;
#      |                   ^~~~~~~~
# 1152|       {
# 1153|           sout_input_t *p_input = p_mux->pp_inputs[i];
# 1154|->         ogg_stream_t *p_stream = (ogg_stream_t*)p_input->p_sys;
# 1155|           /* flush stream && save offset */
# 1156|           if ( p_sys->skeleton.b_create && !p_stream->skeleton.b_index_done )

Error: COMPILER_WARNING: [#def692]
vlc-3.0.21/modules/mux/ogg.c:1187:23: warning[-Wshadow=compatible-local]: declaration of ‘p_stream’ shadows a previous local
# 1187 |         ogg_stream_t *p_stream = (ogg_stream_t*)p_input->p_sys;
#      |                       ^~~~~~~~
vlc-3.0.21/modules/mux/ogg.c:945:19: note: shadowed declaration is here
#  945 |     ogg_stream_t *p_stream;
#      |                   ^~~~~~~~
# 1185|       {
# 1186|           sout_input_t *p_input = p_mux->pp_inputs[i];
# 1187|->         ogg_stream_t *p_stream = (ogg_stream_t*)p_input->p_sys;
# 1188|   
# 1189|           if( p_stream->fmt.i_codec == VLC_CODEC_VORBIS ||

Error: GCC_ANALYZER_WARNING (CWE-457): [#def693]
vlc-3.0.21/modules/mux/ogg.c:1327:14: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘op.packet’
vlc-3.0.21/modules/mux/ogg.c:1486:12: enter_function: entry to ‘Mux’
vlc-3.0.21/modules/mux/ogg.c:1492:8: branch_true: following ‘true’ branch...
 branch_true: ...to here
vlc-3.0.21/modules/mux/ogg.c:1495:25: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/mux/ogg.c:1497:43: branch_true: ...to here
vlc-3.0.21/modules/mux/ogg.c:1497:13: call_function: calling ‘OggCreateStreamFooter’ from ‘Mux’
# 1325|           sout_AccessOutSeek( p_mux->p_access, p_stream->skeleton.i_index_offset );
# 1326|           OggGetSkeletonIndex( &op.packet, &op.bytes, p_stream );
# 1327|->         if ( op.packet != NULL )
# 1328|           {
# 1329|               msg_Dbg(p_mux, "Rewriting index at %"PRId64, p_stream->skeleton.i_index_offset );

Error: COMPILER_WARNING (CWE-477): [#def694]
vlc-3.0.21/modules/mux/wav.c: scope_hint: In function ‘Mux’
vlc-3.0.21/modules/mux/wav.c:285:5: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
#  285 |     while( block_FifoCount( p_input->p_fifo ) > 0 )
#      |     ^~~~~
vlc-3.0.21/include/vlc_aout.h:112: included_from: Included from here.
vlc-3.0.21/modules/mux/wav.c:34: included_from: Included from here.
vlc-3.0.21/include/vlc_block.h:477:16: note: declared here
#  477 | VLC_API size_t block_FifoCount(block_fifo_t *) VLC_USED VLC_DEPRECATED;
#      |                ^~~~~~~~~~~~~~~
#  283|   
#  284|       p_input = p_mux->pp_inputs[0];
#  285|->     while( block_FifoCount( p_input->p_fifo ) > 0 )
#  286|       {
#  287|           block_t *p_block = block_FifoGet( p_input->p_fifo );

Error: COMPILER_WARNING (CWE-477): [#def695]
vlc-3.0.21/modules/mux/wav.c:285:5: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
#  283|   
#  284|       p_input = p_mux->pp_inputs[0];
#  285|->     while( block_FifoCount( p_input->p_fifo ) > 0 )
#  286|       {
#  287|           block_t *p_block = block_FifoGet( p_input->p_fifo );

Error: COMPILER_WARNING (CWE-843): [#def696]
vlc-3.0.21/modules/notify/notify.c: scope_hint: In function ‘Open’
vlc-3.0.21/modules/notify/notify.c:121:33: warning[-Wcast-function-type]: cast between incompatible function types from ‘void (*)(void *)’ to ‘void (*)(void *, void *)’
#  121 |         g_list_foreach( p_caps, (GFunc)g_free, NULL );
#      |                                 ^
#  119|               }
#  120|           }
#  121|->         g_list_foreach( p_caps, (GFunc)g_free, NULL );
#  122|           g_list_free( p_caps );
#  123|       }

Error: COMPILER_WARNING (CWE-477): [#def697]
vlc-3.0.21/modules/notify/notify.c: scope_hint: In function ‘Notify’
vlc-3.0.21/modules/notify/notify.c:327:9: warning[-Wdeprecated-declarations]: ‘gdk_pixbuf_unref’ is deprecated: Use 'g_object_unref' instead
#  327 |         gdk_pixbuf_unref( pix );
#      |         ^~~~~~~~~~~~~~~~
/usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h:34: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkpixbuf.h:33: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkcairo.h:29: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdk.h:33: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:30: included_from: Included from here.
vlc-3.0.21/modules/notify/notify.c:39: included_from: Included from here.
/usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h:168:12: note: declared here
#  168 | void       gdk_pixbuf_unref    (GdkPixbuf *pixbuf);
#      |            ^~~~~~~~~~~~~~~~
#  325|       {
#  326|           notify_notification_set_icon_from_pixbuf( notification, pix );
#  327|->         gdk_pixbuf_unref( pix );
#  328|       }
#  329|   

Error: COMPILER_WARNING (CWE-477): [#def698]
vlc-3.0.21/modules/notify/notify.c:327:9: warning[-Wdeprecated-declarations]: ‘gdk_pixbuf_unref’ is deprecated: Use 'g_object_unref' instead
#  325|       {
#  326|           notify_notification_set_icon_from_pixbuf( notification, pix );
#  327|->         gdk_pixbuf_unref( pix );
#  328|       }
#  329|   

Error: COMPILER_WARNING (CWE-483): [#def699]
vlc-3.0.21/modules/packetizer/av1.c: scope_hint: In function ‘ParseOBUBlock’
vlc-3.0.21/modules/packetizer/av1.c:93:5: warning[-Wmisleading-indentation]: this ‘if’ clause does not guard...
#   93 |     if(p_sys->tu.dts == VLC_TICK_INVALID)\
#      |     ^~
vlc-3.0.21/modules/packetizer/av1.c:314:13: note: in expansion of macro ‘PUSHQ’
#  314 |             PUSHQ(tu.pre, p_obu);
#      |             ^~~~~
vlc-3.0.21/modules/packetizer/av1.c:94:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
#   94 |         p_sys->tu.dts = b->i_dts; p_sys->tu.pts = b->i_pts;\
#      |                                   ^~~~~
vlc-3.0.21/modules/packetizer/av1.c:314:13: note: in expansion of macro ‘PUSHQ’
#  314 |             PUSHQ(tu.pre, p_obu);
#      |             ^~~~~
#   91|   {\
#   92|       block_ChainLastAppend(&p_sys->name.pp_chain_last, b);\
#   93|->     if(p_sys->tu.dts == VLC_TICK_INVALID)\
#   94|           p_sys->tu.dts = b->i_dts; p_sys->tu.pts = b->i_pts;\
#   95|   }

Error: COMPILER_WARNING (CWE-704): [#def700]
vlc-3.0.21/modules/packetizer/avparser.c: scope_hint: In function ‘avparser_OpenPacketizer’
vlc-3.0.21/modules/packetizer/avparser.c:107:25: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#  107 |     AVCodec * p_codec = avcodec_find_decoder( i_avcodec_id );
#      |                         ^~~~~~~~~~~~~~~~~~~~
#  105|           return VLC_EGENERIC;
#  106|   
#  107|->     AVCodec * p_codec = avcodec_find_decoder( i_avcodec_id );
#  108|       if( unlikely( !p_codec ) )
#  109|       {

Error: COMPILER_WARNING (CWE-704): [#def701]
vlc-3.0.21/modules/packetizer/avparser.c:107:25: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#  105|           return VLC_EGENERIC;
#  106|   
#  107|->     AVCodec * p_codec = avcodec_find_decoder( i_avcodec_id );
#  108|       if( unlikely( !p_codec ) )
#  109|       {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def702]
vlc-3.0.21/modules/packetizer/dirac.c:480:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘p_d[0]’
vlc-3.0.21/modules/packetizer/dirac.c:1235:17: enter_function: entry to ‘Packetize’
vlc-3.0.21/modules/packetizer/dirac.c:1267:24: call_function: calling ‘dirac_DoSync’ from ‘Packetize’
#  478|           return false;
#  479|   
#  480|->     if( p_d[0] != 'B' || p_d[1] != 'B' || p_d[2] != 'C' || p_d[3] != 'D' )
#  481|           return false;
#  482|   

Error: GCC_ANALYZER_WARNING (CWE-835): [#def703]
vlc-3.0.21/modules/packetizer/dirac.c:675:17: warning[-Wanalyzer-infinite-loop]: infinite loop
vlc-3.0.21/modules/packetizer/dirac.c:1368:12: enter_function: entry to ‘Open’
#  673|       static const uint8_t p_parsecode[4] = {'B','B','C','D'};
#  674|       do {
#  675|->         switch( p_sys->i_state )
#  676|           {
#  677|           case NOT_SYNCED:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def704]
vlc-3.0.21/modules/packetizer/dts.c:367:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*p_sys.bytestream.p_block’
vlc-3.0.21/modules/packetizer/dts.c:129:17: enter_function: entry to ‘PacketizeBlock’
vlc-3.0.21/modules/packetizer/dts.c:135:24: branch_true: following ‘true’ branch (when ‘pp_block’ is non-NULL)...
vlc-3.0.21/modules/packetizer/dts.c:135:14: branch_true: ...to here
vlc-3.0.21/modules/packetizer/dts.c:137:7: branch_true: following ‘true’ branch (when ‘p_block’ is non-NULL)...
vlc-3.0.21/modules/packetizer/dts.c:139:14: branch_true: ...to here
vlc-3.0.21/modules/packetizer/dts.c:139:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/packetizer/dts.c:141:32: branch_true: ...to here
vlc-3.0.21/modules/packetizer/dts.c:141:32: call_function: calling ‘PacketizeBlock’ from ‘PacketizeBlock’
#  365|   
#  366|               /* Make sure we don't reuse the same pts twice */
#  367|->             if( p_sys->i_pts == p_sys->bytestream.p_block->i_pts )
#  368|                   p_sys->i_pts = p_sys->bytestream.p_block->i_pts = VLC_TICK_INVALID;
#  369|   

Error: GCC_ANALYZER_WARNING (CWE-835): [#def705]
vlc-3.0.21/modules/packetizer/flac.c:341:23: warning[-Wanalyzer-infinite-loop]: infinite loop
#  339|           block_BytestreamPush(&p_sys->bytestream, in);
#  340|   
#  341|->     while (1) switch (p_sys->i_state) {
#  342|       case STATE_NOSYNC:
#  343|           if(block_FindStartcodeFromOffset(&p_sys->bytestream, &p_sys->i_offset,

Error: COMPILER_WARNING (CWE-195): [#def706]
vlc-3.0.21/modules/packetizer/hxxx_sei.c: scope_hint: In function ‘HxxxParseSEI’
vlc-3.0.21/modules/packetizer/hxxx_sei.c:57:32: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’
#   57 |     if (bs_remain(&s_ep3b) / 8 > sizeof(buf))
#      |                                ^
#   55|       /* While a NAL can technically be up to 65535 bytes, an SEI NAL
#   56|          will never be anywhere near that size */
#   57|->     if (bs_remain(&s_ep3b) / 8 > sizeof(buf))
#   58|           return;
#   59|   

Error: COMPILER_WARNING: [#def707]
vlc-3.0.21/modules/packetizer/hxxx_sei.c:186:30: warning[-Wshadow=local]: declaration of ‘i’ shadows a previous local
#  186 |                 for ( size_t i = 0; i < 6 ; ++i)
#      |                              ^
vlc-3.0.21/modules/packetizer/hxxx_sei.c:46:9: note: shadowed declaration is here
#   46 |     int i = 0;
#      |         ^
#  184|                       /* not enough data */
#  185|                       break;
#  186|->                 for ( size_t i = 0; i < 6 ; ++i)
#  187|                       sei_data.colour_volume.primaries[i] = bs_read( &s, 16 );
#  188|                   for ( size_t i = 0; i < 2 ; ++i)

Error: COMPILER_WARNING: [#def708]
vlc-3.0.21/modules/packetizer/hxxx_sei.c:188:30: warning[-Wshadow=local]: declaration of ‘i’ shadows a previous local
#  188 |                 for ( size_t i = 0; i < 2 ; ++i)
#      |                              ^
vlc-3.0.21/modules/packetizer/hxxx_sei.c:46:9: note: shadowed declaration is here
#   46 |     int i = 0;
#      |         ^
#  186|                   for ( size_t i = 0; i < 6 ; ++i)
#  187|                       sei_data.colour_volume.primaries[i] = bs_read( &s, 16 );
#  188|->                 for ( size_t i = 0; i < 2 ; ++i)
#  189|                       sei_data.colour_volume.white_point[i] = bs_read( &s, 16 );
#  190|                   sei_data.colour_volume.max_luminance = bs_read( &s, 32 );

Error: GCC_ANALYZER_WARNING (CWE-465): [#def709]
vlc-3.0.21/modules/packetizer/mpegvideo.c:693:7: warning[-Wanalyzer-deref-before-check]: check of ‘p_frag’ for NULL after already dereferencing it
#  691|       }
#  692|   
#  693|->     if( !p_frag )
#  694|           return p_pic;
#  695|       /*

Error: GCC_ANALYZER_WARNING (CWE-476): [#def710]
vlc-3.0.21/modules/packetizer/vc1.c:380:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/modules/packetizer/vc1.c:336:17: enter_function: entry to ‘ParseIDU’
vlc-3.0.21/modules/packetizer/vc1.c:360:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/packetizer/vc1.c:361:9: branch_true: ...to here
vlc-3.0.21/modules/packetizer/vc1.c:360:9: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/packetizer/vc1.c:362:34: branch_true: ...to here
vlc-3.0.21/modules/packetizer/vc1.c:360:9: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/packetizer/vc1.c:363:34: branch_true: ...to here
vlc-3.0.21/modules/packetizer/vc1.c:360:9: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/packetizer/vc1.c:367:13: branch_true: ...to here
vlc-3.0.21/modules/packetizer/vc1.c:379:17: call_function: calling ‘block_ChainGather’ from ‘ParseIDU’
vlc-3.0.21/modules/packetizer/vc1.c:379:17: return_function: returning to ‘ParseIDU’ from ‘block_ChainGather’
vlc-3.0.21/modules/packetizer/vc1.c:380:9: danger: dereference of NULL ‘block_ChainGather(*p_sys.p_frame)’
#  378|           /* */
#  379|           p_pic = block_ChainGather( p_sys->p_frame );
#  380|->         p_pic->i_dts = p_sys->i_frame_dts;
#  381|           p_pic->i_pts = p_sys->i_frame_pts;
#  382|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def711]
vlc-3.0.21/modules/services_discovery/mediadirs.c:336:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘psz_dir’ where non-null expected
vlc-3.0.21/modules/services_discovery/mediadirs.c:335:21: acquire_memory: this call could return NULL
vlc-3.0.21/modules/services_discovery/mediadirs.c:336:21: danger: argument 1 (‘psz_dir’) from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  334|   
#  335|       char* psz_dir = strdup( psz_file );
#  336|->     char* psz_tmp = strrchr( psz_dir, DIR_SEP_CHAR );
#  337|       if( psz_tmp )
#  338|           *psz_tmp = '\0';

Error: GCC_ANALYZER_WARNING (CWE-401): [#def712]
vlc-3.0.21/modules/services_discovery/microdns.c:269:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*((services_discovery_t)*(void *)p_this).p_sys.s.items.pp_elems’
vlc-3.0.21/modules/services_discovery/microdns.c:436:1: enter_function: entry to ‘stop_sd_cb’
vlc-3.0.21/modules/services_discovery/microdns.c:441:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/microdns.c:445:9: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/microdns.c:445:9: call_function: calling ‘items_timeout’ from ‘stop_sd_cb’
#  267|           }
#  268|       }
#  269|-> }
#  270|   
#  271|   static void

Error: GCC_ANALYZER_WARNING (CWE-401): [#def713]
vlc-3.0.21/modules/services_discovery/microdns.c:269:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*((vlc_renderer_discovery_t)*(void *)p_this).p_sys.s.items.pp_elems’
vlc-3.0.21/modules/services_discovery/microdns.c:548:1: enter_function: entry to ‘stop_rd_cb’
vlc-3.0.21/modules/services_discovery/microdns.c:553:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/microdns.c:557:9: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/microdns.c:557:9: call_function: calling ‘items_timeout’ from ‘stop_rd_cb’
#  267|           }
#  268|       }
#  269|-> }
#  270|   
#  271|   static void

Error: COMPILER_WARNING (CWE-9001): [#def714]
vlc-3.0.21/modules/services_discovery/mtp.c: scope_hint: In function 'Run'
vlc-3.0.21/modules/services_discovery/mtp.c:168:13: warning[-Wattribute-warning]: call to 'harmful_delay' declared with attribute warning: use proper event handling instead of short delay
#  168 |             msleep( 5000000 );
#      |             ^
#  166|           if( i_status == 2 )
#  167|           {
#  168|->             msleep( 5000000 );
#  169|               i_status = 0;
#  170|           }

Error: COMPILER_WARNING (CWE-9001): [#def715]
vlc-3.0.21/modules/services_discovery/mtp.c:168:13: warning[-Wattribute-warning]: call to ‘harmful_delay’ declared with attribute warning: use proper event handling instead of short delay
#  166|           if( i_status == 2 )
#  167|           {
#  168|->             msleep( 5000000 );
#  169|               i_status = 0;
#  170|           }

Error: COMPILER_WARNING (CWE-9001): [#def716]
vlc-3.0.21/modules/services_discovery/mtp.c:172:13: warning[-Wattribute-warning]: call to 'harmful_delay' declared with attribute warning: use proper event handling instead of short delay
#  172 |             msleep( 500000 );
#      |             ^
#  170|           }
#  171|           else
#  172|->             msleep( 500000 );
#  173|       }
#  174|       return NULL;

Error: COMPILER_WARNING (CWE-9001): [#def717]
vlc-3.0.21/modules/services_discovery/mtp.c:172:13: warning[-Wattribute-warning]: call to ‘harmful_delay’ declared with attribute warning: use proper event handling instead of short delay
#  170|           }
#  171|           else
#  172|->             msleep( 500000 );
#  173|       }
#  174|       return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def718]
vlc-3.0.21/modules/services_discovery/mtp.c:205:15: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)*p_sd_27(D)->p_sys.i_tracks_num, 8)’
vlc-3.0.21/modules/services_discovery/mtp.c:187:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/services_discovery/mtp.c:189:27: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/mtp.c:197:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/mtp.c:205:52: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/mtp.c:205:44: acquire_memory: allocated here
vlc-3.0.21/modules/services_discovery/mtp.c:205:15: danger: ‘calloc((long unsigned int)*p_sd_27(D)->p_sys.i_tracks_num, 8)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  203|           else
#  204|           {
#  205|->             if( !( p_sd->p_sys->pp_items = calloc( p_sd->p_sys->i_tracks_num,
#  206|                                                      sizeof( input_item_t * ) ) ) )
#  207|               {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def719]
vlc-3.0.21/modules/services_discovery/podcast.c:331:13: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.pp_input’
vlc-3.0.21/modules/services_discovery/podcast.c:368:13: enter_function: entry to ‘ParseRequest’
vlc-3.0.21/modules/services_discovery/podcast.c:377:7: branch_false: following ‘false’ branch (when ‘psz_tok’ is non-NULL)...
vlc-3.0.21/modules/services_discovery/podcast.c:378:5: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/podcast.c:380:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/podcast.c:382:26: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/podcast.c:382:26: call_function: calling ‘var_GetNonEmptyString’ from ‘ParseRequest’
vlc-3.0.21/modules/services_discovery/podcast.c:382:26: return_function: returning to ‘ParseRequest’ from ‘var_GetNonEmptyString’
vlc-3.0.21/modules/services_discovery/podcast.c:384:9: call_function: calling ‘ParseUrls’ from ‘ParseRequest’
#  329|               services_discovery_AddItem( p_sd, p_input );
#  330|   
#  331|->             TAB_APPEND( p_sys->i_input, p_sys->pp_input,
#  332|                            input_CreateAndStart( p_sd, p_input, NULL ) );
#  333|           }

Error: COMPILER_WARNING: [#def720]
vlc-3.0.21/modules/services_discovery/podcast.c: scope_hint: In function ‘ParseUrls’
vlc-3.0.21/modules/services_discovery/podcast.c:358:14: warning[-Wshadow=compatible-local]: declaration of ‘i’ shadows a previous local
#  358 |     for( int i = 0; i < p_sys->i_urls; i++ )
#      |              ^
vlc-3.0.21/modules/services_discovery/podcast.c:307:9: note: shadowed declaration is here
#  307 |     int i, j;
#      |         ^
#  356|       }
#  357|       free( p_sys->pp_items );
#  358|->     for( int i = 0; i < p_sys->i_urls; i++ )
#  359|           free( p_sys->ppsz_urls[i] );
#  360|       free( p_sys->ppsz_urls );

Error: GCC_ANALYZER_WARNING (CWE-401): [#def721]
vlc-3.0.21/modules/services_discovery/podcast.c:396:13: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.ppsz_urls’
vlc-3.0.21/modules/services_discovery/podcast.c:377:7: branch_false: following ‘false’ branch (when ‘psz_tok’ is non-NULL)...
vlc-3.0.21/modules/services_discovery/podcast.c:378:5: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/podcast.c:388:7: branch_true: following ‘true’ branch (when the strings are equal)...
vlc-3.0.21/modules/services_discovery/podcast.c:390:9: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/podcast.c:394:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/services_discovery/podcast.c:396:13: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/podcast.c:396:13: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/podcast.c:396:13: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/podcast.c:396:13: acquire_memory: allocated here
vlc-3.0.21/modules/services_discovery/podcast.c:396:13: danger: ‘*p_sys.ppsz_urls’ leaks here; was allocated at [(10)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/9)
#  394|           if( i == p_sys->i_urls )
#  395|           {
#  396|->             TAB_APPEND( p_sys->i_urls, p_sys->ppsz_urls,
#  397|                           strdup( psz_request ) );
#  398|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def722]
vlc-3.0.21/modules/services_discovery/podcast.c:396:13: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(psz_request)’
vlc-3.0.21/modules/services_discovery/podcast.c:377:7: branch_false: following ‘false’ branch (when ‘psz_tok’ is non-NULL)...
vlc-3.0.21/modules/services_discovery/podcast.c:378:5: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/podcast.c:388:7: branch_true: following ‘true’ branch (when the strings are equal)...
vlc-3.0.21/modules/services_discovery/podcast.c:390:9: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/podcast.c:394:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/services_discovery/podcast.c:396:13: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/podcast.c:396:13: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/podcast.c:396:13: acquire_memory: allocated here
vlc-3.0.21/modules/services_discovery/podcast.c:396:13: danger: ‘strdup(psz_request)’ leaks here; was allocated at [(10)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/9)
#  394|           if( i == p_sys->i_urls )
#  395|           {
#  396|->             TAB_APPEND( p_sys->i_urls, p_sys->ppsz_urls,
#  397|                           strdup( psz_request ) );
#  398|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def723]
vlc-3.0.21/modules/services_discovery/podcast.c:403:13: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.pp_items’
vlc-3.0.21/modules/services_discovery/podcast.c:377:7: branch_false: following ‘false’ branch (when ‘psz_tok’ is non-NULL)...
vlc-3.0.21/modules/services_discovery/podcast.c:378:5: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/podcast.c:388:7: branch_true: following ‘true’ branch (when the strings are equal)...
vlc-3.0.21/modules/services_discovery/podcast.c:390:9: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/podcast.c:394:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/services_discovery/podcast.c:396:13: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/podcast.c:396:13: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/podcast.c:403:13: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/services_discovery/podcast.c:403:13: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/podcast.c:403:13: danger: ‘*p_sys.pp_items’ leaks here; was allocated at [(12)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/11)
#  401|               input_item_AddOption( p_input, "demux=directory", VLC_INPUT_OPTION_TRUSTED );
#  402|   
#  403|->             TAB_APPEND( p_sys->i_items, p_sys->pp_items, p_input );
#  404|               services_discovery_AddItem( p_sd, p_input );
#  405|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def724]
vlc-3.0.21/modules/services_discovery/podcast.c:406:13: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.pp_input’
vlc-3.0.21/modules/services_discovery/podcast.c:377:7: branch_false: following ‘false’ branch (when ‘psz_tok’ is non-NULL)...
vlc-3.0.21/modules/services_discovery/podcast.c:378:5: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/podcast.c:388:7: branch_true: following ‘true’ branch (when the strings are equal)...
vlc-3.0.21/modules/services_discovery/podcast.c:390:9: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/podcast.c:394:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/services_discovery/podcast.c:396:13: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/podcast.c:396:13: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/podcast.c:403:13: acquire_memory: allocated here
vlc-3.0.21/modules/services_discovery/podcast.c:403:13: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/podcast.c:403:13: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/podcast.c:406:13: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/services_discovery/podcast.c:406:13: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/podcast.c:406:13: danger: ‘*p_sys.pp_input’ leaks here; was allocated at [(15)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/14)
#  404|               services_discovery_AddItem( p_sd, p_input );
#  405|   
#  406|->             TAB_APPEND( p_sys->i_input, p_sys->pp_input,
#  407|                           input_CreateAndStart( p_sd, p_input, NULL ) );
#  408|               SaveUrls( p_sd );

Error: GCC_ANALYZER_WARNING (CWE-688): [#def725]
vlc-3.0.21/modules/services_discovery/podcast.c:444:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘psz_urls’ where non-null expected
vlc-3.0.21/modules/services_discovery/podcast.c:437:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/services_discovery/podcast.c:438:24: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/podcast.c:437:15: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/podcast.c:440:24: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/podcast.c:440:24: acquire_memory: this call could return NULL
vlc-3.0.21/modules/services_discovery/podcast.c:442:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/services_discovery/podcast.c:444:27: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/podcast.c:444:9: danger: argument 1 (‘psz_urls’) from [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
#argument 1 of ‘__builtin_strcat’ must be non-null
#  442|       for( i=0; i < p_sys->i_urls; i++ )
#  443|       {
#  444|->         strcat( psz_urls, p_sys->ppsz_urls[i] );
#  445|           if( i < p_sys->i_urls - 1 ) strcat( psz_urls, "|" );
#  446|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def726]
vlc-3.0.21/modules/services_discovery/pulse.c:152:16: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
vlc-3.0.21/modules/services_discovery/pulse.c:151:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/pulse.c:154:26: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/pulse.c:156:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/pulse.c:159:24: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/pulse.c:159:24: acquire_memory: allocated here
vlc-3.0.21/modules/services_discovery/pulse.c:160:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/pulse.c:165:16: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/pulse.c:169:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/pulse.c:175:9: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/pulse.c:175:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/pulse.c:185:41: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/pulse.c:152:16: danger: ‘d’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#  150|       char *mrl;
#  151|       if (unlikely(asprintf (&mrl, "pulse://%s", info->name) == -1))
#  152|->         return -1;
#  153|   
#  154|       input_item_t *item = input_item_NewCard (mrl, info->description);

Error: COMPILER_WARNING (CWE-477): [#def727]
vlc-3.0.21/modules/services_discovery/pulse.c: scope_hint: In function ‘AddSource’
vlc-3.0.21/modules/services_discovery/pulse.c:186:5: warning[-Wdeprecated-declarations]: ‘services_discovery_AddItemCat’ is deprecated
#  186 |     services_discovery_AddItemCat(sd, item,
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vlc-3.0.21/modules/services_discovery/pulse.c:34: included_from: Included from here.
vlc-3.0.21/include/vlc_services_discovery.h:194:20: note: declared here
#  194 | static inline void services_discovery_AddItemCat(services_discovery_t *sd,
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  184|   
#  185|       const char *card = pa_proplist_gets(info->proplist, "device.product.name");
#  186|->     services_discovery_AddItemCat(sd, item,
#  187|                                     (card != NULL) ? card : N_("Generic"));
#  188|       d->sd = sd;

Error: COMPILER_WARNING (CWE-477): [#def728]
vlc-3.0.21/modules/services_discovery/pulse.c:186:5: warning[-Wdeprecated-declarations]: ‘services_discovery_AddItemCat’ is deprecated
#  184|   
#  185|       const char *card = pa_proplist_gets(info->proplist, "device.product.name");
#  186|->     services_discovery_AddItemCat(sd, item,
#  187|                                     (card != NULL) ? card : N_("Generic"));
#  188|       d->sd = sd;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def729]
vlc-3.0.21/modules/services_discovery/sap.c:726:9: warning[-Wanalyzer-malloc-leak]: leak of ‘decomp’
vlc-3.0.21/modules/services_discovery/sap.c:660:12: enter_function: entry to ‘ParseSAP’
vlc-3.0.21/modules/services_discovery/sap.c:670:8: branch_false: following ‘false’ branch (when ‘len > 3’)...
vlc-3.0.21/modules/services_discovery/sap.c:673:13: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:677:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/sap.c:683:8: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:683:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/sap.c:689:10: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:700:7: branch_true: following ‘true’ branch...
 branch_true: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:702:25: branch_true: following ‘true’ branch (when ‘i != 4’)...
vlc-3.0.21/modules/services_discovery/sap.c:703:27: call_function: inlined call to ‘U32_AT’ from ‘ParseSAP’
vlc-3.0.21/modules/services_discovery/sap.c:713:8: branch_false: following ‘false’ branch (when ‘end >= buf’)...
vlc-3.0.21/modules/services_discovery/sap.c:716:14: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:717:7: branch_true: following ‘true’ branch (when ‘b_compressed != 0’)...
vlc-3.0.21/modules/services_discovery/sap.c:719:49: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:719:23: call_function: calling ‘Decompress’ from ‘ParseSAP’
vlc-3.0.21/modules/services_discovery/sap.c:719:23: return_function: returning to ‘ParseSAP’ from ‘Decompress’
vlc-3.0.21/modules/services_discovery/sap.c:720:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/sap.c:726:36: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:726:18: call_function: calling ‘xrealloc’ from ‘ParseSAP’
vlc-3.0.21/modules/services_discovery/sap.c:726:18: return_function: returning to ‘ParseSAP’ from ‘xrealloc’
vlc-3.0.21/modules/services_discovery/sap.c:726:9: danger: ‘decomp’ leaks here; was allocated at [(51)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/50)
#  724|           }
#  725|   
#  726|->         decomp = xrealloc (decomp, newsize + 1);
#  727|           decomp[newsize] = '\0';
#  728|           psz_sdp = (const char *)decomp;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def730]
vlc-3.0.21/modules/services_discovery/sap.c:742:9: warning[-Wanalyzer-null-argument]: use of NULL ‘psz_sdp’ where non-null expected
vlc-3.0.21/modules/services_discovery/sap.c:660:12: enter_function: entry to ‘ParseSAP’
vlc-3.0.21/modules/services_discovery/sap.c:670:8: branch_false: following ‘false’ branch (when ‘len > 3’)...
vlc-3.0.21/modules/services_discovery/sap.c:673:13: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:677:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/sap.c:683:8: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:683:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/sap.c:689:10: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:700:7: branch_true: following ‘true’ branch...
 branch_true: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:702:25: branch_true: following ‘true’ branch (when ‘i != 4’)...
vlc-3.0.21/modules/services_discovery/sap.c:703:27: call_function: inlined call to ‘U32_AT’ from ‘ParseSAP’
vlc-3.0.21/modules/services_discovery/sap.c:713:8: branch_false: following ‘false’ branch (when ‘end >= buf’)...
vlc-3.0.21/modules/services_discovery/sap.c:716:14: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:717:7: branch_true: following ‘true’ branch (when ‘b_compressed != 0’)...
vlc-3.0.21/modules/services_discovery/sap.c:719:49: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:719:23: call_function: calling ‘Decompress’ from ‘ParseSAP’
vlc-3.0.21/modules/services_discovery/sap.c:719:23: return_function: returning to ‘ParseSAP’ from ‘Decompress’
vlc-3.0.21/modules/services_discovery/sap.c:720:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/sap.c:726:36: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:726:18: release_memory: ‘decomp’ is NULL
vlc-3.0.21/modules/services_discovery/sap.c:726:18: call_function: calling ‘xrealloc’ from ‘ParseSAP’
vlc-3.0.21/modules/services_discovery/sap.c:726:18: return_function: returning to ‘ParseSAP’ from ‘xrealloc’
vlc-3.0.21/modules/services_discovery/sap.c:742:9: danger: argument 1 (‘psz_sdp’) NULL where non-null expected
#  740|       /* Skip payload type */
#  741|       /* SAPv1 has implicit "application/sdp" payload type: first line is v=0 */
#  742|->     if (strncmp (psz_sdp, "v=0", 3))
#  743|       {
#  744|           size_t clen = strlen (psz_sdp) + 1;

Error: COMPILER_WARNING (CWE-477): [#def731]
vlc-3.0.21/modules/services_discovery/sap.c: scope_hint: In function ‘CreateAnnounce’
vlc-3.0.21/modules/services_discovery/sap.c:900:9: warning[-Wdeprecated-declarations]: ‘services_discovery_AddItemCat’ is deprecated
#  900 |         services_discovery_AddItemCat(p_sd, p_input, str ? str : psz_value);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vlc-3.0.21/modules/services_discovery/sap.c:39: included_from: Included from here.
vlc-3.0.21/include/vlc_services_discovery.h:194:20: note: declared here
#  194 | static inline void services_discovery_AddItemCat(services_discovery_t *sd,
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  898|               for (char *p = strchr(str, '.'); p != NULL; p = strchr(p, '.'))
#  899|                   *(p++) = '|';
#  900|->         services_discovery_AddItemCat(p_sd, p_input, str ? str : psz_value);
#  901|           free(str);
#  902|       }

Error: COMPILER_WARNING (CWE-477): [#def732]
vlc-3.0.21/modules/services_discovery/sap.c:900:9: warning[-Wdeprecated-declarations]: ‘services_discovery_AddItemCat’ is deprecated
#  898|               for (char *p = strchr(str, '.'); p != NULL; p = strchr(p, '.'))
#  899|                   *(p++) = '|';
#  900|->         services_discovery_AddItemCat(p_sd, p_input, str ? str : psz_value);
#  901|           free(str);
#  902|       }

Error: COMPILER_WARNING (CWE-477): [#def733]
vlc-3.0.21/modules/services_discovery/sap.c:908:9: warning[-Wdeprecated-declarations]: ‘services_discovery_AddItemCat’ is deprecated
#  908 |         services_discovery_AddItemCat(p_sd, p_input, psz_value);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vlc-3.0.21/include/vlc_services_discovery.h:194:20: note: declared here
#  194 | static inline void services_discovery_AddItemCat(services_discovery_t *sd,
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  906|           psz_value = GetAttribute(p_sap->p_sdp->pp_attributes,
#  907|                                    p_sap->p_sdp->i_attributes, "x-plgroup");
#  908|->         services_discovery_AddItemCat(p_sd, p_input, psz_value);
#  909|       }
#  910|   

Error: COMPILER_WARNING (CWE-477): [#def734]
vlc-3.0.21/modules/services_discovery/sap.c:908:9: warning[-Wdeprecated-declarations]: ‘services_discovery_AddItemCat’ is deprecated
#  906|           psz_value = GetAttribute(p_sap->p_sdp->pp_attributes,
#  907|                                    p_sap->p_sdp->i_attributes, "x-plgroup");
#  908|->         services_discovery_AddItemCat(p_sd, p_input, psz_value);
#  909|       }
#  910|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def735]
vlc-3.0.21/modules/services_discovery/sap.c:911:5: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.pp_announces’
vlc-3.0.21/modules/services_discovery/sap.c:839:7: branch_false: following ‘false’ branch (when ‘p_sap’ is non-NULL)...
vlc-3.0.21/modules/services_discovery/sap.c:842:5: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:854:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/sap.c:859:5: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:862:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/sap.c:868:9: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:879:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/sap.c:883:17: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:911:5: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/services_discovery/sap.c:911:5: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:911:5: danger: ‘*p_sys.pp_announces’ leaks here; was allocated at [(11)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/10)
#  909|       }
#  910|   
#  911|->     TAB_APPEND( p_sys->i_announces, p_sys->pp_announces, p_sap );
#  912|   
#  913|       return p_sap;

Error: GCC_ANALYZER_WARNING (CWE-131): [#def736]
vlc-3.0.21/modules/services_discovery/sap.c:1449:21: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
vlc-3.0.21/modules/services_discovery/sap.c:660:12: enter_function: entry to ‘ParseSAP’
vlc-3.0.21/modules/services_discovery/sap.c:670:8: branch_false: following ‘false’ branch (when ‘len > 3’)...
vlc-3.0.21/modules/services_discovery/sap.c:673:13: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:677:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/sap.c:683:8: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:683:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/sap.c:689:10: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:700:7: branch_true: following ‘true’ branch...
 branch_true: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:702:25: branch_true: following ‘true’ branch (when ‘i != 4’)...
vlc-3.0.21/modules/services_discovery/sap.c:703:27: call_function: inlined call to ‘U32_AT’ from ‘ParseSAP’
vlc-3.0.21/modules/services_discovery/sap.c:713:8: branch_false: following ‘false’ branch (when ‘end >= buf’)...
vlc-3.0.21/modules/services_discovery/sap.c:716:14: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:717:7: branch_true: following ‘true’ branch (when ‘b_compressed != 0’)...
vlc-3.0.21/modules/services_discovery/sap.c:719:49: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:719:23: call_function: calling ‘Decompress’ from ‘ParseSAP’
vlc-3.0.21/modules/services_discovery/sap.c:719:23: return_function: returning to ‘ParseSAP’ from ‘Decompress’
vlc-3.0.21/modules/services_discovery/sap.c:720:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/sap.c:726:36: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:726:18: call_function: calling ‘xrealloc’ from ‘ParseSAP’
vlc-3.0.21/modules/services_discovery/sap.c:726:18: return_function: returning to ‘ParseSAP’ from ‘xrealloc’
vlc-3.0.21/modules/services_discovery/sap.c:761:13: call_function: calling ‘ParseSDP’ from ‘ParseSAP’
# 1447|                           goto error;
# 1448|   
# 1449|->                     TAB_APPEND (p_sdp->mediav[p_sdp->mediac - 1].i_attributes,
# 1450|                                   p_sdp->mediav[p_sdp->mediac - 1].pp_attributes, p_attr);
# 1451|                       break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def737]
vlc-3.0.21/modules/services_discovery/sap.c:1481:5: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(4)’
vlc-3.0.21/modules/services_discovery/sap.c:1477:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/sap.c:1480:5: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:1481:5: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/sap.c:1481:5: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:1481:5: acquire_memory: allocated here
vlc-3.0.21/modules/services_discovery/sap.c:1481:5: danger: ‘malloc(4)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
# 1479|   
# 1480|       shutdown( i_fd, SHUT_WR );
# 1481|->     TAB_APPEND(p_sd->p_sys->i_fd, p_sd->p_sys->pi_fd, i_fd);
# 1482|       return VLC_SUCCESS;
# 1483|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def738]
vlc-3.0.21/modules/services_discovery/sap.c:1481:5: warning[-Wanalyzer-malloc-leak]: leak of ‘realloc(*p_sd_21(D)->p_sys.pi_fd, (long unsigned int)(*p_sd_21(D)->p_sys.i_fd + 1) * 4)’
vlc-3.0.21/modules/services_discovery/sap.c:1477:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/sap.c:1480:5: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:1481:5: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/services_discovery/sap.c:1481:5: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:1481:5: danger: ‘realloc(*p_sd_21(D)->p_sys.pi_fd, (long unsigned int)(*p_sd_21(D)->p_sys.i_fd + 1) * 4)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
# 1479|   
# 1480|       shutdown( i_fd, SHUT_WR );
# 1481|->     TAB_APPEND(p_sd->p_sys->i_fd, p_sd->p_sys->pi_fd, i_fd);
# 1482|       return VLC_SUCCESS;
# 1483|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def739]
vlc-3.0.21/modules/services_discovery/sap.c:1606:13: warning[-Wanalyzer-malloc-leak]: leak of ‘MakeAttribute(data)’
vlc-3.0.21/modules/services_discovery/sap.c:1167:15: enter_function: entry to ‘ParseSDP’
vlc-3.0.21/modules/services_discovery/sap.c:1169:7: branch_false: following ‘false’ branch (when ‘psz_sdp’ is non-NULL)...
vlc-3.0.21/modules/services_discovery/sap.c:1172:20: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:1173:8: branch_false: following ‘false’ branch (when ‘p_sdp’ is non-NULL)...
vlc-3.0.21/modules/services_discovery/sap.c:1178:5: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:1184:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/services_discovery/sap.c:1185:5: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:1188:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/sap.c:1191:19: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:1199:12: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
vlc-3.0.21/modules/services_discovery/sap.c:1206:14: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:1207:12: branch_false: following ‘false’ branch (when ‘cat != 0’)...
vlc-3.0.21/modules/services_discovery/sap.c:1207:22: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:1207:13: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/sap.c:1213:13: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:1213:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/sap.c:1224:9: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:1229:20: branch_false: following ‘false’ branch (when ‘cat == 118’)...
vlc-3.0.21/modules/services_discovery/sap.c:1234:21: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:1234:20: branch_false: following ‘false’ branch (when the strings are equal)...
 branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:1184:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/services_discovery/sap.c:1185:5: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:1188:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/sap.c:1191:19: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:1199:12: branch_false: following ‘false’ branch (when ‘eol’ is NULL)...
vlc-3.0.21/modules/services_discovery/sap.c:1206:14: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:1207:12: branch_false: following ‘false’ branch (when ‘cat != 0’)...
vlc-3.0.21/modules/services_discovery/sap.c:1207:22: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:1207:13: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/sap.c:1213:13: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:1213:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/sap.c:1224:9: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:1351:20: branch_true: following ‘true’ branch (when ‘cat == 97’)...
vlc-3.0.21/modules/services_discovery/sap.c:1353:43: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:1353:43: call_function: calling ‘MakeAttribute’ from ‘ParseSDP’
vlc-3.0.21/modules/services_discovery/sap.c:1353:43: return_function: returning to ‘ParseSDP’ from ‘MakeAttribute’
vlc-3.0.21/modules/services_discovery/sap.c:1354:21: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/sap.c:1354:21: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/sap.c:1606:13: danger: ‘MakeAttribute(data)’ leaks here; was allocated at [(44)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/43)
# 1604|           return NULL;
# 1605|   
# 1606|->     strcpy (a->name, str);
# 1607|       EnsureUTF8 (a->name);
# 1608|       char *value = strchr (a->name, ':');

Error: GCC_ANALYZER_WARNING (CWE-401): [#def740]
vlc-3.0.21/modules/services_discovery/udev.c:204:5: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
vlc-3.0.21/modules/services_discovery/udev.c:320:14: enter_function: entry to ‘Run’
vlc-3.0.21/modules/services_discovery/udev.c:341:12: branch_true: following ‘true’ branch (when the strings are equal)...
vlc-3.0.21/modules/services_discovery/udev.c:342:13: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/udev.c:342:13: call_function: calling ‘AddDevice’ from ‘Run’
#  202|   
#  203|       services_discovery_AddItem(sd, item);
#  204|->     d->sd = sd;
#  205|       return 0;
#  206|   }

Error: CPPCHECK_WARNING (CWE-401): [#def741]
vlc-3.0.21/modules/services_discovery/upnp.cpp:622: error[memleak]: Memory leak: psz_satip_channellist
#  620|           psz_satip_channellist = strdup( "MasterList" );
#  621|           if( unlikely( !psz_satip_channellist ) )
#  622|->             return;
#  623|       }
#  624|   

Error: CPPCHECK_WARNING (CWE-476): [#def742]
vlc-3.0.21/modules/services_discovery/upnp.cpp:1052: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: m_psz_root
# 1050|   {
# 1051|       m_psz_root = strdup( p_access->psz_url );
# 1052|->     char* psz_objectid = strstr( m_psz_root, "ObjectID=" );
# 1053|       if ( psz_objectid != NULL )
# 1054|       {

Error: COMPILER_WARNING: [#def743]
vlc-3.0.21/modules/services_discovery/upnp.cpp: scope_hint: In member function ‘bool Access::MediaServer::addItem(IXML_Element*)’
vlc-3.0.21/modules/services_discovery/upnp.cpp:1118:17: warning[-Wimplicit-fallthrough=]: this statement may fall through
# 1118 |                 if (!p_item) {
#      |                 ^~
vlc-3.0.21/modules/services_discovery/upnp.cpp:1122:13: note: here
# 1122 |             case ItemDescriptionHolder::VIDEO:
#      |             ^~~~
# 1116|               {
# 1117|               case ItemDescriptionHolder::IMAGE:
# 1118|->                 if (!p_item) {
# 1119|                       p_item = holder.createNewItem(p_resource);
# 1120|                       break;

Error: COMPILER_WARNING (CWE-1164): [#def744]
vlc-3.0.21/modules/services_discovery/upnp.cpp: scope_hint: At global scope
vlc-3.0.21/modules/services_discovery/upnp.cpp:1660:14: warning[-Wunused-function]: ‘char* getIpv4ForMulticast()’ defined but not used
# 1660 | static char *getIpv4ForMulticast()
#      |              ^~~~~~~~~~~~~~~~~~~
# 1658|   #endif
# 1659|   
# 1660|-> static char *getIpv4ForMulticast()
# 1661|   {
# 1662|       return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def745]
vlc-3.0.21/modules/services_discovery/xcb_apps.c:336:13: warning[-Wanalyzer-malloc-leak]: leak of ‘app’
vlc-3.0.21/modules/services_discovery/xcb_apps.c:310:13: enter_function: entry to ‘UpdateApps’
vlc-3.0.21/modules/services_discovery/xcb_apps.c:320:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/xcb_apps.c:323:25: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/xcb_apps.c:327:21: branch_true: following ‘true’ branch (when ‘i < n’)...
vlc-3.0.21/modules/services_discovery/xcb_apps.c:329:28: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/xcb_apps.c:333:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/xcb_apps.c:340:19: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/xcb_apps.c:340:19: call_function: calling ‘AddApp’ from ‘UpdateApps’
vlc-3.0.21/modules/services_discovery/xcb_apps.c:340:19: return_function: returning to ‘UpdateApps’ from ‘AddApp’
vlc-3.0.21/modules/services_discovery/xcb_apps.c:341:16: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/xcb_apps.c:345:14: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/xcb_apps.c:346:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/xcb_apps.c:327:21: branch_true: following ‘true’ branch (when ‘i < n’)...
vlc-3.0.21/modules/services_discovery/xcb_apps.c:329:28: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/xcb_apps.c:333:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/services_discovery/xcb_apps.c:335:13: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/xcb_apps.c:336:13: danger: ‘app’ leaks here; was allocated at [(14)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/13)
#  334|           {
#  335|               app = *pa;
#  336|->             tdelete (app, &oldnodes, cmpapp);
#  337|           }
#  338|           else /* new entry */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def746]
vlc-3.0.21/modules/services_discovery/xcb_apps.c:353:5: warning[-Wanalyzer-malloc-leak]: leak of ‘app’
vlc-3.0.21/modules/services_discovery/xcb_apps.c:310:13: enter_function: entry to ‘UpdateApps’
vlc-3.0.21/modules/services_discovery/xcb_apps.c:320:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/xcb_apps.c:323:25: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/xcb_apps.c:327:21: branch_true: following ‘true’ branch (when ‘i < n’)...
vlc-3.0.21/modules/services_discovery/xcb_apps.c:329:28: branch_true: ...to here
vlc-3.0.21/modules/services_discovery/xcb_apps.c:333:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/xcb_apps.c:340:19: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/xcb_apps.c:340:19: call_function: calling ‘AddApp’ from ‘UpdateApps’
vlc-3.0.21/modules/services_discovery/xcb_apps.c:340:19: return_function: returning to ‘UpdateApps’ from ‘AddApp’
vlc-3.0.21/modules/services_discovery/xcb_apps.c:341:16: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/xcb_apps.c:345:14: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/xcb_apps.c:346:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/services_discovery/xcb_apps.c:327:21: branch_false: following ‘false’ branch (when ‘i >= n’)...
vlc-3.0.21/modules/services_discovery/xcb_apps.c:349:5: branch_false: ...to here
vlc-3.0.21/modules/services_discovery/xcb_apps.c:353:5: danger: ‘app’ leaks here; was allocated at [(14)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/13)
#  351|       /* Remove old nodes */
#  352|       tdestroy (oldnodes, DelApp);
#  353|->     p_sys->apps = newnodes;
#  354|   }
#  355|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def747]
vlc-3.0.21/modules/spu/mosaic.c:244:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/modules/spu/mosaic.c:278:12: enter_function: entry to ‘CreateFilter’
vlc-3.0.21/modules/spu/mosaic.c:289:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/spu/mosaic.c:292:5: branch_false: ...to here
vlc-3.0.21/modules/spu/mosaic.c:338:17: call_function: calling ‘var_CreateGetStringCommand’ from ‘CreateFilter’
vlc-3.0.21/modules/spu/mosaic.c:338:17: return_function: returning to ‘CreateFilter’ from ‘var_CreateGetStringCommand’
vlc-3.0.21/modules/spu/mosaic.c:362:19: call_function: calling ‘var_CreateGetStringCommand’ from ‘CreateFilter’
vlc-3.0.21/modules/spu/mosaic.c:362:19: return_function: returning to ‘CreateFilter’ from ‘var_CreateGetStringCommand’
vlc-3.0.21/modules/spu/mosaic.c:366:5: call_function: inlined call to ‘mosaic_ParseSetOffsets’ from ‘CreateFilter’
#  242|                                         char *psz_offsets )
#  243|   {
#  244|->     if( *psz_offsets )
#  245|       {
#  246|           char *psz_end = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def748]
vlc-3.0.21/modules/spu/mosaic.c:342:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/modules/spu/mosaic.c:278:12: enter_function: entry to ‘CreateFilter’
vlc-3.0.21/modules/spu/mosaic.c:289:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/spu/mosaic.c:292:5: branch_false: ...to here
vlc-3.0.21/modules/spu/mosaic.c:338:17: call_function: calling ‘var_CreateGetStringCommand’ from ‘CreateFilter’
vlc-3.0.21/modules/spu/mosaic.c:338:17: return_function: returning to ‘CreateFilter’ from ‘var_CreateGetStringCommand’
vlc-3.0.21/modules/spu/mosaic.c:342:9: danger: dereference of NULL ‘var_CreateGetStringCommand(&*(filter_t *)p_this.obj, "mosaic-order")’
#  340|       var_AddCallback( p_filter, CFG_PREFIX "order", MosaicCallback, p_sys );
#  341|   
#  342|->     if( *psz_order )
#  343|       {
#  344|           char *psz_end = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def749]
vlc-3.0.21/modules/spu/mosaic.c:354:13: warning[-Wanalyzer-malloc-leak]: leak of ‘strndup(psz_order, (long unsigned int)(psz_end - psz_order))’
vlc-3.0.21/modules/spu/mosaic.c:278:12: enter_function: entry to ‘CreateFilter’
vlc-3.0.21/modules/spu/mosaic.c:289:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/spu/mosaic.c:292:5: branch_false: ...to here
vlc-3.0.21/modules/spu/mosaic.c:338:17: call_function: calling ‘var_CreateGetStringCommand’ from ‘CreateFilter’
vlc-3.0.21/modules/spu/mosaic.c:338:17: return_function: returning to ‘CreateFilter’ from ‘var_CreateGetStringCommand’
vlc-3.0.21/modules/spu/mosaic.c:342:7: branch_true: following ‘true’ branch...
 branch_true: ...to here
vlc-3.0.21/modules/spu/mosaic.c:350:33: call_function: calling ‘xrealloc’ from ‘CreateFilter’
vlc-3.0.21/modules/spu/mosaic.c:350:33: return_function: returning to ‘CreateFilter’ from ‘xrealloc’
vlc-3.0.21/modules/spu/mosaic.c:352:46: acquire_memory: allocated here
vlc-3.0.21/modules/spu/mosaic.c:354:13: danger: ‘strndup(psz_order, (long unsigned int)(psz_end - psz_order))’ leaks here; was allocated at [(21)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/20)
#  352|               p_sys->ppsz_order[i_index - 1] = strndup( psz_order,
#  353|                                              psz_end - psz_order );
#  354|->             psz_order = psz_end+1;
#  355|           } while( psz_end );
#  356|           p_sys->i_order_length = i_index;

Error: COMPILER_WARNING: [#def750]
vlc-3.0.21/modules/spu/remoteosd.c: scope_hint: In function ‘vnc_connect’
vlc-3.0.21/modules/spu/remoteosd.c:363:5: warning[-Wstringop-truncation]: ‘strncpy’ output truncated before terminating nul copying 12 bytes from a string of the same length
#  363 |     strncpy(pv, "RFB 003.003\n", sz_rfbProtocolVersionMsg);
#      |     ^
#  361|       msg_Dbg( p_filter, "Server version is %s", pv );
#  362|   
#  363|->     strncpy(pv, "RFB 003.003\n", sz_rfbProtocolVersionMsg);
#  364|   
#  365|       if( !write_exact(p_filter, fd, pv, sz_rfbProtocolVersionMsg) )

Error: GCC_ANALYZER_WARNING (CWE-476): [#def751]
vlc-3.0.21/modules/spu/rss.c:475:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘a’
vlc-3.0.21/modules/spu/rss.c:375:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/spu/rss.c:385:5: branch_false: ...to here
vlc-3.0.21/modules/spu/rss.c:405:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/spu/rss.c:411:5: branch_false: ...to here
vlc-3.0.21/modules/spu/rss.c:414:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/spu/rss.c:423:5: branch_false: ...to here
vlc-3.0.21/modules/spu/rss.c:468:19: acquire_memory: this call could return NULL
vlc-3.0.21/modules/spu/rss.c:473:16: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/spu/rss.c:475:23: branch_true: ...to here
vlc-3.0.21/modules/spu/rss.c:475:23: danger: ‘a’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
#  473|           while( *b != '\0' )
#  474|           {
#  475|->             if( *b != *a ) *b = ' ';
#  476|               b++;a++;
#  477|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def752]
vlc-3.0.21/modules/spu/rss.c:609:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘psz_clean’
vlc-3.0.21/modules/spu/rss.c:606:28: acquire_memory: this call could return NULL
vlc-3.0.21/modules/spu/rss.c:609:14: danger: ‘psz_clean’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  607|       int i;
#  608|   
#  609|->     while( ( *psz_clean == ' ' || *psz_clean == '\t'
#  610|              || *psz_clean == '\n' || *psz_clean == '\r' )
#  611|              && *psz_clean != '\0' )

Error: GCC_ANALYZER_WARNING (CWE-476): [#def753]
vlc-3.0.21/modules/spu/rss.c:659:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘psz_end’
vlc-3.0.21/modules/spu/rss.c:629:12: enter_function: entry to ‘ParseUrls’
vlc-3.0.21/modules/spu/rss.c:645:22: call_function: inlined call to ‘vlc_alloc’ from ‘ParseUrls’
vlc-3.0.21/modules/spu/rss.c:646:7: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/spu/rss.c:651:21: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/spu/rss.c:653:30: branch_true: ...to here
vlc-3.0.21/modules/spu/rss.c:656:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/spu/rss.c:658:23: branch_true: ...to here
vlc-3.0.21/modules/spu/rss.c:659:13: danger: dereference of NULL ‘psz_end’
#  657|           {
#  658|               psz_end = strchr( psz_urls, '|' );
#  659|->             *psz_end = '\0';
#  660|           }
#  661|           else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def754]
vlc-3.0.21/modules/stream_extractor/archive.c:248:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/modules/stream_extractor/archive.c:700:23: enter_function: entry to ‘CommonOpen’
vlc-3.0.21/modules/stream_extractor/archive.c:702:9: call_function: calling ‘probe’ from ‘CommonOpen’
vlc-3.0.21/modules/stream_extractor/archive.c:702:9: return_function: returning to ‘CommonOpen’ from ‘probe’
vlc-3.0.21/modules/stream_extractor/archive.c:702:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_extractor/archive.c:705:28: branch_false: ...to here
vlc-3.0.21/modules/stream_extractor/archive.c:705:28: call_function: calling ‘setup’ from ‘CommonOpen’
#  246|   
#  247|   error:
#  248|->     free( pp_callback_data );
#  249|       return VLC_ENOMEM;
#  250|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def755]
vlc-3.0.21/modules/stream_extractor/archive.c:443:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/modules/stream_extractor/archive.c:700:23: enter_function: entry to ‘CommonOpen’
vlc-3.0.21/modules/stream_extractor/archive.c:702:9: call_function: calling ‘probe’ from ‘CommonOpen’
vlc-3.0.21/modules/stream_extractor/archive.c:702:9: return_function: returning to ‘CommonOpen’ from ‘probe’
vlc-3.0.21/modules/stream_extractor/archive.c:702:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_extractor/archive.c:705:28: branch_false: ...to here
vlc-3.0.21/modules/stream_extractor/archive.c:705:28: call_function: calling ‘setup’ from ‘CommonOpen’
#  441|   error:
#  442|       free( psz_files );
#  443|->     free( p_sys );
#  444|       return NULL;
#  445|   }

Error: COMPILER_WARNING: [#def756]
vlc-3.0.21/modules/stream_filter/aribcam.c:55:38: warning[-Wduplicate-decl-specifier]: duplicate ‘const’ declaration specifier
#   55 | static const struct error_messages_s const b25_errors[] =
#      |                                      ^~~~~
#   53|   };
#   54|   
#   55|-> static const struct error_messages_s const b25_errors[] =
#   56|   {
#   57|       { ARIB_STD_B25_ERROR_INVALID_PARAM, "Invalid parameter" },

Error: COMPILER_WARNING: [#def757]
vlc-3.0.21/modules/stream_filter/aribcam.c:76:38: warning[-Wduplicate-decl-specifier]: duplicate ‘const’ declaration specifier
#   76 | static const struct error_messages_s const bcas_errors[] =
#      |                                      ^~~~~
#   74|   };
#   75|   
#   76|-> static const struct error_messages_s const bcas_errors[] =
#   77|   {
#   78|       { B_CAS_CARD_ERROR_INVALID_PARAMETER, "Invalid parameter" },

Error: COMPILER_WARNING: [#def758]
vlc-3.0.21/modules/stream_filter/aribcam.c:100:62: warning[-Wduplicate-decl-specifier]: duplicate ‘const’ declaration specifier
#  100 |                                const struct error_messages_s const *p_errors_messages )
#      |                                                              ^~~~~
#   98|   
#   99|   static const char * GetErrorMessage( const int i_error,
#  100|->                                const struct error_messages_s const *p_errors_messages )
#  101|   {
#  102|       int i = 0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def759]
vlc-3.0.21/modules/stream_filter/hds/hds.c:552:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*s.movie_id’ where non-null expected
vlc-3.0.21/modules/stream_filter/hds/hds.c:507:13: enter_function: entry to ‘parse_BootstrapData’
vlc-3.0.21/modules/stream_filter/hds/hds.c:523:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:542:20: call_function: inlined call to ‘U32_AT’ from ‘parse_BootstrapData’
vlc-3.0.21/modules/stream_filter/hds/hds.c:551:19: acquire_memory: this call could return NULL
vlc-3.0.21/modules/stream_filter/hds/hds.c:552:17: danger: argument 1 (‘strndup(data_p, (long unsigned int)(data_end - data_p))’) from [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
#  550|   
#  551|       s->movie_id = strndup( (char*)data_p, data_end - data_p );
#  552|->     data_p += ( strlen( s->movie_id ) + 1 );
#  553|   
#  554|       if( data_end - data_p < 4 ) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def760]
vlc-3.0.21/modules/stream_filter/hds/hds.c:570:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*s.server_entries[0]’ where non-null expected
vlc-3.0.21/modules/stream_filter/hds/hds.c:507:13: enter_function: entry to ‘parse_BootstrapData’
vlc-3.0.21/modules/stream_filter/hds/hds.c:523:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:542:20: call_function: inlined call to ‘U32_AT’ from ‘parse_BootstrapData’
vlc-3.0.21/modules/stream_filter/hds/hds.c:554:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:560:5: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:568:58: acquire_memory: this call could return NULL
vlc-3.0.21/modules/stream_filter/hds/hds.c:570:23: danger: argument 1 (‘*s.server_entries[<unknown>]’) from [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10) could be NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
#  568|               s->server_entries[s->server_entry_count++] = strndup( (char*)data_p,
#  569|                                                                     data_end - data_p );
#  570|->             data_p += strlen( s->server_entries[s->server_entry_count-1] ) + 1;
#  571|           }
#  572|           else

Error: GCC_ANALYZER_WARNING (CWE-688): [#def761]
vlc-3.0.21/modules/stream_filter/hds/hds.c:570:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*s.server_entries[1]’ where non-null expected
vlc-3.0.21/modules/stream_filter/hds/hds.c:507:13: enter_function: entry to ‘parse_BootstrapData’
vlc-3.0.21/modules/stream_filter/hds/hds.c:523:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:542:20: call_function: inlined call to ‘U32_AT’ from ‘parse_BootstrapData’
vlc-3.0.21/modules/stream_filter/hds/hds.c:554:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:560:5: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:568:58: acquire_memory: this call could return NULL
vlc-3.0.21/modules/stream_filter/hds/hds.c:570:23: danger: argument 1 (‘*s.server_entries[<unknown>]’) from [(17)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/16) could be NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
#  568|               s->server_entries[s->server_entry_count++] = strndup( (char*)data_p,
#  569|                                                                     data_end - data_p );
#  570|->             data_p += strlen( s->server_entries[s->server_entry_count-1] ) + 1;
#  571|           }
#  572|           else

Error: GCC_ANALYZER_WARNING (CWE-688): [#def762]
vlc-3.0.21/modules/stream_filter/hds/hds.c:570:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*s.server_entries[2]’ where non-null expected
vlc-3.0.21/modules/stream_filter/hds/hds.c:507:13: enter_function: entry to ‘parse_BootstrapData’
vlc-3.0.21/modules/stream_filter/hds/hds.c:523:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:542:20: call_function: inlined call to ‘U32_AT’ from ‘parse_BootstrapData’
vlc-3.0.21/modules/stream_filter/hds/hds.c:554:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:560:5: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:568:58: acquire_memory: this call could return NULL
vlc-3.0.21/modules/stream_filter/hds/hds.c:570:23: danger: argument 1 (‘*s.server_entries[<unknown>]’) from [(23)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/22) could be NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
#  568|               s->server_entries[s->server_entry_count++] = strndup( (char*)data_p,
#  569|                                                                     data_end - data_p );
#  570|->             data_p += strlen( s->server_entries[s->server_entry_count-1] ) + 1;
#  571|           }
#  572|           else

Error: GCC_ANALYZER_WARNING (CWE-688): [#def763]
vlc-3.0.21/modules/stream_filter/hds/hds.c:570:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*s.server_entries[3]’ where non-null expected
vlc-3.0.21/modules/stream_filter/hds/hds.c:507:13: enter_function: entry to ‘parse_BootstrapData’
vlc-3.0.21/modules/stream_filter/hds/hds.c:523:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:542:20: call_function: inlined call to ‘U32_AT’ from ‘parse_BootstrapData’
vlc-3.0.21/modules/stream_filter/hds/hds.c:554:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:560:5: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:568:58: acquire_memory: this call could return NULL
vlc-3.0.21/modules/stream_filter/hds/hds.c:570:23: danger: argument 1 (‘*s.server_entries[<unknown>]’) from [(29)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/28) could be NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
#  568|               s->server_entries[s->server_entry_count++] = strndup( (char*)data_p,
#  569|                                                                     data_end - data_p );
#  570|->             data_p += strlen( s->server_entries[s->server_entry_count-1] ) + 1;
#  571|           }
#  572|           else

Error: GCC_ANALYZER_WARNING (CWE-688): [#def764]
vlc-3.0.21/modules/stream_filter/hds/hds.c:570:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*s.server_entries[4]’ where non-null expected
vlc-3.0.21/modules/stream_filter/hds/hds.c:507:13: enter_function: entry to ‘parse_BootstrapData’
vlc-3.0.21/modules/stream_filter/hds/hds.c:523:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:542:20: call_function: inlined call to ‘U32_AT’ from ‘parse_BootstrapData’
vlc-3.0.21/modules/stream_filter/hds/hds.c:554:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:560:5: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:568:58: acquire_memory: this call could return NULL
vlc-3.0.21/modules/stream_filter/hds/hds.c:570:23: danger: argument 1 (‘*s.server_entries[<unknown>]’) from [(35)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/34) could be NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
#  568|               s->server_entries[s->server_entry_count++] = strndup( (char*)data_p,
#  569|                                                                     data_end - data_p );
#  570|->             data_p += strlen( s->server_entries[s->server_entry_count-1] ) + 1;
#  571|           }
#  572|           else

Error: GCC_ANALYZER_WARNING (CWE-688): [#def765]
vlc-3.0.21/modules/stream_filter/hds/hds.c:570:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*s.server_entries[5]’ where non-null expected
vlc-3.0.21/modules/stream_filter/hds/hds.c:507:13: enter_function: entry to ‘parse_BootstrapData’
vlc-3.0.21/modules/stream_filter/hds/hds.c:523:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:542:20: call_function: inlined call to ‘U32_AT’ from ‘parse_BootstrapData’
vlc-3.0.21/modules/stream_filter/hds/hds.c:554:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:560:5: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:568:58: acquire_memory: this call could return NULL
vlc-3.0.21/modules/stream_filter/hds/hds.c:570:23: danger: argument 1 (‘*s.server_entries[<unknown>]’) from [(41)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/40) could be NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
#  568|               s->server_entries[s->server_entry_count++] = strndup( (char*)data_p,
#  569|                                                                     data_end - data_p );
#  570|->             data_p += strlen( s->server_entries[s->server_entry_count-1] ) + 1;
#  571|           }
#  572|           else

Error: GCC_ANALYZER_WARNING (CWE-688): [#def766]
vlc-3.0.21/modules/stream_filter/hds/hds.c:570:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*s.server_entries[6]’ where non-null expected
vlc-3.0.21/modules/stream_filter/hds/hds.c:507:13: enter_function: entry to ‘parse_BootstrapData’
vlc-3.0.21/modules/stream_filter/hds/hds.c:523:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:542:20: call_function: inlined call to ‘U32_AT’ from ‘parse_BootstrapData’
vlc-3.0.21/modules/stream_filter/hds/hds.c:554:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:560:5: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:568:58: acquire_memory: this call could return NULL
vlc-3.0.21/modules/stream_filter/hds/hds.c:570:23: danger: argument 1 (‘*s.server_entries[<unknown>]’) from [(47)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/46) could be NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
#  568|               s->server_entries[s->server_entry_count++] = strndup( (char*)data_p,
#  569|                                                                     data_end - data_p );
#  570|->             data_p += strlen( s->server_entries[s->server_entry_count-1] ) + 1;
#  571|           }
#  572|           else

Error: GCC_ANALYZER_WARNING (CWE-688): [#def767]
vlc-3.0.21/modules/stream_filter/hds/hds.c:570:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*s.server_entries[7]’ where non-null expected
vlc-3.0.21/modules/stream_filter/hds/hds.c:507:13: enter_function: entry to ‘parse_BootstrapData’
vlc-3.0.21/modules/stream_filter/hds/hds.c:523:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:542:20: call_function: inlined call to ‘U32_AT’ from ‘parse_BootstrapData’
vlc-3.0.21/modules/stream_filter/hds/hds.c:554:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:560:5: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:584:11: branch_false: following ‘false’ branch (when ‘data_end > data_p’)...
 branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:564:12: branch_true: following ‘true’ branch (when ‘server_entry_count != 0’)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:13: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:566:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:569:67: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:568:58: acquire_memory: this call could return NULL
vlc-3.0.21/modules/stream_filter/hds/hds.c:570:23: danger: argument 1 (‘*s.server_entries[<unknown>]’) from [(53)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/52) could be NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
#  568|               s->server_entries[s->server_entry_count++] = strndup( (char*)data_p,
#  569|                                                                     data_end - data_p );
#  570|->             data_p += strlen( s->server_entries[s->server_entry_count-1] ) + 1;
#  571|           }
#  572|           else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def768]
vlc-3.0.21/modules/stream_filter/hds/hds.c:1379:26: warning[-Wanalyzer-malloc-leak]: leak of ‘m.medias[0].stream_id’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1649:12: enter_function: entry to ‘Open’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:10: call_function: calling ‘isHDS’ from ‘Open’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:10: return_function: returning to ‘Open’ from ‘isHDS’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:24: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:9: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1657:5: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1660:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1664:49: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1665:7: branch_false: following ‘false’ branch (when ‘uri_without_query’ is non-NULL)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1672:17: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1673:8: branch_false: following ‘false’ branch (when ‘pos’ is non-NULL)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1679:5: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:9: call_function: calling ‘init_Manifest’ from ‘Open’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:9: return_function: returning to ‘Open’ from ‘init_Manifest’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:35: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:35: call_function: calling ‘parse_Manifest’ from ‘Open’
# 1377|                   if( !strcmp(attr_name, "streamId" ) )
# 1378|                   {
# 1379|->                     if( !( medias[media_idx].stream_id = strdup( attr_value ) ) )
# 1380|                       {
# 1381|                           free(media_id);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def769]
vlc-3.0.21/modules/stream_filter/hds/hds.c:1387:26: warning[-Wanalyzer-malloc-leak]: leak of ‘m.medias[0].media_url’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1649:12: enter_function: entry to ‘Open’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:10: call_function: calling ‘isHDS’ from ‘Open’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:10: return_function: returning to ‘Open’ from ‘isHDS’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:24: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:9: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1657:5: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1660:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1664:49: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1665:7: branch_false: following ‘false’ branch (when ‘uri_without_query’ is non-NULL)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1672:17: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1673:8: branch_false: following ‘false’ branch (when ‘pos’ is non-NULL)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1679:5: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:9: call_function: calling ‘init_Manifest’ from ‘Open’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:9: return_function: returning to ‘Open’ from ‘init_Manifest’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:35: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:35: call_function: calling ‘parse_Manifest’ from ‘Open’
# 1385|                   else if( !strcmp(attr_name, "url" ) )
# 1386|                   {
# 1387|->                     if( !( medias[media_idx].media_url = strdup( attr_value ) ) )
# 1388|                       {
# 1389|                           free(media_id);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def770]
vlc-3.0.21/modules/stream_filter/hds/hds.c:1415:26: warning[-Wanalyzer-malloc-leak]: leak of ‘m.bootstraps[0].url’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1649:12: enter_function: entry to ‘Open’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:10: call_function: calling ‘isHDS’ from ‘Open’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:10: return_function: returning to ‘Open’ from ‘isHDS’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:24: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:9: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1657:5: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1660:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1664:49: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1665:7: branch_false: following ‘false’ branch (when ‘uri_without_query’ is non-NULL)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1672:17: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1673:8: branch_false: following ‘false’ branch (when ‘pos’ is non-NULL)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1679:5: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:9: call_function: calling ‘init_Manifest’ from ‘Open’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:9: return_function: returning to ‘Open’ from ‘init_Manifest’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:35: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:35: call_function: calling ‘parse_Manifest’ from ‘Open’
# 1413|                   if( !strcmp(attr_name, "url" ) )
# 1414|                   {
# 1415|->                     if( !( bootstraps[bootstrap_idx].url = strdup( attr_value ) ) )
# 1416|                       {
# 1417|                           free(media_id);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def771]
vlc-3.0.21/modules/stream_filter/hds/hds.c:1423:26: warning[-Wanalyzer-malloc-leak]: leak of ‘m.bootstraps[0].id’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1649:12: enter_function: entry to ‘Open’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:10: call_function: calling ‘isHDS’ from ‘Open’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:10: return_function: returning to ‘Open’ from ‘isHDS’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:24: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:9: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1657:5: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1660:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1664:49: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1665:7: branch_false: following ‘false’ branch (when ‘uri_without_query’ is non-NULL)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1672:17: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1673:8: branch_false: following ‘false’ branch (when ‘pos’ is non-NULL)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1679:5: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:9: call_function: calling ‘init_Manifest’ from ‘Open’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:9: return_function: returning to ‘Open’ from ‘init_Manifest’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:35: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:35: call_function: calling ‘parse_Manifest’ from ‘Open’
# 1421|                   else if( !strcmp(attr_name, "id" ) )
# 1422|                   {
# 1423|->                     if( !( bootstraps[bootstrap_idx].id = strdup( attr_value ) ) )
# 1424|                       {
# 1425|                           free(media_id);

Error: GCC_ANALYZER_WARNING (CWE-127): [#def772]
vlc-3.0.21/modules/stream_filter/hds/hds.c:1463:23: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
vlc-3.0.21/modules/stream_filter/hds/hds.c:1649:12: enter_function: entry to ‘Open’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:10: call_function: calling ‘isHDS’ from ‘Open’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:10: return_function: returning to ‘Open’ from ‘isHDS’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:24: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:9: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1657:5: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1660:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1664:49: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1665:7: branch_false: following ‘false’ branch (when ‘uri_without_query’ is non-NULL)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1672:17: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1673:8: branch_false: following ‘false’ branch (when ‘pos’ is non-NULL)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1679:5: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:9: call_function: calling ‘init_Manifest’ from ‘Open’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:9: return_function: returning to ‘Open’ from ‘init_Manifest’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:35: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:35: call_function: calling ‘parse_Manifest’ from ‘Open’
# 1461|               else if( ! strcmp( current_element, "id" ) )
# 1462|               {
# 1463|->                 if( ! strcmp( element_stack[current_element_idx-1], "manifest" ) )
# 1464|                   {
# 1465|                       if( !( media_id = strdup( node ) ) )

Error: GCC_ANALYZER_WARNING (CWE-127): [#def773]
vlc-3.0.21/modules/stream_filter/hds/hds.c:1470:24: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
vlc-3.0.21/modules/stream_filter/hds/hds.c:1649:12: enter_function: entry to ‘Open’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:10: call_function: calling ‘isHDS’ from ‘Open’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:10: return_function: returning to ‘Open’ from ‘isHDS’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:24: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1654:9: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1657:5: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1660:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1664:49: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1665:7: branch_false: following ‘false’ branch (when ‘uri_without_query’ is non-NULL)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1672:17: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1673:8: branch_false: following ‘false’ branch (when ‘pos’ is non-NULL)...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1679:5: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:9: call_function: calling ‘init_Manifest’ from ‘Open’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:9: return_function: returning to ‘Open’ from ‘init_Manifest’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:35: branch_false: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1687:35: call_function: calling ‘parse_Manifest’ from ‘Open’
# 1468|               }
# 1469|               else if( ! strcmp( current_element, "metadata" ) &&
# 1470|->                      ! strcmp( element_stack[current_element_idx-1], "media" ) &&
# 1471|                        ( media_idx >= 1 ) )
# 1472|               {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def774]
vlc-3.0.21/modules/stream_filter/hds/hds.c:1758:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*p_sys.flv_header + *p_sys.flv_header_bytes_sent’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1743:12: enter_function: entry to ‘send_flv_header’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1746:8: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_filter/hds/hds.c:1748:9: branch_true: ...to here
vlc-3.0.21/modules/stream_filter/hds/hds.c:1748:9: call_function: calling ‘initialize_header_and_metadata’ from ‘send_flv_header’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1748:9: return_function: returning to ‘send_flv_header’ from ‘initialize_header_and_metadata’
vlc-3.0.21/modules/stream_filter/hds/hds.c:1758:5: danger: use of uninitialized value ‘*p_sys.flv_header + *p_sys.flv_header_bytes_sent’ here
# 1756|       }
# 1757|   
# 1758|->     memcpy( buffer, p_sys->flv_header + p_sys->flv_header_bytes_sent, to_be_read );
# 1759|   
# 1760|       p_sys->flv_header_bytes_sent += to_be_read;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def775]
vlc-3.0.21/modules/stream_out/autodel.c:91:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_sys’
vlc-3.0.21/modules/stream_out/autodel.c:83:22: acquire_memory: this call could return NULL
vlc-3.0.21/modules/stream_out/autodel.c:85:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_out/autodel.c:91:5: branch_false: ...to here
vlc-3.0.21/modules/stream_out/autodel.c:91:5: danger: ‘p_sys’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   89|           return VLC_EGENERIC;
#   90|       }
#   91|->     p_sys->pp_es = NULL;
#   92|       p_sys->i_es_num = 0;
#   93|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def776]
vlc-3.0.21/modules/stream_out/autodel.c:127:5: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.pp_es’
vlc-3.0.21/modules/stream_out/autodel.c:119:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_out/autodel.c:122:5: branch_false: ...to here
vlc-3.0.21/modules/stream_out/autodel.c:127:5: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_out/autodel.c:127:5: branch_true: ...to here
vlc-3.0.21/modules/stream_out/autodel.c:127:5: danger: ‘*p_sys.pp_es’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#  125|       p_es->i_last = VLC_TICK_INVALID;
#  126|       p_es->b_error = false;
#  127|->     TAB_APPEND( p_sys->i_es_num, p_sys->pp_es, p_es );
#  128|   
#  129|       return p_es;

Error: COMPILER_WARNING (CWE-477): [#def777]
vlc-3.0.21/modules/stream_out/chromecast/chromecast_communication.cpp: scope_hint: In member function ‘int ChromecastCommunication::sendMessage(const castchannel::CastMessage&)’
vlc-3.0.21/modules/stream_out/chromecast/chromecast_communication.cpp:440:30: warning[-Wdeprecated-declarations]: ‘int google::protobuf::MessageLite::ByteSize() const’ is deprecated: Please use ByteSizeLong() instead
#  440 |     int i_size = msg.ByteSize();
#      |                  ~~~~~~~~~~~~^~
/usr/include/google/protobuf/generated_enum_util.h:36: included_from: Included from here.
/usr/include/google/protobuf/map.h:59: included_from: Included from here.
/usr/include/google/protobuf/generated_message_table_driven.h:34: included_from: Included from here.
vlc-3.0.21/modules/stream_out/chromecast/cast_channel.pb.h:26: included_from: Included from here.
vlc-3.0.21/modules/stream_out/chromecast/chromecast.h:45: included_from: Included from here.
vlc-3.0.21/modules/stream_out/chromecast/chromecast_communication.cpp:30: included_from: Included from here.
/usr/include/google/protobuf/message_lite.h:386:7: note: declared here
#  386 |   int ByteSize() const { return internal::ToIntSize(ByteSizeLong()); }
#      |       ^~~~~~~~
#  438|   int ChromecastCommunication::sendMessage( const castchannel::CastMessage &msg )
#  439|   {
#  440|->     int i_size = msg.ByteSize();
#  441|       uint8_t *p_data = new(std::nothrow) uint8_t[PACKET_HEADER_LEN + i_size];
#  442|       if (p_data == NULL)

Error: COMPILER_WARNING: [#def778]
vlc-3.0.21/modules/stream_out/chromecast/chromecast_ctrl.cpp: scope_hint: In member function ‘bool intf_sys_t::processReceiverMessage(const castchannel::CastMessage&)’
vlc-3.0.21/modules/stream_out/chromecast/chromecast_ctrl.cpp:770:13: warning[-Wimplicit-fallthrough=]: this statement may fall through
#  770 |             if ( p_app == NULL )
#      |             ^~
vlc-3.0.21/modules/stream_out/chromecast/chromecast_ctrl.cpp:773:9: note: here
#  773 |         default:
#      |         ^~~~~~~
#  768|           case Connected:
#  769|               // We might receive a RECEIVER_STATUS while being connected, when pinging/asking the status
#  770|->             if ( p_app == NULL )
#  771|                   break;
#  772|               // else: fall through and warn

Error: GCC_ANALYZER_WARNING (CWE-465): [#def779]
vlc-3.0.21/modules/stream_out/cycle.c:160:41: warning[-Wanalyzer-deref-before-check]: check of ‘block’ for NULL after already dereferencing it
#  158|       sout_stream_sys_t *sys = stream->p_sys;
#  159|   
#  160|->     for (block_t *next = block->p_next; block != NULL; block = next)
#  161|       {
#  162|           block->p_next = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def780]
vlc-3.0.21/modules/stream_out/es.c:157:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_sys’
vlc-3.0.21/modules/stream_out/es.c:155:31: acquire_memory: this call could return NULL
vlc-3.0.21/modules/stream_out/es.c:157:5: danger: ‘p_sys’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  155|       p_sys                   = malloc( sizeof( sout_stream_sys_t ) );
#  156|   
#  157|->     p_sys->i_count          = 0;
#  158|       p_sys->i_count_audio    = 0;
#  159|       p_sys->i_count_video    = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def781]
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:353:30: warning[-Wanalyzer-malloc-leak]: leak of ‘xrealloc(*p_bridge.pp_es, (long unsigned int)(*p_bridge.i_es_num + 1) * 8)’
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:276:31: enter_function: entry to ‘Add’
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:284:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:289:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:291:5: branch_false: ...to here
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:303:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:309:5: branch_false: ...to here
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:315:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:323:5: branch_false: ...to here
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:326:16: call_function: inlined call to ‘GetBridge’ from ‘Add’
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:326:16: call_function: inlined call to ‘GetBridge’ from ‘Add’
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:327:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:342:5: branch_false: ...to here
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:348:8: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:351:27: branch_true: ...to here
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:350:27: call_function: calling ‘xrealloc’ from ‘Add’
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:350:27: return_function: returning to ‘Add’ from ‘xrealloc’
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:353:30: danger: ‘xrealloc(*p_bridge.pp_es, (long unsigned int)(*p_bridge.i_es_num + 1) * 8)’ leaks here; was allocated at [(23)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/22)
#  351|                             (p_bridge->i_es_num + 1) * sizeof(bridged_es_t *) );
#  352|           p_bridge->i_es_num++;
#  353|->         p_bridge->pp_es[i] = xmalloc( sizeof(bridged_es_t) );
#  354|       }
#  355|   

Error: COMPILER_WARNING: [#def782]
vlc-3.0.21/include/vlc_common.h:1034: included_from: Included from here.
vlc-3.0.21/modules/stream_out/mosaic_bridge.c: scope_hint: In function ‘Add’
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:383:24: warning[-Wformat-overflow=]: ‘%s’ directive argument is null
#  383 |     msg_Dbg( p_stream, "psz_chain: %s", psz_chain );
#      |                        ^~~~~~~~~~~~~~~
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:383:36: note: format string is defined here
#  383 |     msg_Dbg( p_stream, "psz_chain: %s", psz_chain );
#      |                                    ^~
#  381|       /* Create user specified video filters */
#  382|       psz_chain = var_GetNonEmptyString( p_stream, CFG_PREFIX "vfilter" );
#  383|->     msg_Dbg( p_stream, "psz_chain: %s", psz_chain );
#  384|       if( psz_chain )
#  385|       {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def783]
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:457:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:414:13: enter_function: entry to ‘Del’
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:423:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:426:9: branch_true: ...to here
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:446:16: call_function: inlined call to ‘GetBridge’ from ‘Del’
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:446:16: call_function: inlined call to ‘GetBridge’ from ‘Del’
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:450:13: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/stream_out/mosaic_bridge.c:457:22: danger: dereference of NULL ‘var_GetAddress(&*MEM[(struct vlc_object_t *)p_stream_40(D)].obj.libvlc.obj, "mosaic-struct")’
#  455|       }
#  456|   
#  457|->     for ( i = 0; i < p_bridge->i_es_num; i++ )
#  458|       {
#  459|           if ( !p_bridge->pp_es[i]->b_empty )

Error: COMPILER_WARNING: [#def784]
vlc-3.0.21/modules/stream_out/rtp.c: scope_hint: In function ‘Open’
vlc-3.0.21/modules/stream_out/rtp.c:1568:5: warning[-Wstringop-truncation]: ‘strncpy’ specified bound 8 equals destination size
# 1568 |     strncpy((char *)&i_ts_init, psz_vod_session, sizeof(uint64_t));
#      |     ^
# 1566|       uint64_t i_ts_init;
# 1567|       /* As per RFC 2326, session identifiers are at least 8 bytes long */
# 1568|->     strncpy((char *)&i_ts_init, psz_vod_session, sizeof(uint64_t));
# 1569|       i_ts_init ^= (uintptr_t)p_media;
# 1570|       /* Limit the timestamp to 48 bits, this is enough and allows us

Error: COMPILER_WARNING (CWE-563): [#def785]
vlc-3.0.21/modules/stream_out/rtp.c: scope_hint: In function ‘rtp_get_video_geometry’
vlc-3.0.21/modules/stream_out/rtp.c:1812:9: warning[-Wunused-variable]: unused variable ‘ret’
# 1812 |     int ret = sscanf( id->rtp_fmt.fmtp, "%*s width=%d; height=%d; ", width, height );
#      |         ^~~
# 1810|   void rtp_get_video_geometry( sout_stream_id_sys_t *id, int *width, int *height )
# 1811|   {
# 1812|->     int ret = sscanf( id->rtp_fmt.fmtp, "%*s width=%d; height=%d; ", width, height );
# 1813|       assert( ret == 2 );
# 1814|   }

Error: COMPILER_WARNING: [#def786]
vlc-3.0.21/modules/stream_out/rtpfmt.c: scope_hint: In function ‘sprintf_hexa’
vlc-3.0.21/modules/stream_out/rtpfmt.c:159:33: warning[-Wunterminated-string-initialization]: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (17 chars into 16 available)
#  159 |     static const char hex[16] = "0123456789abcdef";
#      |                                 ^~~~~~~~~~~~~~~~~~
#  157|   static void sprintf_hexa( char *s, const uint8_t *p_data, int i_data )
#  158|   {
#  159|->     static const char hex[16] = "0123456789abcdef";
#  160|   
#  161|       for( int i = 0; i < i_data; i++ )

Error: COMPILER_WARNING (CWE-195): [#def787]
vlc-3.0.21/modules/stream_out/rtpfmt.c: scope_hint: In function ‘rtp_packetize_eac3’
vlc-3.0.21/modules/stream_out/rtpfmt.c:996:23: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’
#  996 |         bool last = i == (frag_count - 1);
#      |                       ^~
#  994|   
#  995|       for (unsigned int i = 0; i < frag_count; i++) {
#  996|->         bool last = i == (frag_count - 1);
#  997|           size_t len = last ? in->i_buffer : mtu;
#  998|           block_t *out = block_Alloc(14 + len);

Error: COMPILER_WARNING (CWE-457): [#def788]
vlc-3.0.21/modules/stream_out/rtpfmt.c: scope_hint: In function ‘rtp_packetize_jpeg’
vlc-3.0.21/modules/stream_out/rtpfmt.c:1965:5: warning[-Wmaybe-uninitialized]: ‘y_sampling_factor’ may be used uninitialized
# 1965 |     switch (y_sampling_factor)
#      |     ^~~~~~
vlc-3.0.21/modules/stream_out/rtpfmt.c:1873:9: note: ‘y_sampling_factor’ was declared here
# 1873 |     int y_sampling_factor;
#      |         ^~~~~~~~~~~~~~~~~
# 1963|           goto error;
# 1964|   
# 1965|->     switch (y_sampling_factor)
# 1966|       {
# 1967|           case 0x22: // yuvj420p

Error: COMPILER_WARNING: [#def789]
vlc-3.0.21/modules/stream_out/rtsp.c: scope_hint: In function ‘RtspHandler’
vlc-3.0.21/modules/stream_out/rtsp.c:1152:29: warning[-Wshadow=compatible-local]: declaration of ‘ses’ shadows a previous local
# 1152 |             rtsp_session_t *ses;
#      |                             ^~~
vlc-3.0.21/modules/stream_out/rtsp.c:1144:29: note: shadowed declaration is here
# 1144 |             rtsp_session_t *ses = RtspClientGet( rtsp, psz_session );
#      |                             ^~~
# 1150|           case HTTPD_MSG_TEARDOWN:
# 1151|           {
# 1152|->             rtsp_session_t *ses;
# 1153|   
# 1154|               answer->i_status = 200;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def790]
vlc-3.0.21/modules/stream_out/standard.c:297:10: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘psz_target’ where non-null expected
vlc-3.0.21/modules/stream_out/standard.c:328:12: enter_function: entry to ‘Open’
vlc-3.0.21/modules/stream_out/standard.c:339:15: call_function: calling ‘var_GetNonEmptyString’ from ‘Open’
vlc-3.0.21/modules/stream_out/standard.c:339:15: return_function: returning to ‘Open’ from ‘var_GetNonEmptyString’
vlc-3.0.21/modules/stream_out/standard.c:341:18: call_function: calling ‘var_GetNonEmptyString’ from ‘Open’
vlc-3.0.21/modules/stream_out/standard.c:341:18: return_function: returning to ‘Open’ from ‘var_GetNonEmptyString’
vlc-3.0.21/modules/stream_out/standard.c:342:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_out/standard.c:345:15: branch_false: ...to here
vlc-3.0.21/modules/stream_out/standard.c:346:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_out/standard.c:364:31: branch_false: ...to here
vlc-3.0.21/modules/stream_out/standard.c:365:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_out/standard.c:370:5: branch_false: ...to here
vlc-3.0.21/modules/stream_out/standard.c:372:9: call_function: calling ‘fixAccessMux’ from ‘Open’
vlc-3.0.21/modules/stream_out/standard.c:372:9: return_function: returning to ‘Open’ from ‘fixAccessMux’
vlc-3.0.21/modules/stream_out/standard.c:372:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_out/standard.c:375:5: branch_false: ...to here
vlc-3.0.21/modules/stream_out/standard.c:375:5: call_function: calling ‘checkAccessMux’ from ‘Open’
#  295|                           size_t i_len )
#  296|   {
#  297|->     if ( strncmp( psz_target, psz_string, i_len ) )
#  298|           return false;
#  299|       else

Error: GCC_ANALYZER_WARNING (CWE-126): [#def791]
vlc-3.0.21/modules/stream_out/standard.c:300:18: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
vlc-3.0.21/modules/stream_out/standard.c:328:12: enter_function: entry to ‘Open’
vlc-3.0.21/modules/stream_out/standard.c:341:18: call_function: calling ‘var_GetNonEmptyString’ from ‘Open’
vlc-3.0.21/modules/stream_out/standard.c:341:18: return_function: returning to ‘Open’ from ‘var_GetNonEmptyString’
vlc-3.0.21/modules/stream_out/standard.c:342:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_out/standard.c:345:15: branch_false: ...to here
vlc-3.0.21/modules/stream_out/standard.c:346:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_out/standard.c:364:31: branch_false: ...to here
vlc-3.0.21/modules/stream_out/standard.c:365:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_out/standard.c:370:5: branch_false: ...to here
vlc-3.0.21/modules/stream_out/standard.c:372:9: call_function: calling ‘fixAccessMux’ from ‘Open’
vlc-3.0.21/modules/stream_out/standard.c:372:9: return_function: returning to ‘Open’ from ‘fixAccessMux’
vlc-3.0.21/modules/stream_out/standard.c:372:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_out/standard.c:375:5: branch_false: ...to here
vlc-3.0.21/modules/stream_out/standard.c:375:5: call_function: calling ‘checkAccessMux’ from ‘Open’
#  298|           return false;
#  299|       else
#  300|->         return ( psz_target[i_len] < 'a' || psz_target[i_len] > 'z' );
#  301|   }
#  302|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def792]
vlc-3.0.21/modules/stream_out/transcode/transcode.c:259:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_sys’
vlc-3.0.21/modules/stream_out/transcode/transcode.c:240:12: enter_function: entry to ‘Open’
vlc-3.0.21/modules/stream_out/transcode/transcode.c:246:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_out/transcode/transcode.c:251:13: branch_false: ...to here
vlc-3.0.21/modules/stream_out/transcode/transcode.c:251:13: acquire_memory: this call could return NULL
vlc-3.0.21/modules/stream_out/transcode/transcode.c:258:18: call_function: calling ‘var_GetString’ from ‘Open’
vlc-3.0.21/modules/stream_out/transcode/transcode.c:258:18: return_function: returning to ‘Open’ from ‘var_GetString’
vlc-3.0.21/modules/stream_out/transcode/transcode.c:259:5: danger: ‘p_sys’ could be NULL: unchecked value from [(4)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/3)
#  257|       /* Audio transcoding parameters */
#  258|       psz_string = var_GetString( p_stream, SOUT_CFG_PREFIX "aenc" );
#  259|->     p_sys->psz_aenc = NULL;
#  260|       p_sys->p_audio_cfg = NULL;
#  261|       if( psz_string && *psz_string )

Error: COMPILER_WARNING: [#def793]
vlc-3.0.21/modules/stream_out/transcode/transcode.c: scope_hint: In function ‘Open’
vlc-3.0.21/modules/stream_out/transcode/transcode.c:274:23: warning[-Wunterminated-string-initialization]: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (6 chars into 5 available)
#  274 |         char fcc[5] = "    \0";
#      |                       ^~~~~~~~
#  272|       if( psz_string && *psz_string )
#  273|       {
#  274|->         char fcc[5] = "    \0";
#  275|           memcpy( fcc, psz_string, __MIN( strlen( psz_string ), 4 ) );
#  276|           p_sys->i_acodec = vlc_fourcc_GetCodecFromString( AUDIO_ES, fcc );

Error: COMPILER_WARNING: [#def794]
vlc-3.0.21/modules/stream_out/transcode/transcode.c:329:23: warning[-Wunterminated-string-initialization]: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (6 chars into 5 available)
#  329 |         char fcc[5] = "    \0";
#      |                       ^~~~~~~~
#  327|       if( psz_string && *psz_string )
#  328|       {
#  329|->         char fcc[5] = "    \0";
#  330|           memcpy( fcc, psz_string, __MIN( strlen( psz_string ), 4 ) );
#  331|           p_sys->i_vcodec = vlc_fourcc_GetCodecFromString( VIDEO_ES, fcc );

Error: COMPILER_WARNING: [#def795]
vlc-3.0.21/modules/stream_out/transcode/transcode.c:399:23: warning[-Wunterminated-string-initialization]: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (6 chars into 5 available)
#  399 |         char fcc[5] = "    \0";
#      |                       ^~~~~~~~
#  397|       if( psz_string && *psz_string )
#  398|       {
#  399|->         char fcc[5] = "    \0";
#  400|           memcpy( fcc, psz_string, __MIN( strlen( psz_string ), 4 ) );
#  401|           p_sys->i_scodec = vlc_fourcc_GetCodecFromString( SPU_ES, fcc );

Error: GCC_ANALYZER_WARNING (CWE-401): [#def796]
vlc-3.0.21/modules/stream_out/transcode/transcode.c:521:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(*p_sys.psz_alang)’
vlc-3.0.21/modules/stream_out/transcode/transcode.c:491:7: branch_false: following ‘false’ branch (when ‘id’ is non-NULL)...
vlc-3.0.21/modules/stream_out/transcode/transcode.c:494:5: branch_false: ...to here
vlc-3.0.21/modules/stream_out/transcode/transcode.c:501:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_out/transcode/transcode.c:503:5: branch_false: ...to here
vlc-3.0.21/modules/stream_out/transcode/transcode.c:510:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_out/transcode/transcode.c:512:5: branch_false: ...to here
vlc-3.0.21/modules/stream_out/transcode/transcode.c:520:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_out/transcode/transcode.c:521:47: branch_true: ...to here
vlc-3.0.21/modules/stream_out/transcode/transcode.c:521:47: acquire_memory: allocated here
vlc-3.0.21/modules/stream_out/transcode/transcode.c:521:9: danger: ‘strdup(*p_sys.psz_alang)’ leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
#  519|   
#  520|       if( p_sys->psz_alang )
#  521|->         id->p_encoder->fmt_out.psz_language = strdup( p_sys->psz_alang );
#  522|       else if( p_fmt->psz_language )
#  523|           id->p_encoder->fmt_out.psz_language = strdup( p_fmt->psz_language );

Error: GCC_ANALYZER_WARNING (CWE-401): [#def797]
vlc-3.0.21/modules/stream_out/transcode/transcode.c:523:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(*p_fmt.psz_language)’
vlc-3.0.21/modules/stream_out/transcode/transcode.c:491:7: branch_false: following ‘false’ branch (when ‘id’ is non-NULL)...
vlc-3.0.21/modules/stream_out/transcode/transcode.c:494:5: branch_false: ...to here
vlc-3.0.21/modules/stream_out/transcode/transcode.c:501:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_out/transcode/transcode.c:503:5: branch_false: ...to here
vlc-3.0.21/modules/stream_out/transcode/transcode.c:510:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_out/transcode/transcode.c:512:5: branch_false: ...to here
vlc-3.0.21/modules/stream_out/transcode/transcode.c:520:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_out/transcode/transcode.c:522:14: branch_false: ...to here
vlc-3.0.21/modules/stream_out/transcode/transcode.c:522:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_out/transcode/transcode.c:523:47: branch_true: ...to here
vlc-3.0.21/modules/stream_out/transcode/transcode.c:523:47: acquire_memory: allocated here
vlc-3.0.21/modules/stream_out/transcode/transcode.c:523:9: danger: ‘strdup(*p_fmt.psz_language)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/10)
#  521|           id->p_encoder->fmt_out.psz_language = strdup( p_sys->psz_alang );
#  522|       else if( p_fmt->psz_language )
#  523|->         id->p_encoder->fmt_out.psz_language = strdup( p_fmt->psz_language );
#  524|   
#  525|       bool success;

Error: COMPILER_WARNING (CWE-477): [#def798]
vlc-3.0.21/modules/stream_out/vod.c: scope_hint: In function ‘CloseVoD’
vlc-3.0.21/modules/stream_out/vod.c:188:5: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
#  188 |     while( block_FifoCount( p_sys->p_fifo_cmd ) > 0 )
#      |     ^~~~~
vlc-3.0.21/modules/stream_out/vod.c:38: included_from: Included from here.
vlc-3.0.21/include/vlc_block.h:477:16: note: declared here
#  477 | VLC_API size_t block_FifoCount(block_fifo_t *) VLC_USED VLC_DEPRECATED;
#      |                ^~~~~~~~~~~~~~~
#  186|       vlc_join( p_sys->thread, NULL );
#  187|   
#  188|->     while( block_FifoCount( p_sys->p_fifo_cmd ) > 0 )
#  189|       {
#  190|           rtsp_cmd_t cmd;

Error: COMPILER_WARNING (CWE-477): [#def799]
vlc-3.0.21/modules/stream_out/vod.c:188:5: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
#  186|       vlc_join( p_sys->thread, NULL );
#  187|   
#  188|->     while( block_FifoCount( p_sys->p_fifo_cmd ) > 0 )
#  189|       {
#  190|           rtsp_cmd_t cmd;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def800]
vlc-3.0.21/modules/stream_out/vod.c:251:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/modules/stream_out/vod.c:211:7: branch_false: following ‘false’ branch (when ‘p_media’ is non-NULL)...
vlc-3.0.21/modules/stream_out/vod.c:214:5: branch_false: ...to here
vlc-3.0.21/modules/stream_out/vod.c:222:21: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_out/vod.c:224:30: branch_true: ...to here
vlc-3.0.21/modules/stream_out/vod.c:238:11: branch_false: following ‘false’ branch (when ‘p_es’ is non-NULL)...
vlc-3.0.21/modules/stream_out/vod.c:241:23: branch_false: ...to here
vlc-3.0.21/modules/stream_out/vod.c:244:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_out/vod.c:251:9: branch_false: ...to here
vlc-3.0.21/modules/stream_out/vod.c:251:9: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_out/vod.c:251:9: branch_false: ...to here
vlc-3.0.21/modules/stream_out/vod.c:251:9: acquire_memory: allocated here
vlc-3.0.21/modules/stream_out/vod.c:251:9: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_out/vod.c:251:9: branch_false: ...to here
vlc-3.0.21/modules/stream_out/vod.c:222:21: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_out/vod.c:224:30: branch_true: ...to here
vlc-3.0.21/modules/stream_out/vod.c:238:11: branch_false: following ‘false’ branch (when ‘p_es’ is non-NULL)...
vlc-3.0.21/modules/stream_out/vod.c:241:23: branch_false: ...to here
vlc-3.0.21/modules/stream_out/vod.c:244:12: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/stream_out/vod.c:251:9: branch_false: ...to here
vlc-3.0.21/modules/stream_out/vod.c:251:9: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/stream_out/vod.c:251:9: branch_true: ...to here
vlc-3.0.21/modules/stream_out/vod.c:251:9: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
#  249|           }
#  250|   
#  251|->         TAB_APPEND( p_media->i_es, p_media->es, p_es );
#  252|           msg_Dbg(p_vod, "  - added ES %u %s (%4.4s)",
#  253|                   p_es->rtp_fmt.payload_type, p_es->rtp_fmt.ptname,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def801]
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:333:7: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.pp_font_attachments’
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:320:12: enter_function: entry to ‘LoadFontsFromAttachments’
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:328:9: call_function: inlined call to ‘filter_GetInputAttachments’ from ‘LoadFontsFromAttachments’
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:328:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:331:5: branch_false: ...to here
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:332:34: call_function: inlined call to ‘vlc_alloc’ from ‘LoadFontsFromAttachments’
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:333:7: danger: ‘*p_sys.pp_font_attachments’ leaks here; was allocated at [(10)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/9)
#  331|       p_sys->i_font_attachments = 0;
#  332|       p_sys->pp_font_attachments = vlc_alloc( i_attachments_cnt, sizeof(*p_sys->pp_font_attachments));
#  333|->     if( !p_sys->pp_font_attachments )
#  334|       {
#  335|           for( int i = 0; i < i_attachments_cnt; ++i )

Error: GCC_ANALYZER_WARNING (CWE-476): [#def802]
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:496:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘fmt.p_palette’
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:483:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:485:21: branch_false: ...to here
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:485:21: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:485:73: branch_false: ...to here
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:485:73: acquire_memory: this call could return NULL
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:496:5: danger: ‘<unknown>’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#  494|   
#  495|       /* Build palette */
#  496|->     fmt.p_palette->i_entries = 16;
#  497|       for( i = 0; i < 8; i++ )
#  498|       {

Error: GCC_ANALYZER_WARNING (CWE-465): [#def803]
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:522:12: warning[-Wanalyzer-deref-before-check]: check of ‘p_line’ for NULL after already dereferencing it
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:483:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:485:21: branch_false: ...to here
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:485:21: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:485:5: branch_true: ...to here
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:497:17: branch_true: following ‘true’ branch (when ‘i != 8’)...
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:499:9: branch_true: ...to here
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:506:17: branch_true: following ‘true’ branch (when ‘i != 16’)...
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:508:40: branch_true: ...to here
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:522:12: danger: pointer ‘p_line’ is checked for NULL here but it was already dereferenced at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
#  520|       memset( p_dst, 0, i_pitch * p_region->fmt.i_height );
#  521|   
#  522|->     for( ; p_line != NULL; p_line = p_line->p_next )
#  523|       {
#  524|           FT_Vector offset = GetAlignedOffset( p_line, p_bbox, p_region->i_align );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def804]
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:1045:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pp_styles’
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:1088:20: enter_function: entry to ‘SegmentsToTextAndStyles’
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:1096:47: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:1098:14: branch_true: ...to here
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:1098:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:1102:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:1104:13: branch_true: ...to here
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:1105:13: call_function: calling ‘FreeStylesArray’ from ‘SegmentsToTextAndStyles’
# 1043|       for( size_t i = 0; i< i_styles; i++ )
# 1044|       {
# 1045|->         if( p_style != pp_styles[i] )
# 1046|           {
# 1047|               p_style = pp_styles[i];

Error: GCC_ANALYZER_WARNING (CWE-415): [#def805]
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:1123:44: warning[-Wanalyzer-double-free]: double-‘free’ of ‘pp_styles’
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:1096:47: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:1098:14: branch_true: ...to here
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:1098:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:1102:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:1108:35: branch_false: ...to here
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:1109:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:1117:25: branch_false: ...to here
vlc-3.0.21/modules/text_renderer/freetype/freetype.c:1123:44: danger: second ‘free’ here
# 1121|           // the size of one glyph, in byte
# 1122|           const size_t i_newsize = (i_size + i_string_bytes) / sizeof( *psz_uni );
# 1123|->         text_style_t **pp_styles_realloc = realloc( pp_styles, i_newsize * sizeof( *pp_styles ));
# 1124|           if ( unlikely( !pp_styles_realloc ) )
# 1125|           {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def806]
vlc-3.0.21/modules/text_renderer/freetype/text_layout.c:469:11: warning[-Wanalyzer-malloc-leak]: leak of ‘p_new_runs’
vlc-3.0.21/modules/text_renderer/freetype/text_layout.c:1507:5: enter_function: entry to ‘LayoutText’
vlc-3.0.21/modules/text_renderer/freetype/text_layout.c:1522:21: branch_true: following ‘true’ branch (when ‘i <= i_len’)...
vlc-3.0.21/modules/text_renderer/freetype/text_layout.c:1524:11: branch_true: ...to here
vlc-3.0.21/modules/text_renderer/freetype/text_layout.c:1526:15: branch_true: following ‘true’ branch (when ‘i_paragraph_start == i’)...
vlc-3.0.21/modules/text_renderer/freetype/text_layout.c:1528:17: branch_true: ...to here
vlc-3.0.21/modules/text_renderer/freetype/text_layout.c:1522:21: branch_true: following ‘true’ branch (when ‘i <= i_len’)...
vlc-3.0.21/modules/text_renderer/freetype/text_layout.c:1524:11: branch_true: ...to here
vlc-3.0.21/modules/text_renderer/freetype/text_layout.c:1526:15: branch_false: following ‘false’ branch (when ‘i_paragraph_start != i’)...
vlc-3.0.21/modules/text_renderer/freetype/text_layout.c:1532:27: branch_false: ...to here
vlc-3.0.21/modules/text_renderer/freetype/text_layout.c:1532:27: branch_true: following ‘true’ branch (when ‘pi_k_dates’ is non-NULL)...
vlc-3.0.21/modules/text_renderer/freetype/text_layout.c:1536:52: branch_true: ...to here
vlc-3.0.21/modules/text_renderer/freetype/text_layout.c:1532:27: call_function: calling ‘NewParagraph’ from ‘LayoutText’
vlc-3.0.21/modules/text_renderer/freetype/text_layout.c:1532:27: return_function: returning to ‘LayoutText’ from ‘NewParagraph’
vlc-3.0.21/modules/text_renderer/freetype/text_layout.c:1538:15: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/text_renderer/freetype/text_layout.c:1545:17: branch_false: ...to here
vlc-3.0.21/modules/text_renderer/freetype/text_layout.c:1545:17: call_function: calling ‘AnalyzeParagraph’ from ‘LayoutText’
vlc-3.0.21/modules/text_renderer/freetype/text_layout.c:1545:17: return_function: returning to ‘LayoutText’ from ‘AnalyzeParagraph’
vlc-3.0.21/modules/text_renderer/freetype/text_layout.c:1545:15: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/text_renderer/freetype/text_layout.c:1549:17: branch_false: ...to here
vlc-3.0.21/modules/text_renderer/freetype/text_layout.c:1549:17: call_function: calling ‘ItemizeParagraph’ from ‘LayoutText’
#  467|               realloc( p_paragraph->p_runs,
#  468|                        p_paragraph->i_runs_size * 2 * sizeof( *p_new_runs ) );
#  469|->         if( !p_new_runs )
#  470|               return VLC_ENOMEM;
#  471|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def807]
vlc-3.0.21/modules/text_renderer/svg.c:141:1: warning[-Wanalyzer-malloc-leak]: leak of ‘psz_template’
vlc-3.0.21/modules/text_renderer/svg.c:86:13: enter_function: entry to ‘svg_LoadTemplate’
vlc-3.0.21/modules/text_renderer/svg.c:90:26: call_function: calling ‘var_InheritString’ from ‘svg_LoadTemplate’
vlc-3.0.21/modules/text_renderer/svg.c:90:26: return_function: returning to ‘svg_LoadTemplate’ from ‘var_InheritString’
vlc-3.0.21/modules/text_renderer/svg.c:91:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/text_renderer/svg.c:95:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/text_renderer/svg.c:103:17: branch_false: ...to here
vlc-3.0.21/modules/text_renderer/svg.c:103:15: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/text_renderer/svg.c:112:32: acquire_memory: allocated here
vlc-3.0.21/modules/text_renderer/svg.c:113:19: branch_true: following ‘true’ branch (when ‘psz_template’ is non-NULL)...
vlc-3.0.21/modules/text_renderer/svg.c:115:35: branch_true: ...to here
vlc-3.0.21/modules/text_renderer/svg.c:117:23: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/text_renderer/svg.c:124:13: branch_false: ...to here
vlc-3.0.21/modules/text_renderer/svg.c:129:7: branch_true: following ‘true’ branch (when ‘psz_template’ is non-NULL)...
vlc-3.0.21/modules/text_renderer/svg.c:131:28: branch_true: ...to here
vlc-3.0.21/modules/text_renderer/svg.c:132:11: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/text_renderer/svg.c:137:14: branch_false: ...to here
vlc-3.0.21/modules/text_renderer/svg.c:141:1: danger: ‘psz_template’ leaks here; was allocated at [(15)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/14)
#  139|   
#  140|       p_sys->psz_file_template = psz_template;
#  141|-> }
#  142|   
#  143|   static char *svg_GetDocument( filter_t *p_filter, int i_width, int i_height, const char *psz_body )

Error: COMPILER_WARNING (CWE-477): [#def808]
vlc-3.0.21/modules/text_renderer/svg.c: scope_hint: In function ‘svg_RenderPicture’
vlc-3.0.21/modules/text_renderer/svg.c:248:5: warning[-Wdeprecated-declarations]: ‘rsvg_handle_get_dimensions’ is deprecated: Use 'rsvg_handle_get_intrinsic_size_in_pixels' instead
#  248 |     rsvg_handle_get_dimensions( p_handle, &dim );
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
vlc-3.0.21/modules/text_renderer/svg.c:45: included_from: Included from here.
/usr/include/librsvg-2.0/librsvg/rsvg.h:661:6: note: declared here
#  661 | void rsvg_handle_get_dimensions (RsvgHandle *handle, RsvgDimensionData *dimension_data);
#      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  246|   
#  247|       RsvgDimensionData dim;
#  248|->     rsvg_handle_get_dimensions( p_handle, &dim );
#  249|       float scale;
#  250|       svg_RescaletoFit( p_filter, &dim.width, &dim.height, &scale );

Error: COMPILER_WARNING (CWE-477): [#def809]
vlc-3.0.21/modules/text_renderer/svg.c:248:5: warning[-Wdeprecated-declarations]: ‘rsvg_handle_get_dimensions’ is deprecated: Use 'rsvg_handle_get_intrinsic_size_in_pixels' instead
#  246|   
#  247|       RsvgDimensionData dim;
#  248|->     rsvg_handle_get_dimensions( p_handle, &dim );
#  249|       float scale;
#  250|       svg_RescaletoFit( p_filter, &dim.width, &dim.height, &scale );

Error: COMPILER_WARNING (CWE-477): [#def810]
vlc-3.0.21/modules/text_renderer/svg.c:290:5: warning[-Wdeprecated-declarations]: ‘rsvg_handle_render_cairo’ is deprecated: Use 'rsvg_handle_render_document' instead
#  290 |     if( ! rsvg_handle_render_cairo( p_handle, cr ) )
#      |     ^~
/usr/include/librsvg-2.0/librsvg/rsvg.h:1329: included_from: Included from here.
/usr/include/librsvg-2.0/librsvg/rsvg-cairo.h:90:10: note: declared here
#   90 | gboolean rsvg_handle_render_cairo (RsvgHandle *handle, cairo_t *cr);
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~
#  288|       }
#  289|   
#  290|->     if( ! rsvg_handle_render_cairo( p_handle, cr ) )
#  291|       {
#  292|           msg_Err( p_filter, "error while rendering SVG" );

Error: COMPILER_WARNING (CWE-477): [#def811]
vlc-3.0.21/modules/text_renderer/svg.c:290:5: warning[-Wdeprecated-declarations]: ‘rsvg_handle_render_cairo’ is deprecated: Use 'rsvg_handle_render_document' instead
#  288|       }
#  289|   
#  290|->     if( ! rsvg_handle_render_cairo( p_handle, cr ) )
#  291|       {
#  292|           msg_Err( p_filter, "error while rendering SVG" );

Error: COMPILER_WARNING: [#def812]
vlc-3.0.21/modules/video_filter/ball.c: scope_hint: In function ‘FilterBall’
vlc-3.0.21/modules/video_filter/ball.c:611:14: warning[-Wshadow=compatible-local]: declaration of ‘y’ shadows a previous local
#  611 |     for( int y = 1; y < i_numLines - 1; y++ )
#      |              ^
vlc-3.0.21/modules/video_filter/ball.c:540:12: note: shadowed declaration is here
#  540 |     int x, y;
#      |            ^
#  609|          | -1 0 1 |     | -1 -2 -1 | */
#  610|   
#  611|->     for( int y = 1; y < i_numLines - 1; y++ )
#  612|       {
#  613|           for( int x = 1; x < i_numCols - 1; x++ )

Error: COMPILER_WARNING: [#def813]
vlc-3.0.21/modules/video_filter/ball.c:613:18: warning[-Wshadow=compatible-local]: declaration of ‘x’ shadows a previous local
#  613 |         for( int x = 1; x < i_numCols - 1; x++ )
#      |                  ^
vlc-3.0.21/modules/video_filter/ball.c:540:9: note: shadowed declaration is here
#  540 |     int x, y;
#      |         ^
#  611|       for( int y = 1; y < i_numLines - 1; y++ )
#  612|       {
#  613|->         for( int x = 1; x < i_numCols - 1; x++ )
#  614|           {
#  615|   

Error: COMPILER_WARNING: [#def814]
vlc-3.0.21/modules/video_filter/ball.c:636:18: warning[-Wshadow=compatible-local]: declaration of ‘y’ shadows a previous local
#  636 |         for( int y = 1; y < i_numLines - 1; y++ )
#      |                  ^
vlc-3.0.21/modules/video_filter/ball.c:540:12: note: shadowed declaration is here
#  540 |     int x, y;
#      |            ^
#  634|       {
#  635|           /* Display the edges. */
#  636|->         for( int y = 1; y < i_numLines - 1; y++ )
#  637|           {
#  638|               for( int x = 1; x < i_numCols - 1; x++ )

Error: COMPILER_WARNING: [#def815]
vlc-3.0.21/modules/video_filter/ball.c:638:22: warning[-Wshadow=compatible-local]: declaration of ‘x’ shadows a previous local
#  638 |             for( int x = 1; x < i_numCols - 1; x++ )
#      |                      ^
vlc-3.0.21/modules/video_filter/ball.c:540:9: note: shadowed declaration is here
#  540 |     int x, y;
#      |         ^
#  636|           for( int y = 1; y < i_numLines - 1; y++ )
#  637|           {
#  638|->             for( int x = 1; x < i_numCols - 1; x++ )
#  639|               {
#  640|                   if( abs( p_grad_x[ y * i_numCols + x ] )

Error: GCC_ANALYZER_WARNING (CWE-476): [#def816]
vlc-3.0.21/modules/video_filter/bluescreen.c:204:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/modules/video_filter/bluescreen.c:167:19: enter_function: entry to ‘Filter’
vlc-3.0.21/modules/video_filter/bluescreen.c:179:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/video_filter/bluescreen.c:189:29: branch_false: ...to here
vlc-3.0.21/modules/video_filter/bluescreen.c:188:19: call_function: calling ‘xrealloc’ from ‘Filter’
vlc-3.0.21/modules/video_filter/bluescreen.c:188:19: return_function: returning to ‘Filter’ from ‘xrealloc’
vlc-3.0.21/modules/video_filter/bluescreen.c:199:21: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_filter/bluescreen.c:201:19: branch_true: ...to here
vlc-3.0.21/modules/video_filter/bluescreen.c:201:11: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_filter/bluescreen.c:201:16: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_filter/bluescreen.c:204:17: release_memory: ‘0’ is NULL
vlc-3.0.21/modules/video_filter/bluescreen.c:204:13: danger: dereference of NULL ‘xrealloc(*p_sys.p_at, (long unsigned int)(i_lines * i_pitch)) + (sizetype)i’
#  202|               && p_v[i] < vmax && p_v[i] > vmin )
#  203|           {
#  204|->             p_at[i] = 0x00;
#  205|           }
#  206|           else

Error: GCC_ANALYZER_WARNING (CWE-476): [#def817]
vlc-3.0.21/modules/video_filter/bluescreen.c:208:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/modules/video_filter/bluescreen.c:167:19: enter_function: entry to ‘Filter’
vlc-3.0.21/modules/video_filter/bluescreen.c:179:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/video_filter/bluescreen.c:189:29: branch_false: ...to here
vlc-3.0.21/modules/video_filter/bluescreen.c:188:19: call_function: calling ‘xrealloc’ from ‘Filter’
vlc-3.0.21/modules/video_filter/bluescreen.c:188:19: return_function: returning to ‘Filter’ from ‘xrealloc’
vlc-3.0.21/modules/video_filter/bluescreen.c:199:21: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_filter/bluescreen.c:201:19: branch_true: ...to here
vlc-3.0.21/modules/video_filter/bluescreen.c:208:17: release_memory: ‘0’ is NULL
vlc-3.0.21/modules/video_filter/bluescreen.c:208:13: danger: dereference of NULL ‘xrealloc(*p_sys.p_at, (long unsigned int)(i_lines * i_pitch)) + (sizetype)i’
#  206|           else
#  207|           {
#  208|->             p_at[i] = 0xff;
#  209|           }
#  210|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def818]
vlc-3.0.21/modules/video_filter/bluescreen.c:221:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/modules/video_filter/bluescreen.c:167:19: enter_function: entry to ‘Filter’
vlc-3.0.21/modules/video_filter/bluescreen.c:179:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/video_filter/bluescreen.c:189:29: branch_false: ...to here
vlc-3.0.21/modules/video_filter/bluescreen.c:188:19: call_function: calling ‘xrealloc’ from ‘Filter’
vlc-3.0.21/modules/video_filter/bluescreen.c:188:19: return_function: returning to ‘Filter’ from ‘xrealloc’
vlc-3.0.21/modules/video_filter/bluescreen.c:199:21: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/video_filter/bluescreen.c:212:21: branch_false: ...to here
vlc-3.0.21/modules/video_filter/bluescreen.c:213:21: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_filter/bluescreen.c:215:13: branch_true: ...to here
vlc-3.0.21/modules/video_filter/bluescreen.c:217:25: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_filter/bluescreen.c:221:24: branch_true: ...to here
vlc-3.0.21/modules/video_filter/bluescreen.c:221:23: release_memory: ‘0’ is NULL
vlc-3.0.21/modules/video_filter/bluescreen.c:221:19: danger: dereference of NULL ‘xrealloc(*p_sys.p_at, (long unsigned int)(i_lines * i_pitch)) + ((sizetype)((i + -2) * i_pitch + j) + 18446744073709551614)’
#  219|               p_a[i*i_pitch+j] = (uint8_t)((
#  220|                 /* 2 rows up */
#  221|->                 ( p_at[(i-2)*i_pitch+j-2]<<1 )
#  222|                 + ( p_at[(i-2)*i_pitch+j-1]<<2 )
#  223|                 + ( p_at[(i-2)*i_pitch+j]<<2 )

Error: COMPILER_WARNING: [#def819]
vlc-3.0.21/modules/video_filter/deinterlace/algo_phosphor.c: scope_hint: In function ‘DarkenField’
vlc-3.0.21/modules/video_filter/deinterlace/algo_phosphor.c:132:17: warning[-Wshadow=compatible-local]: declaration of ‘w’ shadows a previous local
#  132 |             int w = p_dst->p[i_plane].i_visible_pitch;
#      |                 ^
vlc-3.0.21/modules/video_filter/deinterlace/algo_phosphor.c:95:9: note: shadowed declaration is here
#   95 |     int w = p_dst->p[i_plane].i_visible_pitch;
#      |         ^
#  130|                i_plane++ )
#  131|           {
#  132|->             int w = p_dst->p[i_plane].i_visible_pitch;
#  133|               p_out = p_dst->p[i_plane].p_pixels;
#  134|               p_out_end = p_out + p_dst->p[i_plane].i_pitch

Error: COMPILER_WARNING: [#def820]
vlc-3.0.21/modules/video_filter/deinterlace/algo_phosphor.c: scope_hint: In function ‘DarkenFieldMMX’
vlc-3.0.21/modules/video_filter/deinterlace/algo_phosphor.c:215:17: warning[-Wshadow=compatible-local]: declaration of ‘w’ shadows a previous local
#  215 |             int w = p_dst->p[i_plane].i_visible_pitch;
#      |                 ^
vlc-3.0.21/modules/video_filter/deinterlace/algo_phosphor.c:169:9: note: shadowed declaration is here
#  169 |     int w = p_dst->p[i_plane].i_visible_pitch;
#      |         ^
#  213|                i_plane++ )
#  214|           {
#  215|->             int w = p_dst->p[i_plane].i_visible_pitch;
#  216|               int wm8 = w % 8;   /* remainder */
#  217|               int w8  = w - wm8; /* part of width that is divisible by 8 */

Error: COMPILER_WARNING: [#def821]
vlc-3.0.21/modules/video_filter/deinterlace/algo_phosphor.c:216:17: warning[-Wshadow=compatible-local]: declaration of ‘wm8’ shadows a previous local
#  216 |             int wm8 = w % 8;   /* remainder */
#      |                 ^~~
vlc-3.0.21/modules/video_filter/deinterlace/algo_phosphor.c:178:9: note: shadowed declaration is here
#  178 |     int wm8 = w % 8;   /* remainder */
#      |         ^~~
#  214|           {
#  215|               int w = p_dst->p[i_plane].i_visible_pitch;
#  216|->             int wm8 = w % 8;   /* remainder */
#  217|               int w8  = w - wm8; /* part of width that is divisible by 8 */
#  218|   

Error: COMPILER_WARNING: [#def822]
vlc-3.0.21/modules/video_filter/deinterlace/algo_phosphor.c:217:17: warning[-Wshadow=compatible-local]: declaration of ‘w8’ shadows a previous local
#  217 |             int w8  = w - wm8; /* part of width that is divisible by 8 */
#      |                 ^~
vlc-3.0.21/modules/video_filter/deinterlace/algo_phosphor.c:179:9: note: shadowed declaration is here
#  179 |     int w8  = w - wm8; /* part of width that is divisible by 8 */
#      |         ^~
#  215|               int w = p_dst->p[i_plane].i_visible_pitch;
#  216|               int wm8 = w % 8;   /* remainder */
#  217|->             int w8  = w - wm8; /* part of width that is divisible by 8 */
#  218|   
#  219|               p_out = p_dst->p[i_plane].p_pixels;

Error: COMPILER_WARNING: [#def823]
vlc-3.0.21/modules/video_filter/deinterlace/algo_yadif.c:48: included_from: Included from here.
vlc-3.0.21/modules/video_filter/deinterlace/yadif.h: scope_hint: In function ‘yadif_filter_line_c’
vlc-3.0.21/modules/video_filter/deinterlace/yadif.h:88:13: warning[-Wshadow=compatible-local]: declaration of ‘score’ shadows a previous local
#   88 |     {   int score = FFABS(cur[mrefs-1+(j)] - cur[prefs-1-(j)])\
#      |             ^~~~~
vlc-3.0.21/modules/video_filter/deinterlace/yadif.h:108:19: note: in expansion of macro ‘CHECK’
#  108 |         CHECK(-1) CHECK(-2) }} }} \
#      |                   ^~~~~
vlc-3.0.21/modules/video_filter/deinterlace/yadif.h:139:5: note: in expansion of macro ‘FILTER’
#  139 |     FILTER
#      |     ^~~~~~
vlc-3.0.21/modules/video_filter/deinterlace/yadif.h:88:13: note: shadowed declaration is here
#   88 |     {   int score = FFABS(cur[mrefs-1+(j)] - cur[prefs-1-(j)])\
#      |             ^~~~~
vlc-3.0.21/modules/video_filter/deinterlace/yadif.h:108:9: note: in expansion of macro ‘CHECK’
#  108 |         CHECK(-1) CHECK(-2) }} }} \
#      |         ^~~~~
vlc-3.0.21/modules/video_filter/deinterlace/yadif.h:139:5: note: in expansion of macro ‘FILTER’
#  139 |     FILTER
#      |     ^~~~~~
#   86|   
#   87|   #define CHECK(j)\
#   88|->     {   int score = FFABS(cur[mrefs-1+(j)] - cur[prefs-1-(j)])\
#   89|                     + FFABS(cur[mrefs  +(j)] - cur[prefs  -(j)])\
#   90|                     + FFABS(cur[mrefs+1+(j)] - cur[prefs+1-(j)]);\

Error: GCC_ANALYZER_WARNING (CWE-401): [#def824]
vlc-3.0.21/modules/video_filter/gaussianblur.c:126:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.pt_distribution’
vlc-3.0.21/modules/video_filter/gaussianblur.c:128:12: enter_function: entry to ‘Create’
vlc-3.0.21/modules/video_filter/gaussianblur.c:146:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/video_filter/gaussianblur.c:152:23: branch_false: ...to here
vlc-3.0.21/modules/video_filter/gaussianblur.c:153:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/video_filter/gaussianblur.c:156:5: branch_false: ...to here
vlc-3.0.21/modules/video_filter/gaussianblur.c:163:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/video_filter/gaussianblur.c:168:5: branch_false: ...to here
vlc-3.0.21/modules/video_filter/gaussianblur.c:168:5: call_function: calling ‘gaussianblur_InitDistribution’ from ‘Create’
#  124|       p_sys->i_dim = i_dim;
#  125|       p_sys->pt_distribution = pt_distribution;
#  126|-> }
#  127|   
#  128|   static int Create( vlc_object_t *p_this )

Error: GCC_ANALYZER_WARNING (CWE-401): [#def825]
vlc-3.0.21/modules/video_filter/gaussianblur.c:208:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.pt_buffer’
vlc-3.0.21/modules/video_filter/gaussianblur.c:189:19: enter_function: entry to ‘Filter’
vlc-3.0.21/modules/video_filter/gaussianblur.c:198:7: branch_false: following ‘false’ branch (when ‘p_pic’ is non-NULL)...
vlc-3.0.21/modules/video_filter/gaussianblur.c:200:16: branch_false: ...to here
vlc-3.0.21/modules/video_filter/gaussianblur.c:201:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/video_filter/gaussianblur.c:206:10: branch_false: ...to here
vlc-3.0.21/modules/video_filter/gaussianblur.c:206:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_filter/gaussianblur.c:209:32: branch_true: ...to here
vlc-3.0.21/modules/video_filter/gaussianblur.c:208:28: call_function: calling ‘realloc_or_free’ from ‘Filter’
vlc-3.0.21/modules/video_filter/gaussianblur.c:208:28: return_function: returning to ‘Filter’ from ‘realloc_or_free’
vlc-3.0.21/modules/video_filter/gaussianblur.c:208:9: danger: ‘*p_sys.pt_buffer’ leaks here; was allocated at [(10)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/9)
#  206|       if( !p_sys->pt_buffer )
#  207|       {
#  208|->         p_sys->pt_buffer = realloc_or_free( p_sys->pt_buffer,
#  209|                                  p_pic->p[Y_PLANE].i_visible_lines *
#  210|                                  p_pic->p[Y_PLANE].i_pitch * sizeof( type_t ) );

Error: GCC_ANALYZER_WARNING (CWE-401): [#def826]
vlc-3.0.21/modules/video_filter/gaussianblur.c:223:30: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.pt_scale’
vlc-3.0.21/modules/video_filter/gaussianblur.c:189:19: enter_function: entry to ‘Filter’
vlc-3.0.21/modules/video_filter/gaussianblur.c:198:7: branch_false: following ‘false’ branch (when ‘p_pic’ is non-NULL)...
vlc-3.0.21/modules/video_filter/gaussianblur.c:200:16: branch_false: ...to here
vlc-3.0.21/modules/video_filter/gaussianblur.c:201:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/video_filter/gaussianblur.c:206:10: branch_false: ...to here
vlc-3.0.21/modules/video_filter/gaussianblur.c:214:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_filter/gaussianblur.c:216:19: branch_true: ...to here
vlc-3.0.21/modules/video_filter/gaussianblur.c:220:27: call_function: calling ‘xmalloc’ from ‘Filter’
vlc-3.0.21/modules/video_filter/gaussianblur.c:220:27: return_function: returning to ‘Filter’ from ‘xmalloc’
vlc-3.0.21/modules/video_filter/gaussianblur.c:223:30: danger: ‘*p_sys.pt_scale’ leaks here; was allocated at [(10)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/9)
#  221|           pt_scale = p_sys->pt_scale;
#  222|   
#  223|->         for( int i_line = 0; i_line < i_visible_lines; i_line++ )
#  224|           {
#  225|               for( int i_col = 0; i_col < i_visible_pitch; i_col++ )

Error: GCC_ANALYZER_WARNING (CWE-476): [#def827]
vlc-3.0.21/modules/video_filter/gaussianblur.c:241:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*p_sys.pt_scale’
vlc-3.0.21/modules/video_filter/gaussianblur.c:189:19: enter_function: entry to ‘Filter’
vlc-3.0.21/modules/video_filter/gaussianblur.c:198:7: branch_false: following ‘false’ branch (when ‘p_pic’ is non-NULL)...
vlc-3.0.21/modules/video_filter/gaussianblur.c:200:16: branch_false: ...to here
vlc-3.0.21/modules/video_filter/gaussianblur.c:201:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/video_filter/gaussianblur.c:206:10: branch_false: ...to here
vlc-3.0.21/modules/video_filter/gaussianblur.c:214:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_filter/gaussianblur.c:216:19: branch_true: ...to here
vlc-3.0.21/modules/video_filter/gaussianblur.c:220:27: call_function: calling ‘xmalloc’ from ‘Filter’
vlc-3.0.21/modules/video_filter/gaussianblur.c:220:27: return_function: returning to ‘Filter’ from ‘xmalloc’
vlc-3.0.21/modules/video_filter/gaussianblur.c:223:30: branch_true: following ‘true’ branch (when ‘i_line < i_visible_lines’)...
 branch_true: ...to here
vlc-3.0.21/modules/video_filter/gaussianblur.c:225:33: branch_true: following ‘true’ branch (when ‘i_col < i_visible_pitch’)...
vlc-3.0.21/modules/video_filter/gaussianblur.c:229:30: branch_true: ...to here
vlc-3.0.21/modules/video_filter/gaussianblur.c:241:17: danger: ‘xmalloc((long unsigned int)(i_visible_lines * i_pitch) * 4) + (long unsigned int)(i_line * i_pitch + i_col) * 4’ could be NULL: unchecked value from [(10)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/9)
#  239|                       }
#  240|                   }
#  241|->                 pt_scale[i_line*i_pitch+i_col] = t_value;
#  242|               }
#  243|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def828]
vlc-3.0.21/modules/video_filter/gradient.c:353:9: warning[-Wanalyzer-malloc-leak]: leak of ‘**p_filter.p_sys.p_buf32’
vlc-3.0.21/modules/video_filter/gradient.c:340:13: enter_function: entry to ‘FilterGradient’
vlc-3.0.21/modules/video_filter/gradient.c:352:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_filter/gradient.c:354:24: branch_true: ...to here
vlc-3.0.21/modules/video_filter/gradient.c:354:13: call_function: inlined call to ‘vlc_alloc’ from ‘FilterGradient’
vlc-3.0.21/modules/video_filter/gradient.c:353:9: danger: ‘**p_filter.p_sys.p_buf32’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
#  351|       uint32_t *p_smooth;
#  352|       if( !p_filter->p_sys->p_buf32 )
#  353|->         p_filter->p_sys->p_buf32 =
#  354|               vlc_alloc( i_num_lines * i_src_visible, sizeof(uint32_t));
#  355|       p_smooth = p_filter->p_sys->p_buf32;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def829]
vlc-3.0.21/modules/video_filter/gradient.c:353:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/modules/video_filter/gradient.c:243:19: enter_function: entry to ‘Filter’
vlc-3.0.21/modules/video_filter/gradient.c:247:7: branch_false: following ‘false’ branch (when ‘p_pic’ is non-NULL)...
vlc-3.0.21/modules/video_filter/gradient.c:249:16: branch_false: ...to here
vlc-3.0.21/modules/video_filter/gradient.c:250:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/video_filter/gradient.c:256:22: branch_false: ...to here
vlc-3.0.21/modules/video_filter/gradient.c:264:13: call_function: calling ‘FilterGradient’ from ‘Filter’
#  351|       uint32_t *p_smooth;
#  352|       if( !p_filter->p_sys->p_buf32 )
#  353|->         p_filter->p_sys->p_buf32 =
#  354|               vlc_alloc( i_num_lines * i_src_visible, sizeof(uint32_t));
#  355|       p_smooth = p_filter->p_sys->p_buf32;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def830]
vlc-3.0.21/modules/video_filter/gradient.c:475:9: warning[-Wanalyzer-malloc-leak]: leak of ‘**p_filter.p_sys.p_buf32’
vlc-3.0.21/modules/video_filter/gradient.c:459:13: enter_function: entry to ‘FilterEdge’
vlc-3.0.21/modules/video_filter/gradient.c:474:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_filter/gradient.c:476:24: branch_true: ...to here
vlc-3.0.21/modules/video_filter/gradient.c:476:13: call_function: inlined call to ‘vlc_alloc’ from ‘FilterEdge’
vlc-3.0.21/modules/video_filter/gradient.c:475:9: danger: ‘**p_filter.p_sys.p_buf32’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
#  473|   
#  474|       if( !p_filter->p_sys->p_buf32 )
#  475|->         p_filter->p_sys->p_buf32 =
#  476|               vlc_alloc( i_num_lines * i_src_visible, sizeof(uint32_t));
#  477|       p_smooth = p_filter->p_sys->p_buf32;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def831]
vlc-3.0.21/modules/video_filter/gradient.c:475:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/modules/video_filter/gradient.c:243:19: enter_function: entry to ‘Filter’
vlc-3.0.21/modules/video_filter/gradient.c:247:7: branch_false: following ‘false’ branch (when ‘p_pic’ is non-NULL)...
vlc-3.0.21/modules/video_filter/gradient.c:249:16: branch_false: ...to here
vlc-3.0.21/modules/video_filter/gradient.c:250:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/video_filter/gradient.c:256:22: branch_false: ...to here
vlc-3.0.21/modules/video_filter/gradient.c:260:13: call_function: calling ‘FilterEdge’ from ‘Filter’
#  473|   
#  474|       if( !p_filter->p_sys->p_buf32 )
#  475|->         p_filter->p_sys->p_buf32 =
#  476|               vlc_alloc( i_num_lines * i_src_visible, sizeof(uint32_t));
#  477|       p_smooth = p_filter->p_sys->p_buf32;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def832]
vlc-3.0.21/modules/video_filter/gradient.c:480:9: warning[-Wanalyzer-malloc-leak]: leak of ‘**p_filter.p_sys.p_buf32_bis’
vlc-3.0.21/modules/video_filter/gradient.c:459:13: enter_function: entry to ‘FilterEdge’
vlc-3.0.21/modules/video_filter/gradient.c:479:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_filter/gradient.c:481:24: branch_true: ...to here
vlc-3.0.21/modules/video_filter/gradient.c:481:13: call_function: inlined call to ‘vlc_alloc’ from ‘FilterEdge’
vlc-3.0.21/modules/video_filter/gradient.c:480:9: danger: ‘**p_filter.p_sys.p_buf32_bis’ leaks here; was allocated at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
#  478|   
#  479|       if( !p_filter->p_sys->p_buf32_bis )
#  480|->         p_filter->p_sys->p_buf32_bis =
#  481|               vlc_alloc( i_num_lines * i_src_visible, sizeof(uint32_t));
#  482|       p_grad = p_filter->p_sys->p_buf32_bis;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def833]
vlc-3.0.21/modules/video_filter/gradient.c:480:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/modules/video_filter/gradient.c:243:19: enter_function: entry to ‘Filter’
vlc-3.0.21/modules/video_filter/gradient.c:247:7: branch_false: following ‘false’ branch (when ‘p_pic’ is non-NULL)...
vlc-3.0.21/modules/video_filter/gradient.c:249:16: branch_false: ...to here
vlc-3.0.21/modules/video_filter/gradient.c:250:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/video_filter/gradient.c:256:22: branch_false: ...to here
vlc-3.0.21/modules/video_filter/gradient.c:260:13: call_function: calling ‘FilterEdge’ from ‘Filter’
#  478|   
#  479|       if( !p_filter->p_sys->p_buf32_bis )
#  480|->         p_filter->p_sys->p_buf32_bis =
#  481|               vlc_alloc( i_num_lines * i_src_visible, sizeof(uint32_t));
#  482|       p_grad = p_filter->p_sys->p_buf32_bis;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def834]
vlc-3.0.21/modules/video_filter/gradient.c:485:9: warning[-Wanalyzer-malloc-leak]: leak of ‘**p_filter.p_sys.p_buf8’
vlc-3.0.21/modules/video_filter/gradient.c:459:13: enter_function: entry to ‘FilterEdge’
vlc-3.0.21/modules/video_filter/gradient.c:484:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_filter/gradient.c:486:24: branch_true: ...to here
vlc-3.0.21/modules/video_filter/gradient.c:486:13: call_function: inlined call to ‘vlc_alloc’ from ‘FilterEdge’
vlc-3.0.21/modules/video_filter/gradient.c:485:9: danger: ‘**p_filter.p_sys.p_buf8’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
#  483|   
#  484|       if( !p_filter->p_sys->p_buf8 )
#  485|->         p_filter->p_sys->p_buf8 =
#  486|               vlc_alloc( i_num_lines * i_src_visible, sizeof(uint8_t));
#  487|       p_theta = p_filter->p_sys->p_buf8;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def835]
vlc-3.0.21/modules/video_filter/gradient.c:485:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc((long unsigned int)(i_src_visible * i_num_lines))’
vlc-3.0.21/modules/video_filter/gradient.c:243:19: enter_function: entry to ‘Filter’
vlc-3.0.21/modules/video_filter/gradient.c:247:7: branch_false: following ‘false’ branch (when ‘p_pic’ is non-NULL)...
vlc-3.0.21/modules/video_filter/gradient.c:249:16: branch_false: ...to here
vlc-3.0.21/modules/video_filter/gradient.c:250:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/video_filter/gradient.c:256:22: branch_false: ...to here
vlc-3.0.21/modules/video_filter/gradient.c:260:13: call_function: calling ‘FilterEdge’ from ‘Filter’
#  483|   
#  484|       if( !p_filter->p_sys->p_buf8 )
#  485|->         p_filter->p_sys->p_buf8 =
#  486|               vlc_alloc( i_num_lines * i_src_visible, sizeof(uint8_t));
#  487|       p_theta = p_filter->p_sys->p_buf8;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def836]
vlc-3.0.21/modules/video_filter/gradient.c:655:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/modules/video_filter/gradient.c:617:13: enter_function: entry to ‘FilterHough’
vlc-3.0.21/modules/video_filter/gradient.c:635:20: call_function: inlined call to ‘vlc_alloc’ from ‘FilterHough’
vlc-3.0.21/modules/video_filter/gradient.c:636:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/video_filter/gradient.c:638:27: branch_false: ...to here
vlc-3.0.21/modules/video_filter/gradient.c:638:16: call_function: inlined call to ‘vlc_alloc’ from ‘FilterHough’
vlc-3.0.21/modules/video_filter/gradient.c:639:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/video_filter/gradient.c:645:11: branch_false: ...to here
vlc-3.0.21/modules/video_filter/gradient.c:645:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_filter/gradient.c:647:9: branch_true: ...to here
vlc-3.0.21/modules/video_filter/gradient.c:648:23: call_function: inlined call to ‘vlc_alloc’ from ‘FilterHough’
vlc-3.0.21/modules/video_filter/gradient.c:649:11: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/video_filter/gradient.c:655:25: branch_true: following ‘true’ branch (when ‘i != 90’)...
vlc-3.0.21/modules/video_filter/gradient.c:657:21: branch_true: ...to here
vlc-3.0.21/modules/video_filter/gradient.c:655:25: danger: ‘<unknown>’ leaks here; was allocated at [(17)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/16)
#  653|               return;
#  654|           }
#  655|->         for( int i = 0; i < i_nb_steps; i++)
#  656|           {
#  657|               d_sin = sin(d_step * i);

Error: COMPILER_WARNING: [#def837]
vlc-3.0.21/modules/video_filter/hqdn3d.c:39: included_from: Included from here.
vlc-3.0.21/modules/video_filter/hqdn3d.h: scope_hint: In function ‘deNoiseSpacial’
vlc-3.0.21/modules/video_filter/hqdn3d.h:92:22: warning[-Wshadow=compatible-local]: declaration of ‘PixelAnt’ shadows a previous local
#   92 |         unsigned int PixelAnt;
#      |                      ^~~~~~~~
vlc-3.0.21/modules/video_filter/hqdn3d.h:78:18: note: shadowed declaration is here
#   78 |     unsigned int PixelAnt;
#      |                  ^~~~~~~~
#   90|   
#   91|       for (long Y = 1; Y < H; Y++){
#   92|->         unsigned int PixelAnt;
#   93|           sLineOffs += sStride, dLineOffs += dStride;
#   94|           /* First pixel on each line doesn't have previous pixel */

Error: COMPILER_WARNING: [#def838]
vlc-3.0.21/modules/video_filter/hqdn3d.h:100:26: warning[-Wshadow=compatible-local]: declaration of ‘PixelDst’ shadows a previous local
#  100 |             unsigned int PixelDst;
#      |                          ^~~~~~~~
vlc-3.0.21/modules/video_filter/hqdn3d.h:79:18: note: shadowed declaration is here
#   79 |     unsigned int PixelDst;
#      |                  ^~~~~~~~
#   98|   
#   99|           for (long X = 1; X < W; X++){
#  100|->             unsigned int PixelDst;
#  101|               /* The rest are normal */
#  102|               PixelAnt = LowPassMul(PixelAnt, Frame[sLineOffs+X]<<16, Horizontal);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def839]
vlc-3.0.21/modules/video_filter/hqdn3d.h:145:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*FrameAnt’
vlc-3.0.21/modules/video_filter/hqdn3d.c:195:19: enter_function: entry to ‘Filter’
vlc-3.0.21/modules/video_filter/hqdn3d.c:202:8: branch_false: following ‘false’ branch (when ‘src’ is non-NULL)...
vlc-3.0.21/modules/video_filter/hqdn3d.c:204:11: branch_false: ...to here
vlc-3.0.21/modules/video_filter/hqdn3d.c:205:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/video_filter/hqdn3d.c:209:5: branch_false: ...to here
vlc-3.0.21/modules/video_filter/hqdn3d.c:224:5: call_function: calling ‘deNoise’ from ‘Filter’
vlc-3.0.21/modules/video_filter/hqdn3d.c:224:5: return_function: returning to ‘Filter’ from ‘deNoise’
vlc-3.0.21/modules/video_filter/hqdn3d.c:230:5: call_function: calling ‘deNoise’ from ‘Filter’
#  143|       /* First pixel has no left nor top neighbor. Only previous frame */
#  144|       LineAnt[0] = PixelAnt = Frame[0]<<16;
#  145|->     PixelDst = LowPassMul(FrameAnt[0]<<8, PixelAnt, Temporal);
#  146|       FrameAnt[0] = ((PixelDst+0x1000007F)>>8);
#  147|       FrameDest[0]= ((PixelDst+0x10007FFF)>>16);

Error: COMPILER_WARNING: [#def840]
vlc-3.0.21/modules/video_filter/hqdn3d.h: scope_hint: In function ‘deNoise’
vlc-3.0.21/modules/video_filter/hqdn3d.h:159:22: warning[-Wshadow=compatible-local]: declaration of ‘PixelAnt’ shadows a previous local
#  159 |         unsigned int PixelAnt;
#      |                      ^~~~~~~~
vlc-3.0.21/modules/video_filter/hqdn3d.h:117:18: note: shadowed declaration is here
#  117 |     unsigned int PixelAnt;
#      |                  ^~~~~~~~
#  157|   
#  158|       for (long Y = 1; Y < H; Y++){
#  159|->         unsigned int PixelAnt;
#  160|           unsigned short* LinePrev=&FrameAnt[Y*W];
#  161|           sLineOffs += sStride, dLineOffs += dStride;

Error: COMPILER_WARNING: [#def841]
vlc-3.0.21/modules/video_filter/hqdn3d.h:170:26: warning[-Wshadow=compatible-local]: declaration of ‘PixelDst’ shadows a previous local
#  170 |             unsigned int PixelDst;
#      |                          ^~~~~~~~
vlc-3.0.21/modules/video_filter/hqdn3d.h:118:18: note: shadowed declaration is here
#  118 |     unsigned int PixelDst;
#      |                  ^~~~~~~~
#  168|   
#  169|           for (long X = 1; X < W; X++){
#  170|->             unsigned int PixelDst;
#  171|               /* The rest are normal */
#  172|               PixelAnt = LowPassMul(PixelAnt, Frame[sLineOffs+X]<<16, Horizontal);

Error: COMPILER_WARNING (CWE-197): [#def842]
vlc-3.0.21/modules/video_filter/oldmovie.c: scope_hint: In function ‘oldmovie_sliding_offset_effect’
vlc-3.0.21/modules/video_filter/oldmovie.c:460:44: warning[-Wabsolute-value]: absolute value function ‘abs’ given an argument of type ‘long int’ but has parameter of type ‘int’ which may cause truncation of value
#  460 |         if ( abs( p_sys->i_sliding_ofs ) < abs( p_sys->i_sliding_speed
#      |                                            ^~~
#  458|   
#  459|           /* check if offset is close to 0 and then ready to stop */
#  460|->         if ( abs( p_sys->i_sliding_ofs ) < abs( p_sys->i_sliding_speed
#  461|                * p_sys->i_height[Y_PLANE]
#  462|                * ( p_sys->i_cur_time - p_sys->i_last_time ) / CLOCK_FREQ )

Error: GCC_ANALYZER_WARNING (CWE-122): [#def843]
vlc-3.0.21/modules/video_filter/puzzle_bezier.c:82:23: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
vlc-3.0.21/modules/video_filter/puzzle_bezier.c:43:8: branch_false: following ‘false’ branch (when ‘ps_pt’ is non-NULL)...
vlc-3.0.21/modules/video_filter/puzzle_bezier.c:46:24: branch_false: ...to here
vlc-3.0.21/modules/video_filter/puzzle_bezier.c:57:8: branch_false: following ‘false’ branch (when ‘ps_new_pt’ is non-NULL)...
 branch_false: ...to here
vlc-3.0.21/modules/video_filter/puzzle_bezier.c:76:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_filter/puzzle_bezier.c:77:31: branch_true: ...to here
vlc-3.0.21/modules/video_filter/puzzle_bezier.c:78:16: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_filter/puzzle_bezier.c:79:28: branch_true: ...to here
vlc-3.0.21/modules/video_filter/puzzle_bezier.c:82:23: danger: read of 4 bytes at offset ‘(long unsigned int)((int)(int8_t)(i_pts_nbr + 254) * 3) * 8’ exceeds the buffer
#   80|               float f_sub_t = f_t - i_main_t;
#   81|   
#   82|->             f_bez_x = bezier_val(ps_new_pt,f_sub_t,i_main_t,x);
#   83|               f_bez_y = bezier_val(ps_new_pt,f_sub_t,i_main_t,y);
#   84|   

Error: GCC_ANALYZER_WARNING (CWE-122): [#def844]
vlc-3.0.21/modules/video_filter/puzzle_bezier.c:83:23: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
vlc-3.0.21/modules/video_filter/puzzle_bezier.c:43:8: branch_false: following ‘false’ branch (when ‘ps_pt’ is non-NULL)...
vlc-3.0.21/modules/video_filter/puzzle_bezier.c:46:24: branch_false: ...to here
vlc-3.0.21/modules/video_filter/puzzle_bezier.c:57:8: branch_false: following ‘false’ branch (when ‘ps_new_pt’ is non-NULL)...
 branch_false: ...to here
vlc-3.0.21/modules/video_filter/puzzle_bezier.c:76:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_filter/puzzle_bezier.c:77:31: branch_true: ...to here
vlc-3.0.21/modules/video_filter/puzzle_bezier.c:78:16: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_filter/puzzle_bezier.c:79:28: branch_true: ...to here
vlc-3.0.21/modules/video_filter/puzzle_bezier.c:83:23: danger: read of 4 bytes at offset ‘(long unsigned int)((int)(int8_t)(i_pts_nbr + 254) * 3) * 8 + 4’ exceeds the buffer
#   81|   
#   82|               f_bez_x = bezier_val(ps_new_pt,f_sub_t,i_main_t,x);
#   83|->             f_bez_y = bezier_val(ps_new_pt,f_sub_t,i_main_t,y);
#   84|   
#   85|               if ( f_bez_x < ((float) i_width) / 2 ) {

Error: COMPILER_WARNING (CWE-197): [#def845]
vlc-3.0.21/modules/video_filter/puzzle_bezier.c: scope_hint: In function ‘puzzle_scale_curve_H’
vlc-3.0.21/modules/video_filter/puzzle_bezier.c:86:22: warning[-Wabsolute-value]: using integer absolute value function ‘abs’ when argument is of floating-point type ‘float’
#   86 |                 if ( abs ( f_bez_y ) > ( f_bez_x * ( 0.9 * ((float)i_lines) / ((float)i_width) ) ) )
#      |                      ^~~
#   84|   
#   85|               if ( f_bez_x < ((float) i_width) / 2 ) {
#   86|->                 if ( abs ( f_bez_y ) > ( f_bez_x * ( 0.9 * ((float)i_lines) / ((float)i_width) ) ) )
#   87|                       b_fit = false;
#   88|               }

Error: COMPILER_WARNING (CWE-197): [#def846]
vlc-3.0.21/modules/video_filter/puzzle_bezier.c:90:22: warning[-Wabsolute-value]: using integer absolute value function ‘abs’ when argument is of floating-point type ‘float’
#   90 |                 if ( abs ( f_bez_y ) > ( ( ((float)i_width) - f_bez_x ) * ( 0.9 * ((float)i_lines) / ((float)i_width) ) ) )
#      |                      ^~~
#   88|               }
#   89|               else  {
#   90|->                 if ( abs ( f_bez_y ) > ( ( ((float)i_width) - f_bez_x ) * ( 0.9 * ((float)i_lines) / ((float)i_width) ) ) )
#   91|                       b_fit = false;
#   92|               }

Error: COMPILER_WARNING: [#def847]
vlc-3.0.21/modules/video_filter/ripple.c: scope_hint: In function ‘Filter’
vlc-3.0.21/modules/video_filter/ripple.c:160:31: warning[-Wimplicit-fallthrough=]: this statement may fall through
#  160 |                 i_pixel_pitch *= 2;
#      |                 ~~~~~~~~~~~~~~^~~~
vlc-3.0.21/modules/video_filter/ripple.c:39: included_from: Included from here.
vlc-3.0.21/modules/video_filter/filter_picture.h:26:9: note: here
#   26 |         case VLC_CODEC_I420:   \
#      |         ^~~~
vlc-3.0.21/modules/video_filter/filter_picture.h:52:9: note: in expansion of macro ‘CASE_PLANAR_YUV_SQUARE’
#   52 |         CASE_PLANAR_YUV_SQUARE              \
#      |         ^~~~~~~~~~~~~~~~~~~~~~
vlc-3.0.21/modules/video_filter/ripple.c:162:13: note: in expansion of macro ‘CASE_PLANAR_YUV’
#  162 |             CASE_PLANAR_YUV
#      |             ^~~~~~~~~~~~~~~
#  158|               CASE_PACKED_YUV_422
#  159|                   // Quick hack to fix u/v inversion occurring with 2 byte pixel pitch
#  160|->                 i_pixel_pitch *= 2;
#  161|                   /* fallthrough */
#  162|               CASE_PLANAR_YUV

Error: COMPILER_WARNING: [#def848]
vlc-3.0.21/modules/video_filter/scale.c: scope_hint: In function ‘OpenFilter’
vlc-3.0.21/modules/video_filter/scale.c:75:2: warning[-Wcpp]: #warning Converter cannot (really) change output format.
#   75 | #warning Converter cannot (really) change output format.
#      |  ^~~~~~~
#   73|           return VLC_EGENERIC;
#   74|   
#   75|-> #warning Converter cannot (really) change output format.
#   76|       video_format_ScaleCropAr( &p_filter->fmt_out.video, &p_filter->fmt_in.video );
#   77|       p_filter->pf_video_filter = Filter;

Error: COMPILER_WARNING: [#def849]
vlc-3.0.21/modules/video_filter/scale.c:75:2: warning[-Wcpp]: #warning Converter cannot (really) change output format.
#   73|           return VLC_EGENERIC;
#   74|   
#   75|-> #warning Converter cannot (really) change output format.
#   76|       video_format_ScaleCropAr( &p_filter->fmt_out.video, &p_filter->fmt_in.video );
#   77|       p_filter->pf_video_filter = Filter;

Error: COMPILER_WARNING: [#def850]
vlc-3.0.21/modules/video_filter/scale.c: scope_hint: In function ‘Filter’
vlc-3.0.21/modules/video_filter/scale.c:95:2: warning[-Wcpp]: #warning Converter cannot (really) change output format.
#   95 | #warning Converter cannot (really) change output format.
#      |  ^~~~~~~
#   93|       if( !p_pic ) return NULL;
#   94|   
#   95|-> #warning Converter cannot (really) change output format.
#   96|       video_format_ScaleCropAr( &p_filter->fmt_out.video, &p_filter->fmt_in.video );
#   97|   

Error: COMPILER_WARNING: [#def851]
vlc-3.0.21/modules/video_filter/scale.c:95:2: warning[-Wcpp]: #warning Converter cannot (really) change output format.
#   93|       if( !p_pic ) return NULL;
#   94|   
#   95|-> #warning Converter cannot (really) change output format.
#   96|       video_format_ScaleCropAr( &p_filter->fmt_out.video, &p_filter->fmt_in.video );
#   97|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def852]
vlc-3.0.21/modules/video_filter/vhs.c:274:22: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 16)’
vlc-3.0.21/modules/video_filter/vhs.c:167:19: enter_function: entry to ‘Filter’
vlc-3.0.21/modules/video_filter/vhs.c:168:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/video_filter/vhs.c:171:19: branch_false: ...to here
vlc-3.0.21/modules/video_filter/vhs.c:174:7: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/video_filter/vhs.c:182:26: branch_false: ...to here
vlc-3.0.21/modules/video_filter/vhs.c:203:10: call_function: calling ‘vhs_blue_red_line_effect’ from ‘Filter’
#  272|                   /* allocate data */
#  273|                   p_sys->p_BR_lines[i_b] = calloc( 1, sizeof(blue_red_line_t) );
#  274|->                 if ( unlikely( !p_sys->p_BR_lines[i_b] ) )
#  275|                       return VLC_ENOMEM;
#  276|   

Error: COMPILER_WARNING (CWE-197): [#def853]
vlc-3.0.21/modules/video_filter/vhs.c: scope_hint: In function ‘vhs_sliding_effect’
vlc-3.0.21/modules/video_filter/vhs.c:473:44: warning[-Wabsolute-value]: absolute value function ‘abs’ given an argument of type ‘long int’ but has parameter of type ‘int’ which may cause truncation of value
#  473 |         if ( abs( p_sys->i_sliding_ofs ) < abs( p_sys->i_sliding_speed
#      |                                            ^~~
#  471|   
#  472|           /* check if offset is close to 0 and then ready to stop */
#  473|->         if ( abs( p_sys->i_sliding_ofs ) < abs( p_sys->i_sliding_speed
#  474|                * p_sys->i_height[Y_PLANE]
#  475|                * ( p_sys->i_cur_time - p_sys->i_last_time ) / CLOCK_FREQ )

Error: COMPILER_WARNING: [#def854]
vlc-3.0.21/modules/video_filter/wave.c: scope_hint: In function ‘Filter’
vlc-3.0.21/modules/video_filter/wave.c:161:31: warning[-Wimplicit-fallthrough=]: this statement may fall through
#  161 |                 i_pixel_pitch *= 2;
#      |                 ~~~~~~~~~~~~~~^~~~
vlc-3.0.21/modules/video_filter/wave.c:39: included_from: Included from here.
vlc-3.0.21/modules/video_filter/filter_picture.h:26:9: note: here
#   26 |         case VLC_CODEC_I420:   \
#      |         ^~~~
vlc-3.0.21/modules/video_filter/filter_picture.h:52:9: note: in expansion of macro ‘CASE_PLANAR_YUV_SQUARE’
#   52 |         CASE_PLANAR_YUV_SQUARE              \
#      |         ^~~~~~~~~~~~~~~~~~~~~~
vlc-3.0.21/modules/video_filter/wave.c:163:13: note: in expansion of macro ‘CASE_PLANAR_YUV’
#  163 |             CASE_PLANAR_YUV
#      |             ^~~~~~~~~~~~~~~
#  159|               CASE_PACKED_YUV_422
#  160|                   // Quick hack to fix u/v inversion occurring with 2 byte pixel pitch
#  161|->                 i_pixel_pitch *= 2;
#  162|                   /* fallthrough */
#  163|               CASE_PLANAR_YUV

Error: COMPILER_WARNING (CWE-477): [#def855]
vlc-3.0.21/modules/video_output/aa.c: scope_hint: In function ‘Open’
vlc-3.0.21/modules/video_output/aa.c:138:5: warning[-Wdeprecated-declarations]: ‘manage’ is deprecated
#  138 |     vd->manage  = Manage;
#      |     ^~
vlc-3.0.21/modules/video_output/aa.c:33: included_from: Included from here.
vlc-3.0.21/include/vlc_vout_display.h:333:18: note: declared here
#  333 |     void       (*manage)(vout_display_t *) VLC_DEPRECATED;
#      |                  ^~~~~~
#  136|       vd->display = PictureDisplay;
#  137|       vd->control = Control;
#  138|->     vd->manage  = Manage;
#  139|   
#  140|       /* Inspect initial configuration and send correction events

Error: COMPILER_WARNING (CWE-477): [#def856]
vlc-3.0.21/modules/video_output/aa.c:138:5: warning[-Wdeprecated-declarations]: ‘manage’ is deprecated
#  136|       vd->display = PictureDisplay;
#  137|       vd->control = Control;
#  138|->     vd->manage  = Manage;
#  139|   
#  140|       /* Inspect initial configuration and send correction events

Error: COMPILER_WARNING (CWE-477): [#def857]
vlc-3.0.21/modules/video_output/aa.c: scope_hint: In function ‘Control’
vlc-3.0.21/modules/video_output/aa.c:253:5: warning[-Wdeprecated-declarations]: ‘VOUT_DISPLAY_HIDE_MOUSE’ is deprecated
#  253 |     case VOUT_DISPLAY_HIDE_MOUSE:
#      |     ^~~~
vlc-3.0.21/include/vlc_vout_display.h:144:5: note: declared here
#  144 |     VOUT_DISPLAY_HIDE_MOUSE VLC_DEPRECATED_ENUM,
#      |     ^~~~~~~~~~~~~~~~~~~~~~~
#  251|           return VLC_SUCCESS;
#  252|   
#  253|->     case VOUT_DISPLAY_HIDE_MOUSE:
#  254|           aa_hidemouse(sys->aa_context);
#  255|           return VLC_SUCCESS;

Error: COMPILER_WARNING (CWE-477): [#def858]
vlc-3.0.21/modules/video_output/aa.c:253:5: warning[-Wdeprecated-declarations]: ‘VOUT_DISPLAY_HIDE_MOUSE’ is deprecated
#  251|           return VLC_SUCCESS;
#  252|   
#  253|->     case VOUT_DISPLAY_HIDE_MOUSE:
#  254|           aa_hidemouse(sys->aa_context);
#  255|           return VLC_SUCCESS;

Error: COMPILER_WARNING (CWE-477): [#def859]
vlc-3.0.21/modules/video_output/caca.c: scope_hint: In function ‘Open’
vlc-3.0.21/modules/video_output/caca.c:200:5: warning[-Wdeprecated-declarations]: ‘manage’ is deprecated
#  200 |     vd->manage  = Manage;
#      |     ^~
vlc-3.0.21/modules/video_output/caca.c:35: included_from: Included from here.
vlc-3.0.21/include/vlc_vout_display.h:333:18: note: declared here
#  333 |     void       (*manage)(vout_display_t *) VLC_DEPRECATED;
#      |                  ^~~~~~
#  198|       vd->display = PictureDisplay;
#  199|       vd->control = Control;
#  200|->     vd->manage  = Manage;
#  201|   
#  202|       /* Fix initial state */

Error: COMPILER_WARNING (CWE-477): [#def860]
vlc-3.0.21/modules/video_output/caca.c:200:5: warning[-Wdeprecated-declarations]: ‘manage’ is deprecated
#  198|       vd->display = PictureDisplay;
#  199|       vd->control = Control;
#  200|->     vd->manage  = Manage;
#  201|   
#  202|       /* Fix initial state */

Error: COMPILER_WARNING (CWE-477): [#def861]
vlc-3.0.21/modules/video_output/caca.c: scope_hint: In function ‘Control’
vlc-3.0.21/modules/video_output/caca.c:319:5: warning[-Wdeprecated-declarations]: ‘VOUT_DISPLAY_HIDE_MOUSE’ is deprecated
#  319 |     case VOUT_DISPLAY_HIDE_MOUSE:
#      |     ^~~~
vlc-3.0.21/include/vlc_vout_display.h:144:5: note: declared here
#  144 |     VOUT_DISPLAY_HIDE_MOUSE VLC_DEPRECATED_ENUM,
#      |     ^~~~~~~~~~~~~~~~~~~~~~~
#  317|   
#  318|       switch (query) {
#  319|->     case VOUT_DISPLAY_HIDE_MOUSE:
#  320|           caca_set_mouse(sys->dp, 0);
#  321|           return VLC_SUCCESS;

Error: COMPILER_WARNING (CWE-477): [#def862]
vlc-3.0.21/modules/video_output/caca.c:319:5: warning[-Wdeprecated-declarations]: ‘VOUT_DISPLAY_HIDE_MOUSE’ is deprecated
#  317|   
#  318|       switch (query) {
#  319|->     case VOUT_DISPLAY_HIDE_MOUSE:
#  320|           caca_set_mouse(sys->dp, 0);
#  321|           return VLC_SUCCESS;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def863]
vlc-3.0.21/modules/video_output/opengl/converter_sw.c:305:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pic’
vlc-3.0.21/modules/video_output/opengl/converter_sw.c:299:53: branch_true: following ‘true’ branch (when ‘i != 0’)...
vlc-3.0.21/modules/video_output/opengl/converter_sw.c:304:48: branch_true: ...to here
vlc-3.0.21/modules/video_output/opengl/converter_sw.c:317:13: release_memory: ‘0’ is NULL
vlc-3.0.21/modules/video_output/opengl/converter_sw.c:299:53: branch_true: following ‘true’ branch (when ‘i != 0’)...
vlc-3.0.21/modules/video_output/opengl/converter_sw.c:304:48: branch_true: ...to here
vlc-3.0.21/modules/video_output/opengl/converter_sw.c:317:13: release_memory: ‘0’ is NULL
vlc-3.0.21/modules/video_output/opengl/converter_sw.c:299:53: branch_true: following ‘true’ branch (when ‘i != 0’)...
vlc-3.0.21/modules/video_output/opengl/converter_sw.c:304:48: branch_true: ...to here
vlc-3.0.21/modules/video_output/opengl/converter_sw.c:304:20: release_memory: ‘pic’ is NULL
vlc-3.0.21/modules/video_output/opengl/converter_sw.c:305:24: danger: dereference of NULL ‘pic’
#  303|   
#  304|           picture_t *pic = priv->persistent.pics[i - 1];
#  305|->         picture_sys_t *picsys = pic->p_sys;
#  306|   
#  307|           assert(picsys->fence != NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def864]
vlc-3.0.21/modules/video_output/opengl/converter_sw.c:474:20: warning[-Wanalyzer-malloc-leak]: leak of ‘realloc_or_free(*priv.texture_temp_buf,  buf_size)’
vlc-3.0.21/modules/video_output/opengl/converter_sw.c:449:1: enter_function: entry to ‘upload_plane’
vlc-3.0.21/modules/video_output/opengl/converter_sw.c:460:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/video_output/opengl/converter_sw.c:462:12: branch_false: ...to here
vlc-3.0.21/modules/video_output/opengl/converter_sw.c:462:12: branch_true: following ‘true’ branch (when ‘pitch != visible_pitch’)...
vlc-3.0.21/modules/video_output/opengl/converter_sw.c:465:29: branch_true: ...to here
vlc-3.0.21/modules/video_output/opengl/converter_sw.c:470:16: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_output/opengl/converter_sw.c:473:21: branch_true: ...to here
vlc-3.0.21/modules/video_output/opengl/converter_sw.c:473:21: call_function: calling ‘realloc_or_free’ from ‘upload_plane’
vlc-3.0.21/modules/video_output/opengl/converter_sw.c:473:21: return_function: returning to ‘upload_plane’ from ‘realloc_or_free’
vlc-3.0.21/modules/video_output/opengl/converter_sw.c:474:20: danger: ‘realloc_or_free(*priv.texture_temp_buf,  buf_size)’ leaks here; was allocated at [(10)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/9)
#  472|                   priv->texture_temp_buf =
#  473|                       realloc_or_free(priv->texture_temp_buf, buf_size);
#  474|->                 if (priv->texture_temp_buf == NULL)
#  475|                   {
#  476|                       priv->texture_temp_buf_size = 0;

Error: COMPILER_WARNING (CWE-563): [#def865]
vlc-3.0.21/modules/video_output/opengl/converter_vaapi.c: scope_hint: In function ‘vaegl_release_last_pic’
vlc-3.0.21/modules/video_output/opengl/converter_vaapi.c:113:19: warning[-Wunused-variable]: unused variable ‘o’
#  113 |     vlc_object_t *o = VLC_OBJECT(tc->gl);
#      |                   ^
#  111|   vaegl_release_last_pic(const opengl_tex_converter_t *tc, struct priv *priv)
#  112|   {
#  113|->     vlc_object_t *o = VLC_OBJECT(tc->gl);
#  114|   
#  115|       for (unsigned i = 0; i < priv->last.num_planes; ++i)

Error: COMPILER_WARNING (CWE-457): [#def866]
vlc-3.0.21/modules/video_output/opengl/converter_vdpau.c: scope_hint: In function ‘tc_vdpau_gl_get_pool’
vlc-3.0.21/modules/video_output/opengl/converter_vdpau.c:111:28: warning[-Wmaybe-uninitialized]: ‘pics.28_29’ may be used uninitialized
#  111 |     picture_pool_t *pool = picture_pool_New(requested_count, pics);
#      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vlc-3.0.21/modules/video_output/opengl/converter.h:26: included_from: Included from here.
vlc-3.0.21/modules/video_output/opengl/internal.h:24: included_from: Included from here.
vlc-3.0.21/modules/video_output/opengl/converter_vdpau.c:37: included_from: Included from here.
vlc-3.0.21/include/vlc_picture_pool.h:82:26: note: by argument 2 of type ‘struct picture_t * const *’ to ‘picture_pool_New’ declared here
#   82 | VLC_API picture_pool_t * picture_pool_New(unsigned count,
#      |                          ^~~~~~~~~~~~~~~~
#  109|       }
#  110|   
#  111|->     picture_pool_t *pool = picture_pool_New(requested_count, pics);
#  112|       if (!pool)
#  113|           goto error;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def867]
vlc-3.0.21/modules/video_output/opengl/vout_helper.c:1197:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘glr’
vlc-3.0.21/modules/video_output/opengl/vout_helper.c:1173:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/video_output/opengl/vout_helper.c:1176:17: branch_false: ...to here
vlc-3.0.21/modules/video_output/opengl/vout_helper.c:1183:8: branch_true: following ‘true’ branch (when ‘subpicture’ is non-NULL)...
vlc-3.0.21/modules/video_output/opengl/vout_helper.c:1186:35: branch_true: ...to here
vlc-3.0.21/modules/video_output/opengl/vout_helper.c:1190:29: acquire_memory: this call could return NULL
vlc-3.0.21/modules/video_output/opengl/vout_helper.c:1194:14: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_output/opengl/vout_helper.c:1195:33: branch_true: ...to here
vlc-3.0.21/modules/video_output/opengl/vout_helper.c:1197:13: danger: ‘glr’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
# 1195|               gl_region_t *glr = &vgl->region[i];
# 1196|   
# 1197|->             glr->width  = r->fmt.i_visible_width;
# 1198|               glr->height = r->fmt.i_visible_height;
# 1199|               if (!vgl->supports_npot) {

Error: COMPILER_WARNING (CWE-195): [#def868]
vlc-3.0.21/modules/video_output/vdummy.c: scope_hint: In function ‘DisplayStat’
vlc-3.0.21/modules/video_output/vdummy.c:151:54: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’
#  151 |          (picture->p->i_pitch * picture->p->i_lines) >= sizeof(vlc_tick_t) ) {
#      |                                                      ^~
#  149|       VLC_UNUSED(subpicture);
#  150|       if ( vd->fmt.i_width*vd->fmt.i_height >= sizeof(vlc_tick_t) &&
#  151|->          (picture->p->i_pitch * picture->p->i_lines) >= sizeof(vlc_tick_t) ) {
#  152|           vlc_tick_t date;
#  153|           memcpy(&date, picture->p->p_pixels, sizeof(date));

Error: COMPILER_WARNING (CWE-909): [#def869]
vlc-3.0.21/modules/video_output/wayland/shell.c:197:1: warning[-Wmissing-field-initializers]: missing initializer for field ‘name’ of ‘const struct wl_output_listener’
#  197 | };
#      | ^
/usr/include/wayland-client.h:40: included_from: Included from here.
vlc-3.0.21/modules/video_output/wayland/shell.c:33: included_from: Included from here.
/usr/include/wayland-client-protocol.h:5932:16: note: ‘name’ declared here
# 5932 |         void (*name)(void *data,
#      |                ^~~~
#  195|       NULL,
#  196|       NULL,
#  197|-> };
#  198|   
#  199|   static void shell_surface_ping_cb(void *data,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def870]
vlc-3.0.21/modules/video_output/xcb/window.c:585:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/modules/video_output/xcb/window.c:577:13: enter_function: entry to ‘ReleaseDrawable’
vlc-3.0.21/modules/video_output/xcb/window.c:583:12: call_function: calling ‘var_GetAddress’ from ‘ReleaseDrawable’
vlc-3.0.21/modules/video_output/xcb/window.c:583:12: return_function: returning to ‘ReleaseDrawable’ from ‘var_GetAddress’
vlc-3.0.21/modules/video_output/xcb/window.c:585:16: release_memory: ‘0’ is NULL
vlc-3.0.21/modules/video_output/xcb/window.c:585:12: danger: dereference of NULL ‘var_GetAddress(&*obj_24(D)->obj.libvlc.obj, "xid-in-use") + n * 4’
#  583|       used = var_GetAddress (obj->obj.libvlc, "xid-in-use");
#  584|       assert (used);
#  585|->     while (used[n] != window)
#  586|       {
#  587|           assert (used[n]);

Error: GCC_ANALYZER_WARNING (CWE-121): [#def871]
vlc-3.0.21/modules/video_output/xcb/xvideo.c:631:13: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
vlc-3.0.21/modules/video_output/xcb/xvideo.c:621:21: branch_true: following ‘true’ branch (when ‘count < requested_count’)...
vlc-3.0.21/modules/video_output/xcb/xvideo.c:623:29: branch_true: ...to here
vlc-3.0.21/modules/video_output/xcb/xvideo.c:625:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/video_output/xcb/xvideo.c:630:30: branch_true: following ‘true’ branch (when ‘i < num_planes’)...
vlc-3.0.21/modules/video_output/xcb/xvideo.c:631:33: branch_true: ...to here
vlc-3.0.21/modules/video_output/xcb/xvideo.c:630:30: branch_true: following ‘true’ branch (when ‘i < num_planes’)...
vlc-3.0.21/modules/video_output/xcb/xvideo.c:631:33: branch_true: ...to here
vlc-3.0.21/modules/video_output/xcb/xvideo.c:630:30: branch_true: following ‘true’ branch (when ‘i < num_planes’)...
vlc-3.0.21/modules/video_output/xcb/xvideo.c:631:33: branch_true: ...to here
vlc-3.0.21/modules/video_output/xcb/xvideo.c:630:30: branch_true: following ‘true’ branch (when ‘i < num_planes’)...
vlc-3.0.21/modules/video_output/xcb/xvideo.c:631:33: branch_true: ...to here
vlc-3.0.21/modules/video_output/xcb/xvideo.c:630:30: branch_true: following ‘true’ branch (when ‘i < num_planes’)...
vlc-3.0.21/modules/video_output/xcb/xvideo.c:631:33: branch_true: ...to here
vlc-3.0.21/modules/video_output/xcb/xvideo.c:631:13: danger: out-of-bounds write from byte 96 till byte 103 but ‘res’ ends at byte 96
#  629|           /* We assume that offsets[0] is zero */
#  630|           for (unsigned i = 1; i < num_planes; i++)
#  631|->             res.p[i].p_pixels = res.p[0].p_pixels + offsets[i];
#  632|   
#  633|           if (p_sys->swap_uv)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def872]
vlc-3.0.21/modules/video_output/xcb/xvideo.c:824:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*tp’
vlc-3.0.21/modules/video_output/xcb/xvideo.c:764:12: enter_function: entry to ‘EnumAdaptors’
vlc-3.0.21/modules/video_output/xcb/xvideo.c:774:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/video_output/xcb/xvideo.c:778:32: branch_false: ...to here
vlc-3.0.21/modules/video_output/xcb/xvideo.c:781:10: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_output/xcb/xvideo.c:783:13: branch_true: ...to here
vlc-3.0.21/modules/video_output/xcb/xvideo.c:791:8: branch_false: following ‘false’ branch (when ‘scr’ is non-NULL)...
vlc-3.0.21/modules/video_output/xcb/xvideo.c:799:42: branch_false: ...to here
vlc-3.0.21/modules/video_output/xcb/xvideo.c:801:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/video_output/xcb/xvideo.c:807:15: branch_false: ...to here
vlc-3.0.21/modules/video_output/xcb/xvideo.c:818:23: call_function: calling ‘xmalloc’ from ‘EnumAdaptors’
vlc-3.0.21/modules/video_output/xcb/xvideo.c:818:23: return_function: returning to ‘EnumAdaptors’ from ‘xmalloc’
vlc-3.0.21/modules/video_output/xcb/xvideo.c:819:20: call_function: calling ‘xmalloc’ from ‘EnumAdaptors’
vlc-3.0.21/modules/video_output/xcb/xvideo.c:819:20: return_function: returning to ‘EnumAdaptors’ from ‘xmalloc’
vlc-3.0.21/modules/video_output/xcb/xvideo.c:824:5: danger: ‘xmalloc((n + 1) * 8)’ could be NULL: unchecked value from [(17)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/16)
#  822|   
#  823|       *(values++) = -1;
#  824|->     *(texts++) = strdup (N_("Auto"));
#  825|   
#  826|       for (it = xcb_xv_query_adaptors_info_iterator (adaptors), n = -1;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def873]
vlc-3.0.21/modules/video_splitter/wall.c:416:52: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
vlc-3.0.21/modules/video_splitter/wall.c:394:7: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:400:21: branch_true: following ‘true’ branch...
 branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:402:25: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:405:18: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:405:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:408:39: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:416:52: danger: out-of-bounds read from byte 392 till byte 395 but ‘tmp’ ends at byte 384
#  414|                   plane_t *p0 = &tmp.p[0];
#  415|                   plane_t *p = &tmp.p[i];
#  416|->                 const int i_y = p_output->i_top  * p->i_visible_pitch / p0->i_visible_pitch;
#  417|                   const int i_x = p_output->i_left * p->i_visible_lines / p0->i_visible_lines;
#  418|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def874]
vlc-3.0.21/modules/video_splitter/wall.c:417:52: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
vlc-3.0.21/modules/video_splitter/wall.c:394:7: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:400:21: branch_true: following ‘true’ branch...
 branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:402:25: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:405:18: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:405:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:408:39: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:417:52: danger: out-of-bounds read from byte 388 till byte 391 but ‘tmp’ ends at byte 384
#  415|                   plane_t *p = &tmp.p[i];
#  416|                   const int i_y = p_output->i_top  * p->i_visible_pitch / p0->i_visible_pitch;
#  417|->                 const int i_x = p_output->i_left * p->i_visible_lines / p0->i_visible_lines;
#  418|   
#  419|                   p->p_pixels += i_y * p->i_pitch + i_x * p->i_pixel_pitch;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def875]
vlc-3.0.21/modules/video_splitter/wall.c:419:17: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
vlc-3.0.21/modules/video_splitter/wall.c:394:7: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:400:21: branch_true: following ‘true’ branch...
 branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:402:25: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:405:18: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:405:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:408:39: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:419:17: danger: out-of-bounds read from byte 400 till byte 407 but ‘tmp’ ends at byte 384
#  417|                   const int i_x = p_output->i_left * p->i_visible_lines / p0->i_visible_lines;
#  418|   
#  419|->                 p->p_pixels += i_y * p->i_pitch + i_x * p->i_pixel_pitch;
#  420|               }
#  421|               picture_Copy( p_dst, &tmp );

Error: GCC_ANALYZER_WARNING (CWE-121): [#def876]
vlc-3.0.21/modules/video_splitter/wall.c:419:17: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
vlc-3.0.21/modules/video_splitter/wall.c:394:7: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:400:21: branch_true: following ‘true’ branch...
 branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:402:25: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:405:18: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:405:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:408:39: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:419:17: danger: out-of-bounds write from byte 400 till byte 407 but ‘tmp’ ends at byte 384
#  417|                   const int i_x = p_output->i_left * p->i_visible_lines / p0->i_visible_lines;
#  418|   
#  419|->                 p->p_pixels += i_y * p->i_pitch + i_x * p->i_pixel_pitch;
#  420|               }
#  421|               picture_Copy( p_dst, &tmp );

Error: GCC_ANALYZER_WARNING (CWE-126): [#def877]
vlc-3.0.21/modules/video_splitter/wall.c:419:38: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
vlc-3.0.21/modules/video_splitter/wall.c:394:7: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:400:21: branch_true: following ‘true’ branch...
 branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:402:25: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:405:18: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:405:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:408:39: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:419:38: danger: out-of-bounds read from byte 412 till byte 415 but ‘tmp’ ends at byte 384
#  417|                   const int i_x = p_output->i_left * p->i_visible_lines / p0->i_visible_lines;
#  418|   
#  419|->                 p->p_pixels += i_y * p->i_pitch + i_x * p->i_pixel_pitch;
#  420|               }
#  421|               picture_Copy( p_dst, &tmp );

Error: GCC_ANALYZER_WARNING (CWE-126): [#def878]
vlc-3.0.21/modules/video_splitter/wall.c:419:57: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
vlc-3.0.21/modules/video_splitter/wall.c:394:7: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:400:21: branch_true: following ‘true’ branch...
 branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:402:25: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:405:18: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:405:15: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:408:39: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:412:29: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/video_splitter/wall.c:416:33: branch_true: ...to here
vlc-3.0.21/modules/video_splitter/wall.c:419:57: danger: out-of-bounds read from byte 384 till byte 387 but ‘tmp’ ends at byte 384
#  417|                   const int i_x = p_output->i_left * p->i_visible_lines / p0->i_visible_lines;
#  418|   
#  419|->                 p->p_pixels += i_y * p->i_pitch + i_x * p->i_pixel_pitch;
#  420|               }
#  421|               picture_Copy( p_dst, &tmp );

Error: GCC_ANALYZER_WARNING (CWE-401): [#def879]
vlc-3.0.21/modules/visualization/glspectrum.c:402:16: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.p_prev_s16_buff’
vlc-3.0.21/modules/visualization/glspectrum.c:352:8: branch_false: following ‘false’ branch...
vlc-3.0.21/modules/visualization/glspectrum.c:357:5: branch_false: ...to here
vlc-3.0.21/modules/visualization/glspectrum.c:396:12: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/visualization/glspectrum.c:398:18: branch_true: ...to here
vlc-3.0.21/modules/visualization/glspectrum.c:399:38: acquire_memory: allocated here
vlc-3.0.21/modules/visualization/glspectrum.c:402:16: danger: ‘*p_sys.p_prev_s16_buff’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#  400|                                               p_sys->i_channels *
#  401|                                               sizeof(int16_t));
#  402|->             if (!p_sys->p_prev_s16_buff)
#  403|                   goto release;
#  404|               p_sys->i_prev_nb_samples = block->i_nb_samples;

Error: COMPILER_WARNING: [#def880]
vlc-3.0.21/modules/visualization/glspectrum.c: scope_hint: In function ‘Thread’
vlc-3.0.21/modules/visualization/glspectrum.c:449:43: warning[-Wxor-used-as-pow]: result of ‘2^16’ is 18; did you mean ‘1 << 16’ (65536)?
#  449 |             p_dest[i] = p_output[i] *  (2 ^ 16)
#      |                                           ^
#      |                                         -
#      |                                         1 <<
vlc-3.0.21/modules/visualization/glspectrum.c:449:41: note: you can silence this warning by using a hexadecimal constant (0x2 rather than 2)
#  449 |             p_dest[i] = p_output[i] *  (2 ^ 16)
#      |                                         ^
#      |                                         0x2
#  447|   
#  448|           for (i = 0; i< FFT_BUFFER_SIZE; ++i)
#  449|->             p_dest[i] = p_output[i] *  (2 ^ 16)
#  450|                           / ((FFT_BUFFER_SIZE / 2 * 32768) ^ 2);
#  451|   

Error: COMPILER_WARNING: [#def881]
vlc-3.0.21/modules/visualization/glspectrum.c:449:43: warning[-Wxor-used-as-pow]: result of ‘2^16’ is 18; did you mean ‘1 << 16’ (65536)?
#  447|   
#  448|           for (i = 0; i< FFT_BUFFER_SIZE; ++i)
#  449|->             p_dest[i] = p_output[i] *  (2 ^ 16)
#  450|                           / ((FFT_BUFFER_SIZE / 2 * 32768) ^ 2);
#  451|   

Error: COMPILER_WARNING: [#def882]
vlc-3.0.21/modules/visualization/visual/effects.c: scope_hint: In function ‘spectrum_Run’
vlc-3.0.21/modules/visualization/visual/effects.c:217:40: warning[-Wxor-used-as-pow]: result of ‘2^16’ is 18; did you mean ‘1 << 16’ (65536)?
#  217 |         p_dest[i] = p_output[i] *  ( 2 ^ 16 ) / ( ( FFT_BUFFER_SIZE / 2 * 32768 ) ^ 2 );
#      |                                        ^
#      |                                      -
#      |                                      1 <<
vlc-3.0.21/modules/visualization/visual/effects.c:217:38: note: you can silence this warning by using a hexadecimal constant (0x2 rather than 2)
#  217 |         p_dest[i] = p_output[i] *  ( 2 ^ 16 ) / ( ( FFT_BUFFER_SIZE / 2 * 32768 ) ^ 2 );
#      |                                      ^
#      |                                      0x2
#  215|       fft_perform( p_buffer1, p_output, p_state);
#  216|       for( i = 0; i< FFT_BUFFER_SIZE ; i++ )
#  217|->         p_dest[i] = p_output[i] *  ( 2 ^ 16 ) / ( ( FFT_BUFFER_SIZE / 2 * 32768 ) ^ 2 );
#  218|   
#  219|       /* Compute the horizontal position of the first band */

Error: COMPILER_WARNING: [#def883]
vlc-3.0.21/modules/visualization/visual/effects.c:217:40: warning[-Wxor-used-as-pow]: result of ‘2^16’ is 18; did you mean ‘1 << 16’ (65536)?
#  215|       fft_perform( p_buffer1, p_output, p_state);
#  216|       for( i = 0; i< FFT_BUFFER_SIZE ; i++ )
#  217|->         p_dest[i] = p_output[i] *  ( 2 ^ 16 ) / ( ( FFT_BUFFER_SIZE / 2 * 32768 ) ^ 2 );
#  218|   
#  219|       /* Compute the horizontal position of the first band */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def884]
vlc-3.0.21/modules/visualization/visual/effects.c:981:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*p_effect.p_data’
vlc-3.0.21/modules/visualization/visual/effects.c:941:12: enter_function: entry to ‘vuMeter_Run’
vlc-3.0.21/modules/visualization/visual/effects.c:976:7: branch_true: following ‘true’ branch...
vlc-3.0.21/modules/visualization/visual/effects.c:979:28: call_function: inlined call to ‘vlc_alloc’ from ‘vuMeter_Run’
vlc-3.0.21/modules/visualization/visual/effects.c:981:9: danger: ‘malloc(8)’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#  979|           p_effect->p_data = vlc_alloc( 2, sizeof(float) );
#  980|           i_value = p_effect->p_data;
#  981|->         i_value[0] = i_value_l;
#  982|           i_value[1] = i_value_r;
#  983|       }

Error: UNICONTROL_WARNING (CWE-94): [#def885]
vlc-3.0.21/po/ar.po:813: warning: bidirectional control characters: ['\u202b']
#  811|   msgstr ""
#  812|   "‎الاستخدام: %s ‎[الخيارات] ‎[الدفق] ...\n"
#  813|-> "‎‫يمكنك تحديد أكثر من دفق واحد في سطر الأوامر.\n"
#  814|   "‎‫ستُضاف التدفقات إلى قائمة التشغيل واحدا بعد آخر.\n"
#  815|   "‎‫سيُشغّل أول عنصر أولا.\n"

Error: UNICONTROL_WARNING (CWE-94): [#def886]
vlc-3.0.21/po/ar.po:814: warning: bidirectional control characters: ['\u202b']
#  812|   "‎الاستخدام: %s ‎[الخيارات] ‎[الدفق] ...\n"
#  813|   "‎‫يمكنك تحديد أكثر من دفق واحد في سطر الأوامر.\n"
#  814|-> "‎‫ستُضاف التدفقات إلى قائمة التشغيل واحدا بعد آخر.\n"
#  815|   "‎‫سيُشغّل أول عنصر أولا.\n"
#  816|   "\n"

Error: UNICONTROL_WARNING (CWE-94): [#def887]
vlc-3.0.21/po/ar.po:815: warning: bidirectional control characters: ['\u202b']
#  813|   "‎‫يمكنك تحديد أكثر من دفق واحد في سطر الأوامر.\n"
#  814|   "‎‫ستُضاف التدفقات إلى قائمة التشغيل واحدا بعد آخر.\n"
#  815|-> "‎‫سيُشغّل أول عنصر أولا.\n"
#  816|   "\n"
#  817|   "‎‫أنماط الخيارات:\n"

Error: UNICONTROL_WARNING (CWE-94): [#def888]
vlc-3.0.21/po/ar.po:817: warning: bidirectional control characters: ['\u202b']
#  815|   "‎‫سيُشغّل أول عنصر أولا.\n"
#  816|   "\n"
#  817|-> "‎‫أنماط الخيارات:\n"
#  818|   " --option ‫خيار عمومي يُضبط طالما البرنامج يعمل.\n"
#  819|   " -option نسخة بحرف واحد للخيار‫ ‎--option العمومي.\n"

Error: UNICONTROL_WARNING (CWE-94): [#def889]
vlc-3.0.21/po/ar.po:818: warning: bidirectional control characters: ['\u202b']
#  816|   "\n"
#  817|   "‎‫أنماط الخيارات:\n"
#  818|-> " --option ‫خيار عمومي يُضبط طالما البرنامج يعمل.\n"
#  819|   " -option نسخة بحرف واحد للخيار‫ ‎--option العمومي.\n"
#  820|   " :option خيار يُطبّق الدفق مباشرة قبل عرضه\n"

Error: UNICONTROL_WARNING (CWE-94): [#def890]
vlc-3.0.21/po/ar.po:819: warning: bidirectional control characters: ['\u202b']
#  817|   "‎‫أنماط الخيارات:\n"
#  818|   " --option ‫خيار عمومي يُضبط طالما البرنامج يعمل.\n"
#  819|-> " -option نسخة بحرف واحد للخيار‫ ‎--option العمومي.\n"
#  820|   " :option خيار يُطبّق الدفق مباشرة قبل عرضه\n"
#  821|   " ‎وهذا يلغي أية إعدادات سابقة.\n"

Error: UNICONTROL_WARNING (CWE-94): [#def891]
vlc-3.0.21/po/ar.po:823: warning: bidirectional control characters: ['\u202b']
#  821|   " ‎وهذا يلغي أية إعدادات سابقة.\n"
#  822|   "\n"
#  823|-> "‎‫صياغة تدفقات MRL:‏\n"
#  824|   " [[access][/demux]://]URL[#[title][:chapter][-[title][:chapter]]]\n"
#  825|   " [:option=value ...]\n"

Error: UNICONTROL_WARNING (CWE-94): [#def892]
vlc-3.0.21/po/ar.po:827: warning: bidirectional control characters: ['\u202b']
#  825|   " [:option=value ...]\n"
#  826|   "\n"
#  827|-> " ‎‫يمكن استخدام العديد من الخيارات العمومية ‎--options كخيارات MRL خاصة ‎:"
#  828|   "options.‏\n"
#  829|   " ‎‫يمكن تحديد عدد من أزواج الخيارات ‎:option=value.‏\n"

Error: UNICONTROL_WARNING (CWE-94): [#def893]
vlc-3.0.21/po/ar.po:829: warning: bidirectional control characters: ['\u202b']
#  827|   " ‎‫يمكن استخدام العديد من الخيارات العمومية ‎--options كخيارات MRL خاصة ‎:"
#  828|   "options.‏\n"
#  829|-> " ‎‫يمكن تحديد عدد من أزواج الخيارات ‎:option=value.‏\n"
#  830|   "\n"
#  831|   "‎‫صياغة العناوين:\n"

Error: UNICONTROL_WARNING (CWE-94): [#def894]
vlc-3.0.21/po/ar.po:831: warning: bidirectional control characters: ['\u202b']
#  829|   " ‎‫يمكن تحديد عدد من أزواج الخيارات ‎:option=value.‏\n"
#  830|   "\n"
#  831|-> "‎‫صياغة العناوين:\n"
#  832|   " file:///path/file ملف وسائط عادي\n"
#  833|   " http://host[:port]/file ‫مسار HTTP\n"

Error: UNICONTROL_WARNING (CWE-94): [#def895]
vlc-3.0.21/po/ar.po:833: warning: bidirectional control characters: ['\u202b']
#  831|   "‎‫صياغة العناوين:\n"
#  832|   " file:///path/file ملف وسائط عادي\n"
#  833|-> " http://host[:port]/file ‫مسار HTTP\n"
#  834|   " ftp://host[:port]/file ‫مسار FTP\n"
#  835|   " mms://host[:port]/file ‫مسار MMS\n"

Error: UNICONTROL_WARNING (CWE-94): [#def896]
vlc-3.0.21/po/ar.po:834: warning: bidirectional control characters: ['\u202b']
#  832|   " file:///path/file ملف وسائط عادي\n"
#  833|   " http://host[:port]/file ‫مسار HTTP\n"
#  834|-> " ftp://host[:port]/file ‫مسار FTP\n"
#  835|   " mms://host[:port]/file ‫مسار MMS\n"
#  836|   " screen:// التقاط الشاشة\n"

Error: UNICONTROL_WARNING (CWE-94): [#def897]
vlc-3.0.21/po/ar.po:835: warning: bidirectional control characters: ['\u202b']
#  833|   " http://host[:port]/file ‫مسار HTTP\n"
#  834|   " ftp://host[:port]/file ‫مسار FTP\n"
#  835|-> " mms://host[:port]/file ‫مسار MMS\n"
#  836|   " screen:// التقاط الشاشة\n"
#  837|   " dvd://[device] ‫جهاز DVD\n"

Error: UNICONTROL_WARNING (CWE-94): [#def898]
vlc-3.0.21/po/ar.po:837: warning: bidirectional control characters: ['\u202b']
#  835|   " mms://host[:port]/file ‫مسار MMS\n"
#  836|   " screen:// التقاط الشاشة\n"
#  837|-> " dvd://[device] ‫جهاز DVD\n"
#  838|   " vcd://[device] ‫جهاز VCD\n"
#  839|   " cdda://[device] جهاز اسطوانة صوتية\n"

Error: UNICONTROL_WARNING (CWE-94): [#def899]
vlc-3.0.21/po/ar.po:838: warning: bidirectional control characters: ['\u202b']
#  836|   " screen:// التقاط الشاشة\n"
#  837|   " dvd://[device] ‫جهاز DVD\n"
#  838|-> " vcd://[device] ‫جهاز VCD\n"
#  839|   " cdda://[device] جهاز اسطوانة صوتية\n"
#  840|   " udp://[[<source address>]@[<bind address>][:<bind port>]]\n"

Error: UNICONTROL_WARNING (CWE-94): [#def900]
vlc-3.0.21/po/ar.po:841: warning: bidirectional control characters: ['\u202b']
#  839|   " cdda://[device] جهاز اسطوانة صوتية\n"
#  840|   " udp://[[<source address>]@[<bind address>][:<bind port>]]\n"
#  841|-> " ‎‫دفق UDP أرسله خادوم تدفق\n"
#  842|   " vlc://pause:<seconds> ألبِث قائمة التشغيل لفترة من الزمن\n"
#  843|   " vlc://quit ‫عنصر خاص لإنهاء VLC\n"

Error: UNICONTROL_WARNING (CWE-94): [#def901]
vlc-3.0.21/po/ar.po:843: warning: bidirectional control characters: ['\u202b']
#  841|   " ‎‫دفق UDP أرسله خادوم تدفق\n"
#  842|   " vlc://pause:<seconds> ألبِث قائمة التشغيل لفترة من الزمن\n"
#  843|-> " vlc://quit ‫عنصر خاص لإنهاء VLC\n"
#  844|   "\n"
#  845|   "\n"

Error: UNICONTROL_WARNING (CWE-94): [#def902]
vlc-3.0.21/po/ar.po:19745: warning: bidirectional control characters: ['\u202b', '\u202a', '\u202c', '\u202c']
#19743|   "Containers (*.ps *.ts *.mpg *.ogg *.asf *.mp4 *.mov *.wav *.raw *.flv *.webm)"
#19744|   msgstr ""
#19745|-> "‫الحاويات (‪*.ps *.ts *.mpg *.ogg *.asf *.mp4 *.mov *.wav *.raw *.flv *.webm‬)‬"
#19746|   
#19747|   #: modules/gui/qt/components/sout/sout_widgets.cpp:184

Error: GCC_ANALYZER_WARNING (CWE-476): [#def903]
vlc-3.0.21/src/../include/vlc_arrays.h:532:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_entry’
vlc-3.0.21/src/playlist/fetcher.c:310:13: enter_function: entry to ‘SearchNetwork’
vlc-3.0.21/src/playlist/fetcher.c:312:9: call_function: calling ‘SearchByScope’ from ‘SearchNetwork’
#  530|   
#  531|       p_entry = (vlc_dictionary_entry_t *)malloc(sizeof(*p_entry));
#  532|->     p_entry->psz_key = strdup( psz_key );
#  533|       p_entry->p_value = p_value;
#  534|       p_entry->p_next = p_dict->p_entries[i_pos];

Error: GCC_ANALYZER_WARNING (CWE-416): [#def904]
vlc-3.0.21/src/../include/vlc_block.h:184:5: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘block’
vlc-3.0.21/src/misc/block.c:368:10: enter_function: entry to ‘block_File’
vlc-3.0.21/src/misc/block.c:374:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/misc/block.c:383:9: branch_false: ...to here
vlc-3.0.21/src/misc/block.c:383:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/misc/block.c:388:8: branch_false: ...to here
vlc-3.0.21/src/misc/block.c:388:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/misc/block.c:395:20: branch_false: ...to here
vlc-3.0.21/src/misc/block.c:395:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/misc/block.c:400:5: branch_false: ...to here
vlc-3.0.21/src/misc/block.c:409:12: branch_false: following ‘false’ branch (when ‘addr == 18446744073709551615’)...
vlc-3.0.21/src/misc/block.c:415:22: branch_false: ...to here
vlc-3.0.21/src/misc/block.c:415:22: call_function: calling ‘block_Alloc’ from ‘block_File’
vlc-3.0.21/src/misc/block.c:415:22: return_function: returning to ‘block_File’ from ‘block_Alloc’
vlc-3.0.21/src/misc/block.c:416:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/src/misc/block.c:420:24: branch_true: following ‘true’ branch (when ‘i < length’)...
vlc-3.0.21/src/misc/block.c:422:23: branch_true: ...to here
vlc-3.0.21/src/misc/block.c:425:13: call_function: inlined call to ‘block_Release’ from ‘block_File’
vlc-3.0.21/src/misc/block.c:425:13: call_function: inlined call to ‘block_Release’ from ‘block_File’
vlc-3.0.21/src/misc/block.c:418:5: call_function: inlined call to ‘__pthread_cleanup_routine’ from ‘block_File’
#  182|   static inline void block_Release(block_t *block)
#  183|   {
#  184|->     block->pf_release(block);
#  185|   }
#  186|   

Error: COMPILER_WARNING: [#def905]
vlc-3.0.21/src/../include/vlc_common.h:115:10: warning[warning]: ‘unreachable’ redefined
#  113|   # define likely(p)     __builtin_expect(!!(p), 1)
#  114|   # define unlikely(p)   __builtin_expect(!!(p), 0)
#  115|-> # define unreachable() __builtin_unreachable()
#  116|   #else
#  117|   # define likely(p)     (!!(p))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def906]
vlc-3.0.21/src/../include/vlc_common.h:995:9: warning[-Wanalyzer-malloc-leak]: leak of ‘httpd_ClientNew(sk)’
vlc-3.0.21/src/network/httpd.c:2050:14: enter_function: entry to ‘httpd_HostThread’
vlc-3.0.21/src/network/httpd.c:2055:12: branch_true: following ‘true’ branch...
vlc-3.0.21/src/network/httpd.c:2056:9: branch_true: ...to here
vlc-3.0.21/src/network/httpd.c:2056:9: call_function: calling ‘httpdLoop’ from ‘httpd_HostThread’
#  993|   {
#  994|       void *ptr = malloc(len);
#  995|->     if (unlikely(ptr == NULL && len > 0))
#  996|           abort();
#  997|       return ptr;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def907]
vlc-3.0.21/src/../include/vlc_input.h:75:9: warning[-Wanalyzer-malloc-leak]: leak of ‘vlc_seekpoint_Duplicate(p_bkmk)’
vlc-3.0.21/src/input/control.c:65:5: enter_function: entry to ‘input_vaControl’
vlc-3.0.21/src/input/control.c:199:22: call_function: calling ‘vlc_seekpoint_Duplicate’ from ‘input_vaControl’
vlc-3.0.21/src/input/control.c:199:22: return_function: returning to ‘input_vaControl’ from ‘vlc_seekpoint_Duplicate’
vlc-3.0.21/src/input/control.c:202:15: branch_false: following ‘false’ branch...
vlc-3.0.21/src/input/control.c:209:17: branch_false: ...to here
vlc-3.0.21/src/input/control.c:209:15: branch_true: following ‘true’ branch...
vlc-3.0.21/src/input/control.c:210:17: branch_true: ...to here
vlc-3.0.21/src/input/control.c:210:17: branch_true: following ‘true’ branch...
vlc-3.0.21/src/input/control.c:210:17: branch_true: ...to here
vlc-3.0.21/src/../include/vlc_input.h:75:9: danger: ‘vlc_seekpoint_Duplicate(p_bkmk)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/7)
#   73|   {
#   74|       seekpoint_t *point = vlc_seekpoint_New();
#   75|->     if( likely(point) )
#   76|       {
#   77|           if( src->psz_name ) point->psz_name = strdup( src->psz_name );

Error: GCC_ANALYZER_WARNING (CWE-401): [#def908]
vlc-3.0.21/src/../include/vlc_vlm.h:238:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/src/input/vlm.c:1327:5: enter_function: entry to ‘vlm_Control’
vlc-3.0.21/src/input/vlm.c:1335:16: call_function: calling ‘vlm_vaControlInternal’ from ‘vlm_Control’
#  236|   
#  237|       for( i = 0; i < p_src->i_input; i++ )
#  238|->         TAB_APPEND_CAST( (char**), p_dst->i_input, p_dst->ppsz_input, strdup(p_src->ppsz_input[i]) );
#  239|       for( i = 0; i < p_src->i_option; i++ )
#  240|           TAB_APPEND_CAST( (char**), p_dst->i_option, p_dst->ppsz_option, strdup(p_src->ppsz_option[i]) );

Error: COMPILER_WARNING (CWE-563): [#def909]
vlc-3.0.21/src/audio_output/filters.c: scope_hint: In function ‘CreateFilter’
vlc-3.0.21/src/audio_output/filters.c:49:58: warning[-Wunused-parameter]: unused parameter ‘const_fmt’
#   49 |                                config_chain_t *cfg, bool const_fmt)
#      |                                                     ~~~~~^~~~~~~~~
#   47|                                  const audio_sample_format_t *infmt,
#   48|                                  const audio_sample_format_t *outfmt,
#   49|->                                config_chain_t *cfg, bool const_fmt)
#   50|   {
#   51|       filter_t *filter = vlc_custom_create (obj, sizeof (*filter), type);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def910]
vlc-3.0.21/src/audio_output/filters.c:460:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘remap[8]’
vlc-3.0.21/src/audio_output/filters.c:500:17: enter_function: entry to ‘aout_FiltersNew’
vlc-3.0.21/src/audio_output/filters.c:507:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/audio_output/filters.c:510:5: branch_false: ...to here
vlc-3.0.21/src/audio_output/filters.c:524:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/audio_output/filters.c:539:9: call_function: inlined call to ‘aout_FormatNbChannels’ from ‘aout_FiltersNew’
vlc-3.0.21/src/audio_output/filters.c:539:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/audio_output/filters.c:546:9: branch_false: ...to here
vlc-3.0.21/src/audio_output/filters.c:546:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/audio_output/filters.c:566:9: call_function: inlined call to ‘aout_FormatNbChannels’ from ‘aout_FiltersNew’
vlc-3.0.21/src/audio_output/filters.c:566:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/audio_output/filters.c:591:9: branch_false: ...to here
vlc-3.0.21/src/audio_output/filters.c:598:8: branch_true: following ‘true’ branch (when ‘cfg’ is non-NULL)...
vlc-3.0.21/src/audio_output/filters.c:601:27: branch_true: ...to here
vlc-3.0.21/src/audio_output/filters.c:600:9: call_function: calling ‘AppendRemapFilter’ from ‘aout_FiltersNew’
#  458|   
#  459|       char *str;
#  460|->     int ret = asprintf(&str, "remap{channel-left=%d,channel-right=%d,"
#  461|                          "channel-middleleft=%d,channel-middleright=%d,"
#  462|                          "channel-rearleft=%d,channel-rearright=%d,"

Error: GCC_ANALYZER_WARNING (CWE-476): [#def911]
vlc-3.0.21/src/config/core.c:369:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc((long unsigned int)(module_list_cap(&list,  cap) + 2) * 8)’
vlc-3.0.21/src/config/core.c:355:16: enter_function: entry to ‘config_ListModules’
vlc-3.0.21/src/config/core.c:360:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/config/core.c:366:28: branch_false: ...to here
vlc-3.0.21/src/config/core.c:366:19: call_function: calling ‘xmalloc’ from ‘config_ListModules’
vlc-3.0.21/src/config/core.c:366:19: return_function: returning to ‘config_ListModules’ from ‘xmalloc’
vlc-3.0.21/src/config/core.c:367:19: call_function: calling ‘xmalloc’ from ‘config_ListModules’
vlc-3.0.21/src/config/core.c:367:19: return_function: returning to ‘config_ListModules’ from ‘xmalloc’
vlc-3.0.21/src/config/core.c:369:15: call_function: calling ‘xstrdup’ from ‘config_ListModules’
vlc-3.0.21/src/config/core.c:369:15: return_function: returning to ‘config_ListModules’ from ‘xstrdup’
vlc-3.0.21/src/config/core.c:369:5: danger: ‘xmalloc((long unsigned int)(module_list_cap(&list,  cap) + 2) * 8)’ could be NULL: unchecked value from [(6)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/5)
#  367|       char **txts = xmalloc ((n + 2) * sizeof (*txts));
#  368|   
#  369|->     vals[0] = xstrdup ("any");
#  370|       txts[0] = xstrdup (_("Automatic"));
#  371|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def912]
vlc-3.0.21/src/config/core.c:370:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc((long unsigned int)(module_list_cap(&list,  cap) + 2) * 8)’
vlc-3.0.21/src/config/core.c:355:16: enter_function: entry to ‘config_ListModules’
vlc-3.0.21/src/config/core.c:360:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/config/core.c:366:28: branch_false: ...to here
vlc-3.0.21/src/config/core.c:366:19: call_function: calling ‘xmalloc’ from ‘config_ListModules’
vlc-3.0.21/src/config/core.c:366:19: return_function: returning to ‘config_ListModules’ from ‘xmalloc’
vlc-3.0.21/src/config/core.c:367:19: call_function: calling ‘xmalloc’ from ‘config_ListModules’
vlc-3.0.21/src/config/core.c:367:19: return_function: returning to ‘config_ListModules’ from ‘xmalloc’
vlc-3.0.21/src/config/core.c:369:15: call_function: calling ‘xstrdup’ from ‘config_ListModules’
vlc-3.0.21/src/config/core.c:369:15: return_function: returning to ‘config_ListModules’ from ‘xstrdup’
vlc-3.0.21/src/config/core.c:370:15: call_function: calling ‘xstrdup’ from ‘config_ListModules’
vlc-3.0.21/src/config/core.c:370:15: return_function: returning to ‘config_ListModules’ from ‘xstrdup’
vlc-3.0.21/src/config/core.c:370:5: danger: ‘xmalloc((long unsigned int)(module_list_cap(&list,  cap) + 2) * 8)’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
#  368|   
#  369|       vals[0] = xstrdup ("any");
#  370|->     txts[0] = xstrdup (_("Automatic"));
#  371|   
#  372|       for (ssize_t i = 0; i < n; i++)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def913]
vlc-3.0.21/src/config/core.c:441:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc(count * 8)’
vlc-3.0.21/src/config/core.c:397:9: enter_function: entry to ‘config_GetPszChoices’
vlc-3.0.21/src/config/core.c:402:28: call_function: calling ‘config_FindConfig’ from ‘config_GetPszChoices’
vlc-3.0.21/src/config/core.c:402:28: return_function: returning to ‘config_GetPszChoices’ from ‘config_FindConfig’
vlc-3.0.21/src/config/core.c:403:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/config/core.c:409:13: branch_false: ...to here
vlc-3.0.21/src/config/core.c:409:5: branch_false: following ‘false’ branch...
vlc-3.0.21/src/config/core.c:413:9: branch_false: ...to here
vlc-3.0.21/src/config/core.c:414:16: branch_false: following ‘false’ branch...
vlc-3.0.21/src/config/core.c:422:20: branch_false: ...to here
vlc-3.0.21/src/config/core.c:423:8: branch_false: following ‘false’ branch (when ‘count != 0’)...
vlc-3.0.21/src/config/core.c:436:28: branch_false: ...to here
vlc-3.0.21/src/config/core.c:436:19: call_function: calling ‘xmalloc’ from ‘config_GetPszChoices’
vlc-3.0.21/src/config/core.c:436:19: return_function: returning to ‘config_GetPszChoices’ from ‘xmalloc’
vlc-3.0.21/src/config/core.c:437:19: call_function: calling ‘xmalloc’ from ‘config_GetPszChoices’
vlc-3.0.21/src/config/core.c:437:19: return_function: returning to ‘config_GetPszChoices’ from ‘xmalloc’
vlc-3.0.21/src/config/core.c:439:24: branch_true: following ‘true’ branch (when ‘i < count’)...
vlc-3.0.21/src/config/core.c:441:29: branch_true: ...to here
vlc-3.0.21/src/config/core.c:441:19: call_function: calling ‘xstrdup’ from ‘config_GetPszChoices’
vlc-3.0.21/src/config/core.c:441:19: return_function: returning to ‘config_GetPszChoices’ from ‘xstrdup’
vlc-3.0.21/src/config/core.c:441:9: danger: ‘xmalloc(count * 8) + i * 8’ could be NULL: unchecked value from [(22)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/21)
#  439|       for (size_t i = 0; i < count; i++)
#  440|       {
#  441|->         vals[i] = xstrdup ((cfg->list.psz[i] != NULL) ? cfg->list.psz[i] : "");
#  442|           /* FIXME: use module_gettext() instead */
#  443|           txts[i] = xstrdup ((cfg->list_text[i] != NULL)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def914]
vlc-3.0.21/src/config/core.c:443:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc(count * 8)’
vlc-3.0.21/src/config/core.c:397:9: enter_function: entry to ‘config_GetPszChoices’
vlc-3.0.21/src/config/core.c:402:28: call_function: calling ‘config_FindConfig’ from ‘config_GetPszChoices’
vlc-3.0.21/src/config/core.c:402:28: return_function: returning to ‘config_GetPszChoices’ from ‘config_FindConfig’
vlc-3.0.21/src/config/core.c:403:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/config/core.c:409:13: branch_false: ...to here
vlc-3.0.21/src/config/core.c:409:5: branch_false: following ‘false’ branch...
vlc-3.0.21/src/config/core.c:413:9: branch_false: ...to here
vlc-3.0.21/src/config/core.c:414:16: branch_false: following ‘false’ branch...
vlc-3.0.21/src/config/core.c:422:20: branch_false: ...to here
vlc-3.0.21/src/config/core.c:423:8: branch_false: following ‘false’ branch (when ‘count != 0’)...
vlc-3.0.21/src/config/core.c:436:28: branch_false: ...to here
vlc-3.0.21/src/config/core.c:436:19: call_function: calling ‘xmalloc’ from ‘config_GetPszChoices’
vlc-3.0.21/src/config/core.c:436:19: return_function: returning to ‘config_GetPszChoices’ from ‘xmalloc’
vlc-3.0.21/src/config/core.c:437:19: call_function: calling ‘xmalloc’ from ‘config_GetPszChoices’
vlc-3.0.21/src/config/core.c:437:19: return_function: returning to ‘config_GetPszChoices’ from ‘xmalloc’
vlc-3.0.21/src/config/core.c:439:24: branch_true: following ‘true’ branch (when ‘i < count’)...
vlc-3.0.21/src/config/core.c:441:29: branch_true: ...to here
vlc-3.0.21/src/config/core.c:441:19: call_function: calling ‘xstrdup’ from ‘config_GetPszChoices’
vlc-3.0.21/src/config/core.c:441:19: return_function: returning to ‘config_GetPszChoices’ from ‘xstrdup’
vlc-3.0.21/src/config/core.c:443:19: branch_false: following ‘false’ branch...
vlc-3.0.21/src/config/core.c:443:13: branch_false: ...to here
vlc-3.0.21/src/config/core.c:443:19: call_function: calling ‘xstrdup’ from ‘config_GetPszChoices’
vlc-3.0.21/src/config/core.c:443:19: return_function: returning to ‘config_GetPszChoices’ from ‘xstrdup’
vlc-3.0.21/src/config/core.c:443:9: danger: ‘xmalloc(count * 8) + i * 8’ could be NULL: unchecked value from [(27)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/26)
#  441|           vals[i] = xstrdup ((cfg->list.psz[i] != NULL) ? cfg->list.psz[i] : "");
#  442|           /* FIXME: use module_gettext() instead */
#  443|->         txts[i] = xstrdup ((cfg->list_text[i] != NULL)
#  444|                                          ? vlc_gettext (cfg->list_text[i]) : "");
#  445|       }

Error: COMPILER_WARNING: [#def915]
vlc-3.0.21/src/input/clock.c:539:2: warning[-Wcpp]: #warning "input_clock_SetJitter needs more work"
#  539 | #warning "input_clock_SetJitter needs more work"
#      |  ^~~~~~~
#  537|   }
#  538|   
#  539|-> #warning "input_clock_SetJitter needs more work"
#  540|   void input_clock_SetJitter( input_clock_t *cl,
#  541|                               vlc_tick_t i_pts_delay, int i_cr_average )

Error: COMPILER_WARNING: [#def916]
vlc-3.0.21/src/input/clock.c:539:2: warning[-Wcpp]: #warning "input_clock_SetJitter needs more work"
#  537|   }
#  538|   
#  539|-> #warning "input_clock_SetJitter needs more work"
#  540|   void input_clock_SetJitter( input_clock_t *cl,
#  541|                               vlc_tick_t i_pts_delay, int i_cr_average )

Error: GCC_ANALYZER_WARNING (CWE-476): [#def917]
vlc-3.0.21/src/input/control.c:202:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘vlc_seekpoint_Duplicate(p_bkmk)’
vlc-3.0.21/src/input/control.c:65:5: enter_function: entry to ‘input_vaControl’
vlc-3.0.21/src/input/control.c:199:22: call_function: calling ‘vlc_seekpoint_Duplicate’ from ‘input_vaControl’
vlc-3.0.21/src/input/control.c:199:22: return_function: returning to ‘input_vaControl’ from ‘vlc_seekpoint_Duplicate’
vlc-3.0.21/src/input/control.c:202:18: danger: dereference of NULL ‘vlc_seekpoint_Duplicate(p_bkmk)’
#  200|   
#  201|               vlc_mutex_lock( &priv->p_item->lock );
#  202|->             if( !p_bkmk->psz_name )
#  203|               {
#  204|                    if( asprintf( &p_bkmk->psz_name, _("Bookmark %i"),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def918]
vlc-3.0.21/src/input/control.c:210:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/src/input/control.c:65:5: enter_function: entry to ‘input_vaControl’
vlc-3.0.21/src/input/control.c:199:22: call_function: calling ‘vlc_seekpoint_Duplicate’ from ‘input_vaControl’
vlc-3.0.21/src/input/control.c:199:22: return_function: returning to ‘input_vaControl’ from ‘vlc_seekpoint_Duplicate’
vlc-3.0.21/src/input/control.c:202:15: branch_false: following ‘false’ branch...
vlc-3.0.21/src/input/control.c:209:17: branch_false: ...to here
vlc-3.0.21/src/input/control.c:209:15: branch_true: following ‘true’ branch...
vlc-3.0.21/src/input/control.c:210:17: branch_true: ...to here
vlc-3.0.21/src/input/control.c:210:17: branch_true: following ‘true’ branch...
vlc-3.0.21/src/input/control.c:210:17: branch_true: ...to here
vlc-3.0.21/src/input/control.c:210:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/14)
#  208|   
#  209|               if( p_bkmk->psz_name )
#  210|->                 TAB_APPEND( priv->i_bookmark, priv->pp_bookmark, p_bkmk );
#  211|               else
#  212|               {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def919]
vlc-3.0.21/src/input/control.c:276:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/src/input/control.c:65:5: enter_function: entry to ‘input_vaControl’
vlc-3.0.21/src/input/control.c:268:15: branch_true: following ‘true’ branch...
vlc-3.0.21/src/input/control.c:272:17: branch_true: ...to here
vlc-3.0.21/src/input/control.c:273:29: call_function: inlined call to ‘vlc_alloc’ from ‘input_vaControl’
vlc-3.0.21/src/input/control.c:273:17: branch_true: ...to here
vlc-3.0.21/src/input/control.c:274:29: branch_true: following ‘true’ branch...
vlc-3.0.21/src/input/control.c:277:50: branch_true: ...to here
vlc-3.0.21/src/input/control.c:276:32: release_memory: ‘0’ is NULL
vlc-3.0.21/src/input/control.c:277:25: call_function: calling ‘vlc_seekpoint_Duplicate’ from ‘input_vaControl’
vlc-3.0.21/src/input/control.c:277:25: return_function: returning to ‘input_vaControl’ from ‘vlc_seekpoint_Duplicate’
vlc-3.0.21/src/input/control.c:276:21: danger: dereference of NULL ‘<unknown> + (long unsigned int)i * 8’
#  274|                   for( i = 0; i < priv->i_bookmark; i++ )
#  275|                   {
#  276|->                     (*ppp_bkmk)[i] =
#  277|                           vlc_seekpoint_Duplicate( input_priv(p_input)->pp_bookmark[i] );
#  278|                   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def920]
vlc-3.0.21/src/input/control.c:276:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘<unknown>’
vlc-3.0.21/src/input/control.c:65:5: enter_function: entry to ‘input_vaControl’
vlc-3.0.21/src/input/control.c:268:15: branch_true: following ‘true’ branch...
vlc-3.0.21/src/input/control.c:272:17: branch_true: ...to here
vlc-3.0.21/src/input/control.c:273:29: call_function: inlined call to ‘vlc_alloc’ from ‘input_vaControl’
vlc-3.0.21/src/input/control.c:274:29: branch_true: following ‘true’ branch...
vlc-3.0.21/src/input/control.c:277:50: branch_true: ...to here
vlc-3.0.21/src/input/control.c:277:25: call_function: calling ‘vlc_seekpoint_Duplicate’ from ‘input_vaControl’
vlc-3.0.21/src/input/control.c:277:25: return_function: returning to ‘input_vaControl’ from ‘vlc_seekpoint_Duplicate’
vlc-3.0.21/src/input/control.c:276:21: danger: ‘<unknown> + (long unsigned int)i * 8’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
#  274|                   for( i = 0; i < priv->i_bookmark; i++ )
#  275|                   {
#  276|->                     (*ppp_bkmk)[i] =
#  277|                           vlc_seekpoint_Duplicate( input_priv(p_input)->pp_bookmark[i] );
#  278|                   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def921]
vlc-3.0.21/src/input/control.c:402:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc((long unsigned int)i_chapters, 8)’
vlc-3.0.21/src/input/control.c:65:5: enter_function: entry to ‘input_vaControl’
vlc-3.0.21/src/input/control.c:376:15: branch_false: following ‘false’ branch...
vlc-3.0.21/src/input/control.c:388:16: branch_false: following ‘false’ branch (when ‘i_chapters != 0’)...
vlc-3.0.21/src/input/control.c:394:22: branch_false: ...to here
vlc-3.0.21/src/input/control.c:394:22: acquire_memory: this call could return NULL
vlc-3.0.21/src/input/control.c:400:29: branch_true: following ‘true’ branch (when ‘i < i_chapters’)...
vlc-3.0.21/src/input/control.c:402:56: branch_true: ...to here
vlc-3.0.21/src/input/control.c:402:31: call_function: calling ‘vlc_seekpoint_Duplicate’ from ‘input_vaControl’
vlc-3.0.21/src/input/control.c:402:31: return_function: returning to ‘input_vaControl’ from ‘vlc_seekpoint_Duplicate’
vlc-3.0.21/src/input/control.c:402:17: danger: ‘calloc((long unsigned int)i_chapters, 8) + (long unsigned int)i * 8’ could be NULL: unchecked value from [(8)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/7)
#  400|               for( int i = 0; i < i_chapters; i++ )
#  401|               {
#  402|->                 (*array)[i] = vlc_seekpoint_Duplicate( p_title->seekpoint[i] );
#  403|               }
#  404|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def922]
vlc-3.0.21/src/input/control.c:470:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/src/input/control.c:65:5: enter_function: entry to ‘input_vaControl’
vlc-3.0.21/src/input/control.c:460:15: branch_false: following ‘false’ branch...
vlc-3.0.21/src/input/control.c:467:13: branch_false: ...to here
vlc-3.0.21/src/input/control.c:468:31: call_function: inlined call to ‘vlc_alloc’ from ‘input_vaControl’
vlc-3.0.21/src/input/control.c:468:13: branch_true: ...to here
vlc-3.0.21/src/input/control.c:469:29: branch_true: following ‘true’ branch...
vlc-3.0.21/src/input/control.c:470:72: branch_true: ...to here
vlc-3.0.21/src/input/control.c:470:34: release_memory: ‘0’ is NULL
vlc-3.0.21/src/input/control.c:470:40: call_function: calling ‘vlc_input_attachment_Duplicate’ from ‘input_vaControl’
vlc-3.0.21/src/input/control.c:470:40: return_function: returning to ‘input_vaControl’ from ‘vlc_input_attachment_Duplicate’
vlc-3.0.21/src/input/control.c:470:17: danger: dereference of NULL ‘*ppp_attachment + (long unsigned int)i * 8’
#  468|               *ppp_attachment = vlc_alloc( priv->i_attachment, sizeof(input_attachment_t*));
#  469|               for( int i = 0; i < priv->i_attachment; i++ )
#  470|->                 (*ppp_attachment)[i] = vlc_input_attachment_Duplicate( priv->attachment[i] );
#  471|   
#  472|               vlc_mutex_unlock( &priv->p_item->lock );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def923]
vlc-3.0.21/src/input/control.c:470:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*ppp_attachment + (long unsigned int)i * 8’
vlc-3.0.21/src/input/control.c:65:5: enter_function: entry to ‘input_vaControl’
vlc-3.0.21/src/input/control.c:460:15: branch_false: following ‘false’ branch...
vlc-3.0.21/src/input/control.c:467:13: branch_false: ...to here
vlc-3.0.21/src/input/control.c:468:31: call_function: inlined call to ‘vlc_alloc’ from ‘input_vaControl’
vlc-3.0.21/src/input/control.c:469:29: branch_true: following ‘true’ branch...
vlc-3.0.21/src/input/control.c:470:72: branch_true: ...to here
vlc-3.0.21/src/input/control.c:470:40: call_function: calling ‘vlc_input_attachment_Duplicate’ from ‘input_vaControl’
vlc-3.0.21/src/input/control.c:470:40: return_function: returning to ‘input_vaControl’ from ‘vlc_input_attachment_Duplicate’
vlc-3.0.21/src/input/control.c:470:17: danger: ‘*ppp_attachment + (long unsigned int)i * 8’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8)
#  468|               *ppp_attachment = vlc_alloc( priv->i_attachment, sizeof(input_attachment_t*));
#  469|               for( int i = 0; i < priv->i_attachment; i++ )
#  470|->                 (*ppp_attachment)[i] = vlc_input_attachment_Duplicate( priv->attachment[i] );
#  471|   
#  472|               vlc_mutex_unlock( &priv->p_item->lock );

Error: COMPILER_WARNING (CWE-9001): [#def924]
vlc-3.0.21/src/input/decoder.c: scope_hint: In function 'spu_new_buffer'
vlc-3.0.21/src/input/decoder.c:590:9: warning[-Wattribute-warning]: call to 'harmful_delay' declared with attribute warning: use proper event handling instead of short delay
#  590 |         msleep( DECODER_SPU_VOUT_WAIT_DURATION );
#      |         ^
#  588|               break;
#  589|   
#  590|->         msleep( DECODER_SPU_VOUT_WAIT_DURATION );
#  591|       }
#  592|   

Error: COMPILER_WARNING (CWE-477): [#def925]
vlc-3.0.21/src/input/decoder.c: scope_hint: In function ‘input_DecoderGetFifoSize’
vlc-3.0.21/src/input/decoder.c:2379:5: warning[-Wdeprecated-declarations]: ‘block_FifoSize’ is deprecated
# 2379 |     return block_FifoSize( p_owner->p_fifo );
#      |     ^~~~~~
vlc-3.0.21/src/input/decoder.c:37: included_from: Included from here.
vlc-3.0.21/include/vlc_block.h:476:8: note: declared here
#  476 | size_t block_FifoSize(block_fifo_t *) VLC_USED VLC_DEPRECATED;
#      |        ^~~~~~~~~~~~~~
# 2377|       decoder_owner_sys_t *p_owner = p_dec->p_owner;
# 2378|   
# 2379|->     return block_FifoSize( p_owner->p_fifo );
# 2380|   }
# 2381|   

Error: COMPILER_WARNING (CWE-477): [#def926]
vlc-3.0.21/src/input/decoder.c:2379:5: warning[-Wdeprecated-declarations]: ‘block_FifoSize’ is deprecated
# 2377|       decoder_owner_sys_t *p_owner = p_dec->p_owner;
# 2378|   
# 2379|->     return block_FifoSize( p_owner->p_fifo );
# 2380|   }
# 2381|   

Error: COMPILER_WARNING: [#def927]
vlc-3.0.21/src/input/demux.c: scope_hint: In function ‘DemuxNameFromExtension’
vlc-3.0.21/src/input/demux.c:112:19: warning[-Wunterminated-string-initialization]: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (9 chars into 8 available)
#  112 |         { "rm",   "avformat" },
#      |                   ^~~~~~~~~~
#  110|           { "opus", "ogg" }, /*draft-terriberry-oggopus-01*/
#  111|           { "pva",  "pva" },
#  112|->         { "rm",   "avformat" },
#  113|           { "rmi",  "smf" },
#  114|           { "spx",  "ogg" },

Error: COMPILER_WARNING (CWE-9001): [#def928]
vlc-3.0.21/src/input/es_out.c: scope_hint: In function 'EsOutDel'
vlc-3.0.21/src/input/es_out.c:2194:13: warning[-Wattribute-warning]: call to 'harmful_delay' declared with attribute warning: use proper event handling instead of short delay
# 2194 |             msleep( 20*1000 );
#      |             ^
# 2192|               /* FIXME there should be a way to have auto deleted es, but there will be
# 2193|                * a problem when another codec of the same type is created (mainly video) */
# 2194|->             msleep( 20*1000 );
# 2195|           }
# 2196|           EsUnselect( out, es, es->p_pgrm == p_sys->p_pgrm );

Error: COMPILER_WARNING (CWE-563): [#def929]
vlc-3.0.21/src/input/es_out.c: scope_hint: In function ‘EsOutControlLocked’
vlc-3.0.21/src/input/es_out.c:2790:20: warning[-Wunused-variable]: unused variable ‘b_source_paused’
# 2790 |         const bool b_source_paused = (bool)va_arg( args, int );
#      |                    ^~~~~~~~~~~~~~~
# 2788|       case ES_OUT_SET_PAUSE_STATE:
# 2789|       {
# 2790|->         const bool b_source_paused = (bool)va_arg( args, int );
# 2791|           const bool b_paused = (bool)va_arg( args, int );
# 2792|           const vlc_tick_t i_date = va_arg( args, vlc_tick_t );

Error: COMPILER_WARNING (CWE-563): [#def930]
vlc-3.0.21/src/input/es_out.c:2802:19: warning[-Wunused-variable]: unused variable ‘i_src_rate’
# 2802 |         const int i_src_rate = va_arg( args, int );
#      |                   ^~~~~~~~~~
# 2800|       case ES_OUT_SET_RATE:
# 2801|       {
# 2802|->         const int i_src_rate = va_arg( args, int );
# 2803|           const int i_rate = va_arg( args, int );
# 2804|   

Error: COMPILER_WARNING (CWE-563): [#def931]
vlc-3.0.21/src/input/es_out.c:2813:26: warning[-Wunused-variable]: unused variable ‘i_date’
# 2813 |         const vlc_tick_t i_date = va_arg( args, vlc_tick_t );
#      |                          ^~~~~~
# 2811|       case ES_OUT_SET_TIME:
# 2812|       {
# 2813|->         const vlc_tick_t i_date = va_arg( args, vlc_tick_t );
# 2814|   
# 2815|           assert( i_date == -1 );

Error: COMPILER_WARNING (CWE-563): [#def932]
vlc-3.0.21/src/input/control.c:39: included_from: Included from here.
vlc-3.0.21/src/input/es_out.h: scope_hint: In function ‘es_out_SetMode’
vlc-3.0.21/src/input/es_out.h:95:9: warning[-Wunused-variable]: unused variable ‘i_ret’
#   95 |     int i_ret = es_out_Control( p_out, ES_OUT_SET_MODE, i_mode );
#      |         ^~~~~
#   93|   static inline void es_out_SetMode( es_out_t *p_out, int i_mode )
#   94|   {
#   95|->     int i_ret = es_out_Control( p_out, ES_OUT_SET_MODE, i_mode );
#   96|       assert( !i_ret );
#   97|   }

Error: COMPILER_WARNING (CWE-563): [#def933]
vlc-3.0.21/src/input/es_out.h: scope_hint: In function ‘es_out_GetWakeup’
vlc-3.0.21/src/input/es_out.h:101:9: warning[-Wunused-variable]: unused variable ‘i_ret’
#  101 |     int i_ret = es_out_Control( p_out, ES_OUT_GET_WAKE_UP, &i_wu );
#      |         ^~~~~
#   99|   {
#  100|       vlc_tick_t i_wu;
#  101|->     int i_ret = es_out_Control( p_out, ES_OUT_GET_WAKE_UP, &i_wu );
#  102|   
#  103|       assert( !i_ret );

Error: COMPILER_WARNING (CWE-563): [#def934]
vlc-3.0.21/src/input/es_out.h: scope_hint: In function ‘es_out_GetBuffering’
vlc-3.0.21/src/input/es_out.h:109:9: warning[-Wunused-variable]: unused variable ‘i_ret’
#  109 |     int i_ret = es_out_Control( p_out, ES_OUT_GET_BUFFERING, &b );
#      |         ^~~~~
#  107|   {
#  108|       bool b;
#  109|->     int i_ret = es_out_Control( p_out, ES_OUT_GET_BUFFERING, &b );
#  110|   
#  111|       assert( !i_ret );

Error: COMPILER_WARNING (CWE-563): [#def935]
vlc-3.0.21/src/input/es_out.h: scope_hint: In function ‘es_out_GetEmpty’
vlc-3.0.21/src/input/es_out.h:117:9: warning[-Wunused-variable]: unused variable ‘i_ret’
#  117 |     int i_ret = es_out_Control( p_out, ES_OUT_GET_EMPTY, &b );
#      |         ^~~~~
#  115|   {
#  116|       bool b;
#  117|->     int i_ret = es_out_Control( p_out, ES_OUT_GET_EMPTY, &b );
#  118|   
#  119|       assert( !i_ret );

Error: COMPILER_WARNING (CWE-563): [#def936]
vlc-3.0.21/src/input/es_out.h: scope_hint: In function ‘es_out_SetDelay’
vlc-3.0.21/src/input/es_out.h:124:9: warning[-Wunused-variable]: unused variable ‘i_ret’
#  124 |     int i_ret = es_out_Control( p_out, ES_OUT_SET_DELAY, i_cat, i_delay );
#      |         ^~~~~
#  122|   static inline void es_out_SetDelay( es_out_t *p_out, int i_cat, vlc_tick_t i_delay )
#  123|   {
#  124|->     int i_ret = es_out_Control( p_out, ES_OUT_SET_DELAY, i_cat, i_delay );
#  125|       assert( !i_ret );
#  126|   }

Error: COMPILER_WARNING (CWE-563): [#def937]
vlc-3.0.21/src/input/es_out.h: scope_hint: In function ‘es_out_SetTimes’
vlc-3.0.21/src/input/es_out.h:149:9: warning[-Wunused-variable]: unused variable ‘i_ret’
#  149 |     int i_ret = es_out_Control( p_out, ES_OUT_SET_TIMES, f_position, i_time, i_length );
#      |         ^~~~~
#  147|   static inline void es_out_SetTimes( es_out_t *p_out, double f_position, vlc_tick_t i_time, vlc_tick_t i_length )
#  148|   {
#  149|->     int i_ret = es_out_Control( p_out, ES_OUT_SET_TIMES, f_position, i_time, i_length );
#  150|       assert( !i_ret );
#  151|   }

Error: COMPILER_WARNING (CWE-563): [#def938]
vlc-3.0.21/src/input/es_out.h: scope_hint: In function ‘es_out_SetJitter’
vlc-3.0.21/src/input/es_out.h:155:9: warning[-Wunused-variable]: unused variable ‘i_ret’
#  155 |     int i_ret = es_out_Control( p_out, ES_OUT_SET_JITTER,
#      |         ^~~~~
#  153|                                        vlc_tick_t i_pts_delay, vlc_tick_t i_pts_jitter, int i_cr_average )
#  154|   {
#  155|->     int i_ret = es_out_Control( p_out, ES_OUT_SET_JITTER,
#  156|                                   i_pts_delay, i_pts_jitter, i_cr_average );
#  157|       assert( !i_ret );

Error: COMPILER_WARNING (CWE-563): [#def939]
vlc-3.0.21/src/input/es_out.h: scope_hint: In function ‘es_out_GetGroupForced’
vlc-3.0.21/src/input/es_out.h:167:9: warning[-Wunused-variable]: unused variable ‘i_ret’
#  167 |     int i_ret = es_out_Control( p_out, ES_OUT_GET_GROUP_FORCED, &i_group );
#      |         ^~~~~
#  165|   {
#  166|       int i_group;
#  167|->     int i_ret = es_out_Control( p_out, ES_OUT_GET_GROUP_FORCED, &i_group );
#  168|       assert( !i_ret );
#  169|       return i_group;

Error: COMPILER_WARNING (CWE-563): [#def940]
vlc-3.0.21/src/input/es_out.h: scope_hint: In function ‘es_out_Eos’
vlc-3.0.21/src/input/es_out.h:173:9: warning[-Wunused-variable]: unused variable ‘i_ret’
#  173 |     int i_ret = es_out_Control( p_out, ES_OUT_SET_EOS );
#      |         ^~~~~
#  171|   static inline void es_out_Eos( es_out_t *p_out )
#  172|   {
#  173|->     int i_ret = es_out_Control( p_out, ES_OUT_SET_EOS );
#  174|       assert( !i_ret );
#  175|   }

Error: COMPILER_WARNING (CWE-563): [#def941]
vlc-3.0.21/src/input/es_out_timeshift.c: scope_hint: In function ‘TsChangePause’
vlc-3.0.21/src/input/es_out_timeshift.c:933:51: warning[-Wunused-parameter]: unused parameter ‘b_source_paused’
#  933 | static int TsChangePause( ts_thread_t *p_ts, bool b_source_paused, bool b_paused, vlc_tick_t i_date )
#      |                                              ~~~~~^~~~~~~~~~~~~~~
#  931|       return b_unused;
#  932|   }
#  933|-> static int TsChangePause( ts_thread_t *p_ts, bool b_source_paused, bool b_paused, vlc_tick_t i_date )
#  934|   {
#  935|       vlc_mutex_lock( &p_ts->lock );

Error: GCC_ANALYZER_WARNING (CWE-457): [#def942]
vlc-3.0.21/src/input/input.c:2536:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘strength’
vlc-3.0.21/src/input/input.c:2535:11: branch_true: following ‘true’ branch...
vlc-3.0.21/src/input/input.c:2536:13: branch_true: ...to here
vlc-3.0.21/src/input/input.c:2536:13: danger: use of uninitialized value ‘strength’ here
# 2534|   
# 2535|           if( !demux_Control( p_demux, DEMUX_GET_SIGNAL, &quality, &strength ) )
# 2536|->             input_SendEventSignal( p_input, quality, strength );
# 2537|       }
# 2538|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def943]
vlc-3.0.21/src/input/input.c:3141:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘i_attachment’
vlc-3.0.21/src/input/input.c:3111:7: branch_false: following ‘false’ branch...
vlc-3.0.21/src/input/input.c:3114:5: branch_false: ...to here
vlc-3.0.21/src/input/input.c:3121:7: branch_true: following ‘true’ branch...
vlc-3.0.21/src/input/input.c:3124:26: branch_true: ...to here
vlc-3.0.21/src/input/input.c:3141:9: danger: use of uninitialized value ‘i_attachment’ here
# 3139|               input_priv(p_input)->i_attachment = j;
# 3140|           }
# 3141|->         AppendAttachment( &input_priv(p_input)->i_attachment, &input_priv(p_input)->attachment, &input_priv(p_input)->attachment_demux,
# 3142|                             i_attachment, attachment, p_demux );
# 3143|           vlc_mutex_unlock( &input_priv(p_input)->p_item->lock );

Error: GCC_ANALYZER_WARNING (CWE-688): [#def944]
vlc-3.0.21/src/input/item.c:1228:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*p_item.psz_uri’ where non-null expected
vlc-3.0.21/src/input/item.c:1752:5: enter_function: entry to ‘vlc_readdir_helper_additem’
vlc-3.0.21/src/input/item.c:1760:8: branch_true: following ‘true’ branch...
vlc-3.0.21/src/input/item.c:1773:12: branch_true: ...to here
vlc-3.0.21/src/input/item.c:1773:12: branch_false: following ‘false’ branch (when ‘psz_filename’ is non-NULL)...
vlc-3.0.21/src/input/item.c:1778:9: branch_false: ...to here
vlc-3.0.21/src/input/item.c:1799:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/input/item.c:1802:33: branch_false: ...to here
vlc-3.0.21/src/input/item.c:1804:8: branch_false: following ‘false’ branch (when ‘psz_flatpath’ is NULL)...
vlc-3.0.21/src/input/item.c:1811:28: branch_false: ...to here
vlc-3.0.21/src/input/item.c:1811:28: call_function: calling ‘input_item_NewExt’ from ‘vlc_readdir_helper_additem’
#argument 1 of ‘__builtin_strstr’ must be non-null
# 1226|       *p_net = false;
# 1227|   
# 1228|->     if( strstr( p_item->psz_uri, "://" ) == NULL )
# 1229|           return ITEM_TYPE_UNKNOWN; /* invalid URI */
# 1230|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def945]
vlc-3.0.21/src/input/item.c:1792:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/src/input/item.c:1752:5: enter_function: entry to ‘vlc_readdir_helper_additem’
vlc-3.0.21/src/input/item.c:1773:12: branch_false: following ‘false’ branch (when ‘psz_filename’ is non-NULL)...
vlc-3.0.21/src/input/item.c:1778:9: branch_false: ...to here
vlc-3.0.21/src/input/item.c:1778:8: branch_true: following ‘true’ branch...
vlc-3.0.21/src/input/item.c:1779:9: branch_true: ...to here
vlc-3.0.21/src/input/item.c:1779:9: call_function: calling ‘input_item_slave_GetType’ from ‘vlc_readdir_helper_additem’
vlc-3.0.21/src/input/item.c:1779:9: return_function: returning to ‘vlc_readdir_helper_additem’ from ‘input_item_slave_GetType’
vlc-3.0.21/src/input/item.c:1778:9: branch_true: following ‘true’ branch...
vlc-3.0.21/src/input/item.c:1781:23: branch_true: ...to here
vlc-3.0.21/src/input/item.c:1782:12: branch_false: following ‘false’ branch (when ‘p_rdh_slave’ is non-NULL)...
vlc-3.0.21/src/input/item.c:1785:9: branch_false: ...to here
vlc-3.0.21/src/input/item.c:1787:32: call_function: calling ‘input_item_slave_New’ from ‘vlc_readdir_helper_additem’
vlc-3.0.21/src/input/item.c:1787:32: return_function: returning to ‘vlc_readdir_helper_additem’ from ‘input_item_slave_New’
vlc-3.0.21/src/input/item.c:1789:12: branch_false: following ‘false’ branch...
vlc-3.0.21/src/input/item.c:1789:39: branch_false: ...to here
vlc-3.0.21/src/input/item.c:1789:13: branch_true: following ‘true’ branch...
vlc-3.0.21/src/input/item.c:1791:18: branch_true: ...to here
vlc-3.0.21/src/input/item.c:1792:13: danger: ‘<unknown>’ leaks here; was allocated at [(19)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/18)
# 1790|           {
# 1791|               free(p_rdh_slave->psz_filename);
# 1792|->             free(p_rdh_slave);
# 1793|               return VLC_ENOMEM;
# 1794|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def946]
vlc-3.0.21/src/input/services_discovery.c:51:16: warning[-Wanalyzer-malloc-leak]: leak of ‘names.longname’
vlc-3.0.21/src/input/services_discovery.c:41:5: enter_function: entry to ‘vlc_sd_probe_Add’
vlc-3.0.21/src/input/services_discovery.c:44:44: acquire_memory: allocated here
vlc-3.0.21/src/input/services_discovery.c:46:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/input/services_discovery.c:46:9: branch_false: ...to here
vlc-3.0.21/src/input/services_discovery.c:46:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/input/services_discovery.c:46:9: branch_false: ...to here
vlc-3.0.21/src/input/services_discovery.c:46:9: call_function: calling ‘vlc_probe_add’ from ‘vlc_sd_probe_Add’
vlc-3.0.21/src/input/services_discovery.c:46:9: return_function: returning to ‘vlc_sd_probe_Add’ from ‘vlc_probe_add’
vlc-3.0.21/src/input/services_discovery.c:46:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/input/services_discovery.c:51:16: branch_false: ...to here
vlc-3.0.21/src/input/services_discovery.c:51:16: danger: ‘names.longname’ leaks here; was allocated at [(2)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/1)
#   49|           free (names.name);
#   50|           free (names.longname);
#   51|->         return VLC_ENOMEM;
#   52|       }
#   53|       return VLC_PROBE_CONTINUE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def947]
vlc-3.0.21/src/input/services_discovery.c:51:16: warning[-Wanalyzer-malloc-leak]: leak of ‘names.name’
vlc-3.0.21/src/input/services_discovery.c:41:5: enter_function: entry to ‘vlc_sd_probe_Add’
vlc-3.0.21/src/input/services_discovery.c:44:30: acquire_memory: allocated here
vlc-3.0.21/src/input/services_discovery.c:46:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/input/services_discovery.c:46:9: call_function: calling ‘vlc_probe_add’ from ‘vlc_sd_probe_Add’
vlc-3.0.21/src/input/services_discovery.c:46:9: return_function: returning to ‘vlc_sd_probe_Add’ from ‘vlc_probe_add’
vlc-3.0.21/src/input/services_discovery.c:46:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/input/services_discovery.c:51:16: branch_false: ...to here
vlc-3.0.21/src/input/services_discovery.c:51:16: danger: ‘names.name’ leaks here; was allocated at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
#   49|           free (names.name);
#   50|           free (names.longname);
#   51|->         return VLC_ENOMEM;
#   52|       }
#   53|       return VLC_PROBE_CONTINUE;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def948]
vlc-3.0.21/src/input/stats.c:183:13: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
vlc-3.0.21/src/input/stats.c:160:7: branch_false: following ‘false’ branch (when ‘p_counter’ is non-NULL)...
vlc-3.0.21/src/input/stats.c:163:13: branch_false: ...to here
vlc-3.0.21/src/input/stats.c:169:11: branch_false: following ‘false’ branch...
vlc-3.0.21/src/input/stats.c:171:9: branch_false: ...to here
vlc-3.0.21/src/input/stats.c:174:12: branch_false: following ‘false’ branch...
vlc-3.0.21/src/input/stats.c:177:9: branch_false: ...to here
vlc-3.0.21/src/input/stats.c:179:9: branch_false: following ‘false’ branch...
vlc-3.0.21/src/input/stats.c:179:9: branch_false: ...to here
vlc-3.0.21/src/input/stats.c:179:9: branch_false: following ‘false’ branch...
vlc-3.0.21/src/input/stats.c:179:9: branch_false: ...to here
vlc-3.0.21/src/input/stats.c:181:11: branch_true: following ‘true’ branch...
vlc-3.0.21/src/input/stats.c:183:13: branch_true: ...to here
vlc-3.0.21/src/input/stats.c:183:13: danger: out-of-bounds read from byte 16 till byte 23 but region ends at byte 8
#  181|           if( p_counter->i_samples == 3 )
#  182|           {
#  183|->             p_old = p_counter->pp_samples[2];
#  184|               TAB_ERASE(p_counter->i_samples, p_counter->pp_samples, 2);
#  185|               free( p_old );

Error: GCC_ANALYZER_WARNING (CWE-401): [#def949]
vlc-3.0.21/src/input/vlm.c:839:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/src/input/vlm.c:1327:5: enter_function: entry to ‘vlm_Control’
vlc-3.0.21/src/input/vlm.c:1335:16: call_function: calling ‘vlm_vaControlInternal’ from ‘vlm_Control’
#  837|       {
#  838|           vlm_media_t *p_dsc = vlm_media_Duplicate( &p_vlm->media[i]->cfg );
#  839|->         TAB_APPEND( i_dsc, pp_dsc, p_dsc );
#  840|       }
#  841|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def950]
vlc-3.0.21/src/input/vlm.c:951:14: warning[-Wanalyzer-malloc-leak]: leak of ‘vlm_MediaInstanceNew(p_vlm,  psz_id)’
vlc-3.0.21/src/input/vlm.c:1327:5: enter_function: entry to ‘vlm_Control’
vlc-3.0.21/src/input/vlm.c:1335:16: call_function: calling ‘vlm_vaControlInternal’ from ‘vlm_Control’
#  949|               return VLC_ENOMEM;
#  950|   
#  951|->         if ( p_cfg->b_vod )
#  952|           {
#  953|               var_Create( p_instance->p_parent, "vod-media", VLC_VAR_ADDRESS );

Error: GCC_ANALYZER_WARNING (CWE-401): [#def951]
vlc-3.0.21/src/input/vlm.c:1153:13: warning[-Wanalyzer-malloc-leak]: leak of ‘vlm_media_instance_New()’
vlc-3.0.21/src/input/vlm.c:1327:5: enter_function: entry to ‘vlm_Control’
vlc-3.0.21/src/input/vlm.c:1335:16: call_function: calling ‘vlm_vaControlInternal’ from ‘vlm_Control’
# 1151|           vlm_media_instance_t *p_idsc = vlm_media_instance_New();
# 1152|   
# 1153|->         if( p_instance->psz_name )
# 1154|               p_idsc->psz_name = strdup( p_instance->psz_name );
# 1155|           if( p_instance->p_input )

Error: GCC_ANALYZER_WARNING (CWE-476): [#def952]
vlc-3.0.21/src/input/vlm.c:1154:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘vlm_media_instance_New()’
vlc-3.0.21/src/input/vlm.c:1327:5: enter_function: entry to ‘vlm_Control’
vlc-3.0.21/src/input/vlm.c:1335:16: call_function: calling ‘vlm_vaControlInternal’ from ‘vlm_Control’
# 1152|   
# 1153|           if( p_instance->psz_name )
# 1154|->             p_idsc->psz_name = strdup( p_instance->psz_name );
# 1155|           if( p_instance->p_input )
# 1156|           {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def953]
vlc-3.0.21/src/input/vlm.c:1157:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘vlm_media_instance_New()’
vlc-3.0.21/src/input/vlm.c:1327:5: enter_function: entry to ‘vlm_Control’
vlc-3.0.21/src/input/vlm.c:1335:16: call_function: calling ‘vlm_vaControlInternal’ from ‘vlm_Control’
# 1155|           if( p_instance->p_input )
# 1156|           {
# 1157|->             p_idsc->i_time = var_GetInteger( p_instance->p_input, "time" );
# 1158|               p_idsc->i_length = var_GetInteger( p_instance->p_input, "length" );
# 1159|               p_idsc->d_position = var_GetFloat( p_instance->p_input, "position" );

Error: GCC_ANALYZER_WARNING (CWE-401): [#def954]
vlc-3.0.21/src/input/vlm.c:1166:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/src/input/vlm.c:1327:5: enter_function: entry to ‘vlm_Control’
vlc-3.0.21/src/input/vlm.c:1335:16: call_function: calling ‘vlm_vaControlInternal’ from ‘vlm_Control’
# 1164|           }
# 1165|   
# 1166|->         TAB_APPEND( i_idsc, pp_idsc, p_idsc );
# 1167|       }
# 1168|       *ppp_idsc = pp_idsc;

Error: COMPILER_WARNING: [#def955]
vlc-3.0.21/src/misc/actions.c:352:7: warning[-Wunterminated-string-initialization]: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (27 chars into 26 available)
#  352 |     { "subtitle-text-scale-normal", ACTIONID_SUBTITLE_TEXT_SCALE_NORMAL, },
#      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  350|       { "subtitle-revtrack", ACTIONID_SUBTITLE_REVERSE_TRACK, },
#  351|       { "subtitle-text-scale-down", ACTIONID_SUBTITLE_TEXT_SCALE_DOWN, },
#  352|->     { "subtitle-text-scale-normal", ACTIONID_SUBTITLE_TEXT_SCALE_NORMAL, },
#  353|       { "subtitle-text-scale-up", ACTIONID_SUBTITLE_TEXT_SCALE_UP, },
#  354|       { "subtitle-toggle", ACTIONID_SUBTITLE_TOGGLE, },

Error: GCC_ANALYZER_WARNING (CWE-401): [#def956]
vlc-3.0.21/src/misc/actions.c:429:8: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
vlc-3.0.21/src/misc/actions.c:500:5: enter_function: entry to ‘libvlc_InternalActionsInit’
vlc-3.0.21/src/misc/actions.c:508:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/misc/actions.c:510:5: branch_false: ...to here
vlc-3.0.21/src/misc/actions.c:518:24: branch_true: following ‘true’ branch (when ‘i != 111’)...
vlc-3.0.21/src/misc/actions.c:529:28: branch_true: ...to here
vlc-3.0.21/src/misc/actions.c:534:9: call_function: calling ‘init_action’ from ‘libvlc_InternalActionsInit’
#  427|   
#  428|       struct mapping **pent = tsearch (entry, map, keycmp);
#  429|->     if (unlikely(pent == NULL))
#  430|           return ENOMEM;
#  431|       if (*pent != entry)

Error: COMPILER_WARNING: [#def957]
vlc-3.0.21/src/misc/actions.c: scope_hint: In function ‘libvlc_InternalActionsInit’
vlc-3.0.21/src/misc/actions.c:533:52: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 3551 bytes into a region of size 27
#  533 |         snprintf (name, sizeof (name), "global-key-%s", s_names2actions[i].psz);
#      |                                                    ^~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 12 and 3563 bytes into a destination of size 38
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  531|           char name[12 + MAXACTION];
#  532|   
#  533|->         snprintf (name, sizeof (name), "global-key-%s", s_names2actions[i].psz);
#  534|           init_action (obj, &as->map, name + 7, s_names2actions[i].id);
#  535|           init_action (obj, &as->global_map, name, s_names2actions[i].id);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def958]
vlc-3.0.21/src/misc/addons.c:535:5: warning[-Wanalyzer-malloc-leak]: leak of ‘realloc(*p_manager_47(D)->p_priv.installer.entries.p_elems, (long unsigned int)(int)((double)*p_manager_47(D)->p_priv.installer.entries.i_alloc * 1.5e+0) * 8)’
vlc-3.0.21/src/misc/addons.c:535:5: branch_false: following ‘false’ branch...
vlc-3.0.21/src/misc/addons.c:535:5: branch_false: ...to here
vlc-3.0.21/src/misc/addons.c:535:5: branch_true: following ‘true’ branch...
vlc-3.0.21/src/misc/addons.c:535:5: branch_true: ...to here
vlc-3.0.21/src/misc/addons.c:535:5: danger: ‘realloc(*p_manager_47(D)->p_priv.installer.entries.p_elems, (long unsigned int)(int)((double)*p_manager_47(D)->p_priv.installer.entries.i_alloc * 1.5e+0) * 8)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
#  533|   
#  534|       vlc_mutex_lock( &p_manager->p_priv->installer.lock );
#  535|->     ARRAY_APPEND( p_manager->p_priv->installer.entries, p_entry );
#  536|       if( !p_manager->p_priv->installer.b_live )
#  537|       {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def959]
vlc-3.0.21/src/misc/addons.c:535:5: warning[-Wanalyzer-malloc-leak]: leak of ‘realloc(*p_manager_47(D)->p_priv.installer.entries.p_elems, 80)’
vlc-3.0.21/src/misc/addons.c:535:5: branch_true: following ‘true’ branch...
vlc-3.0.21/src/misc/addons.c:535:5: branch_true: ...to here
vlc-3.0.21/src/misc/addons.c:535:5: danger: ‘realloc(*p_manager_47(D)->p_priv.installer.entries.p_elems, 80)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  533|   
#  534|       vlc_mutex_lock( &p_manager->p_priv->installer.lock );
#  535|->     ARRAY_APPEND( p_manager->p_priv->installer.entries, p_entry );
#  536|       if( !p_manager->p_priv->installer.b_live )
#  537|       {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def960]
vlc-3.0.21/src/misc/background_worker.c:115:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘item’
vlc-3.0.21/src/misc/background_worker.c:77:15: branch_true: following ‘true’ branch...
vlc-3.0.21/src/misc/background_worker.c:82:15: branch_false: following ‘false’ branch (when ‘item’ is NULL)...
vlc-3.0.21/src/misc/background_worker.c:89:22: branch_false: ...to here
vlc-3.0.21/src/misc/background_worker.c:106:11: branch_true: following ‘true’ branch...
vlc-3.0.21/src/misc/background_worker.c:111:9: branch_true: ...to here
vlc-3.0.21/src/misc/background_worker.c:115:13: danger: dereference of NULL ‘item’
#  113|           assert( item != NULL );
#  114|   
#  115|->         if( worker->conf.pf_start( worker->owner, item->entity, &handle ) )
#  116|           {
#  117|               worker->conf.pf_release( item->entity );

Error: GCC_ANALYZER_WARNING (CWE-401): [#def961]
vlc-3.0.21/src/misc/block.c:335:5: warning[-Wanalyzer-malloc-leak]: leak of ‘block’
vlc-3.0.21/src/misc/block.c:326:26: acquire_memory: allocated here
vlc-3.0.21/src/misc/block.c:327:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/misc/block.c:333:5: branch_false: ...to here
vlc-3.0.21/src/misc/block.c:335:5: danger: ‘block’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  333|       block_Init (&block->self, (uint8_t *)addr, length);
#  334|       block->self.pf_release = block_shm_Release;
#  335|->     block->base_addr = addr;
#  336|       return &block->self;
#  337|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def962]
vlc-3.0.21/src/misc/epg.c:78:49: warning[-Wanalyzer-malloc-leak]: leak of ‘vlc_epg_event_Duplicate(*<unknown>)’
vlc-3.0.21/src/misc/epg.c:222:13: enter_function: entry to ‘vlc_epg_Duplicate’
vlc-3.0.21/src/misc/epg.c:224:24: call_function: calling ‘vlc_epg_New’ from ‘vlc_epg_Duplicate’
vlc-3.0.21/src/misc/epg.c:224:24: return_function: returning to ‘vlc_epg_Duplicate’ from ‘vlc_epg_New’
vlc-3.0.21/src/misc/epg.c:225:7: branch_true: following ‘true’ branch...
vlc-3.0.21/src/misc/epg.c:227:27: branch_true: ...to here
vlc-3.0.21/src/misc/epg.c:227:27: branch_true: following ‘true’ branch...
vlc-3.0.21/src/misc/epg.c:227:49: branch_true: ...to here
vlc-3.0.21/src/misc/epg.c:229:26: branch_true: following ‘true’ branch...
vlc-3.0.21/src/misc/epg.c:231:63: branch_true: ...to here
vlc-3.0.21/src/misc/epg.c:231:38: call_function: calling ‘vlc_epg_event_Duplicate’ from ‘vlc_epg_Duplicate’
vlc-3.0.21/src/misc/epg.c:231:38: return_function: returning to ‘vlc_epg_Duplicate’ from ‘vlc_epg_event_Duplicate’
vlc-3.0.21/src/misc/epg.c:232:15: branch_true: following ‘true’ branch...
vlc-3.0.21/src/misc/epg.c:234:21: branch_true: ...to here
vlc-3.0.21/src/misc/epg.c:234:19: branch_false: following ‘false’ branch...
vlc-3.0.21/src/misc/epg.c:236:17: branch_false: ...to here
vlc-3.0.21/src/misc/epg.c:236:17: branch_false: following ‘false’ branch...
vlc-3.0.21/src/misc/epg.c:236:17: branch_false: ...to here
vlc-3.0.21/src/misc/epg.c:78:49: danger: ‘vlc_epg_event_Duplicate(*<unknown>)’ leaks here; was allocated at [(18)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/17)
#   76|   {
#   77|       vlc_epg_event_t *p_evt = vlc_epg_event_New( p_src->i_id, p_src->i_start,
#   78|->                                                 p_src->i_duration );
#   79|       if( likely(p_evt) )
#   80|       {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def963]
vlc-3.0.21/src/misc/epg.c:227:27: warning[-Wanalyzer-malloc-leak]: leak of ‘vlc_epg_New(*p_src.i_id, (int)*p_src.i_source_id)’
vlc-3.0.21/src/misc/epg.c:222:13: enter_function: entry to ‘vlc_epg_Duplicate’
vlc-3.0.21/src/misc/epg.c:224:24: call_function: calling ‘vlc_epg_New’ from ‘vlc_epg_Duplicate’
vlc-3.0.21/src/misc/epg.c:224:24: return_function: returning to ‘vlc_epg_Duplicate’ from ‘vlc_epg_New’
vlc-3.0.21/src/misc/epg.c:225:7: branch_true: following ‘true’ branch...
vlc-3.0.21/src/misc/epg.c:227:27: branch_true: ...to here
vlc-3.0.21/src/misc/epg.c:227:27: branch_true: following ‘true’ branch...
vlc-3.0.21/src/misc/epg.c:227:49: branch_true: ...to here
vlc-3.0.21/src/misc/epg.c:229:26: branch_true: following ‘true’ branch...
vlc-3.0.21/src/misc/epg.c:231:63: branch_true: ...to here
vlc-3.0.21/src/misc/epg.c:231:38: call_function: calling ‘vlc_epg_event_Duplicate’ from ‘vlc_epg_Duplicate’
vlc-3.0.21/src/misc/epg.c:231:38: return_function: returning to ‘vlc_epg_Duplicate’ from ‘vlc_epg_event_Duplicate’
vlc-3.0.21/src/misc/epg.c:232:15: branch_true: following ‘true’ branch...
vlc-3.0.21/src/misc/epg.c:234:21: branch_true: ...to here
vlc-3.0.21/src/misc/epg.c:234:19: branch_false: following ‘false’ branch...
vlc-3.0.21/src/misc/epg.c:236:17: branch_false: ...to here
vlc-3.0.21/src/misc/epg.c:236:17: branch_false: following ‘false’ branch...
vlc-3.0.21/src/misc/epg.c:236:17: branch_false: ...to here
vlc-3.0.21/src/misc/epg.c:227:27: danger: ‘vlc_epg_New(*p_src.i_id, (int)*p_src.i_source_id)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/3)
#  225|       if( p_epg )
#  226|       {
#  227|->         p_epg->psz_name = ( p_src->psz_name ) ? strdup( p_src->psz_name ) : NULL;
#  228|           p_epg->b_present = p_src->b_present;
#  229|           for( size_t i=0; i<p_src->i_event; i++ )

Error: GCC_ANALYZER_WARNING (CWE-401): [#def964]
vlc-3.0.21/src/misc/epg.c:236:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/src/misc/epg.c:222:13: enter_function: entry to ‘vlc_epg_Duplicate’
vlc-3.0.21/src/misc/epg.c:224:24: call_function: calling ‘vlc_epg_New’ from ‘vlc_epg_Duplicate’
vlc-3.0.21/src/misc/epg.c:224:24: return_function: returning to ‘vlc_epg_Duplicate’ from ‘vlc_epg_New’
vlc-3.0.21/src/misc/epg.c:225:7: branch_true: following ‘true’ branch...
vlc-3.0.21/src/misc/epg.c:227:27: branch_true: ...to here
vlc-3.0.21/src/misc/epg.c:227:27: branch_true: following ‘true’ branch...
vlc-3.0.21/src/misc/epg.c:227:49: branch_true: ...to here
vlc-3.0.21/src/misc/epg.c:227:49: acquire_memory: allocated here
vlc-3.0.21/src/misc/epg.c:229:26: branch_true: following ‘true’ branch...
vlc-3.0.21/src/misc/epg.c:231:63: branch_true: ...to here
vlc-3.0.21/src/misc/epg.c:231:38: call_function: calling ‘vlc_epg_event_Duplicate’ from ‘vlc_epg_Duplicate’
vlc-3.0.21/src/misc/epg.c:231:38: return_function: returning to ‘vlc_epg_Duplicate’ from ‘vlc_epg_event_Duplicate’
vlc-3.0.21/src/misc/epg.c:232:15: branch_true: following ‘true’ branch...
vlc-3.0.21/src/misc/epg.c:234:21: branch_true: ...to here
vlc-3.0.21/src/misc/epg.c:234:19: branch_false: following ‘false’ branch...
vlc-3.0.21/src/misc/epg.c:236:17: branch_false: ...to here
vlc-3.0.21/src/misc/epg.c:236:17: branch_false: following ‘false’ branch...
vlc-3.0.21/src/misc/epg.c:236:17: branch_false: ...to here
vlc-3.0.21/src/misc/epg.c:236:17: danger: ‘<unknown>’ leaks here; was allocated at [(12)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/11)
#  234|                   if( p_src->p_current == p_src->pp_event[i] )
#  235|                       p_epg->p_current = p_dup;
#  236|->                 TAB_APPEND( p_epg->i_event, p_epg->pp_event, p_dup );
#  237|               }
#  238|           }

Error: GCC_ANALYZER_WARNING: [#def965]
vlc-3.0.21/src/misc/events.c:138:5: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
vlc-3.0.21/src/misc/events.c:131:7: branch_false: following ‘false’ branch (when ‘listener’ is non-NULL)...
vlc-3.0.21/src/misc/events.c:134:5: branch_false: ...to here
vlc-3.0.21/src/misc/events.c:138:5: branch_false: following ‘false’ branch...
vlc-3.0.21/src/misc/events.c:138:5: branch_false: ...to here
vlc-3.0.21/src/misc/events.c:138:5: branch_true: following ‘true’ branch...
vlc-3.0.21/src/misc/events.c:138:5: branch_true: ...to here
vlc-3.0.21/src/misc/events.c:138:5: danger: operand ‘1.5e+0’ is of type ‘double’
#  136|   
#  137|       vlc_mutex_lock( &p_em->lock );
#  138|->     ARRAY_APPEND( slot->listeners, listener );
#  139|       vlc_mutex_unlock( &p_em->lock );
#  140|       return VLC_SUCCESS;

Error: COMPILER_WARNING (CWE-252): [#def966]
vlc-3.0.21/src/misc/interrupt.c: scope_hint: In function ‘vlc_poll_i11e_wake’
vlc-3.0.21/src/misc/interrupt.c:294:5: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#  294 |     write(fd[1], &value, sizeof (value));
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  292|   
#  293|       canc = vlc_savecancel();
#  294|->     write(fd[1], &value, sizeof (value));
#  295|       vlc_restorecancel(canc);
#  296|   }

Error: COMPILER_WARNING (CWE-252): [#def967]
vlc-3.0.21/src/misc/interrupt.c: scope_hint: In function ‘vlc_poll_i11e_inner’
vlc-3.0.21/src/misc/interrupt.c:353:9: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
#  353 |         read(fd[0], &dummy, sizeof (dummy));
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  351|           uint64_t dummy;
#  352|   
#  353|->         read(fd[0], &dummy, sizeof (dummy));
#  354|           ret--;
#  355|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def968]
vlc-3.0.21/src/misc/objects.c:537:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
vlc-3.0.21/src/misc/objects.c:509:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/misc/objects.c:512:5: branch_false: ...to here
vlc-3.0.21/src/misc/objects.c:513:5: release_memory: ‘0’ is NULL
vlc-3.0.21/src/misc/objects.c:522:8: branch_false: following ‘false’ branch (when ‘count == 0’)...
 branch_false: ...to here
vlc-3.0.21/src/misc/objects.c:536:45: branch_true: following ‘true’ branch (when ‘priv’ is non-NULL)...
vlc-3.0.21/src/misc/objects.c:537:55: branch_true: ...to here
vlc-3.0.21/src/misc/objects.c:537:9: release_memory: ‘0’ is NULL
vlc-3.0.21/src/misc/objects.c:537:20: release_memory: ‘0’ is NULL
vlc-3.0.21/src/misc/objects.c:537:9: danger: dereference of NULL ‘*l.p_values + (long unsigned int)i * 8’
#  535|   
#  536|       for (priv = vlc_internals (obj)->first; priv; priv = priv->next)
#  537|->         l->p_values[i++].p_address = vlc_object_hold (vlc_externals (priv));
#  538|       vlc_mutex_unlock (&vlc_internals(obj)->tree_lock);
#  539|       return l;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def969]
vlc-3.0.21/src/misc/objres.c:60:12: warning[-Wanalyzer-malloc-leak]: leak of ‘res’
vlc-3.0.21/src/misc/objres.c:49:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/misc/objres.c:55:27: branch_false: ...to here
vlc-3.0.21/src/misc/objres.c:55:27: acquire_memory: allocated here
vlc-3.0.21/src/misc/objres.c:56:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/misc/objres.c:59:5: branch_false: ...to here
vlc-3.0.21/src/misc/objres.c:60:12: danger: ‘res’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#   58|   
#   59|       res->release = release;
#   60|->     return res->payload;
#   61|   }
#   62|   

Error: COMPILER_WARNING (CWE-563): [#def970]
vlc-3.0.21/src/misc/picture.c: scope_hint: In function ‘picture_Hold’
vlc-3.0.21/src/misc/picture.c:300:15: warning[-Wunused-variable]: unused variable ‘refs’
#  300 |     uintptr_t refs = atomic_fetch_add( &priv->gc.refs, 1 );
#      |               ^~~~
#  298|   
#  299|       picture_priv_t *priv = (picture_priv_t *)p_picture;
#  300|->     uintptr_t refs = atomic_fetch_add( &priv->gc.refs, 1 );
#  301|       assert( refs > 0 );
#  302|       return p_picture;

Error: COMPILER_WARNING (CWE-457): [#def971]
vlc-3.0.21/src/misc/picture_pool.c: scope_hint: In function ‘picture_pool_NewFromFormat’
vlc-3.0.21/src/misc/picture_pool.c:169:28: warning[-Wmaybe-uninitialized]: ‘picture.3_18’ may be used uninitialized
#  169 |     picture_pool_t *pool = picture_pool_New(count, picture);
#      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vlc-3.0.21/src/misc/picture_pool.c:147:17: note: by argument 2 of type ‘struct picture_t * const *’ to ‘picture_pool_New’ declared here
#  147 | picture_pool_t *picture_pool_New(unsigned count, picture_t *const *tab)
#      |                 ^~~~~~~~~~~~~~~~
#  167|       }
#  168|   
#  169|->     picture_pool_t *pool = picture_pool_New(count, picture);
#  170|       if (!pool)
#  171|           goto error;

Error: COMPILER_WARNING (CWE-457): [#def972]
vlc-3.0.21/src/misc/picture_pool.c: scope_hint: In function ‘picture_pool_Reserve’
vlc-3.0.21/src/misc/picture_pool.c:192:28: warning[-Wmaybe-uninitialized]: ‘picture.7_18’ may be used uninitialized
#  192 |     picture_pool_t *pool = picture_pool_New(count, picture);
#      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vlc-3.0.21/src/misc/picture_pool.c:147:17: note: by argument 2 of type ‘struct picture_t * const *’ to ‘picture_pool_New’ declared here
#  147 | picture_pool_t *picture_pool_New(unsigned count, picture_t *const *tab)
#      |                 ^~~~~~~~~~~~~~~~
#  190|       }
#  191|   
#  192|->     picture_pool_t *pool = picture_pool_New(count, picture);
#  193|       if (!pool)
#  194|           goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def973]
vlc-3.0.21/src/misc/renderer_discovery.c:195:16: warning[-Wanalyzer-malloc-leak]: leak of ‘names.psz_longname’
vlc-3.0.21/src/misc/renderer_discovery.c:185:1: enter_function: entry to ‘vlc_rd_probe_add’
vlc-3.0.21/src/misc/renderer_discovery.c:188:53: acquire_memory: allocated here
vlc-3.0.21/src/misc/renderer_discovery.c:190:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/misc/renderer_discovery.c:190:9: branch_false: ...to here
vlc-3.0.21/src/misc/renderer_discovery.c:190:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/misc/renderer_discovery.c:190:9: branch_false: ...to here
vlc-3.0.21/src/misc/renderer_discovery.c:190:9: call_function: calling ‘vlc_probe_add’ from ‘vlc_rd_probe_add’
vlc-3.0.21/src/misc/renderer_discovery.c:190:9: return_function: returning to ‘vlc_rd_probe_add’ from ‘vlc_probe_add’
vlc-3.0.21/src/misc/renderer_discovery.c:190:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/misc/renderer_discovery.c:195:16: branch_false: ...to here
vlc-3.0.21/src/misc/renderer_discovery.c:195:16: danger: ‘names.psz_longname’ leaks here; was allocated at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
#  193|           free(names.psz_name);
#  194|           free(names.psz_longname);
#  195|->         return VLC_ENOMEM;
#  196|       }
#  197|       return VLC_PROBE_CONTINUE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def974]
vlc-3.0.21/src/misc/renderer_discovery.c:195:16: warning[-Wanalyzer-malloc-leak]: leak of ‘names.psz_name’
vlc-3.0.21/src/misc/renderer_discovery.c:185:1: enter_function: entry to ‘vlc_rd_probe_add’
vlc-3.0.21/src/misc/renderer_discovery.c:188:35: acquire_memory: allocated here
vlc-3.0.21/src/misc/renderer_discovery.c:190:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/misc/renderer_discovery.c:190:9: call_function: calling ‘vlc_probe_add’ from ‘vlc_rd_probe_add’
vlc-3.0.21/src/misc/renderer_discovery.c:190:9: return_function: returning to ‘vlc_rd_probe_add’ from ‘vlc_probe_add’
vlc-3.0.21/src/misc/renderer_discovery.c:190:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/misc/renderer_discovery.c:195:16: branch_false: ...to here
vlc-3.0.21/src/misc/renderer_discovery.c:195:16: danger: ‘names.psz_name’ leaks here; was allocated at [(2)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/1)
#  193|           free(names.psz_name);
#  194|           free(names.psz_longname);
#  195|->         return VLC_ENOMEM;
#  196|       }
#  197|       return VLC_PROBE_CONTINUE;

Error: COMPILER_WARNING (CWE-563): [#def975]
vlc-3.0.21/src/misc/variables.c: scope_hint: In function ‘var_SetChecked’
vlc-3.0.21/src/misc/variables.c:723:25: warning[-Wunused-parameter]: unused parameter ‘expected_type’
#  723 |                     int expected_type, vlc_value_t val )
#      |                     ~~~~^~~~~~~~~~~~~
#  721|   #undef var_SetChecked
#  722|   int var_SetChecked( vlc_object_t *p_this, const char *psz_name,
#  723|->                     int expected_type, vlc_value_t val )
#  724|   {
#  725|       variable_t *p_var;

Error: COMPILER_WARNING (CWE-563): [#def976]
vlc-3.0.21/src/misc/variables.c: scope_hint: In function ‘var_GetChecked’
vlc-3.0.21/src/misc/variables.c:782:25: warning[-Wunused-parameter]: unused parameter ‘expected_type’
#  782 |                     int expected_type, vlc_value_t *p_val )
#      |                     ~~~~^~~~~~~~~~~~~
#  780|   #undef var_GetChecked
#  781|   int var_GetChecked( vlc_object_t *p_this, const char *psz_name,
#  782|->                     int expected_type, vlc_value_t *p_val )
#  783|   {
#  784|       assert( p_this );

Error: GCC_ANALYZER_WARNING: [#def977]
vlc-3.0.21/src/misc/variables.c:1393:9: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
vlc-3.0.21/src/misc/variables.c:1392:8: branch_true: following ‘true’ branch (when ‘dup’ is non-NULL)...
vlc-3.0.21/src/misc/variables.c:1393:9: branch_true: ...to here
vlc-3.0.21/src/misc/variables.c:1393:9: branch_false: following ‘false’ branch...
vlc-3.0.21/src/misc/variables.c:1393:9: branch_false: ...to here
vlc-3.0.21/src/misc/variables.c:1393:9: branch_true: following ‘true’ branch...
vlc-3.0.21/src/misc/variables.c:1393:9: branch_true: ...to here
vlc-3.0.21/src/misc/variables.c:1393:9: danger: operand ‘1.5e+0’ is of type ‘double’
# 1391|       char *dup = strdup(var->psz_name);
# 1392|       if (dup != NULL)
# 1393|->         ARRAY_APPEND(*names, dup);
# 1394|   }
# 1395|   

Error: GCC_ANALYZER_WARNING: [#def978]
vlc-3.0.21/src/misc/variables.c:1410:5: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
vlc-3.0.21/src/misc/variables.c:1408:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/misc/variables.c:1410:5: branch_false: ...to here
vlc-3.0.21/src/misc/variables.c:1410:5: branch_false: following ‘false’ branch...
vlc-3.0.21/src/misc/variables.c:1410:5: branch_false: ...to here
vlc-3.0.21/src/misc/variables.c:1410:5: branch_true: following ‘true’ branch...
vlc-3.0.21/src/misc/variables.c:1410:5: branch_true: ...to here
vlc-3.0.21/src/misc/variables.c:1410:5: danger: operand ‘1.5e+0’ is of type ‘double’
# 1408|       if (names.i_size == 0)
# 1409|           return NULL;
# 1410|->     ARRAY_APPEND(names, NULL);
# 1411|       return names.p_elems;
# 1412|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def979]
vlc-3.0.21/src/modules/bank.c:136:8: warning[-Wanalyzer-malloc-leak]: leak of ‘cap’
vlc-3.0.21/src/modules/bank.c:734:8: enter_function: entry to ‘module_LoadPlugins’
vlc-3.0.21/src/modules/bank.c:738:8: branch_true: following ‘true’ branch...
vlc-3.0.21/src/modules/bank.c:740:9: branch_true: ...to here
vlc-3.0.21/src/modules/bank.c:740:9: call_function: calling ‘module_InitStaticModules’ from ‘module_LoadPlugins’
#  134|   
#  135|       module_t **modv = realloc(cap->modv, sizeof (*modv) * (cap->modc + 1));
#  136|->     if (unlikely(modv == NULL))
#  137|           return -1;
#  138|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def980]
vlc-3.0.21/src/modules/bank.c:141:5: warning[-Wanalyzer-malloc-leak]: leak of ‘cap’
vlc-3.0.21/src/modules/bank.c:734:8: enter_function: entry to ‘module_LoadPlugins’
vlc-3.0.21/src/modules/bank.c:738:8: branch_true: following ‘true’ branch...
vlc-3.0.21/src/modules/bank.c:740:9: branch_true: ...to here
vlc-3.0.21/src/modules/bank.c:740:9: call_function: calling ‘module_InitStaticModules’ from ‘module_LoadPlugins’
#  139|       cap->modv = modv;
#  140|       cap->modv[cap->modc] = mod;
#  141|->     cap->modc++;
#  142|       return 0;
#  143|   error:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def981]
vlc-3.0.21/src/modules/bank.c:141:5: warning[-Wanalyzer-malloc-leak]: leak of ‘modv’
vlc-3.0.21/src/modules/bank.c:734:8: enter_function: entry to ‘module_LoadPlugins’
vlc-3.0.21/src/modules/bank.c:738:8: branch_true: following ‘true’ branch...
vlc-3.0.21/src/modules/bank.c:740:9: branch_true: ...to here
vlc-3.0.21/src/modules/bank.c:740:9: call_function: calling ‘module_InitStaticModules’ from ‘module_LoadPlugins’
#  139|       cap->modv = modv;
#  140|       cap->modv[cap->modc] = mod;
#  141|->     cap->modc++;
#  142|       return 0;
#  143|   error:

Error: COMPILER_WARNING: [#def982]
vlc-3.0.21/src/modules/cache.c: scope_hint: In function ‘vlc_cache_load_plugin_config’
vlc-3.0.21/src/modules/cache.c:257:45: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
#  257 |         plugin->conf.items = calloc(sizeof (module_config_t), lines);
#      |                                             ^~~~~~~~~~~~~~~
vlc-3.0.21/src/modules/cache.c:257:45: note: earlier argument should specify number of elements, later size of each element
#  255|       if (lines)
#  256|       {
#  257|->         plugin->conf.items = calloc(sizeof (module_config_t), lines);
#  258|           if (unlikely(plugin->conf.items == NULL))
#  259|           {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def983]
vlc-3.0.21/src/modules/entry.c:294:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(8)’
vlc-3.0.21/src/modules/entry.c:293:36: acquire_memory: this call could return NULL
vlc-3.0.21/src/modules/entry.c:294:13: danger: ‘malloc(8)’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  292|               assert (module->i_shortcuts == 0);
#  293|               module->pp_shortcuts = malloc( sizeof( *module->pp_shortcuts ) );
#  294|->             module->pp_shortcuts[0] = value;
#  295|               module->i_shortcuts = 1;
#  296|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def984]
vlc-3.0.21/src/modules/entry.c:528:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘sym’
vlc-3.0.21/src/modules/entry.c:526:37: acquire_memory: this call could return NULL
vlc-3.0.21/src/modules/entry.c:528:5: danger: ‘sym’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  526|       struct vlc_plugin_symbol *sym = malloc(sizeof (*sym));
#  527|   
#  528|->     sym->name = name;
#  529|       sym->addr = addr;
#  530|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def985]
vlc-3.0.21/src/modules/entry.c:539:8: warning[-Wanalyzer-malloc-leak]: leak of ‘sym’
vlc-3.0.21/src/modules/entry.c:526:37: acquire_memory: allocated here
vlc-3.0.21/src/modules/entry.c:533:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/modules/entry.c:539:9: branch_false: ...to here
vlc-3.0.21/src/modules/entry.c:539:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/src/modules/entry.c:539:8: danger: ‘sym’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  537|       }
#  538|   
#  539|->     if (*symp != sym)
#  540|       {   /* Duplicate symbol */
#  541|           assert((*symp)->addr == sym->addr);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def986]
vlc-3.0.21/src/network/httpd.c:448:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
vlc-3.0.21/src/network/httpd.c:409:1: enter_function: entry to ‘httpd_HandlerCallBack’
vlc-3.0.21/src/network/httpd.c:424:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/network/httpd.c:427:14: branch_false: ...to here
vlc-3.0.21/src/network/httpd.c:433:8: branch_true: following ‘true’ branch...
vlc-3.0.21/src/network/httpd.c:434:15: branch_true: ...to here
vlc-3.0.21/src/network/httpd.c:437:16: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
vlc-3.0.21/src/network/httpd.c:438:17: branch_true: ...to here
vlc-3.0.21/src/network/httpd.c:441:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
vlc-3.0.21/src/network/httpd.c:442:13: branch_true: ...to here
vlc-3.0.21/src/network/httpd.c:444:30: call_function: calling ‘xrealloc’ from ‘httpd_HandlerCallBack’
vlc-3.0.21/src/network/httpd.c:444:30: return_function: returning to ‘httpd_HandlerCallBack’ from ‘xrealloc’
vlc-3.0.21/src/network/httpd.c:444:13: release_memory: ‘0’ is NULL
vlc-3.0.21/src/network/httpd.c:448:25: release_memory: ‘0’ is NULL
vlc-3.0.21/src/network/httpd.c:448:9: danger: argument 1 (‘*answer.p_body’) NULL where non-null expected
#  446|       }
#  447|   
#  448|->     if (strncmp((char *)answer->p_body, "HTTP/1.", 7)) {
#  449|           int i_status, i_headers;
#  450|           char *psz_headers, *psz_new;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def987]
vlc-3.0.21/src/network/httpd.c:469:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xmalloc((long unsigned int)(int)((unsigned int)strlen(<unknown>) + (unsigned int)i_headers + 16))’ where non-null expected
vlc-3.0.21/src/network/httpd.c:409:1: enter_function: entry to ‘httpd_HandlerCallBack’
vlc-3.0.21/src/network/httpd.c:424:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/network/httpd.c:427:14: branch_false: ...to here
vlc-3.0.21/src/network/httpd.c:448:8: branch_true: following ‘true’ branch...
vlc-3.0.21/src/network/httpd.c:453:14: branch_true: ...to here
vlc-3.0.21/src/network/httpd.c:453:12: branch_false: following ‘false’ branch...
vlc-3.0.21/src/network/httpd.c:461:13: branch_false: ...to here
vlc-3.0.21/src/network/httpd.c:465:22: call_function: inlined call to ‘httpd_ReasonFromCode’ from ‘httpd_HandlerCallBack’
vlc-3.0.21/src/network/httpd.c:468:27: call_function: calling ‘xmalloc’ from ‘httpd_HandlerCallBack’
vlc-3.0.21/src/network/httpd.c:468:27: return_function: returning to ‘httpd_HandlerCallBack’ from ‘xmalloc’
vlc-3.0.21/src/network/httpd.c:469:9: danger: argument 1 (‘xmalloc((long unsigned int)(int)((unsigned int)strlen(<unknown>) + (unsigned int)i_headers + 16))’) from [(15)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/14) could be NULL where non-null expected
#argument 1 of ‘__builtin_sprintf’ must be non-null
#  467|                           + strlen(psz_status) + i_headers - 1;
#  468|           psz_new = (char *)xmalloc(answer->i_body + 1);
#  469|->         sprintf(psz_new, "HTTP/1.0 %03d %s\r\n", i_status, psz_status);
#  470|           memcpy(&psz_new[strlen(psz_new)], psz_headers, i_headers);
#  471|           free(answer->p_body);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def988]
vlc-3.0.21/src/network/httpd.c:1467:35: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*cl.query.psz_url’ where non-null expected
vlc-3.0.21/src/network/httpd.c:2050:14: enter_function: entry to ‘httpd_HostThread’
vlc-3.0.21/src/network/httpd.c:2055:12: branch_true: following ‘true’ branch...
vlc-3.0.21/src/network/httpd.c:2056:9: branch_true: ...to here
vlc-3.0.21/src/network/httpd.c:2056:9: call_function: calling ‘httpdLoop’ from ‘httpd_HostThread’
#argument 1 of ‘__builtin_strchr’ must be non-null
# 1465|                       if(cl->query.psz_url == NULL) {
# 1466|                           cl->query.psz_url = strdup(p);
# 1467|->                         if ((p3 = strchr(cl->query.psz_url, '?')) ) {
# 1468|                               *p3++ = '\0';
# 1469|                               cl->query.psz_args = (uint8_t *)strdup(p3);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def989]
vlc-3.0.21/src/network/httpd.c:1589:14: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘p’ where non-null expected
vlc-3.0.21/src/network/httpd.c:2050:14: enter_function: entry to ‘httpd_HostThread’
vlc-3.0.21/src/network/httpd.c:2055:12: branch_true: following ‘true’ branch...
vlc-3.0.21/src/network/httpd.c:2056:9: branch_true: ...to here
vlc-3.0.21/src/network/httpd.c:2056:9: call_function: calling ‘httpdLoop’ from ‘httpd_HostThread’
#argument 1 of ‘__builtin_sprintf’ must be non-null
# 1587|           p = (char *)cl->p_buffer;
# 1588|   
# 1589|->         p += sprintf(p, "%s.%u %d %s\r\n",
# 1590|                         cl->answer.i_proto ==  HTTPD_PROTO_HTTP ? "HTTP/1" : "RTSP/1",
# 1591|                         cl->answer.i_version,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def990]
vlc-3.0.21/src/network/httpd.c:1872:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘answer’
vlc-3.0.21/src/network/httpd.c:2050:14: enter_function: entry to ‘httpd_HostThread’
vlc-3.0.21/src/network/httpd.c:2055:12: branch_true: following ‘true’ branch...
vlc-3.0.21/src/network/httpd.c:2056:9: branch_true: ...to here
vlc-3.0.21/src/network/httpd.c:2056:9: call_function: calling ‘httpdLoop’ from ‘httpd_HostThread’
# 1870|                                   continue;
# 1871|   
# 1872|->                             if (answer->i_proto == HTTPD_PROTO_NONE)
# 1873|                                   cl->i_buffer = cl->i_buffer_size; /* Raw answer from a CGI */
# 1874|                               else

Error: GCC_ANALYZER_WARNING (CWE-476): [#def991]
vlc-3.0.21/src/network/httpd.c:2041:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘httpd_ClientNew(sk)’
vlc-3.0.21/src/network/httpd.c:2050:14: enter_function: entry to ‘httpd_HostThread’
vlc-3.0.21/src/network/httpd.c:2055:12: branch_true: following ‘true’ branch...
vlc-3.0.21/src/network/httpd.c:2056:9: branch_true: ...to here
vlc-3.0.21/src/network/httpd.c:2056:9: call_function: calling ‘httpdLoop’ from ‘httpd_HostThread’
# 2039|   
# 2040|           if (host->p_tls != NULL)
# 2041|->             cl->i_state = HTTPD_CLIENT_TLS_HS_OUT;
# 2042|   
# 2043|           cl->i_timeout_date = now + (host->timeout_sec * 1000 * 1000);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def992]
vlc-3.0.21/src/network/httpd.c:2043:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘httpd_ClientNew(sk)’
vlc-3.0.21/src/network/httpd.c:2050:14: enter_function: entry to ‘httpd_HostThread’
vlc-3.0.21/src/network/httpd.c:2055:12: branch_true: following ‘true’ branch...
vlc-3.0.21/src/network/httpd.c:2056:9: branch_true: ...to here
vlc-3.0.21/src/network/httpd.c:2056:9: call_function: calling ‘httpdLoop’ from ‘httpd_HostThread’
# 2041|               cl->i_state = HTTPD_CLIENT_TLS_HS_OUT;
# 2042|   
# 2043|->         cl->i_timeout_date = now + (host->timeout_sec * 1000 * 1000);
# 2044|           TAB_APPEND(host->i_client, host->client, cl);
# 2045|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def993]
vlc-3.0.21/src/network/httpd.c:2044:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
vlc-3.0.21/src/network/httpd.c:2050:14: enter_function: entry to ‘httpd_HostThread’
vlc-3.0.21/src/network/httpd.c:2055:12: branch_true: following ‘true’ branch...
vlc-3.0.21/src/network/httpd.c:2056:9: branch_true: ...to here
vlc-3.0.21/src/network/httpd.c:2056:9: call_function: calling ‘httpdLoop’ from ‘httpd_HostThread’
# 2042|   
# 2043|           cl->i_timeout_date = now + (host->timeout_sec * 1000 * 1000);
# 2044|->         TAB_APPEND(host->i_client, host->client, cl);
# 2045|       }
# 2046|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def994]
vlc-3.0.21/src/network/tls.c:410:8: warning[-Wanalyzer-malloc-leak]: leak of ‘sock’
vlc-3.0.21/src/network/tls.c:395:30: acquire_memory: allocated here
vlc-3.0.21/src/network/tls.c:396:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/network/tls.c:399:16: branch_false: ...to here
vlc-3.0.21/src/network/tls.c:410:8: branch_false: following ‘false’ branch (when ‘peerlen == 0’)...
 branch_false: ...to here
vlc-3.0.21/src/network/tls.c:410:8: danger: ‘sock’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  408|       sock->fd = fd;
#  409|       sock->peerlen = peerlen;
#  410|->     if (peerlen > 0)
#  411|           memcpy(sock->peer, peer, peerlen);
#  412|       return tls;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def995]
vlc-3.0.21/src/network/tls.c:411:9: warning[-Wanalyzer-malloc-leak]: leak of ‘sock’
vlc-3.0.21/src/network/tls.c:395:30: acquire_memory: allocated here
vlc-3.0.21/src/network/tls.c:396:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/network/tls.c:399:16: branch_false: ...to here
vlc-3.0.21/src/network/tls.c:410:8: branch_true: following ‘true’ branch (when ‘peerlen != 0’)...
vlc-3.0.21/src/network/tls.c:411:16: branch_true: ...to here
vlc-3.0.21/src/network/tls.c:411:9: danger: ‘sock’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  409|       sock->peerlen = peerlen;
#  410|       if (peerlen > 0)
#  411|->         memcpy(sock->peer, peer, peerlen);
#  412|       return tls;
#  413|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def996]
vlc-3.0.21/src/playlist/item.c:264:9: warning[-Wanalyzer-malloc-leak]: leak of ‘playlist_ItemNewFromInput(p_playlist,  p_input)’
vlc-3.0.21/src/playlist/item.c:826:12: enter_function: entry to ‘RecursiveInsertCopy’
vlc-3.0.21/src/playlist/item.c:833:7: branch_false: following ‘false’ branch (when ‘p_item != p_parent’)...
vlc-3.0.21/src/playlist/item.c:835:19: branch_false: ...to here
vlc-3.0.21/src/playlist/item.c:841:11: branch_true: following ‘true’ branch...
vlc-3.0.21/src/playlist/item.c:843:41: branch_true: ...to here
vlc-3.0.21/src/playlist/item.c:845:15: branch_true: following ‘true’ branch...
vlc-3.0.21/src/playlist/item.c:847:30: branch_true: ...to here
vlc-3.0.21/src/playlist/item.c:847:30: call_function: calling ‘playlist_NodeAddInput’ from ‘RecursiveInsertCopy’
#  262|   
#  263|       p_item = malloc( sizeof( playlist_item_t ) );
#  264|->     if( unlikely(p_item == NULL) )
#  265|           return NULL;
#  266|   

Error: GCC_ANALYZER_WARNING: [#def997]
vlc-3.0.21/src/playlist/item.c:537:9: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
vlc-3.0.21/src/playlist/item.c:826:12: enter_function: entry to ‘RecursiveInsertCopy’
vlc-3.0.21/src/playlist/item.c:833:7: branch_false: following ‘false’ branch (when ‘p_item != p_parent’)...
vlc-3.0.21/src/playlist/item.c:835:19: branch_false: ...to here
vlc-3.0.21/src/playlist/item.c:841:11: branch_true: following ‘true’ branch...
vlc-3.0.21/src/playlist/item.c:843:41: branch_true: ...to here
vlc-3.0.21/src/playlist/item.c:845:15: branch_true: following ‘true’ branch...
vlc-3.0.21/src/playlist/item.c:847:30: branch_true: ...to here
vlc-3.0.21/src/playlist/item.c:847:30: call_function: calling ‘playlist_NodeAddInput’ from ‘RecursiveInsertCopy’
#  535|   
#  536|       if( p_input->i_type != ITEM_TYPE_NODE )
#  537|->         ARRAY_APPEND(p_playlist->items, p_item);
#  538|   
#  539|       playlist_NodeInsert( p_parent, p_item, i_pos );

Error: COMPILER_WARNING: [#def998]
vlc-3.0.21/src/playlist/preparser.c: scope_hint: In function ‘playlist_preparser_Push’
vlc-3.0.21/src/playlist/preparser.c:171:24: warning[-Wimplicit-fallthrough=]: this statement may fall through
#  171 |             if( !b_net || i_options & META_REQUEST_OPTION_SCOPE_NETWORK )
#      |                 ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vlc-3.0.21/src/playlist/preparser.c:173:9: note: here
#  173 |         default:
#      |         ^~~~~~~
#  169|           case ITEM_TYPE_DIRECTORY:
#  170|           case ITEM_TYPE_PLAYLIST:
#  171|->             if( !b_net || i_options & META_REQUEST_OPTION_SCOPE_NETWORK )
#  172|                   break;
#  173|           default:

Error: GCC_ANALYZER_WARNING: [#def999]
vlc-3.0.21/src/playlist/thread.c:166:9: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
vlc-3.0.21/src/playlist/thread.c:480:14: enter_function: entry to ‘Thread’
vlc-3.0.21/src/playlist/thread.c:487:12: branch_false: following ‘false’ branch...
vlc-3.0.21/src/playlist/thread.c:492:14: branch_false: ...to here
vlc-3.0.21/src/playlist/thread.c:492:11: branch_true: following ‘true’ branch...
 branch_true: ...to here
vlc-3.0.21/src/playlist/thread.c:499:16: branch_false: following ‘false’ branch...
vlc-3.0.21/src/playlist/thread.c:499:34: branch_false: ...to here
vlc-3.0.21/src/playlist/thread.c:499:34: call_function: calling ‘Next’ from ‘Thread’
#  164|           if( p_next == p_cur )
#  165|               p_playlist->i_current_index = p_playlist->current.i_size;
#  166|->         ARRAY_APPEND( p_playlist->current, p_next);
#  167|       }
#  168|       PL_DEBUG("rebuild done - %i items, index %i", p_playlist->current.i_size,

Error: COMPILER_WARNING (CWE-477): [#def1000]
vlc-3.0.21/src/stream_output/stream_output.c: scope_hint: In function ‘sout_MuxDeleteStream’
vlc-3.0.21/src/stream_output/stream_output.c:493:6: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
#  493 |      && block_FifoCount( p_input->p_fifo ) > 0 )
#      |      ^~
vlc-3.0.21/src/stream_output/stream_output.c:47: included_from: Included from here.
vlc-3.0.21/include/vlc_block.h:477:16: note: declared here
#  477 | VLC_API size_t block_FifoCount(block_fifo_t *) VLC_USED VLC_DEPRECATED;
#      |                ^~~~~~~~~~~~~~~
#  491|   
#  492|       if( p_mux->b_waiting_stream
#  493|->      && block_FifoCount( p_input->p_fifo ) > 0 )
#  494|       {
#  495|           /* We stop waiting, and call the muxer for taking care of the data

Error: COMPILER_WARNING (CWE-477): [#def1001]
vlc-3.0.21/src/stream_output/stream_output.c:493:6: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
#  491|   
#  492|       if( p_mux->b_waiting_stream
#  493|->      && block_FifoCount( p_input->p_fifo ) > 0 )
#  494|       {
#  495|           /* We stop waiting, and call the muxer for taking care of the data

Error: COMPILER_WARNING (CWE-477): [#def1002]
vlc-3.0.21/src/stream_output/stream_output.c: scope_hint: In function ‘sout_MuxGetStream’
vlc-3.0.21/src/stream_output/stream_output.c:574:9: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
#  574 |         if( block_FifoCount( p_input->p_fifo ) < i_blocks )
#      |         ^~
vlc-3.0.21/include/vlc_block.h:477:16: note: declared here
#  477 | VLC_API size_t block_FifoCount(block_fifo_t *) VLC_USED VLC_DEPRECATED;
#      |                ^~~~~~~~~~~~~~~
#  572|           block_t *p_data;
#  573|   
#  574|->         if( block_FifoCount( p_input->p_fifo ) < i_blocks )
#  575|           {
#  576|               if( (!p_mux->b_add_stream_any_time) &&

Error: COMPILER_WARNING (CWE-477): [#def1003]
vlc-3.0.21/src/stream_output/stream_output.c:574:9: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated
#  572|           block_t *p_data;
#  573|   
#  574|->         if( block_FifoCount( p_input->p_fifo ) < i_blocks )
#  575|           {
#  576|               if( (!p_mux->b_add_stream_any_time) &&

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1004]
vlc-3.0.21/src/stream_output/stream_output.c:611:12: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘psz_parser’
vlc-3.0.21/src/stream_output/stream_output.c:604:22: acquire_memory: this call could return NULL
vlc-3.0.21/src/stream_output/stream_output.c:611:12: danger: ‘psz_parser’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  609|   
#  610|       /* *** first parse psz_dest */
#  611|->     while( *psz_parser && *psz_parser != ':' )
#  612|       {
#  613|           if( *psz_parser == '{' )

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1005]
vlc-3.0.21/src/stream_output/stream_output.c:916:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘mrl.psz_access’ where non-null expected
vlc-3.0.21/src/stream_output/stream_output.c:905:14: enter_function: entry to ‘sout_stream_url_to_chain’
vlc-3.0.21/src/stream_output/stream_output.c:911:5: call_function: calling ‘mrl_Parse’ from ‘sout_stream_url_to_chain’
vlc-3.0.21/src/stream_output/stream_output.c:911:5: return_function: returning to ‘sout_stream_url_to_chain’ from ‘mrl_Parse’
vlc-3.0.21/src/stream_output/stream_output.c:915:35: branch_true: following ‘true’ branch...
vlc-3.0.21/src/stream_output/stream_output.c:916:24: branch_true: ...to here
vlc-3.0.21/src/stream_output/stream_output.c:916:13: danger: argument 2 (‘mrl.psz_access’) from [(6)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/5) could be NULL where non-null expected
#  914|       static const char rtplist[] = "dccp\0sctp\0tcp\0udplite\0";
#  915|       for (const char *a = rtplist; *a; a += strlen (a) + 1)
#  916|->         if (strcmp (a, mrl.psz_access) == 0)
#  917|               goto rtp;
#  918|   

Error: GCC_ANALYZER_WARNING (CWE-122): [#def1006]
vlc-3.0.21/src/stream_output/stream_output.c:923:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
vlc-3.0.21/src/stream_output/stream_output.c:905:14: enter_function: entry to ‘sout_stream_url_to_chain’
vlc-3.0.21/src/stream_output/stream_output.c:911:5: call_function: calling ‘mrl_Parse’ from ‘sout_stream_url_to_chain’
vlc-3.0.21/src/stream_output/stream_output.c:911:5: return_function: returning to ‘sout_stream_url_to_chain’ from ‘mrl_Parse’
vlc-3.0.21/src/stream_output/stream_output.c:915:35: branch_true: following ‘true’ branch...
vlc-3.0.21/src/stream_output/stream_output.c:916:24: branch_true: ...to here
vlc-3.0.21/src/stream_output/stream_output.c:916:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
vlc-3.0.21/src/stream_output/stream_output.c:915:44: branch_false: ...to here
vlc-3.0.21/src/stream_output/stream_output.c:915:35: branch_false: following ‘false’ branch...
vlc-3.0.21/src/stream_output/stream_output.c:919:17: branch_false: ...to here
vlc-3.0.21/src/stream_output/stream_output.c:919:8: branch_true: following ‘true’ branch (when the strings are equal)...
vlc-3.0.21/src/stream_output/stream_output.c:923:9: branch_true: ...to here
vlc-3.0.21/src/stream_output/stream_output.c:923:9: danger: out-of-bounds write from byte 1 till byte 3 but region ends at byte 1
#  921|           char *port;
#  922|           /* For historical reasons, rtp:// means RTP over UDP */
#  923|->         strcpy (mrl.psz_access, "udp");
#  924|   rtp:
#  925|           if (mrl.psz_name[0] == '[')

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1007]
vlc-3.0.21/src/stream_output/stream_output.c:925:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘mrl.psz_name’
vlc-3.0.21/src/stream_output/stream_output.c:905:14: enter_function: entry to ‘sout_stream_url_to_chain’
vlc-3.0.21/src/stream_output/stream_output.c:911:5: call_function: calling ‘mrl_Parse’ from ‘sout_stream_url_to_chain’
vlc-3.0.21/src/stream_output/stream_output.c:911:5: return_function: returning to ‘sout_stream_url_to_chain’ from ‘mrl_Parse’
vlc-3.0.21/src/stream_output/stream_output.c:915:35: branch_true: following ‘true’ branch...
vlc-3.0.21/src/stream_output/stream_output.c:916:24: branch_true: ...to here
vlc-3.0.21/src/stream_output/stream_output.c:925:13: danger: ‘mrl.psz_name’ could be NULL: unchecked value from [(6)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/5)
#  923|           strcpy (mrl.psz_access, "udp");
#  924|   rtp:
#  925|->         if (mrl.psz_name[0] == '[')
#  926|           {
#  927|               port = strstr (mrl.psz_name, "]:");

Error: GCC_ANALYZER_WARNING: [#def1008]
vlc-3.0.21/src/video_output/control.c:105:9: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
vlc-3.0.21/src/video_output/control.c:104:8: branch_false: following ‘false’ branch...
vlc-3.0.21/src/video_output/control.c:105:9: branch_false: ...to here
vlc-3.0.21/src/video_output/control.c:105:9: branch_false: following ‘false’ branch...
vlc-3.0.21/src/video_output/control.c:105:9: branch_false: ...to here
vlc-3.0.21/src/video_output/control.c:105:9: branch_true: following ‘true’ branch...
vlc-3.0.21/src/video_output/control.c:105:9: branch_true: ...to here
vlc-3.0.21/src/video_output/control.c:105:9: danger: operand ‘1.5e+0’ is of type ‘double’
#  103|       vlc_mutex_lock(&ctrl->lock);
#  104|       if (!ctrl->is_dead) {
#  105|->         ARRAY_APPEND(ctrl->cmd, *cmd);
#  106|           vlc_cond_signal(&ctrl->wait_request);
#  107|       } else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1009]
vlc-3.0.21/src/video_output/control.c:160:1: warning[-Wanalyzer-malloc-leak]: leak of ‘cmd.u.message.string’
vlc-3.0.21/src/video_output/control.c:152:6: enter_function: entry to ‘vout_control_PushMessage’
vlc-3.0.21/src/video_output/control.c:158:28: acquire_memory: allocated here
vlc-3.0.21/src/video_output/control.c:159:5: call_function: calling ‘vout_control_Push’ from ‘vout_control_PushMessage’
vlc-3.0.21/src/video_output/control.c:159:5: return_function: returning to ‘vout_control_PushMessage’ from ‘vout_control_Push’
vlc-3.0.21/src/video_output/control.c:160:1: danger: ‘cmd.u.message.string’ leaks here; was allocated at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
#  158|       cmd.u.message.string = strdup(string);
#  159|       vout_control_Push(ctrl, &cmd);
#  160|-> }
#  161|   void vout_control_PushPair(vout_control_t *ctrl, int type, int a, int b)
#  162|   {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1010]
vlc-3.0.21/src/video_output/control.c:177:1: warning[-Wanalyzer-malloc-leak]: leak of ‘cmd.u.string’
vlc-3.0.21/src/video_output/control.c:170:6: enter_function: entry to ‘vout_control_PushString’
vlc-3.0.21/src/video_output/control.c:175:20: branch_true: following ‘true’ branch (when ‘string’ is non-NULL)...
vlc-3.0.21/src/video_output/control.c:175:29: branch_true: ...to here
vlc-3.0.21/src/video_output/control.c:175:29: acquire_memory: allocated here
vlc-3.0.21/src/video_output/control.c:176:5: call_function: calling ‘vout_control_Push’ from ‘vout_control_PushString’
vlc-3.0.21/src/video_output/control.c:176:5: return_function: returning to ‘vout_control_PushString’ from ‘vout_control_Push’
vlc-3.0.21/src/video_output/control.c:177:1: danger: ‘cmd.u.string’ leaks here; was allocated at [(4)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/3)
#  175|       cmd.u.string = string ? strdup(string) : NULL;
#  176|       vout_control_Push(ctrl, &cmd);
#  177|-> }
#  178|   
#  179|   int vout_control_Pop(vout_control_t *ctrl, vout_control_cmd_t *cmd,

Error: COMPILER_WARNING (CWE-563): [#def1011]
vlc-3.0.21/src/video_output/display.c: scope_hint: In function ‘VideoBufferNew’
vlc-3.0.21/src/video_output/display.c:56:27: warning[-Wunused-variable]: unused variable ‘fmt’
#   56 |     const video_format_t *fmt = &filter->fmt_out.video;
#      |                           ^~~
#   54|   {
#   55|       vout_display_t *vd = filter->owner.sys;
#   56|->     const video_format_t *fmt = &filter->fmt_out.video;
#   57|   
#   58|       assert(vd->fmt.i_chroma == fmt->i_chroma &&

Error: COMPILER_WARNING (CWE-477): [#def1012]
vlc-3.0.21/src/video_output/display.c: scope_hint: In function ‘vout_display_New’
vlc-3.0.21/src/video_output/display.c:103:5: warning[-Wdeprecated-declarations]: ‘manage’ is deprecated
#  103 |     vd->manage = NULL;
#      |     ^~
vlc-3.0.21/src/video_output/display.c:34: included_from: Included from here.
vlc-3.0.21/include/vlc_vout_display.h:333:18: note: declared here
#  333 |     void       (*manage)(vout_display_t *) VLC_DEPRECATED;
#      |                  ^~~~~~
#  101|       vd->display = NULL;
#  102|       vd->control = NULL;
#  103|->     vd->manage = NULL;
#  104|       vd->sys = NULL;
#  105|   

Error: COMPILER_WARNING (CWE-477): [#def1013]
vlc-3.0.21/src/video_output/display.c:103:5: warning[-Wdeprecated-declarations]: ‘manage’ is deprecated
#  101|       vd->display = NULL;
#  102|       vd->control = NULL;
#  103|->     vd->manage = NULL;
#  104|       vd->sys = NULL;
#  105|   

Error: COMPILER_WARNING (CWE-477): [#def1014]
vlc-3.0.21/src/video_output/display.c: scope_hint: In function ‘vout_display_Manage’
vlc-3.0.21/src/video_output/display.c:151:5: warning[-Wdeprecated-declarations]: ‘manage’ is deprecated
#  151 |     if (vd->manage)
#      |     ^~
vlc-3.0.21/include/vlc_vout_display.h:333:18: note: declared here
#  333 |     void       (*manage)(vout_display_t *) VLC_DEPRECATED;
#      |                  ^~~~~~
#  149|   static void vout_display_Manage(vout_display_t *vd)
#  150|   {
#  151|->     if (vd->manage)
#  152|           vd->manage(vd);
#  153|   }

Error: COMPILER_WARNING (CWE-477): [#def1015]
vlc-3.0.21/src/video_output/display.c:151:5: warning[-Wdeprecated-declarations]: ‘manage’ is deprecated
#  149|   static void vout_display_Manage(vout_display_t *vd)
#  150|   {
#  151|->     if (vd->manage)
#  152|           vd->manage(vd);
#  153|   }

Error: COMPILER_WARNING (CWE-477): [#def1016]
vlc-3.0.21/src/video_output/display.c:152:9: warning[-Wdeprecated-declarations]: ‘manage’ is deprecated
#  152 |         vd->manage(vd);
#      |         ^~
vlc-3.0.21/include/vlc_vout_display.h:333:18: note: declared here
#  333 |     void       (*manage)(vout_display_t *) VLC_DEPRECATED;
#      |                  ^~~~~~
#  150|   {
#  151|       if (vd->manage)
#  152|->         vd->manage(vd);
#  153|   }
#  154|   

Error: COMPILER_WARNING (CWE-477): [#def1017]
vlc-3.0.21/src/video_output/display.c:152:9: warning[-Wdeprecated-declarations]: ‘manage’ is deprecated
#  150|   {
#  151|       if (vd->manage)
#  152|->         vd->manage(vd);
#  153|   }
#  154|   

Error: COMPILER_WARNING (CWE-477): [#def1018]
vlc-3.0.21/src/video_output/display.c: scope_hint: In function ‘vout_ManageDisplay’
vlc-3.0.21/src/video_output/display.c:756:13: warning[-Wdeprecated-declarations]: ‘VOUT_DISPLAY_HIDE_MOUSE’ is deprecated
#  756 |             vout_display_Control(vd, VOUT_DISPLAY_HIDE_MOUSE);
#      |             ^~~~~~~~~~~~~~~~~~~~
vlc-3.0.21/include/vlc_vout_display.h:144:5: note: declared here
#  144 |     VOUT_DISPLAY_HIDE_MOUSE VLC_DEPRECATED_ENUM,
#      |     ^~~~~~~~~~~~~~~~~~~~~~~
#  754|           if (vout_HideWindowMouse(osys->vout, true) != VLC_SUCCESS
#  755|            && vd->info.needs_hide_mouse)
#  756|->             vout_display_Control(vd, VOUT_DISPLAY_HIDE_MOUSE);
#  757|       }
#  758|   

Error: COMPILER_WARNING (CWE-477): [#def1019]
vlc-3.0.21/src/video_output/display.c:756:13: warning[-Wdeprecated-declarations]: ‘VOUT_DISPLAY_HIDE_MOUSE’ is deprecated
#  754|           if (vout_HideWindowMouse(osys->vout, true) != VLC_SUCCESS
#  755|            && vd->info.needs_hide_mouse)
#  756|->             vout_display_Control(vd, VOUT_DISPLAY_HIDE_MOUSE);
#  757|       }
#  758|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1020]
vlc-3.0.21/src/video_output/display.c:1136:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘osys’
vlc-3.0.21/src/video_output/display.c:1248:17: enter_function: entry to ‘vout_NewDisplay’
vlc-3.0.21/src/video_output/display.c:1255:12: call_function: calling ‘DisplayNew’ from ‘vout_NewDisplay’
# 1134|       vout_display_cfg_t *cfg = &osys->cfg;
# 1135|   
# 1136|->     *cfg = state->cfg;
# 1137|       osys->sar_initial = state->sar;
# 1138|       vout_display_GetDefaultDisplaySize(&cfg->display.width, &cfg->display.height,

Error: COMPILER_WARNING (CWE-563): [#def1021]
vlc-3.0.21/src/video_output/display.c: scope_hint: In function ‘SplitterPrepare’
vlc-3.0.21/src/video_output/display.c:1337:43: warning[-Wunused-parameter]: unused parameter ‘subpicture’
# 1337 |                             subpicture_t *subpicture)
#      |                             ~~~~~~~~~~~~~~^~~~~~~~~~
# 1335|   static void SplitterPrepare(vout_display_t *vd,
# 1336|                               picture_t *picture,
# 1337|->                             subpicture_t *subpicture)
# 1338|   {
# 1339|       vout_display_sys_t *sys = vd->sys;

Error: COMPILER_WARNING (CWE-563): [#def1022]
vlc-3.0.21/src/video_output/display.c: scope_hint: In function ‘SplitterDisplay’
vlc-3.0.21/src/video_output/display.c:1358:43: warning[-Wunused-parameter]: unused parameter ‘subpicture’
# 1358 |                             subpicture_t *subpicture)
#      |                             ~~~~~~~~~~~~~~^~~~~~~~~~
# 1356|   static void SplitterDisplay(vout_display_t *vd,
# 1357|                               picture_t *picture,
# 1358|->                             subpicture_t *subpicture)
# 1359|   {
# 1360|       vout_display_sys_t *sys = vd->sys;

Error: COMPILER_WARNING (CWE-477): [#def1023]
vlc-3.0.21/src/video_output/display.c: scope_hint: In function ‘vout_NewSplitter’
vlc-3.0.21/src/video_output/display.c:1464:5: warning[-Wdeprecated-declarations]: ‘manage’ is deprecated
# 1464 |     wrapper->manage  = SplitterManage;
#      |     ^~~~~~~
vlc-3.0.21/include/vlc_vout_display.h:333:18: note: declared here
#  333 |     void       (*manage)(vout_display_t *) VLC_DEPRECATED;
#      |                  ^~~~~~
# 1462|       wrapper->display = SplitterDisplay;
# 1463|       wrapper->control = SplitterControl;
# 1464|->     wrapper->manage  = SplitterManage;
# 1465|       wrapper->sys     = sys;
# 1466|   

Error: COMPILER_WARNING (CWE-477): [#def1024]
vlc-3.0.21/src/video_output/display.c:1464:5: warning[-Wdeprecated-declarations]: ‘manage’ is deprecated
# 1462|       wrapper->display = SplitterDisplay;
# 1463|       wrapper->control = SplitterControl;
# 1464|->     wrapper->manage  = SplitterManage;
# 1465|       wrapper->sys     = sys;
# 1466|   

Error: COMPILER_WARNING: [#def1025]
vlc-3.0.21/src/video_output/display.c:46: included_from: Included from here.
vlc-3.0.21/src/video_output/event.h: scope_hint: In function ‘vout_SendEventClose’
vlc-3.0.21/src/video_output/event.h:42:2: warning[-Wcpp]: #warning FIXME: implement video close event
#   42 | #warning FIXME: implement video close event
#      |  ^~~~~~~
#   40|   static inline void vout_SendEventClose(vout_thread_t *vout)
#   41|   {
#   42|-> #warning FIXME: implement video close event
#   43|       /* FIXME: this code is disabled as it breaks the non-playlist cases */
#   44|       //playlist_Stop(pl_Get(vout));

Error: COMPILER_WARNING: [#def1026]
vlc-3.0.21/src/video_output/event.h:42:2: warning[-Wcpp]: #warning FIXME: implement video close event
#   40|   static inline void vout_SendEventClose(vout_thread_t *vout)
#   41|   {
#   42|-> #warning FIXME: implement video close event
#   43|       /* FIXME: this code is disabled as it breaks the non-playlist cases */
#   44|       //playlist_Stop(pl_Get(vout));

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1027]
vlc-3.0.21/src/video_output/vout_subpictures.c:1599:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘subpicture_array[i]’
vlc-3.0.21/src/video_output/vout_subpictures.c:1526:15: enter_function: entry to ‘spu_Render’
vlc-3.0.21/src/video_output/vout_subpictures.c:1590:5: call_function: calling ‘SpuSelectSubpictures’ from ‘spu_Render’
vlc-3.0.21/src/video_output/vout_subpictures.c:1590:5: return_function: returning to ‘spu_Render’ from ‘SpuSelectSubpictures’
vlc-3.0.21/src/video_output/vout_subpictures.c:1592:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
vlc-3.0.21/src/video_output/vout_subpictures.c:1598:26: branch_true: following ‘true’ branch...
vlc-3.0.21/src/video_output/vout_subpictures.c:1599:23: branch_true: ...to here
vlc-3.0.21/src/video_output/vout_subpictures.c:1599:23: danger: use of uninitialized value ‘subpicture_array[i]’ here
# 1597|       /* Updates the subpictures */
# 1598|       for (unsigned i = 0; i < subpicture_count; i++) {
# 1599|->         subpicture_t *subpic = subpicture_array[i];
# 1600|           subpicture_Update(subpic,
# 1601|                             fmt_src, fmt_dst,

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-20.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-namevlc-3.0.21-21.fc43
store-results-to/tmp/tmp687yrqd4/vlc-3.0.21-21.fc43.tar.xz
time-created2025-04-25 16:09:34
time-finished2025-04-25 16:23:08
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp687yrqd4/vlc-3.0.21-21.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp687yrqd4/vlc-3.0.21-21.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9