Task #1990 - vlc-3.0.20-12.fc40/scan-results.err
back to task #1990download
Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/bin/cachegen.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING (CWE-252): vlc-3.0.20-build/vlc-3.0.20/bin/rootwrap.c: scope_hint: In function ‘main’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/bin/rootwrap.c:251:5: warning[security.insecureAPI.UncheckedReturn]: The return value from the call to 'setuid' is not checked. If an error occurs in 'setuid', the following code may execute with unexpected privileges # 249| exit (1); # 250| } # 251|-> setuid (uid); # 252| # 253| if (!setuid (0)) /* sanity check: we cannot get root back */ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_aout.h:336:16: warning[-Wanalyzer-malloc-leak]: leak of ‘**aout.sys.sink_force’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_output/pulse.c: scope_hint: In function ‘StreamMove’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_output/pulse.c:30: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:78:13: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:87:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_output/pulse.c:673:9: note: in expansion of macro ‘msg_Dbg’ # 334| static inline void aout_DeviceReport(audio_output_t *aout, const char *id) # 335| { # 336|-> aout->event.device_report(aout, id); # 337| } # 338| Error: CPPCHECK_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/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: GCC_ANALYZER_WARNING (CWE-131): vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c: scope_hint: In function ‘ParseSDP’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:56:15: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:1449:21: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c: scope_hint: In function ‘ParseSDP’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:55:10: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:1449:21: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:1449:21: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:1449:21: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:1449:21: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:1449:21: note: in expansion of macro ‘TAB_APPEND’ # 54| do { \ # 55| if( (count) > 0 ) \ # 56|-> (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58| (tab) = cast malloc( sizeof( *(tab) ) ); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c: scope_hint: In function ‘RtspClientNew’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:56:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_media.rtsp’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:869:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:79:23: note: in definition of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:1282:5: note: in expansion of macro ‘msg_Dbg’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:87:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:1315:17: note: in expansion of macro ‘msg_Dbg’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:869:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:869:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:869:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:869:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:869:5: note: in expansion of macro ‘TAB_APPEND’ # 54| do { \ # 55| if( (count) > 0 ) \ # 56|-> (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58| (tab) = cast malloc( sizeof( *(tab) ) ); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c: scope_hint: In function ‘CommandThread’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:56:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.media’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:790:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:55:10: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:790:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:790:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:790:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:790:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:790:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:790:13: note: in expansion of macro ‘TAB_APPEND’ # 54| do { \ # 55| if( (count) > 0 ) \ # 56|-> (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58| (tab) = cast malloc( sizeof( *(tab) ) ); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c: scope_hint: In function ‘CreateAnnounce’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:56:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.pp_announces’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:911:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:911:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:911:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:911:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:911:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:911:5: note: in expansion of macro ‘TAB_APPEND’ # 54| do { \ # 55| if( (count) > 0 ) \ # 56|-> (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58| (tab) = cast malloc( sizeof( *(tab) ) ); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/autodel.c:32: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/autodel.c: scope_hint: In function ‘Add’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:56:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.pp_es’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/autodel.c:127:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/autodel.c:127:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/autodel.c:127:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/autodel.c:127:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/autodel.c:127:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/autodel.c:127:5: note: in expansion of macro ‘TAB_APPEND’ # 54| do { \ # 55| if( (count) > 0 ) \ # 56|-> (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58| (tab) = cast malloc( sizeof( *(tab) ) ); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:33: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c: scope_hint: In function ‘ParseUrls’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:56:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.pp_input’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:331:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1036: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:382:26: note: in expansion of macro ‘var_GetNonEmptyString’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:382:26: note: in expansion of macro ‘var_GetNonEmptyString’ /usr/include/sched.h:29: included_from: Included from here. /usr/include/pthread.h:22: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_threads.h:236: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:413: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:382:26: note: in expansion of macro ‘var_GetNonEmptyString’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:322:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:322:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:322:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:328:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:328:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:331:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:331:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:331:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:331:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:331:13: note: in expansion of macro ‘TAB_APPEND’ # 54| do { \ # 55| if( (count) > 0 ) \ # 56|-> (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58| (tab) = cast malloc( sizeof( *(tab) ) ); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:56:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.pp_items’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:403:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:396:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:396:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:60:11: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:396:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:403:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:403:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:403:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:403:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:403:13: note: in expansion of macro ‘TAB_APPEND’ # 54| do { \ # 55| if( (count) > 0 ) \ # 56|-> (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58| (tab) = cast malloc( sizeof( *(tab) ) ); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:56:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.seekpoint’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/flac.c:806:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/flac.c:677:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:60:11: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/flac.c:677:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:837:27: note: in definition of macro ‘GetQWBE’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:837:27: note: in definition of macro ‘GetQWBE’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/flac.c:806:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/flac.c:806:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/flac.c:806:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/flac.c:806:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/flac.c:806:13: note: in expansion of macro ‘TAB_APPEND’ # 54| do { \ # 55| if( (count) > 0 ) \ # 56|-> (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58| (tab) = cast malloc( sizeof( *(tab) ) ); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:56:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.titles’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1423:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1412:22: note: in expansion of macro ‘tt_srpt’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:55:10: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1423:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1423:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1423:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1423:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1423:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1423:9: note: in expansion of macro ‘TAB_APPEND’ # 54| do { \ # 55| if( (count) > 0 ) \ # 56|-> (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58| (tab) = cast malloc( sizeof( *(tab) ) ); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/demux/real.c:55: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/demux/real.c: scope_hint: In function ‘CodecVideoParse’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:56:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.track’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/real.c:1472:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:177:22: note: in definition of macro ‘VLC_FOURCC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/real.c:1472:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/real.c:1472:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/real.c:1472:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/real.c:1472:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/real.c:1472:5: note: in expansion of macro ‘TAB_APPEND’ # 54| do { \ # 55| if( (count) > 0 ) \ # 56|-> (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58| (tab) = cast malloc( sizeof( *(tab) ) ); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c:46: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c: scope_hint: In function ‘ReadDir’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:56:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*sys.dir_entries’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c:298:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c:298:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c:298:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c:298:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c:298:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c:298:9: note: in expansion of macro ‘TAB_APPEND’ # 54| do { \ # 55| if( (count) > 0 ) \ # 56|-> (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58| (tab) = cast malloc( sizeof( *(tab) ) ); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c: scope_hint: In function ‘PlaylistAddChild’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:56:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*sys.plist’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c:377:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c:377:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c:377:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c:377:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c:377:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c:377:5: note: in expansion of macro ‘TAB_APPEND’ # 54| do { \ # 55| if( (count) > 0 ) \ # 56|-> (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58| (tab) = cast malloc( sizeof( *(tab) ) ); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_vlm.h: scope_hint: In function ‘vlm_media_Copy’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:56:15: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_vlm.h:238:9: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_vlm.h: scope_hint: In function ‘vlm_media_Copy’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:55:10: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_vlm.h:238:9: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:60:21: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:60:21: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:55:10: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_vlm.h:238:9: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_vlm.h:238:9: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_vlm.h:238:9: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_vlm.h:238:9: note: in expansion of macro ‘TAB_APPEND_CAST’ # 54| do { \ # 55| if( (count) > 0 ) \ # 56|-> (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58| (tab) = cast malloc( sizeof( *(tab) ) ); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/lua/vlc.c: scope_hint: In function ‘vlclua_read_options’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:56:15: warning[-Wanalyzer-malloc-leak]: leak of ‘optv’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/vlc.c:445:17: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/vlc.h:43: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/vlc.c:445:17: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/vlc.c:445:17: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/vlc.c:445:17: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/vlc.c:445:17: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/vlc.c:445:17: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:60:11: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/vlc.c:445:17: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/vlc.c:445:17: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/vlc.c:445:17: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/vlc.c:445:17: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/vlc.c:445:17: note: in expansion of macro ‘TAB_APPEND’ # 54| do { \ # 55| if( (count) > 0 ) \ # 56|-> (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58| (tab) = cast malloc( sizeof( *(tab) ) ); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/lib/renderer_discoverer.c:30: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/lib/renderer_discoverer.c: scope_hint: In function ‘renderer_discovery_item_added’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:56:15: warning[-Wanalyzer-malloc-leak]: leak of ‘realloc(*p_lrd.pp_items, (long unsigned int)(*p_lrd.i_items + 1) * 8)’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/lib/renderer_discoverer.c:63:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/lib/renderer_discoverer.c:63:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/lib/renderer_discoverer.c:63:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/lib/renderer_discoverer.c:63:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/lib/renderer_discoverer.c:63:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/lib/renderer_discoverer.c:63:5: note: in expansion of macro ‘TAB_APPEND’ # 54| do { \ # 55| if( (count) > 0 ) \ # 56|-> (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58| (tab) = cast malloc( sizeof( *(tab) ) ); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c: scope_hint: In function ‘InitSocket’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:56:15: 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.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:1481:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:1481:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:1481:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:1481:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:1481:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:1481:5: note: in expansion of macro ‘TAB_APPEND’ # 54| do { \ # 55| if( (count) > 0 ) \ # 56|-> (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58| (tab) = cast malloc( sizeof( *(tab) ) ); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:58:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_media.rtsp’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:869:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:79:23: note: in definition of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:1282:5: note: in expansion of macro ‘msg_Dbg’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:87:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:1315:17: note: in expansion of macro ‘msg_Dbg’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:869:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:869:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:869:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:869:5: note: in expansion of macro ‘TAB_APPEND’ # 56| (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58|-> (tab) = cast malloc( sizeof( *(tab) ) ); \ # 59| if( !(tab) ) abort(); \ # 60| (tab)[count] = (p); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:58:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.media’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:790:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:790:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:790:13: note: in expansion of macro ‘TAB_APPEND’ # 56| (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58|-> (tab) = cast malloc( sizeof( *(tab) ) ); \ # 59| if( !(tab) ) abort(); \ # 60| (tab)[count] = (p); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:58:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.pp_announces’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:911:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:911:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:911:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:911:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:911:5: note: in expansion of macro ‘TAB_APPEND’ # 56| (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58|-> (tab) = cast malloc( sizeof( *(tab) ) ); \ # 59| if( !(tab) ) abort(); \ # 60| (tab)[count] = (p); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:58:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.pp_es’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/autodel.c:127:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/autodel.c:127:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/autodel.c:127:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/autodel.c:127:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/autodel.c:127:5: note: in expansion of macro ‘TAB_APPEND’ # 56| (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58|-> (tab) = cast malloc( sizeof( *(tab) ) ); \ # 59| if( !(tab) ) abort(); \ # 60| (tab)[count] = (p); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:58:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.pp_input’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:331:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:382:26: note: in expansion of macro ‘var_GetNonEmptyString’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:382:26: note: in expansion of macro ‘var_GetNonEmptyString’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:382:26: note: in expansion of macro ‘var_GetNonEmptyString’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:322:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:322:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:322:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:328:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:328:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:331:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:331:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:331:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:331:13: note: in expansion of macro ‘TAB_APPEND’ # 56| (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58|-> (tab) = cast malloc( sizeof( *(tab) ) ); \ # 59| if( !(tab) ) abort(); \ # 60| (tab)[count] = (p); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:58:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.pp_items’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:403:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:396:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:396:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:60:11: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:396:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:403:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:403:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:403:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:403:13: note: in expansion of macro ‘TAB_APPEND’ # 56| (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58|-> (tab) = cast malloc( sizeof( *(tab) ) ); \ # 59| if( !(tab) ) abort(); \ # 60| (tab)[count] = (p); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c: scope_hint: In function ‘ParseRequest’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:58:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.ppsz_urls’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:396:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:396:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:396:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:396:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:396:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:396:13: note: in expansion of macro ‘TAB_APPEND’ # 56| (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58|-> (tab) = cast malloc( sizeof( *(tab) ) ); \ # 59| if( !(tab) ) abort(); \ # 60| (tab)[count] = (p); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:58:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.seekpoint’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/flac.c:806:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/flac.c:677:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:60:11: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/flac.c:677:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:837:27: note: in definition of macro ‘GetQWBE’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:837:27: note: in definition of macro ‘GetQWBE’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/flac.c:806:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/flac.c:806:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/flac.c:806:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/flac.c:806:13: note: in expansion of macro ‘TAB_APPEND’ # 56| (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58|-> (tab) = cast malloc( sizeof( *(tab) ) ); \ # 59| if( !(tab) ) abort(); \ # 60| (tab)[count] = (p); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:58:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.titles’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1423:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1412:22: note: in expansion of macro ‘tt_srpt’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:55:10: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1423:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1423:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1423:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1423:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1423:9: note: in expansion of macro ‘TAB_APPEND’ # 56| (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58|-> (tab) = cast malloc( sizeof( *(tab) ) ); \ # 59| if( !(tab) ) abort(); \ # 60| (tab)[count] = (p); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:58:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.track’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/real.c:1472:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:177:22: note: in definition of macro ‘VLC_FOURCC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/real.c:1472:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/real.c:1472:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/real.c:1472:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/real.c:1472:5: note: in expansion of macro ‘TAB_APPEND’ # 56| (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58|-> (tab) = cast malloc( sizeof( *(tab) ) ); \ # 59| if( !(tab) ) abort(); \ # 60| (tab)[count] = (p); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:58:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*sys.dir_entries’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c:298:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c:298:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c:298:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c:298:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c:298:9: note: in expansion of macro ‘TAB_APPEND’ # 56| (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58|-> (tab) = cast malloc( sizeof( *(tab) ) ); \ # 59| if( !(tab) ) abort(); \ # 60| (tab)[count] = (p); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:58:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*sys.plist’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c:377:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c:377:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c:377:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c:377:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c:377:5: note: in expansion of macro ‘TAB_APPEND’ # 56| (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58|-> (tab) = cast malloc( sizeof( *(tab) ) ); \ # 59| if( !(tab) ) abort(); \ # 60| (tab)[count] = (p); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:58:15: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(4)’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:1481:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:1481:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:1481:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:1481:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:1481:5: note: in expansion of macro ‘TAB_APPEND’ # 56| (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58|-> (tab) = cast malloc( sizeof( *(tab) ) ); \ # 59| if( !(tab) ) abort(); \ # 60| (tab)[count] = (p); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:58:15: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(8)’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/lib/renderer_discoverer.c:63:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/lib/renderer_discoverer.c:63:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/lib/renderer_discoverer.c:63:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/lib/renderer_discoverer.c:63:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/lib/renderer_discoverer.c:63:5: note: in expansion of macro ‘TAB_APPEND’ # 56| (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 57| else \ # 58|-> (tab) = cast malloc( sizeof( *(tab) ) ); \ # 59| if( !(tab) ) abort(); \ # 60| (tab)[count] = (p); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/src/input/vlm.c: scope_hint: In function ‘vlm_ControlMediaGets’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:59:7: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/src/input/vlm.c:839:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_vlm.h: scope_hint: In function ‘vlm_ControlMediaGets’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/src/input/vlm.c:839:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/src/input/vlm.c:839:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/src/input/vlm.c:839:9: note: in expansion of macro ‘TAB_APPEND’ # 57| else \ # 58| (tab) = cast malloc( sizeof( *(tab) ) ); \ # 59|-> if( !(tab) ) abort(); \ # 60| (tab)[count] = (p); \ # 61| (count)++; \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:61:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1423:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1412:22: note: in expansion of macro ‘tt_srpt’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1420:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1420:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1420:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1420:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1420:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:60:11: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1420:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:55:10: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1423:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1423:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:60:11: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1423:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1423:9: note: in expansion of macro ‘TAB_APPEND’ # 59| if( !(tab) ) abort(); \ # 60| (tab)[count] = (p); \ # 61|-> (count)++; \ # 62| } while(0) # 63| Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:61:12: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(psz_request)’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:396:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:396:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:396:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:60:11: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:396:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:60:21: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:396:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:396:13: note: in expansion of macro ‘TAB_APPEND’ # 59| if( !(tab) ) abort(); \ # 60| (tab)[count] = (p); \ # 61|-> (count)++; \ # 62| } while(0) # 63| Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:61:12: warning[-Wanalyzer-malloc-leak]: leak of ‘vlc_input_title_New()’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1423:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1412:22: note: in expansion of macro ‘tt_srpt’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1420:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:60:11: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1420:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:55:10: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1423:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1423:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:60:11: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1423:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1423:9: note: in expansion of macro ‘TAB_APPEND’ # 59| if( !(tab) ) abort(); \ # 60| (tab)[count] = (p); \ # 61|-> (count)++; \ # 62| } while(0) # 63| Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/stream_output/stream_output.c:36: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:101:65: warning[-Wanalyzer-malloc-leak]: leak of ‘vlc_seekpoint_New()’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:114:5: note: in expansion of macro ‘TAB_INSERT_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:887:13: note: in expansion of macro ‘TAB_INSERT’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:820:33: note: in expansion of macro ‘_’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:114:5: note: in expansion of macro ‘TAB_INSERT_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:887:13: note: in expansion of macro ‘TAB_INSERT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:114:5: note: in expansion of macro ‘TAB_INSERT_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:887:13: note: in expansion of macro ‘TAB_INSERT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:114:5: note: in expansion of macro ‘TAB_INSERT_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:887:13: note: in expansion of macro ‘TAB_INSERT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:114:5: note: in expansion of macro ‘TAB_INSERT_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:887:13: note: in expansion of macro ‘TAB_INSERT’ # 99| #define TAB_INSERT_CAST( cast, count, tab, p, index ) do { \ # 100| if( (count) > 0 ) \ # 101|-> (tab) = cast realloc( tab, sizeof( *(tab) ) * ( (count) + 1 ) ); \ # 102| else \ # 103| (tab) = cast malloc( sizeof( *(tab) ) ); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:104:7: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:114:5: note: in expansion of macro ‘TAB_INSERT_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:887:13: note: in expansion of macro ‘TAB_INSERT’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:820:33: note: in expansion of macro ‘_’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:114:5: note: in expansion of macro ‘TAB_INSERT_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:887:13: note: in expansion of macro ‘TAB_INSERT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:114:5: note: in expansion of macro ‘TAB_INSERT_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:887:13: note: in expansion of macro ‘TAB_INSERT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:114:5: note: in expansion of macro ‘TAB_INSERT_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:887:13: note: in expansion of macro ‘TAB_INSERT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:114:5: note: in expansion of macro ‘TAB_INSERT_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:887:13: note: in expansion of macro ‘TAB_INSERT’ # 102| else \ # 103| (tab) = cast malloc( sizeof( *(tab) ) ); \ # 104|-> if( !(tab) ) abort(); \ # 105| if( (count) - (index) > 0 ) \ # 106| memmove( (tab) + (index) + 1, \ Error: GCC_ANALYZER_WARNING: vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/playlist/thread.c:30: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/playlist/thread.c: scope_hint: In function ‘ResetCurrentlyPlaying’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:151:23: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:160:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/playlist/thread.c:166:9: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/playlist/thread.c:166:9: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/playlist/thread.c:166:9: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/playlist/thread.c:166:9: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/playlist/thread.c:166:9: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:150:23: note: in definition of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/playlist/thread.c:166:9: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:160:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/playlist/thread.c:166:9: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:151:23: note: only use operands of an integer type inside the size argument vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:160:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/playlist/thread.c:166:9: note: in expansion of macro ‘ARRAY_APPEND’ # 149| #define _ARRAY_ALLOC(array, newsize) { \ # 150| (array).i_alloc = newsize; \ # 151|-> (array).p_elems = realloc( (array).p_elems, (array).i_alloc * \ # 152| sizeof(*(array).p_elems) ); \ # 153| if( !(array).p_elems ) abort(); \ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/ts_psip.c:23: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/ts_psip.c: scope_hint: In function ‘ATSC_MGT_Callback’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:153:7: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_mgtpsip.eit.p_elems’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:158:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/ts_psip.c:741:17: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/ts_psip.c:46: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/ts_psip.c:734:29: note: in expansion of macro ‘GetPID’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/ts_psip.c:741:17: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:158:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/ts_psip.c:741:17: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:158:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/ts_psip.c:741:17: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:158:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/ts_psip.c:741:17: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:158:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/ts_psip.c:741:17: note: in expansion of macro ‘ARRAY_APPEND’ # 151| (array).p_elems = realloc( (array).p_elems, (array).i_alloc * \ # 152| sizeof(*(array).p_elems) ); \ # 153|-> if( !(array).p_elems ) abort(); \ # 154| } # 155| Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/access/bluray.c: scope_hint: In function ‘blurayHandleEvent’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:153:7: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.events_delayed.p_elems’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:158:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/modules/access/bluray.c:2849:14: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/modules/access/bluray.c:2849:14: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/modules/access/bluray.c:2849:14: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:158:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/modules/access/bluray.c:2849:14: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:158:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/modules/access/bluray.c:2849:14: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:158:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/modules/access/bluray.c:2849:14: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:158:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/modules/access/bluray.c:2849:14: note: in expansion of macro ‘ARRAY_APPEND’ # 151| (array).p_elems = realloc( (array).p_elems, (array).i_alloc * \ # 152| sizeof(*(array).p_elems) ); \ # 153|-> if( !(array).p_elems ) abort(); \ # 154| } # 155| Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:153:7: 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.20-build/vlc-3.0.20/include/vlc_arrays.h:160:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:488:5: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:78:13: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:87:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:485:5: note: in expansion of macro ‘msg_Dbg’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:488:5: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:488:5: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:488:5: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:150:23: note: in definition of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:488:5: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:160:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:488:5: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:160:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:488:5: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:160:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:488:5: note: in expansion of macro ‘ARRAY_APPEND’ # 151| (array).p_elems = realloc( (array).p_elems, (array).i_alloc * \ # 152| sizeof(*(array).p_elems) ); \ # 153|-> if( !(array).p_elems ) abort(); \ # 154| } # 155| Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c: scope_hint: In function ‘ImportNextFile’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:153:7: warning[-Wanalyzer-malloc-leak]: leak of ‘realloc(*p_sys.file_sizes.p_elems, 80)’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:158:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:488:5: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:49: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:78:13: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:87:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:485:5: note: in expansion of macro ‘msg_Dbg’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:488:5: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:158:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:488:5: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:158:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:488:5: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:158:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:488:5: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:158:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:488:5: note: in expansion of macro ‘ARRAY_APPEND’ # 151| (array).p_elems = realloc( (array).p_elems, (array).i_alloc * \ # 152| sizeof(*(array).p_elems) ); \ # 153|-> if( !(array).p_elems ) abort(); \ # 154| } # 155| Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/misc/addons/fsstorage.c:29: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/misc/addons/fsstorage.c: scope_hint: In function ‘FileBelongsToManagedAddon’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/include/vlc_arrays.h:229:9: note: shadowed declaration is here # 229 | int fe_idx; \ # | ^~~~~~ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/access/bluray.c:43: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h: scope_hint: In function ‘vlc_array_append’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:325:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ # 323| # 324| pp[ar->i_count++] = elem; # 325|-> ar->pp_elems = pp; # 326| return 0; # 327| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/playlist/fetcher.c:26: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:379:19: warning[core.DivideZero]: Division by zero # 377| } # 378| } # 379|-> return i_hash % hashsize; # 380| } # 381| Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h: scope_hint: In function ‘vlc_dictionary_init’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:399:23: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h: scope_hint: In function ‘vlc_dictionary_init’ # 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: CPPCHECK_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/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: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/playlist/fetcher.c:26: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h: scope_hint: In function ‘vlc_dictionary_insert_impl_’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:532:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_entry’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h: scope_hint: In function ‘vlc_dictionary_insert_impl_’ # 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): vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:566:1: warning[-Wanalyzer-malloc-leak]: leak of ‘**p_filter.p_sys.fallback_map.p_entries’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h: scope_hint: In function ‘vlc_dictionary_insert_impl_’ # 564| } # 565| } # 566|-> } # 567| # 568| static inline void Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:566:1: warning[-Wanalyzer-malloc-leak]: leak of ‘p_entry’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h: scope_hint: In function ‘vlc_dictionary_insert_impl_’ # 564| } # 565| } # 566|-> } # 567| # 568| static inline void Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/mlp.c:35: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_bits.h:118:33: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>>' is a garbage value # 116| { # 117| /* more in the buffer than requested */ # 118|-> i_result |= ( *s->p >> i_shr )&i_mask[i_count]; # 119| s->i_left -= i_count; # 120| if( s->i_left == 0 ) Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/mux/mp4/libmp4mux.c:29: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/hevc_nal.h:24: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_bits.h:153:28: warning[core.BitwiseShift]: Right operand is negative in right shift # 151| # 152| s->i_left--; # 153|-> i_result = ( *s->p >> s->i_left )&0x01; # 154| if( s->i_left == 0 ) # 155| { Error: GCC_ANALYZER_WARNING (CWE-457): vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/av1_obu.c:25: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_bits.h: scope_hint: In function ‘bs_write.part.0’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_bits.h:202:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*s_1(D)->p’ vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/av1_obu.c: scope_hint: In function ‘bs_write.part.0’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_bits.h: scope_hint: In function ‘bs_write.part.0’ # 200| if( ( i_bits >> i_count )&0x01 ) # 201| { # 202|-> *s->p |= 1 << ( s->i_left - 1 ); # 203| } # 204| else Error: COMPILER_WARNING (CWE-457): vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/av1_obu.c:25: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_bits.h:202:19: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage # 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): vlc-3.0.20-build/vlc-3.0.20/include/vlc_bits.h:206:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*s_1(D)->p’ vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/av1_obu.c: scope_hint: In function ‘bs_write.part.0’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_bits.h: scope_hint: In function ‘bs_write.part.0’ vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/av1_obu.c: scope_hint: In function ‘bs_write.part.0’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_bits.h: scope_hint: In function ‘bs_write.part.0’ # 204| else # 205| { # 206|-> *s->p &= ~( 1 << ( s->i_left - 1 ) ); # 207| } # 208| s->i_left--; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/stats.c:33: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_block.h:184:5: warning[core.NullDereference]: Access to field 'pf_release' results in a dereference of a null pointer (loaded from variable 'block') # 182| static inline void block_Release(block_t *block) # 183| { # 184|-> block->pf_release(block); # 185| } # 186| Error: GCC_ANALYZER_WARNING (CWE-416): vlc-3.0.20-build/vlc-3.0.20/include/vlc_block.h:184:10: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘block’ vlc-3.0.20-build/vlc-3.0.20/src/misc/block.c: scope_hint: In function ‘block_Cleanup’ vlc-3.0.20-build/vlc-3.0.20/src/misc/block.c:28: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/misc/block.c: scope_hint: In function ‘block_Cleanup’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_threads.h:236: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:413: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/misc/block.c:34: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/misc/block.c: scope_hint: In function ‘block_Cleanup’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_block.h:295:37: note: in expansion of macro ‘vlc_cleanup_push’ vlc-3.0.20-build/vlc-3.0.20/src/misc/block.c:418:5: note: in expansion of macro ‘block_cleanup_push’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_block.h: scope_hint: In function ‘block_Cleanup’ # 182| static inline void block_Release(block_t *block) # 183| { # 184|-> block->pf_release(block); # 185| } # 186| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/pva.c:34: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_demux.h:31: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_stream.h:27: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_block.h:396:9: warning[core.NullDereference]: Access to field 'p_next' results in a dereference of a null pointer (loaded from variable 'p_list') # 394| block_t *g; # 395| # 396|-> if( p_list->p_next == NULL ) # 397| return p_list; /* Already gathered */ # 398| Error: GCC_ANALYZER_WARNING (CWE-688): vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/dirac.c:74: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_block_helper.h: scope_hint: In function ‘block_PeekOffsetBytes’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_block_helper.h:264:13: warning[-Wanalyzer-null-argument]: use of NULL ‘p_data’ where non-null expected vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/dirac.c:68: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:496:36: note: in definition of macro ‘__MIN’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:496:36: note: in definition of macro ‘__MIN’ <built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null # 262| if( i_copy ) # 263| { # 264|-> memcpy( p_data, p_block->p_buffer + i_offset, i_copy ); # 265| p_data += i_copy; # 266| } Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/flac.c:36: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_block_helper.h: scope_hint: In function ‘block_FindStartcodeFromOffset’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_block_helper.h:308:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p_block’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/access/http.c:43: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_charset.h: scope_hint: In function ‘EnsureUTF8’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_charset.h:105:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘str’ vlc-3.0.20-build/vlc-3.0.20/modules/access/http.c:36: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_charset.h:101:13: note: in expansion of macro ‘likely’ # 103| else # 104| { # 105|-> *str++ = '?'; # 106| ret = NULL; # 107| } Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/src/input/control.c:28: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_input.h: scope_hint: In function ‘input_vaControl’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:113:41: warning[-Wanalyzer-malloc-leak]: leak of ‘vlc_seekpoint_Duplicate(p_bkmk)’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_input.h:75:9: note: in expansion of macro ‘likely’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_renderer_discovery.h:24: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/input/control.c:30: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:55:10: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/src/input/control.c:210:17: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/src/input/control.c:210:17: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/src/input/control.c:210:17: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/src/input/control.c:210:17: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_input.h:75:9: note: in expansion of macro ‘likely’ # 111| /* Branch prediction */ # 112| #ifdef __GNUC__ # 113|-> # define likely(p) __builtin_expect(!!(p), 1) # 114| # define unlikely(p) __builtin_expect(!!(p), 0) # 115| # define unreachable() __builtin_unreachable() Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/vhs.c:32: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/vhs.c: scope_hint: In function ‘vhs_blue_red_line_effect’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:24: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 16)’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/vhs.c:274:22: note: in expansion of macro ‘unlikely’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:44: note: in definition of macro ‘unlikely’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/vhs.c:274:22: note: in expansion of macro ‘unlikely’ # 112| #ifdef __GNUC__ # 113| # define likely(p) __builtin_expect(!!(p), 1) # 114|-> # define unlikely(p) __builtin_expect(!!(p), 0) # 115| # define unreachable() __builtin_unreachable() # 116| #else Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/misc/gnutls.c: scope_hint: In function ‘gnutls_ServerSessionOpen’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:41: warning[-Wanalyzer-malloc-leak]: leak of ‘gnutls_SessionOpen(crd, 1, *sys.x509_cred, sk, alpn)’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/gnutls.c:226:9: note: in expansion of macro ‘unlikely’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_variables.h:642:51: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/gnutls.c:247:24: note: in expansion of macro ‘var_InheritString’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/gnutls.c:247:24: note: in expansion of macro ‘var_InheritString’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/gnutls.c:247:24: note: in expansion of macro ‘var_InheritString’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/gnutls.c:226:9: note: in expansion of macro ‘unlikely’ # 112| #ifdef __GNUC__ # 113| # define likely(p) __builtin_expect(!!(p), 1) # 114|-> # define unlikely(p) __builtin_expect(!!(p), 0) # 115| # define unreachable() __builtin_unreachable() # 116| #else Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/misc/gnutls.c:36: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/misc/gnutls.c: scope_hint: In function ‘gnutls_ClientSessionOpen’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:41: warning[-Wanalyzer-malloc-leak]: leak of ‘gnutls_SessionOpen(crd, 2, *crd.sys, sk, alpn)’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/gnutls.c:226:9: note: in expansion of macro ‘unlikely’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_variables.h:642:51: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/gnutls.c:247:24: note: in expansion of macro ‘var_InheritString’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1036: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/misc/gnutls.c:247:24: note: in expansion of macro ‘var_InheritString’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/gnutls.c:247:24: note: in expansion of macro ‘var_InheritString’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/gnutls.c:226:9: note: in expansion of macro ‘unlikely’ # 112| #ifdef __GNUC__ # 113| # define likely(p) __builtin_expect(!!(p), 1) # 114|-> # define unlikely(p) __builtin_expect(!!(p), 0) # 115| # define unreachable() __builtin_unreachable() # 116| #else Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/src/playlist/item.c:34: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/playlist/item.c: scope_hint: In function ‘playlist_NodeAddInput’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:41: warning[-Wanalyzer-malloc-leak]: leak of ‘playlist_ItemNewFromInput(p_playlist, p_input)’ vlc-3.0.20-build/vlc-3.0.20/src/playlist/item.c:264:9: note: in expansion of macro ‘unlikely’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/playlist/item.c:537:9: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/playlist/item.c:537:9: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:158:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/playlist/item.c:537:9: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:158:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/playlist/item.c:537:9: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/src/playlist/item.c:264:9: note: in expansion of macro ‘unlikely’ # 112| #ifdef __GNUC__ # 113| # define likely(p) __builtin_expect(!!(p), 1) # 114|-> # define unlikely(p) __builtin_expect(!!(p), 0) # 115| # define unreachable() __builtin_unreachable() # 116| #else Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/demux/avformat/demux.c:33: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:41: 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.20-build/vlc-3.0.20/include/vlc_input.h:186:9: note: in expansion of macro ‘unlikely’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/avformat/demux.c:37: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:55:10: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/avformat/demux.c:552:29: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_input.h:186:9: note: in expansion of macro ‘unlikely’ # 112| #ifdef __GNUC__ # 113| # define likely(p) __builtin_expect(!!(p), 1) # 114|-> # define unlikely(p) __builtin_expect(!!(p), 0) # 115| # define unreachable() __builtin_unreachable() # 116| #else Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/control/dbus/dbus.c: scope_hint: In function ‘AllCallback’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:360:28: warning[-Wanalyzer-malloc-leak]: leak of ‘p_info’ vlc-3.0.20-build/vlc-3.0.20/modules/control/dbus/dbus.c:1136:16: note: in expansion of macro ‘VLC_SUCCESS’ vlc-3.0.20-build/vlc-3.0.20/modules/control/dbus/dbus.c:1136:16: note: in expansion of macro ‘VLC_SUCCESS’ # 358| * Error values (shouldn't be exposed) # 359| *****************************************************************************/ # 360|-> #define VLC_SUCCESS (-0) /**< No error */ # 361| #define VLC_EGENERIC (-1) /**< Unspecified error */ # 362| #define VLC_ENOMEM (-2) /**< Not enough memory */ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/src/input/services_discovery.c:28: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/input/services_discovery.c: scope_hint: In function ‘vlc_sd_probe_Add’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:362:28: warning[-Wanalyzer-malloc-leak]: leak of ‘names.longname’ vlc-3.0.20-build/vlc-3.0.20/src/input/services_discovery.c:51:16: note: in expansion of macro ‘VLC_ENOMEM’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:44: note: in definition of macro ‘unlikely’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:44: note: in definition of macro ‘unlikely’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:44: note: in definition of macro ‘unlikely’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_services_discovery.h:28: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/input/services_discovery.c:29: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:44: note: in definition of macro ‘unlikely’ vlc-3.0.20-build/vlc-3.0.20/src/input/services_discovery.c:51:16: note: in expansion of macro ‘VLC_ENOMEM’ vlc-3.0.20-build/vlc-3.0.20/src/input/services_discovery.c:51:16: note: in expansion of macro ‘VLC_ENOMEM’ # 360| #define VLC_SUCCESS (-0) /**< No error */ # 361| #define VLC_EGENERIC (-1) /**< Unspecified error */ # 362|-> #define VLC_ENOMEM (-2) /**< Not enough memory */ # 363| #define VLC_ETIMEOUT (-3) /**< Timeout */ # 364| #define VLC_ENOMOD (-4) /**< Module not found */ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:362:28: warning[-Wanalyzer-malloc-leak]: leak of ‘names.name’ vlc-3.0.20-build/vlc-3.0.20/src/input/services_discovery.c:51:16: note: in expansion of macro ‘VLC_ENOMEM’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:44: note: in definition of macro ‘unlikely’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:44: note: in definition of macro ‘unlikely’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:44: note: in definition of macro ‘unlikely’ vlc-3.0.20-build/vlc-3.0.20/src/input/services_discovery.c:51:16: note: in expansion of macro ‘VLC_ENOMEM’ vlc-3.0.20-build/vlc-3.0.20/src/input/services_discovery.c:51:16: note: in expansion of macro ‘VLC_ENOMEM’ # 360| #define VLC_SUCCESS (-0) /**< No error */ # 361| #define VLC_EGENERIC (-1) /**< Unspecified error */ # 362|-> #define VLC_ENOMEM (-2) /**< Not enough memory */ # 363| #define VLC_ETIMEOUT (-3) /**< Timeout */ # 364| #define VLC_ENOMOD (-4) /**< Module not found */ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:362:28: warning[-Wanalyzer-malloc-leak]: leak of ‘names.psz_longname’ vlc-3.0.20-build/vlc-3.0.20/src/misc/renderer_discovery.c:195:16: note: in expansion of macro ‘VLC_ENOMEM’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:44: note: in definition of macro ‘unlikely’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:44: note: in definition of macro ‘unlikely’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:44: note: in definition of macro ‘unlikely’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:44: note: in definition of macro ‘unlikely’ vlc-3.0.20-build/vlc-3.0.20/src/misc/renderer_discovery.c:195:16: note: in expansion of macro ‘VLC_ENOMEM’ vlc-3.0.20-build/vlc-3.0.20/src/misc/renderer_discovery.c:195:16: note: in expansion of macro ‘VLC_ENOMEM’ # 360| #define VLC_SUCCESS (-0) /**< No error */ # 361| #define VLC_EGENERIC (-1) /**< Unspecified error */ # 362|-> #define VLC_ENOMEM (-2) /**< Not enough memory */ # 363| #define VLC_ETIMEOUT (-3) /**< Timeout */ # 364| #define VLC_ENOMOD (-4) /**< Module not found */ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/src/misc/renderer_discovery.c:27: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/misc/renderer_discovery.c: scope_hint: In function ‘vlc_rd_probe_add’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:362:28: warning[-Wanalyzer-malloc-leak]: leak of ‘names.psz_name’ vlc-3.0.20-build/vlc-3.0.20/src/misc/renderer_discovery.c:195:16: note: in expansion of macro ‘VLC_ENOMEM’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:44: note: in definition of macro ‘unlikely’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:44: note: in definition of macro ‘unlikely’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_renderer_discovery.h:25: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/misc/renderer_discovery.c:29: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:44: note: in definition of macro ‘unlikely’ vlc-3.0.20-build/vlc-3.0.20/src/misc/renderer_discovery.c:195:16: note: in expansion of macro ‘VLC_ENOMEM’ vlc-3.0.20-build/vlc-3.0.20/src/misc/renderer_discovery.c:195:16: note: in expansion of macro ‘VLC_ENOMEM’ # 360| #define VLC_SUCCESS (-0) /**< No error */ # 361| #define VLC_EGENERIC (-1) /**< Unspecified error */ # 362|-> #define VLC_ENOMEM (-2) /**< Not enough memory */ # 363| #define VLC_ETIMEOUT (-3) /**< Timeout */ # 364| #define VLC_ENOMOD (-4) /**< Module not found */ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/access/dc1394.c:35: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/access/dc1394.c: scope_hint: In function ‘process_options’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:480:53: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.video_device’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:78:13: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:87:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dc1394.c:709:13: note: in expansion of macro ‘msg_Dbg’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:78:13: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:87:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dc1394.c:709:13: note: in expansion of macro ‘msg_Dbg’ # 478| # define VLC_OBJECT(x) \ # 479| _Generic((x)->obj, \ # 480|-> struct vlc_common_members: (vlc_object_t *)(&(x)->obj), \ # 481| const struct vlc_common_members: (const vlc_object_t *)(&(x)->obj) \ # 482| ) Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/audio.c:34: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:481:22: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 481 | const struct vlc_common_members: (const vlc_object_t *)(&(x)->obj) \ # | ^~~~~~~~~~~~~~~~~~ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:78:13: note: in expansion of macro ‘VLC_OBJECT’ # 78 | vlc_Log(VLC_OBJECT(o), p, vlc_module_name, __FILE__, __LINE__, \ # | ^~~~~~~~~~ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:85:5: note: in expansion of macro ‘msg_Generic’ # 85 | msg_Generic(p_this, VLC_MSG_WARN, __VA_ARGS__) # | ^~~~~~~~~~~ vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/audio.c:402:17: note: in expansion of macro ‘msg_Warn’ # 402 | msg_Warn( p_dec, "invalid audio properties channels count %d, sample rate %d", # | ^~~~~~~~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 479| _Generic((x)->obj, \ # 480| struct vlc_common_members: (vlc_object_t *)(&(x)->obj), \ # 481|-> const struct vlc_common_members: (const vlc_object_t *)(&(x)->obj) \ # 482| ) # 483| #else Error: COMPILER_WARNING (CWE-195): vlc-3.0.20-build/vlc-3.0.20/modules/demux/avi/avi.c:35: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/demux/avi/avi.c: scope_hint: In function ‘Seek’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:41: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c: scope_hint: In function ‘DemuxTitles’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:493:46: warning[-Wanalyzer-malloc-leak]: leak of ‘vlc_input_title_New()’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1417:25: note: in expansion of macro ‘__MAX’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1412:22: note: in expansion of macro ‘tt_srpt’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:43: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:55:10: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1423:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1417:25: note: in expansion of macro ‘__MAX’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/access/srt_common.h:30: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/access_output/srt.c: scope_hint: In function ‘Write’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c: scope_hint: In function ‘vorbis_ParseComment’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c: scope_hint: In function ‘vorbis_ParseComment’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:366:5: note: in expansion of macro ‘RM’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c: scope_hint: In function ‘vorbis_ParseComment’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c: scope_hint: In function ‘vorbis_ParseComment’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:32: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_charset.h:101:13: note: in expansion of macro ‘likely’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:444:9: note: in expansion of macro ‘IF_EXTRACT’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:445:14: note: in expansion of macro ‘IF_EXTRACT’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:445:14: note: in expansion of macro ‘IF_EXTRACT’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:446:14: note: in expansion of macro ‘IF_EXTRACT’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:446:14: note: in expansion of macro ‘IF_EXTRACT’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:447:14: note: in expansion of macro ‘IF_EXTRACT’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:447:14: note: in expansion of macro ‘IF_EXTRACT’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:448:14: note: in expansion of macro ‘IF_EXTRACT’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:448:14: note: in expansion of macro ‘IF_EXTRACT’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:469:14: note: in expansion of macro ‘IF_EXTRACT_ONCE’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:471:14: note: in expansion of macro ‘IF_EXTRACT’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:472:14: note: in expansion of macro ‘IF_EXTRACT’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:472:14: note: in expansion of macro ‘IF_EXTRACT’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:473:14: note: in expansion of macro ‘IF_EXTRACT’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:473:14: note: in expansion of macro ‘IF_EXTRACT’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:474:14: note: in expansion of macro ‘IF_EXTRACT’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:474:14: note: in expansion of macro ‘IF_EXTRACT’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:475:14: note: in expansion of macro ‘IF_EXTRACT’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:475:14: note: in expansion of macro ‘IF_EXTRACT’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:476:14: note: in expansion of macro ‘IF_EXTRACT_FMT’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:476:14: note: in expansion of macro ‘IF_EXTRACT_FMT’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:477:14: note: in expansion of macro ‘IF_EXTRACT’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:477:14: note: in expansion of macro ‘IF_EXTRACT’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:478:14: note: in expansion of macro ‘IF_EXTRACT’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:478:14: note: in expansion of macro ‘IF_EXTRACT’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:77:12: note: in expansion of macro ‘GetDWBE’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c: scope_hint: In function ‘vorbis_ParseComment’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:88:5: note: in expansion of macro ‘RM’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:96:11: note: in expansion of macro ‘GetDWBE’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c: scope_hint: In function ‘vorbis_ParseComment’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:109:5: note: in expansion of macro ‘RM’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:118:11: note: in expansion of macro ‘GetDWBE’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c: scope_hint: In function ‘vorbis_ParseComment’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:35: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:44: note: in definition of macro ‘unlikely’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:55:10: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:491:17: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:491:17: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:77:12: note: in expansion of macro ‘GetDWBE’ # 819| uint32_t x; # 820| # 821|-> memcpy (&x, p, sizeof (x)); # 822| return ntoh32 (x); # 823| } Error: GCC_ANALYZER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gaussianblur.c:32: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h: scope_hint: In function ‘xmalloc’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:994:17: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:994:17: note: only use operands of an integer type inside the size argument # 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): vlc-3.0.20-build/vlc-3.0.20/src/network/httpd.c:30: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h: scope_hint: In function ‘httpdLoop’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:995:22: warning[-Wanalyzer-malloc-leak]: leak of ‘httpd_ClientNew(sk)’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:44: note: in definition of macro ‘unlikely’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/src/network/httpd.c:2044:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/src/network/httpd.c:2044:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/src/network/httpd.c:2044:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:44: note: in definition of macro ‘unlikely’ # 993| { # 994| void *ptr = malloc(len); # 995|-> if (unlikely(ptr == NULL && len > 0)) # 996| abort(); # 997| return ptr; Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/demux/flac.c:32: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h: scope_hint: In function ‘ParseHeaders’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:995:22: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(16)’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:44: note: in definition of macro ‘unlikely’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/flac.c:677:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/flac.c:677:5: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:44: note: in definition of macro ‘unlikely’ # 993| { # 994| void *ptr = malloc(len); # 995|-> if (unlikely(ptr == NULL && len > 0)) # 996| abort(); # 997| return ptr; Error: GCC_ANALYZER_WARNING (CWE-415): vlc-3.0.20-build/vlc-3.0.20/modules/audio_output/alsa.c:33: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h: scope_hint: In function ‘xrealloc’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1002:18: warning[-Wanalyzer-double-free]: double-‘free’ of ‘ptr’ # 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: CPPCHECK_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/misc/keystore.c:27: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_keystore.h:286:14: warning[core.NullDereference]: Array access (via field 'ppsz_values') results in a null pointer dereference # 284| for (unsigned int j = 0; j < KEY_MAX; ++j) # 285| { # 286|-> free(p_entry->ppsz_values[j]); # 287| p_entry->ppsz_values[j] = NULL; # 288| } Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1034: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/codec/speex.c:31: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/codec/speex.c: scope_hint: In function ‘DecodePacket’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1035: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/extended_panels.hpp:32: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/extended_panels.cpp:48: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/extended_panels.cpp: scope_hint: In member function ‘void ExtV4l2::Refresh()’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/record.c:37: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_sout.h:233:5: warning[core.NullDereference]: Access to field 'pf_del' results in a dereference of a null pointer (loaded from variable 's') # 231| sout_stream_id_sys_t *id ) # 232| { # 233|-> s->pf_del( s, id ); # 234| } # 235| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/include/vlc_sout.h:239:12: warning[core.NullDereference]: Access to field 'pf_send' results in a dereference of a null pointer (loaded from variable 's') # 237| sout_stream_id_sys_t *id, block_t *b ) # 238| { # 239|-> return s->pf_send( s, id, b ); # 240| } # 241| Error: GCC_ANALYZER_WARNING (CWE-688): vlc-3.0.20-build/vlc-3.0.20/modules/lua/vlc.h:38: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/stream.c:41: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/stream.c: scope_hint: In function ‘vlclua_memory_stream_new’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_stream.h:396:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘psz_content’ where non-null expected vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/stream.c:103:26: note: in expansion of macro ‘vlc_stream_MemoryNew’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/stream.c:103:26: note: in expansion of macro ‘vlc_stream_MemoryNew’ <built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null # 394| size_t size, bool preserve) VLC_USED; # 395| #define vlc_stream_MemoryNew(a, b, c, d) \ # 396|-> vlc_stream_MemoryNew(VLC_OBJECT(a), b, c, d) # 397| # 398| /** Error: COMPILER_WARNING (CWE-9001): vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:413: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/audio_output/pulse.c:30: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/audio_output/pulse.c: scope_hint: In function ‘Flush’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/control/hotkeys.c: scope_hint: In function ‘PutAction.isra.0’ vlc-3.0.20-build/vlc-3.0.20/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-401): vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1036: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:57: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_variables.h: scope_hint: In function ‘ImportMarks’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_variables.h:613:15: warning[-Wanalyzer-malloc-leak]: leak of ‘vlc_input_title_New()’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:60: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/config.h:984: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:45: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:820:33: note: in expansion of macro ‘_’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c: scope_hint: In function ‘ImportMarks’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:870:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:870:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:870:9: note: in expansion of macro ‘TAB_APPEND’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/lib/audio.c:336:9: warning[deadcode.DeadStores]: Value stored to 'mute' is never read # 334| if( aout != NULL ) # 335| { # 336|-> mute = aout_MuteSet( aout, mute ); # 337| vlc_object_release( aout ); # 338| } Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/lib/media.c: scope_hint: In function ‘media_get_subitems’ vlc-3.0.20-build/vlc-3.0.20/lib/media.c:132:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p_md’ # 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): vlc-3.0.20-build/vlc-3.0.20/lib/media.c: scope_hint: In function ‘libvlc_media_slaves_release’ vlc-3.0.20-build/vlc-3.0.20/lib/media.c:1286:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ # 1284| free( pp_slaves[i] ); # 1285| } # 1286|-> free( pp_slaves ); # 1287| } Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/lib/media_discoverer.c: scope_hint: In function ‘libvlc_media_discoverer_list_get’ vlc-3.0.20-build/vlc-3.0.20/lib/media_discoverer.c:351:16: warning[-Wanalyzer-malloc-leak]: leak of ‘p_services’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:480:55: note: in definition of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/lib/media_discoverer.c:357:18: note: in expansion of macro ‘vlc_sd_GetNames’ # 349| vlc_assert_unreachable(); # 350| *ppp_services = NULL; # 351|-> return 0; # 352| } # 353| Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/lib/media_list.c: scope_hint: In function ‘libvlc_media_list_add_file_content’ vlc-3.0.20-build/vlc-3.0.20/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: GCC_ANALYZER_WARNING (CWE-688): vlc-3.0.20-build/vlc-3.0.20/lib/media_list_player.c:42: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/lib/media_list_path.h: scope_hint: In function ‘libvlc_media_list_path_copy_by_appending’ vlc-3.0.20-build/vlc-3.0.20/lib/media_list_path.h:96:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xmalloc((long unsigned int)(i + 2) * 4)’ where non-null expected vlc-3.0.20-build/vlc-3.0.20/lib/media_list_path.h: scope_hint: In function ‘libvlc_media_list_path_copy_by_appending’ vlc-3.0.20-build/vlc-3.0.20/lib/libvlc_internal.h:37: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/lib/media_list_player.c:39: included_from: Included from here. <built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null # 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-457): vlc-3.0.20-build/vlc-3.0.20/lib/media_list_path.h:96:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘path’ vlc-3.0.20-build/vlc-3.0.20/lib/media_list_path.h: scope_hint: In function ‘libvlc_media_list_path_copy_by_appending’ vlc-3.0.20-build/vlc-3.0.20/lib/media_list_path.h: scope_hint: In function ‘libvlc_media_list_path_copy_by_appending’ # 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-688): vlc-3.0.20-build/vlc-3.0.20/lib/media_list_path.h: scope_hint: In function ‘libvlc_media_list_path_copy’ vlc-3.0.20-build/vlc-3.0.20/lib/media_list_path.h:110:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xmalloc((long unsigned int)(i + 1) * 4)’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null # 108| int depth = libvlc_media_list_path_depth( path ); # 109| ret = xmalloc( sizeof(int)*(depth+1) ); # 110|-> memcpy( ret, path, sizeof(int)*(depth+1) ); # 111| return ret; # 112| } Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/lib/media_list_player.c: scope_hint: In function ‘set_relative_playlist_position_and_play’ vlc-3.0.20-build/vlc-3.0.20/lib/media_list_player.c:786:16: warning[-Wanalyzer-malloc-leak]: leak of ‘path’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h: scope_hint: In function ‘set_relative_playlist_position_and_play’ vlc-3.0.20-build/vlc-3.0.20/lib/media_list_player.c: scope_hint: In function ‘set_relative_playlist_position_and_play’ # 784| { # 785| libvlc_printerr("No media list"); # 786|-> return -1; # 787| } # 788| Error: COMPILER_WARNING (CWE-457): vlc-3.0.20-build/vlc-3.0.20/lib/media_list_player.c: scope_hint: In function ‘set_relative_playlist_position_and_play’ vlc-3.0.20-build/vlc-3.0.20/lib/media_list_player.c:822:22: warning[-Wmaybe-uninitialized]: ‘ret’ may be used uninitialized # 822 | if (!path || ret != 0) # | ~~~~^~~~ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/lib/media_player.c: scope_hint: In function ‘libvlc_media_player_get_full_title_descriptions’ vlc-3.0.20-build/vlc-3.0.20/lib/media_player.c:1552:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ vlc-3.0.20-build/vlc-3.0.20/lib/media_player.c: scope_hint: In function ‘libvlc_media_player_get_full_title_descriptions’ # 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): vlc-3.0.20-build/vlc-3.0.20/lib/media_player.c:1552:19: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘<unknown>’ vlc-3.0.20-build/vlc-3.0.20/lib/media_player.c: scope_hint: In function ‘libvlc_media_player_get_full_title_descriptions’ # 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): vlc-3.0.20-build/vlc-3.0.20/lib/media_player.c: scope_hint: In function ‘libvlc_get_track_description’ vlc-3.0.20-build/vlc-3.0.20/lib/media_player.c:1847:52: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_variables.h:128:43: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/lib/media_player.c:1831:17: note: in expansion of macro ‘var_Change’ # 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-688): vlc-3.0.20-build/vlc-3.0.20/lib/video.c: scope_hint: In function ‘get_filter_str’ vlc-3.0.20-build/vlc-3.0.20/lib/video.c:749:18: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘psz_string’ where non-null expected <built-in>: note: 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: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/cdda.c: scope_hint: In function ‘AccessControl’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/dc1394.c:643:13: warning[deadcode.DeadStores]: Value stored to 'token' is never read # 641| else if( strncmp( token, "resetbus", strlen( "resetbus" ) ) == 0 ) # 642| { # 643|-> token += strlen("resetbus"); # 644| p_sys->reset_bus = 1; # 645| } Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/access/dtv/en50221.c: scope_hint: In function ‘SPDUSend’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dtv/en50221.c:377:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc((long unsigned int)(i_size + 4))’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dtv/en50221.c:52: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/access/dtv/en50221.c: scope_hint: In function ‘SPDUSend’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dtv/en50221.c: scope_hint: In function ‘SPDUSend’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dtv/en50221.c:29: included_from: Included from here. # 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): vlc-3.0.20-build/vlc-3.0.20/modules/access/dtv/en50221.c: scope_hint: In function ‘APDUSend’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dtv/en50221.c:814:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc(i_size + 12)’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dtv/en50221.c: scope_hint: In function ‘APDUSend’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dtv/en50221.c: scope_hint: In function ‘APDUSend’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/access/dtv/en50221.c: scope_hint: In function ‘CAPMTHeader’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dtv/en50221.c:1110:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_data’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dtv/en50221.c: scope_hint: In function ‘CAPMTHeader’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dtv/en50221.c: scope_hint: In function ‘CAPMTHeader’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/access/dtv/linux.c: scope_hint: In function ‘dvb_enum_systems’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/access/dtv/linux.c:606:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘systems’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:79:23: note: in definition of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dtv/linux.c:494:10: note: in expansion of macro ‘msg_Err’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:79:23: note: in definition of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dtv/linux.c:559:5: note: in expansion of macro ‘msg_Dbg’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:87:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dtv/linux.c:578:5: note: in expansion of macro ‘msg_Dbg’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/access/dtv/linux.c:613:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘systems’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:79:23: note: in definition of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dtv/linux.c:494:10: note: in expansion of macro ‘msg_Err’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:79:23: note: in definition of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dtv/linux.c:559:5: note: in expansion of macro ‘msg_Dbg’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:87:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dtv/linux.c:578:5: note: in expansion of macro ‘msg_Dbg’ # 611| /* ISDB (only terrestrial before DVBv5.5) */ # 612| if (info.type == FE_OFDM) # 613|-> systems |= DTV_DELIVERY_ISDB_T; # 614| # 615| return systems; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/dtv/linux.c:1141:5: warning[deadcode.DeadStores]: Value stored to 'transmit_mode' is never read # 1139| { # 1140| bandwidth = dvb_parse_bandwidth (bandwidth); # 1141|-> transmit_mode = dvb_parse_transmit_mode (transmit_mode); # 1142| guard = dvb_parse_guard (guard); # 1143| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/dv.c:348:13: warning[deadcode.DeadStores]: Value stored to 'result' is never read # 346| { # 347| canc = vlc_savecancel(); # 348|-> result = raw1394_loop_iterate( p_sys->p_raw1394 ); # 349| vlc_restorecancel( canc ); # 350| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/dv.c:485:11: warning[deadcode.DeadStores]: Although the value stored to 'n_ports' is used in the enclosing expression, the value is never actually read from 'n_ports' # 483| } # 484| # 485|-> if( ( n_ports = raw1394_get_port_info( handle, pinf, 16 ) ) < 0 ) # 486| { # 487| msg_Err( p_access, "raw1394 - failed to get port info: %s", Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/access/dvb/access.c: scope_hint: In function ‘ParseMRL’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvb/access.c:541:12: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘psz_parser’ # 539| } # 540| # 541|-> while( *psz_parser ) # 542| { # 543| GET_OPTION_INT("adapter") Error: COMPILER_WARNING (CWE-9001): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/dvb/scan.c:523:90: warning[core.DivideZero]: Division by zero # 521| unsigned i_bandwidth_count = p_params->bandwidth.i_max - p_params->bandwidth.i_min + 1; # 522| unsigned i_frequency_step = p_params->frequency.i_step ? p_params->frequency.i_step : 166667; # 523|-> unsigned i_frequency_count = (p_params->frequency.i_max - p_params->frequency.i_min) / p_params->frequency.i_step; # 524| # 525| if( p_spectrum->i_index > i_frequency_count * i_bandwidth_count ) Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/access/dvb/scan.c: scope_hint: In function ‘ParseNIT’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvb/scan.c:1413:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvb/scan.c:32: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:44: note: in definition of macro ‘unlikely’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:44: note: in definition of macro ‘unlikely’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:44: note: in definition of macro ‘unlikely’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1034: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:79:23: note: in definition of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvb/scan.c:1195:9: note: in expansion of macro ‘msg_Dbg’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvb/scan.c: scope_hint: In function ‘ParseNIT’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvb/scan.c:1368:13: note: in expansion of macro ‘unlikely’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:87:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvb/scan.c:1380:13: note: in expansion of macro ‘msg_Dbg’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/dvb/scan_list.c:383:14: warning[deadcode.DeadStores]: Although the value stored to 'i_read' is used in the enclosing expression, the value is never actually read from 'i_read' # 381| ssize_t i_read; # 382| # 383|-> while ( (i_read = getline( &psz_line, &i_len, p_file )) != -1 ) # 384| { # 385| char *psz_token; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/dvb/scan_list.c:433:19: warning[deadcode.DeadStores]: Although the value stored to 'psz_token' is used in the enclosing expression, the value is never actually read from 'psz_token' # 431| # 432| /* INVERSION */ # 433|-> if( !(psz_token = strtok_r( NULL, psz_delims, &p_save )) ) # 434| continue; # 435| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/dvb/scan_list.c:437:19: warning[deadcode.DeadStores]: Although the value stored to 'psz_token' is used in the enclosing expression, the value is never actually read from 'psz_token' # 435| # 436| /* MODULATION */ # 437|-> if( !(psz_token = strtok_r( NULL, psz_delims, &p_save )) ) # 438| continue; # 439| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/dvb/scan_list.c:441:19: warning[deadcode.DeadStores]: Although the value stored to 'psz_token' is used in the enclosing expression, the value is never actually read from 'psz_token' # 439| # 440| /* STREAM_ID */ # 441|-> if( !(psz_token = strtok_r( NULL, psz_delims, &p_save )) ) # 442| continue; # 443| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdnav.c:307:24: warning[deadcode.DeadStores]: Value stored to 'i_angle' is never read # 305| # 306| i_angle = var_CreateGetInteger( p_demux, "dvdnav-angle" ); # 307|-> if( i_angle <= 0 ) i_angle = 1; # 308| # 309| /* FIXME hack hack hack hack FIXME */ Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdnav.c: scope_hint: In function ‘ESNew’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdnav.c:1560:41: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(3)’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdnav.c: scope_hint: In function ‘ESNew’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdnav.c:1577:37: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(3)’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdnav.c: scope_hint: In function ‘ESNew’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1420:26: warning[-Wanalyzer-malloc-leak]: leak of ‘vlc_seekpoint_New()’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:55:10: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1420:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1412:22: note: in expansion of macro ‘tt_srpt’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1420:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1420:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:55:10: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1420:13: note: in expansion of macro ‘TAB_APPEND’ # 1418| { # 1419| s = vlc_seekpoint_New(); # 1420|-> TAB_APPEND( t->i_seekpoint, t->seekpoint, s ); # 1421| } # 1422| Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1420:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘vlc_input_title_New()’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:55:10: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1420:13: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1412:22: note: in expansion of macro ‘tt_srpt’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:55:10: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/dvdread.c:1420:13: note: in expansion of macro ‘TAB_APPEND’ # 1418| { # 1419| s = vlc_seekpoint_New(); # 1420|-> TAB_APPEND( t->i_seekpoint, t->seekpoint, s ); # 1421| } # 1422| Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/access/http.c: scope_hint: In function ‘Open’ vlc-3.0.20-build/vlc-3.0.20/modules/access/http.c:212:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1036: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/access/http.c:182:29: note: in expansion of macro ‘var_InheritString’ vlc-3.0.20-build/vlc-3.0.20/modules/access/http.c:182:29: note: in expansion of macro ‘var_InheritString’ # 210| { # 211| char *p = strchr(p_sys->psz_user_agent, '('); # 212|-> *p = '\0'; # 213| } # 214| } Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/access/http.c: scope_hint: In function ‘ReadICYMeta’ vlc-3.0.20-build/vlc-3.0.20/modules/access/http.c:488:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘psz_meta’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/access/http/chunked.c: scope_hint: In function ‘vlc_chunked_open’ vlc-3.0.20-build/vlc-3.0.20/modules/access/http/chunked.c:166:12: warning[-Wanalyzer-malloc-leak]: leak of ‘s’ # 164| s->eof = false; # 165| s->error = false; # 166|-> return &s->stream; # 167| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/http/h1conn.c:91:14: warning[core.NullDereference]: Array access (from variable 'buf') results in a null pointer dereference # 89| # 90| assert(size - len >= 1); # 91|-> buf[len] = '\0'; /* for convenience */ # 92| if (lenp != NULL) # 93| *lenp = len; Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/access/http/h1conn.c: scope_hint: In function ‘vlc_h1_conn_create’ vlc-3.0.20-build/vlc-3.0.20/modules/access/http/h1conn.c:346:12: warning[-Wanalyzer-malloc-leak]: leak of ‘conn’ # 344| conn->opaque = ctx; # 345| # 346|-> return &conn->conn; # 347| } # 348| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/http/h2frame.c:307:5: warning[deadcode.DeadStores]: Value stored to 'p' is never read # 305| SetWBE(p, VLC_H2_SETTING_MAX_HEADER_LIST_SIZE); # 306| SetDWBE(p + 2, VLC_H2_MAX_HEADER_LIST); # 307|-> p += 6; # 308| #endif # 309| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/http/h2frame.c:786:9: warning[deadcode.DeadStores]: Value stored to 'len' is never read # 784| return vlc_h2_parse_error(p, VLC_H2_FRAME_SIZE_ERROR); # 785| } # 786|-> len -= 1 + ptr[0]; # 787| ptr++; # 788| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/http/h2frame.c:893:9: warning[deadcode.DeadStores]: Value stored to 'ret' is never read # 891| # 892| if (ret == 0 && (vlc_h2_frame_flags(f) & VLC_H2_CONTINUATION_END_HEADERS)) # 893|-> ret = vlc_h2_parse_headers_end(p); # 894| # 895| free(f); Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/http/hpack.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/http/hpackenc.c:144:9: warning[deadcode.DeadStores]: Value stored to 'buf' is never read # 142| if (size >= val) # 143| { # 144|-> buf += val; # 145| size -= val; # 146| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/http/hpackenc.c:145:9: warning[deadcode.DeadStores]: Value stored to 'size' is never read # 143| { # 144| buf += val; # 145|-> size -= val; # 146| } # 147| else Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/http/hpackenc.c:148:9: warning[deadcode.DeadStores]: Value stored to 'size' is never read # 146| } # 147| else # 148|-> size = 0; # 149| ret += val; # 150| Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/http/message.c: scope_hint: In function ‘vlc_http_msg_h2_frame’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/modules/access/jack.c: scope_hint: In function ‘GrabJack’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/access/jack.c: scope_hint: In function ‘Port_finder’ vlc-3.0.20-build/vlc-3.0.20/modules/access/jack.c:509:64: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ vlc-3.0.20-build/vlc-3.0.20/modules/access/jack.c:40: included_from: Included from here. # 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): vlc-3.0.20-build/vlc-3.0.20/modules/access/jack.c: scope_hint: In function ‘Parse’ vlc-3.0.20-build/vlc-3.0.20/modules/access/jack.c:530:10: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘psz_dup’ where non-null expected vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:46: included_from: Included from here. /usr/include/string.h:159:12: note: argument 1 of ‘strncmp’ must be non-null # 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): vlc-3.0.20-build/vlc-3.0.20/modules/access/jack.c: scope_hint: In function ‘Parse’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/access/jack.c:583:28: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.psz_ports’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:78:13: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:85:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/access/jack.c:552:9: note: in expansion of macro ‘msg_Warn’ # 581| } # 582| p_sys->psz_ports = strndup( psz_parser, i_len ); # 583|-> psz_parser += i_len; # 584| } # 585| else Error: COMPILER_WARNING (CWE-252): vlc-3.0.20-build/vlc-3.0.20/modules/access/linsys/linsys_hdsdi.c: scope_hint: In function ‘Close’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/linsys/linsys_sdi.c:1228:27: warning[core.UndefinedBinaryOperatorResult]: The left operand of '&' is a garbage value # 1226| while ( x < p_anc + i_data_count ) # 1227| { # 1228|-> if ( ((*x & 0x4) && p_audio->i_pair == 2) # 1229| || (!(*x & 0x4) && p_audio->i_pair == 1) ) # 1230| { Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/linsys/linsys_sdi.c:1233:60: warning[core.UndefinedBinaryOperatorResult]: The left operand of '&' is a garbage value # 1231| uint32_t i_tmp = (uint32_t)((x[0] & 0x1f1) >> 3) # 1232| | ((x[1] & 0x1ff) << 6) # 1233|-> | ((x[2] & 0x1f) << 15); # 1234| int32_t i_sample; # 1235| if ( x[2] & 0x10 ) Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/linsys/linsys_sdi.c:1281:36: warning[core.UndefinedBinaryOperatorResult]: The left operand of '&' is a garbage value # 1279| if ( p_audio->i_pair == 2 ) # 1280| { # 1281|-> i_rate = (p_anc[2] & 0xe0) >> 5; # 1282| if ( p_anc[7] & 0x1 ) # 1283| { Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/linsys/linsys_sdi.c:1297:36: warning[core.UndefinedBinaryOperatorResult]: The left operand of '&' is a garbage value # 1295| else # 1296| { # 1297|-> i_rate = (p_anc[2] & 0xe) >> 1; # 1298| if ( p_anc[4] & 0x1 ) # 1299| { Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/linsys/linsys_sdi.c:1346:23: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value # 1344| # 1345| if ( i_size < 7 # 1346|-> || p_anc[0] != 0x0 || p_anc[1] != 0x3ff || p_anc[2] != 0x3ff ) # 1347| return; # 1348| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/linsys/linsys_sdi.c:1349:29: warning[core.UndefinedBinaryOperatorResult]: The left operand of '&' is a garbage value # 1347| return; # 1348| # 1349|-> i_data_count = p_anc[5] & 0xff; # 1350| if ( i_size - 6 < i_data_count ) # 1351| { Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/linsys/linsys_sdi.c:1397:42: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value # 1395| p_anc += 7; # 1396| i_size -= 7; # 1397|-> while ( i_size >= 7 && (p_anc[0] != 0x0 || p_anc[1] != 0x3ff # 1398| || p_anc[2] != 0x3ff) ) # 1399| { Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/linsys/linsys_sdi.c:1397:61: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value # 1395| p_anc += 7; # 1396| i_size -= 7; # 1397|-> while ( i_size >= 7 && (p_anc[0] != 0x0 || p_anc[1] != 0x3ff # 1398| || p_anc[2] != 0x3ff) ) # 1399| { Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/linsys/linsys_sdi.c: scope_hint: In function ‘HandleSDBuffer’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/modules/access/live555.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/live555.cpp:434:16: warning[deadcode.DeadStores]: Although the value stored to 'i_return' is used in the enclosing expression, the value is never actually read from 'i_return' # 432| p_sys->p_sdp = (char*)p_sdp; # 433| } # 434|-> else if( ( i_return = Connect( p_demux ) ) != VLC_SUCCESS ) # 435| { # 436| msg_Err( p_demux, "Failed to connect with %s", p_sys->psz_pl_url ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/live555.cpp:447:11: warning[deadcode.DeadStores]: Although the value stored to 'i_return' is used in the enclosing expression, the value is never actually read from 'i_return' # 445| } # 446| # 447|-> if( ( i_return = SessionsSetup( p_demux ) ) != VLC_SUCCESS ) # 448| { # 449| msg_Err( p_demux, "Nothing to play for %s", p_sys->psz_pl_url ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/live555.cpp:455:11: warning[deadcode.DeadStores]: Although the value stored to 'i_return' is used in the enclosing expression, the value is never actually read from 'i_return' # 453| if( p_sys->b_real ) goto error; # 454| # 455|-> if( ( i_return = Play( p_demux ) ) != VLC_SUCCESS ) # 456| goto error; # 457| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/live555.cpp:1834:11: warning[deadcode.DeadStores]: Although the value stored to 'i_return' is used in the enclosing expression, the value is never actually read from 'i_return' # 1832| # 1833| /* Reopen rtsp client */ # 1834|-> if( ( i_return = Connect( p_demux ) ) != VLC_SUCCESS ) # 1835| { # 1836| msg_Err( p_demux, "Failed to connect with %s", p_sys->psz_pl_url ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/live555.cpp:1846:11: warning[deadcode.DeadStores]: Although the value stored to 'i_return' is used in the enclosing expression, the value is never actually read from 'i_return' # 1844| } # 1845| # 1846|-> if( ( i_return = SessionsSetup( p_demux ) ) != VLC_SUCCESS ) # 1847| { # 1848| msg_Err( p_demux, "Nothing to play for %s", p_sys->psz_pl_url ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/live555.cpp:1852:11: warning[deadcode.DeadStores]: Although the value stored to 'i_return' is used in the enclosing expression, the value is never actually read from 'i_return' # 1850| } # 1851| # 1852|-> if( ( i_return = Play( p_demux ) ) != VLC_SUCCESS ) # 1853| goto error; # 1854| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/live555.cpp:2361:5: warning[deadcode.DeadStores]: Value stored to 'psz' is never read # 2359| return NULL; # 2360| # 2361|-> psz = dup = strdup( configStr ); # 2362| # 2363| /* Count the number of commas */ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/access/mms/buffer.c: scope_hint: In function ‘var_buffer_add8’ vlc-3.0.20-build/vlc-3.0.20/modules/access/mms/buffer.c:73:23: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_buf.p_data’ vlc-3.0.20-build/vlc-3.0.20/modules/access/mms/buffer.c:32: included_from: Included from here. # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/mms/mmsh.c:234:13: warning[deadcode.DeadStores]: Value stored to 'b_bool' is never read # 232| { # 233| i_int = va_arg( args, int ); # 234|-> b_bool = (bool)va_arg( args, int ); # 235| int i_cat; # 236| if( i_int > 127 ) Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/mms/mmstu.c:271:13: warning[deadcode.DeadStores]: Value stored to 'b_bool' is never read # 269| { # 270| i_int = va_arg( args, int ); # 271|-> b_bool = (bool)va_arg( args, int ); # 272| int i_cat; # 273| if( i_int > 127 ) Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/access/nfs.c:576:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ # 574| p_export = *(exports *)p_data; # 575| unsigned int i_idx = 0; # 576|-> while (p_export != NULL) # 577| { # 578| p_sys->res.exports.ppsz_names[i_idx] = strdup(p_export->ex_dir); Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/access/nfs.c: scope_hint: In function ‘mount_export_cb’ vlc-3.0.20-build/vlc-3.0.20/modules/access/nfs.c:576:21: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)*p_sys.res.exports.i_count, 8)’ # 574| p_export = *(exports *)p_data; # 575| unsigned int i_idx = 0; # 576|-> while (p_export != NULL) # 577| { # 578| p_sys->res.exports.ppsz_names[i_idx] = strdup(p_export->ex_dir); Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/access/nfs.c:578:63: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)*p_sys.res.exports.i_count, 8)’ # 576| while (p_export != NULL) # 577| { # 578|-> p_sys->res.exports.ppsz_names[i_idx] = strdup(p_export->ex_dir); # 579| if (p_sys->res.exports.ppsz_names[i_idx] == NULL) # 580| { Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/access/nfs.c:579:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ # 577| { # 578| p_sys->res.exports.ppsz_names[i_idx] = strdup(p_export->ex_dir); # 579|-> if (p_sys->res.exports.ppsz_names[i_idx] == NULL) # 580| { # 581| for (unsigned int i = 0; i < i_idx; ++i) Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/nfs.c:679:17: warning[core.NullDereference]: Access to field 'path' results in a dereference of a null pointer (loaded from field 'p_nfs_url') # 677| # 678| if (NfsInit(p_access, p_sys->psz_url_decoded_slash) == -1 # 679|-> || p_sys->p_nfs_url->path == NULL || p_sys->p_nfs_url->file == NULL) # 680| goto error; # 681| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/rist.c:41: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/access/rist.h:153:29: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value # 151| { # 152| struct sockaddr *peer = (struct sockaddr *)&peer_sockaddr; # 153|-> if (peer->sa_family == AF_INET) { # 154| struct sockaddr_in *xin = (void*)peer; # 155| name_length = snprintf(identifier, MAX_CNAME, "%s@%s:%u", hostname, Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/rtp/session.c:476:18: warning[deadcode.DeadStores]: Although the value stored to 'block' is used in the enclosing expression, the value is never actually read from 'block' # 474| block_t *block; # 475| # 476|-> while (((block = src->blocks)) != NULL) # 477| rtp_decode (demux, session, src); # 478| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/rtp/xiph.c:281:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'extv' # 279| } # 280| # 281|-> block->i_buffer -= len; # 282| block->p_buffer += len; # 283| pkts--; Error: GCC_ANALYZER_WARNING (CWE-688): vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/access.c: scope_hint: In function ‘Open’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/access/rtsp/access.c:32: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:78:13: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:87:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/access.c:192:5: note: in expansion of macro ‘msg_Dbg’ <built-in>: note: 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/real.c:629:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'buf' # 627| /* get challenge */ # 628| if (NULL == (p_data = rtsp_search_answers(rtsp_session, "RealChallenge1"))) { # 629|-> msg_Warn(p_access, "server did not reply with RealChallenge1, aborting!"); # 630| return NULL; # 631| Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/real_asmrp.c: scope_hint: In function ‘asmrp_new’ vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/real_asmrp.c:95:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/real_asmrp.c:114:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘strdup(rules)’ vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/real_asmrp.c: scope_hint: In function ‘asmrp_match’ vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/real_asmrp.c: scope_hint: In function ‘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): vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/real_asmrp.c: scope_hint: In function ‘asmrp_find_id’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/access/rtsp/real.h:33: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/real_asmrp.c:37: included_from: Included from here. /usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null # 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): vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/real_rmff.c: scope_hint: In function ‘rmff_new_mdpr’ vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/real_rmff.c:390:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ # 388| if( !mdpr->type_specific_data ) { # 389| free( mdpr->stream_name ); # 390|-> free( mdpr ); # 391| return NULL; # 392| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/real_rmff.c:586:16: warning[core.NullDereference]: Access to field 'size' results in a dereference of a null pointer (loaded from field 'fileheader') # 584| } # 585| } # 586|-> header_size+=h->fileheader->size; # 587| num_headers++; # 588| Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/real_rmff.c: scope_hint: In function ‘rmff_fix_header’ vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/real_rmff.c:586:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*h.fileheader’ vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/real.h:36: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/real_rmff.c:26: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:78:13: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:85:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/real_rmff.c:575:5: note: in expansion of macro ‘msg_Warn’ # 584| } # 585| } # 586|-> header_size+=h->fileheader->size; # 587| num_headers++; # 588| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/real_rmff.c:606:9: warning[core.NullDereference]: Access to field 'num_packets' results in a dereference of a null pointer (loaded from field '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-476): vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/real_rmff.c:606:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*h.data’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:78:13: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:85:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/real_rmff.c:561:5: note: in expansion of macro ‘msg_Warn’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/rtsp.c:255:13: warning[unix.Malloc]: Potential leak of memory pointed to by 'buf' # 253| rtsp->p_private->server = buf; # 254| } else { # 255|-> msg_Warn(p_access, "remote server sent Server without payload, ignoring."); # 256| } # 257| } Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/rtsp.c: scope_hint: In function ‘rtsp_get_answers’ vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/rtsp.c:268:48: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(xmalloc(strlen(rtsp_get(rtsp))))’ vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/rtsp.c:31: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:78:13: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:85:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/rtsp.c:266:23: note: in expansion of macro ‘msg_Warn’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/rtsp.c:282:19: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'answer_ptr') # 280| } # 281| # 282|-> *answer_ptr = answer; # 283| answer_ptr++; # 284| } while( (strlen(answer) != 0) && (++ans_count < MAX_FIELDS) ); Error: GCC_ANALYZER_WARNING (CWE-688): vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/rtsp.c: scope_hint: In function ‘rtsp_request_options’ vlc-3.0.20-build/vlc-3.0.20/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 <built-in>: note: 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): vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/rtsp.c: scope_hint: In function ‘rtsp_connect’ vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/rtsp.c:511:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘mrl_ptr’ where non-null expected <built-in>: note: 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: GCC_ANALYZER_WARNING (CWE-688): vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/rtsp.c:522:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xmalloc((long unsigned int)(hostend + 1))’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_strncpy’ must be non-null # 520| # 521| s->host = xmalloc(hostend+1); # 522|-> strncpy( s->host, mrl_ptr, hostend ); # 523| s->host[hostend] = 0; # 524| Error: COMPILER_WARNING (CWE-697): vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/rtsp.c: scope_hint: In function ‘rtsp_search_answers’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/rtsp.c: scope_hint: In function ‘rtsp_schedule_field’ vlc-3.0.20-build/vlc-3.0.20/modules/access/rtsp/rtsp.c:663:17: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(data)’ # 661| for (i = 0; i < MAX_FIELDS; ++i) { # 662| if (pptr[i] == NULL) { # 663|-> pptr[i] = strdup(data); # 664| break; # 665| } Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/satip.c: scope_hint: In function ‘rtsp_handle’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/modules/access/satip.c: scope_hint: In function ‘rtsp_handle’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/modules/access/satip.c: scope_hint: In function ‘rtsp_handle’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/satip.c:234:20: warning[deadcode.DeadStores]: Although the value stored to 'ret' is used in the enclosing expression, the value is never actually read from 'ret' # 232| int ret; # 233| # 234|-> while((ret = poll(&pfd, 1, timeout)) < 0) # 235| ; # 236| Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/access/smb.c: scope_hint: In function ‘Open’ vlc-3.0.20-build/vlc-3.0.20/modules/access/smb.c:165:5: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated vlc-3.0.20-build/vlc-3.0.20/modules/access/smb.c:45: included_from: Included from here. /usr/include/samba-4.0/libsmbclient.h:1293:5: note: declared here # 163| # 164| #ifndef _WIN32 # 165|-> if( smbc_init( smb_auth, 0 ) ) # 166| return VLC_EGENERIC; # 167| #endif Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/smb.c: scope_hint: In function ‘DirRead’ vlc-3.0.20-build/vlc-3.0.20/modules/access/smb.c:374:22: warning[-Wimplicit-fallthrough=]: this statement may fall through # 374 | psz_name = NULL; # | ^ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/access/srt.c: scope_hint: In function ‘srt_schedule_reconnect’ vlc-3.0.20-build/vlc-3.0.20/modules/access/srt.c:129:5: warning[-Wdeprecated-declarations]: ‘srt_socket’ is deprecated vlc-3.0.20-build/vlc-3.0.20/modules/access/srt_common.h:31: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/access/srt.c:24: included_from: Included from here. /usr/include/srt/srt.h:765:41: note: declared here # 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): vlc-3.0.20-build/vlc-3.0.20/modules/access/v4l2/controls.c: scope_hint: In function ‘ControlsSetFromString’ vlc-3.0.20-build/vlc-3.0.20/modules/access/v4l2/controls.c:230:22: warning[-Wanalyzer-deref-before-check]: check of ‘p’ for NULL after already dereferencing it vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1036: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/access/v4l2/controls.c:36: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/access/v4l2/controls.c:218:17: note: in expansion of macro ‘var_InheritString’ vlc-3.0.20-build/vlc-3.0.20/modules/access/v4l2/controls.c:218:17: note: in expansion of macro ‘var_InheritString’ # 228| *end = '\0'; # 229| next: # 230|-> while (p != NULL && *p) # 231| { # 232| const char *name, *value; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/access/v4l2/video.c:306:35: warning[core.UndefinedBinaryOperatorResult]: The left operand of '*' is a garbage value # 304| const struct v4l2_fract *b) # 305| { # 306|-> return (uint64_t)a->numerator * b->denominator # 307| - (uint64_t)b->numerator * a->denominator; # 308| } Error: GCC_ANALYZER_WARNING (CWE-457): vlc-3.0.20-build/vlc-3.0.20/modules/access/v4l2/video.c: scope_hint: In function ‘FindMaxRate’ vlc-3.0.20-build/vlc-3.0.20/modules/access/v4l2/video.c:401:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*it.numerator’ vlc-3.0.20-build/vlc-3.0.20/modules/access/v4l2/video.c: scope_hint: In function ‘FindMaxRate’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/access/vcd/cdrom.c: scope_hint: In function ‘ioctl_ReadSectors’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vcd/cdrom.c:753:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vcd/cdrom.c: scope_hint: In function ‘ioctl_ReadSectors’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vcd/cdrom.c:753:13: note: in expansion of macro ‘p_msf’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/access/vcd/cdrom.c:753:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_block’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vcd/cdrom.c: scope_hint: In function ‘ioctl_ReadSectors’ # 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: vlc-3.0.20-build/vlc-3.0.20/modules/access/vcd/cdrom.c: scope_hint: In function ‘OpenVCDImage’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vcd/cdrom.c:869:19: warning[-Wimplicit-fallthrough=]: this statement may fall through # 869 | if( strcasecmp( type, "BINARY" ) ) # | ^ vlc-3.0.20-build/vlc-3.0.20/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-688): vlc-3.0.20-build/vlc-3.0.20/modules/access/vcd/cdrom.c: scope_hint: In function ‘OpenVCDImage’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vcd/cdrom.c:881:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘psz_vcdfile’ where non-null expected vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1034: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:87:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vcd/cdrom.c:847:5: note: in expansion of macro ‘msg_Dbg’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:87:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vcd/cdrom.c:855:5: note: in expansion of macro ‘msg_Dbg’ <built-in>: note: argument 1 of ‘__builtin_strncpy’ must be non-null # 879| psz_vcdfile = malloc( strlen(filename) + # 880| (p_pos - psz_cuefile + 1) + 1 ); # 881|-> strncpy( psz_vcdfile, psz_cuefile, (p_pos - psz_cuefile + 1) ); # 882| strcpy( psz_vcdfile + (p_pos - psz_cuefile + 1), filename ); # 883| } else psz_vcdfile = strdup( filename ); Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/access/vcd/cdrom.c: scope_hint: In function ‘CdTextParse’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vcd/cdrom.c:1204:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/access/vcd/vcd.c: scope_hint: In function ‘Open’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/access/vcd/vcd.c:36: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/access/vcd/vcd.c:99:21: note: in expansion of macro ‘ToLocaleDup’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vcd/vcd.c:99:21: note: in expansion of macro ‘ToLocaleDup’ <built-in>: note: 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): vlc-3.0.20-build/vlc-3.0.20/modules/access/vcd/vcd.c:125:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vcd/vcd.c:99:21: note: in expansion of macro ‘ToLocaleDup’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1036: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/access/vcd/vcd.c:32: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/access/vcd/vcd.c:124:19: note: in expansion of macro ‘var_CreateGetString’ /usr/include/sched.h:29: included_from: Included from here. /usr/include/pthread.h:22: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_threads.h:236: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:413: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/access/vcd/vcd.c:124:19: note: in expansion of macro ‘var_CreateGetString’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c: scope_hint: In function ‘ImportMarks’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:867:68: warning[-Wanalyzer-malloc-leak]: leak of ‘vlc_seekpoint_New()’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:820:33: note: in expansion of macro ‘_’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c: scope_hint: In function ‘ImportMarks’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:870:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:870:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:870:9: note: in expansion of macro ‘TAB_APPEND’ # 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-688): vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:890:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:820:33: note: in expansion of macro ‘_’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:114:5: note: in expansion of macro ‘TAB_INSERT_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:887:13: note: in expansion of macro ‘TAB_INSERT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:114:5: note: in expansion of macro ‘TAB_INSERT_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:887:13: note: in expansion of macro ‘TAB_INSERT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:114:5: note: in expansion of macro ‘TAB_INSERT_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:887:13: note: in expansion of macro ‘TAB_INSERT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:114:5: note: in expansion of macro ‘TAB_INSERT_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:887:13: note: in expansion of macro ‘TAB_INSERT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:114:5: note: in expansion of macro ‘TAB_INSERT_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:887:13: note: in expansion of macro ‘TAB_INSERT’ <built-in>: note: argument 2 of ‘__builtin_memmove’ must be non-null # 888| offsetv = xrealloc(offsetv, # 889| p_marks->i_seekpoint * sizeof (*offsetv)); # 890|-> memmove(offsetv + 1, offsetv, # 891| (p_marks->i_seekpoint - 1) * sizeof (*offsetv)); # 892| offsetv[0] = 0; Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:899:24: warning[-Wanalyzer-malloc-leak]: leak of ‘vlc_input_title_New()’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:820:33: note: in expansion of macro ‘_’ # 897| { # 898| p_sys->p_marks = p_marks; # 899|-> p_sys->offsets = offsetv; # 900| } # 901| else Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:907:5: warning[-Wanalyzer-malloc-leak]: leak of ‘offsetv’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:820:33: note: in expansion of macro ‘_’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:114:5: note: in expansion of macro ‘TAB_INSERT_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:887:13: note: in expansion of macro ‘TAB_INSERT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:114:5: note: in expansion of macro ‘TAB_INSERT_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:887:13: note: in expansion of macro ‘TAB_INSERT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:114:5: note: in expansion of macro ‘TAB_INSERT_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:887:13: note: in expansion of macro ‘TAB_INSERT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:114:5: note: in expansion of macro ‘TAB_INSERT_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:887:13: note: in expansion of macro ‘TAB_INSERT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:114:5: note: in expansion of macro ‘TAB_INSERT_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vdr.c:887:13: note: in expansion of macro ‘TAB_INSERT’ # 905| } # 906| # 907|-> fclose( marksfile ); # 908| fclose( indexfile ); # 909| } Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/access/vnc.c: scope_hint: In function ‘Open’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vnc.c:458:37: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(url.psz_host)’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vnc.c:38: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_variables.h:626:49: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vnc.c:400:20: note: in expansion of macro ‘var_InheritFloat’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1034: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:79:23: note: in definition of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vnc.c:434:5: note: in expansion of macro ‘msg_Dbg’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/access/vnc.c:460:37: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("localhost")’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_variables.h:626:49: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vnc.c:400:20: note: in expansion of macro ‘var_InheritFloat’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:79:23: note: in definition of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/access/vnc.c:434:5: note: in expansion of macro ‘msg_Dbg’ # 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-688): vlc-3.0.20-build/vlc-3.0.20/modules/access_output/http.c: scope_hint: In function ‘Write’ vlc-3.0.20-build/vlc-3.0.20/modules/access_output/http.c:366:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected vlc-3.0.20-build/vlc-3.0.20/modules/access_output/http.c: scope_hint: In function ‘Write’ vlc-3.0.20-build/vlc-3.0.20/modules/access_output/http.c:35: included_from: Included from here. <built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null # 364| p_sys->i_header_allocated ); # 365| } # 366|-> memcpy( &p_sys->p_header[p_sys->i_header_size], # 367| p_buffer->p_buffer, # 368| p_buffer->i_buffer ); Error: GCC_ANALYZER_WARNING (CWE-121): vlc-3.0.20-build/vlc-3.0.20/modules/access_output/rist.c: scope_hint: In function ‘rist_rtcp_send’ vlc-3.0.20-build/vlc-3.0.20/modules/access_output/rist.c:397:5: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow vlc-3.0.20-build/vlc-3.0.20/modules/access_output/rist.c:397:5: note: write of 38 bytes to beyond the end of ‘rtcp_buf’ vlc-3.0.20-build/vlc-3.0.20/modules/access_output/rist.c:397:5: note: valid subscripts for ‘rtcp_buf’ are ‘[0]’ to ‘[165]’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:46: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/access_output/rist.c:29: included_from: Included from here. /usr/include/string.h:506:15: note: parameter 1 of ‘strlcpy’ marked with attribute ‘access (write_only, 1, 3)’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/access_output/shout.c: scope_hint: In function ‘Open’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/access_output/srt.c: scope_hint: In function ‘srt_schedule_reconnect’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/access/srt_common.h:31: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/access_output/srt.c:25: included_from: Included from here. /usr/include/srt/srt.h:765:41: note: declared here # 765 | 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): vlc-3.0.20-build/vlc-3.0.20/modules/access_output/udp.c: scope_hint: In function ‘NewUDPPacket’ vlc-3.0.20-build/vlc-3.0.20/modules/access_output/udp.c:360:5: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated vlc-3.0.20-build/vlc-3.0.20/modules/access_output/udp.c:41: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_block.h:477:16: note: declared here # 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): vlc-3.0.20-build/vlc-3.0.20/modules/access_output/udp.c:366:5: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated vlc-3.0.20-build/vlc-3.0.20/include/vlc_block.h:477:16: note: declared here # 364| } # 365| # 366|-> if( block_FifoCount( p_sys->p_empty_blocks ) == 0 ) # 367| { # 368| p_buffer = block_Alloc( p_sys->i_mtu ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/audiobargraph_a.c:205:16: warning[core.NullDereference]: Access to field 'date' results in a dereference of a null pointer (loaded from field '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-476): vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/audiobargraph_a.c: scope_hint: In function ‘DoWork’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/audiobargraph_a.c:205:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/audiobargraph_a.c:32: included_from: Included from here. # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/channel_mixer/headphone.c:303:9: warning[deadcode.DeadStores]: Value stored to 'i_next_atomic_operation' is never read # 301| , i_next_atomic_operation , i_source_channel_offset # 302| , 0 , d_z_rear , d_min , 5.0 / i_nb_channels ); # 303|-> i_next_atomic_operation += 2; # 304| i_source_channel_offset++; # 305| } Error: GCC_ANALYZER_WARNING (CWE-457): vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/channel_mixer/headphone.c: scope_hint: In function ‘Init’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/channel_mixer/headphone.c:313:49: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>.i_delay’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/channel_mixer/headphone.c:313:58: warning[core.UndefinedBinaryOperatorResult]: The left operand of '*' is a garbage value # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/channel_mixer/mono.c:309:9: warning[deadcode.DeadStores]: Value stored to 'i_next_atomic_operation' is never read # 307| , i_next_atomic_operation , i_source_channel_offset # 308| , 0 , d_z_rear , d_min , 5.0 / i_nb_channels ); # 309|-> i_next_atomic_operation += 2; # 310| i_source_channel_offset++; # 311| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/channel_mixer/mono.c:319:58: warning[core.UndefinedBinaryOperatorResult]: The left operand of '*' is a garbage value # 317| { # 318| if( p_data->i_overflow_buffer_size # 319|-> < p_data->p_atomic_operations[i].i_delay * 2 * sizeof (int16_t) ) # 320| { # 321| p_data->i_overflow_buffer_size Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/channel_mixer/spatialaudio.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c:297:7: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.f_beta’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c:297:7: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.f_gamma’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c:297:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.f_alpha’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c:297:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.f_gamma’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c:297:43: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.f_alpha’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c:297:43: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.f_beta’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c:300:19: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.f_alpha’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c:300:19: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.f_beta’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c:300:19: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.f_gamma’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c:314:19: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.f_amp’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/equalizer.c: scope_hint: In function ‘EqzInit’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/resampler/soxr.c: scope_hint: In function ‘SoXR_Resample’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/resampler/soxr.c:256:63: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p_out’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/resampler/soxr.c:357:43: warning[core.NullDereference]: Access to field 'i_nb_samples' results in a dereference of a null pointer (loaded from variable '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): vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/resampler/soxr.c: scope_hint: In function ‘Resample’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/resampler/soxr.c:357:48: warning[-Wanalyzer-null-dereference]: 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): vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/resampler/soxr.c:365:22: warning[-Wanalyzer-null-dereference]: 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/resampler/soxr.c:365:22: warning[core.NullDereference]: Access to field 'i_pts' results in a dereference of a null pointer (loaded from variable '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): vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/scaletempo.c: scope_hint: In function ‘reinit_buffers’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/scaletempo.c:328:11: warning[-Wanalyzer-malloc-leak]: leak of ‘*p.table_blend’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/scaletempo.c: scope_hint: In function ‘reinit_buffers’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/scaletempo.c:328:29: warning[-Wanalyzer-malloc-leak]: leak of ‘*p.buf_overlap’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/scaletempo.c: scope_hint: In function ‘reinit_buffers’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/scaletempo.c:328:29: warning[-Wanalyzer-malloc-leak]: leak of ‘*p.table_blend’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/scaletempo.c: scope_hint: In function ‘reinit_buffers’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/scaletempo.c:330:11: warning[-Wanalyzer-malloc-leak]: leak of ‘*p.buf_overlap’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/scaletempo.c: scope_hint: In function ‘reinit_buffers’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/scaletempo.c:331:13: warning[-Wanalyzer-malloc-leak]: leak of ‘*p.buf_overlap’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/scaletempo.c: scope_hint: In function ‘reinit_buffers’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/scaletempo.c:387:7: warning[-Wanalyzer-malloc-leak]: leak of ‘*p.buf_queue’ # 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: vlc-3.0.20-build/vlc-3.0.20/modules/audio_filter/stereo_widen.c: scope_hint: In function ‘MakeRingBuffer’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/audio_filter/stereo_widen.c:106:24: note: only use operands of an integer type inside the size argument # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/audio_output/jack.c:209:36: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value # 207| } # 208| # 209|-> if( p_sys->p_jack_ports[i] == NULL ) # 210| { # 211| msg_Err( p_aout, "failed to register a JACK port" ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/audio_output/jack.c:396:56: warning[core.DivideZero]: Division by zero # 394| # 395| /* Fill any remaining buffer with silence */ # 396|-> frames_read = (bytes_read / sizeof(jack_sample_t)) / p_sys->i_channels; # 397| if( frames_read < i_frames ) # 398| { Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/audio_output/pulse.c: scope_hint: In function ‘sink_add_cb’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_output/pulse.c:114:16: warning[-Wanalyzer-malloc-leak]: leak of ‘sink’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1034: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:79:23: note: in definition of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/audio_output/pulse.c:102:5: note: in expansion of macro ‘msg_Dbg’ # 112| sink->index = i->index; # 113| memcpy(sink->name, i->name, namelen + 1); # 114|-> sys->sinks = sink; # 115| } # 116| Error: COMPILER_WARNING (CWE-563): vlc-3.0.20-build/vlc-3.0.20/modules/audio_output/pulse.c: scope_hint: In function ‘stream_start_now’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/audio_output/pulse.c: scope_hint: In function 'Flush' vlc-3.0.20-build/vlc-3.0.20/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-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/audio.c: scope_hint: In function ‘OpenAudioCodec’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/audio.c:142:5: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 142 | ctx->channels = p_dec->fmt_in.audio.i_channels; # | ^~~ vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/avcommon_compat.h:31: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/avcommon.h:38: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/avcodec.h:25: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/audio.c:39: included_from: Included from here. /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 140| # 141| ctx->sample_rate = p_dec->fmt_in.audio.i_rate; # 142|-> ctx->channels = p_dec->fmt_in.audio.i_channels; # 143| ctx->block_align = p_dec->fmt_in.audio.i_blockalign; # 144| ctx->bit_rate = p_dec->fmt_in.i_bitrate; Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/audio.c: scope_hint: In function ‘DecodeBlock’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/audio.c:399:13: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 399 | if( ctx->channels <= 0 || ctx->channels > INPUT_CHAN_MAX # | ^~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 397| { # 398| /* checks and init from first decoded frame */ # 399|-> if( ctx->channels <= 0 || ctx->channels > INPUT_CHAN_MAX # 400| || ctx->sample_rate <= 0 ) # 401| { Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/audio.c: scope_hint: In function ‘ConvertAVFrame’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/audio.c:487:9: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 487 | p_block = block_Alloc(frame->linesize[0] * ctx->channels); # | ^~~~~~~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 485| if( av_sample_fmt_is_planar( ctx->sample_fmt ) ) # 486| { # 487|-> p_block = block_Alloc(frame->linesize[0] * ctx->channels); # 488| if ( likely(p_block) ) # 489| { Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/audio.c:490:13: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 490 | const void *planes[ctx->channels]; # | ^~~~~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 488| if ( likely(p_block) ) # 489| { # 490|-> const void *planes[ctx->channels]; # 491| for (int i = 0; i < ctx->channels; i++) # 492| planes[i] = frame->extended_data[i]; Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/audio.c:491:13: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 491 | for (int i = 0; i < ctx->channels; i++) # | ^~~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 489| { # 490| const void *planes[ctx->channels]; # 491|-> for (int i = 0; i < ctx->channels; i++) # 492| planes[i] = frame->extended_data[i]; # 493| Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/audio.c:495:29: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 495 | ctx->channels, p_dec->fmt_out.audio.i_format); # | ^~~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 493| # 494| aout_Interleave(p_block->p_buffer, planes, frame->nb_samples, # 495|-> ctx->channels, p_dec->fmt_out.audio.i_format); # 496| p_block->i_nb_samples = frame->nb_samples; # 497| } Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/audio.c:514:34: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 514 | p_block->p_buffer, ctx->channels, # | ^~~~~~~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 512| aout_ChannelExtract( p_buffer->p_buffer, # 513| p_dec->fmt_out.audio.i_channels, # 514|-> p_block->p_buffer, ctx->channels, # 515| p_block->i_nb_samples, p_sys->pi_extraction, # 516| p_dec->fmt_out.audio.i_bitspersample ); Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/audio.c: scope_hint: In function ‘SetupOutputFormat’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/audio.c:583:5: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 583 | if( p_sys->i_previous_channels == p_sys->p_context->channels && # | ^~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 581| # 582| /* */ # 583|-> if( p_sys->i_previous_channels == p_sys->p_context->channels && # 584| p_sys->i_previous_layout == p_sys->p_context->channel_layout ) # 585| return; Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/audio.c:584:9: warning[-Wdeprecated-declarations]: ‘channel_layout’ is deprecated # 584 | p_sys->i_previous_layout == p_sys->p_context->channel_layout ) # | ^~~~~ /usr/include/ffmpeg/libavcodec/avcodec.h:1130:14: note: declared here # 1130 | uint64_t channel_layout; # | ^~~~~~~~~~~~~~ # 582| /* */ # 583| if( p_sys->i_previous_channels == p_sys->p_context->channels && # 584|-> p_sys->i_previous_layout == p_sys->p_context->channel_layout ) # 585| return; # 586| if( b_trust ) Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/audio.c:588:9: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 588 | p_sys->i_previous_channels = p_sys->p_context->channels; # | ^~~~~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 586| if( b_trust ) # 587| { # 588|-> p_sys->i_previous_channels = p_sys->p_context->channels; # 589| p_sys->i_previous_layout = p_sys->p_context->channel_layout; # 590| } Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/audio.c:589:9: warning[-Wdeprecated-declarations]: ‘channel_layout’ is deprecated # 589 | p_sys->i_previous_layout = p_sys->p_context->channel_layout; # | ^~~~~ /usr/include/ffmpeg/libavcodec/avcodec.h:1130:14: note: declared here # 1130 | uint64_t channel_layout; # | ^~~~~~~~~~~~~~ # 587| { # 588| p_sys->i_previous_channels = p_sys->p_context->channels; # 589|-> p_sys->i_previous_layout = p_sys->p_context->channel_layout; # 590| } # 591| Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/audio.c:597:9: warning[-Wdeprecated-declarations]: ‘channel_layout’ is deprecated # 597 | p_sys->p_context->channel_layout ? p_sys->p_context->channel_layout : # | ^~~~~ /usr/include/ffmpeg/libavcodec/avcodec.h:1130:14: note: declared here # 1130 | uint64_t channel_layout; # | ^~~~~~~~~~~~~~ # 595| int i_channels_src = 0; # 596| int64_t channel_layout = # 597|-> p_sys->p_context->channel_layout ? p_sys->p_context->channel_layout : # 598| av_get_default_channel_layout( p_sys->p_context->channels ); # 599| Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/audio.c:598:9: warning[-Wdeprecated-declarations]: ‘av_get_default_channel_layout’ is deprecated # 598 | av_get_default_channel_layout( p_sys->p_context->channels ); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/ffmpeg/libavcodec/avcodec.h:34: included_from: Included from here. /usr/include/ffmpeg/libavutil/channel_layout.h:506:9: note: declared here # 506 | int64_t av_get_default_channel_layout(int nb_channels); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 596| int64_t channel_layout = # 597| p_sys->p_context->channel_layout ? p_sys->p_context->channel_layout : # 598|-> av_get_default_channel_layout( p_sys->p_context->channels ); # 599| # 600| if( channel_layout ) Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/audio.c:598:9: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 598 | av_get_default_channel_layout( p_sys->p_context->channels ); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 596| int64_t channel_layout = # 597| p_sys->p_context->channel_layout ? p_sys->p_context->channel_layout : # 598|-> av_get_default_channel_layout( p_sys->p_context->channels ); # 599| # 600| if( channel_layout ) Error: COMPILER_WARNING (CWE-195): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/audio.c:598:9: 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 # 598 | av_get_default_channel_layout( p_sys->p_context->channels ); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 596| int64_t channel_layout = # 597| p_sys->p_context->channel_layout ? p_sys->p_context->channel_layout : # 598|-> av_get_default_channel_layout( p_sys->p_context->channels ); # 599| # 600| if( channel_layout ) Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/audio.c:603:10: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 603 | && i_channels_src < p_sys->p_context->channels; i++ ) # | ^~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 601| { # 602| for( unsigned i = 0; i < i_order_max # 603|-> && i_channels_src < p_sys->p_context->channels; i++ ) # 604| { # 605| if( channel_layout & pi_channels_map[i][0] ) Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/audio.c:609:9: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 609 | if( i_channels_src != p_sys->p_context->channels && b_trust ) # | ^~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 607| } # 608| # 609|-> if( i_channels_src != p_sys->p_context->channels && b_trust ) # 610| msg_Err( p_dec, "Channel layout not understood" ); # 611| Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/audio.c:641:9: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 641 | p_dec->fmt_out.audio.i_channels = p_sys->p_context->channels; # | ^~~~~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 639| msg_Warn( p_dec, "no channel layout found"); # 640| p_dec->fmt_out.audio.i_physical_channels = 0; # 641|-> p_dec->fmt_out.audio.i_channels = p_sys->p_context->channels; # 642| } # 643| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:436:9: warning[deadcode.DeadStores]: Value stored to 'f_val' is never read # 434| p_sys->i_quality = 0; # 435| if( f_val < .01f || f_val > 255.f ) # 436|-> f_val = 0.f; # 437| else # 438| p_sys->i_quality = lroundf(FF_QP2LAMBDA * f_val); Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c: scope_hint: In function ‘InitVideoEnc’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:748:9: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 748 | p_context->channels = p_enc->fmt_out.audio.i_channels; # | ^~~~~~~~~ vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:45: included_from: Included from here. /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 746| p_context->time_base.num = 1; # 747| p_context->time_base.den = p_context->sample_rate; # 748|-> p_context->channels = p_enc->fmt_out.audio.i_channels; # 749| #if LIBAVUTIL_VERSION_CHECK( 52, 2, 6, 0, 0) # 750| p_context->channel_layout = channel_mask[p_context->channels][1]; Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:750:9: warning[-Wdeprecated-declarations]: ‘channel_layout’ is deprecated # 750 | p_context->channel_layout = channel_mask[p_context->channels][1]; # | ^~~~~~~~~ /usr/include/ffmpeg/libavcodec/avcodec.h:1130:14: note: declared here # 1130 | uint64_t channel_layout; # | ^~~~~~~~~~~~~~ # 748| p_context->channels = p_enc->fmt_out.audio.i_channels; # 749| #if LIBAVUTIL_VERSION_CHECK( 52, 2, 6, 0, 0) # 750|-> p_context->channel_layout = channel_mask[p_context->channels][1]; # 751| # 752| /* Setup Channel ordering for multichannel audio Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:750:9: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 750 | p_context->channel_layout = channel_mask[p_context->channels][1]; # | ^~~~~~~~~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 748| p_context->channels = p_enc->fmt_out.audio.i_channels; # 749| #if LIBAVUTIL_VERSION_CHECK( 52, 2, 6, 0, 0) # 750|-> p_context->channel_layout = channel_mask[p_context->channels][1]; # 751| # 752| /* Setup Channel ordering for multichannel audio Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:761:9: warning[-Wdeprecated-declarations]: ‘channel_layout’ is deprecated # 761 | const unsigned i_order_max = 8 * sizeof(p_context->channel_layout); # | ^~~~~ /usr/include/ffmpeg/libavcodec/avcodec.h:1130:14: note: declared here # 1130 | uint64_t channel_layout; # | ^~~~~~~~~~~~~~ # 759| * Copied from audio.c # 760| */ # 761|-> const unsigned i_order_max = 8 * sizeof(p_context->channel_layout); # 762| uint32_t pi_order_dst[AOUT_CHAN_MAX] = { }; # 763| uint32_t order_mask = 0; Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:766:9: warning[-Wdeprecated-declarations]: ‘channel_layout’ is deprecated # 766 | if( p_context->channel_layout ) # | ^~ /usr/include/ffmpeg/libavcodec/avcodec.h:1130:14: note: declared here # 1130 | uint64_t channel_layout; # | ^~~~~~~~~~~~~~ # 764| int i_channels_src = 0; # 765| # 766|-> if( p_context->channel_layout ) # 767| { # 768| msg_Dbg( p_enc, "Creating channel order for reordering"); Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:771:17: warning[-Wdeprecated-declarations]: ‘channel_layout’ is deprecated # 771 | if( p_context->channel_layout & pi_channels_map[i][0] ) # | ^~ /usr/include/ffmpeg/libavcodec/avcodec.h:1130:14: note: declared here # 1130 | uint64_t channel_layout; # | ^~~~~~~~~~~~~~ # 769| for( unsigned i = 0; i < sizeof(pi_channels_map)/sizeof(*pi_channels_map); i++ ) # 770| { # 771|-> if( p_context->channel_layout & pi_channels_map[i][0] ) # 772| { # 773| msg_Dbg( p_enc, "%d %"PRIx64" mapped to %"PRIx64"", i_channels_src, pi_channels_map[i][0], pi_channels_map[i][1]); Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:783:13: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 783 | for( unsigned int i = 0; i < __MIN( i_order_max, (unsigned)p_sys->p_context->channels ); i++ ) # | ^~~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 781| msg_Dbg( p_enc, "Creating default channel order for reordering"); # 782| /* Create default order */ # 783|-> for( unsigned int i = 0; i < __MIN( i_order_max, (unsigned)p_sys->p_context->channels ); i++ ) # 784| { # 785| if( i < sizeof(pi_channels_map)/sizeof(*pi_channels_map) ) Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:793:9: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 793 | if( i_channels_src != p_context->channels ) # | ^~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 791| } # 792| } # 793|-> if( i_channels_src != p_context->channels ) # 794| msg_Err( p_enc, "Channel layout not understood" ); # 795| Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:900:17: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 900 | (p_context->channels <= 2 && i_codec_id != AV_CODEC_ID_MP2 # | ^ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 898| { # 899| if( p_enc->fmt_in.i_cat != AUDIO_ES || # 900|-> (p_context->channels <= 2 && i_codec_id != AV_CODEC_ID_MP2 # 901| && i_codec_id != AV_CODEC_ID_MP3) ) # 902| errmsg: Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:925:9: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 925 | if( p_context->channels > 2 ) # | ^~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 923| } # 924| # 925|-> if( p_context->channels > 2 ) # 926| { # 927| p_context->channels = 2; Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:927:13: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 927 | p_context->channels = 2; # | ^~~~~~~~~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 925| if( p_context->channels > 2 ) # 926| { # 927|-> p_context->channels = 2; # 928| p_context->channel_layout = channel_mask[p_context->channels][1]; # 929| Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:928:13: warning[-Wdeprecated-declarations]: ‘channel_layout’ is deprecated # 928 | p_context->channel_layout = channel_mask[p_context->channels][1]; # | ^~~~~~~~~ /usr/include/ffmpeg/libavcodec/avcodec.h:1130:14: note: declared here # 1130 | uint64_t channel_layout; # | ^~~~~~~~~~~~~~ # 926| { # 927| p_context->channels = 2; # 928|-> p_context->channel_layout = channel_mask[p_context->channels][1]; # 929| # 930| /* Change fmt_in in order to ask for a channels conversion */ Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:928:13: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 928 | p_context->channel_layout = channel_mask[p_context->channels][1]; # | ^~~~~~~~~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 926| { # 927| p_context->channels = 2; # 928|-> p_context->channel_layout = channel_mask[p_context->channels][1]; # 929| # 930| /* Change fmt_in in order to ask for a channels conversion */ Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:1031:17: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 1031 | p_sys->p_context->channels, p_sys->i_frame_size, # | ^~~~~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 1029| AV_INPUT_BUFFER_MIN_SIZE; # 1030| p_sys->i_buffer_out = av_samples_get_buffer_size(NULL, # 1031|-> p_sys->p_context->channels, p_sys->i_frame_size, # 1032| p_sys->p_context->sample_fmt, DEFAULT_ALIGN); # 1033| p_sys->p_buffer = av_malloc( p_sys->i_buffer_out ); Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c: scope_hint: In function ‘EncodeVideo’ vlc-3.0.20-build/vlc-3.0.20/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:530:9: note: declared here # 530 | 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): vlc-3.0.20-build/vlc-3.0.20/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:538:9: note: declared here # 538 | 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c: scope_hint: In function ‘handle_delay_buffer’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:1281:5: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 1281 | const size_t leftover = leftover_samples * p_sys->p_context->channels * p_sys->i_sample_bytes; # | ^~~~~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 1279| block_t *p_block = NULL; # 1280| //How much we need to copy from new packet # 1281|-> const size_t leftover = leftover_samples * p_sys->p_context->channels * p_sys->i_sample_bytes; # 1282| # 1283| av_frame_unref( p_sys->frame ); Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:1286:5: warning[-Wdeprecated-declarations]: ‘channel_layout’ is deprecated # 1286 | p_sys->frame->channel_layout = p_sys->p_context->channel_layout; # | ^~~~~ /usr/include/ffmpeg/libavutil/frame.h:575:14: note: declared here # 575 | uint64_t channel_layout; # | ^~~~~~~~~~~~~~ # 1284| p_sys->frame->format = p_sys->p_context->sample_fmt; # 1285| p_sys->frame->nb_samples = leftover_samples + p_sys->i_samples_delay; # 1286|-> p_sys->frame->channel_layout = p_sys->p_context->channel_layout; # 1287| p_sys->frame->channels = p_sys->p_context->channels; # 1288| Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:1287:5: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 1287 | p_sys->frame->channels = p_sys->p_context->channels; # | ^~~~~ /usr/include/ffmpeg/libavutil/frame.h:731:9: note: declared here # 731 | int channels; # | ^~~~~~~~ # 1285| p_sys->frame->nb_samples = leftover_samples + p_sys->i_samples_delay; # 1286| p_sys->frame->channel_layout = p_sys->p_context->channel_layout; # 1287|-> p_sys->frame->channels = p_sys->p_context->channels; # 1288| # 1289| p_sys->frame->pts = date_Get( &p_sys->buffer_date ) * p_sys->p_context->time_base.den / Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:1304:17: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 1304 | p_sys->i_frame_size, p_sys->p_context->channels, p_enc->fmt_in.i_codec ); # | ^~~~~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 1302| if( p_sys->b_planar ) # 1303| aout_Deinterleave( p_sys->p_interleave_buf, p_sys->p_buffer, # 1304|-> p_sys->i_frame_size, p_sys->p_context->channels, p_enc->fmt_in.i_codec ); # 1305| else # 1306| memcpy( p_sys->p_buffer + buffer_delay, p_aout_buf->p_buffer, leftover); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:1320:9: warning[deadcode.DeadStores]: Value stored to 'buffer_delay' is never read # 1318| size_t padding_size = p_sys->i_buffer_out - (leftover+buffer_delay); # 1319| memset( p_sys->p_buffer + (leftover+buffer_delay), 0, padding_size ); # 1320|-> buffer_delay += padding_size; # 1321| } # 1322| if( avcodec_fill_audio_frame( p_sys->frame, p_sys->p_context->channels, Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:1322:5: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 1322 | if( avcodec_fill_audio_frame( p_sys->frame, p_sys->p_context->channels, # | ^~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 1320| buffer_delay += padding_size; # 1321| } # 1322|-> if( avcodec_fill_audio_frame( p_sys->frame, p_sys->p_context->channels, # 1323| p_sys->p_context->sample_fmt, p_sys->b_planar ? p_sys->p_interleave_buf : p_sys->p_buffer, # 1324| p_sys->i_buffer_out, Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c: scope_hint: In function ‘EncodeAudio’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:1352:5: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 1352 | buffer_delay = p_sys->i_samples_delay * p_sys->i_sample_bytes * p_sys->p_context->channels; # | ^~~~~~~~~~~~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 1350| //i_bytes_left is amount of bytes we get # 1351| i_samples_left = p_aout_buf ? p_aout_buf->i_nb_samples : 0; # 1352|-> buffer_delay = p_sys->i_samples_delay * p_sys->i_sample_bytes * p_sys->p_context->channels; # 1353| # 1354| //p_sys->i_buffer_out = p_sys->i_frame_size * chan * p_sys->i_sample_bytes Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:1417:9: warning[-Wdeprecated-declarations]: ‘channel_layout’ is deprecated # 1417 | p_sys->frame->channel_layout = p_sys->p_context->channel_layout; # | ^~~~~ /usr/include/ffmpeg/libavutil/frame.h:575:14: note: declared here # 575 | uint64_t channel_layout; # | ^~~~~~~~~~~~~~ # 1415| CLOCK_FREQ / p_sys->p_context->time_base.num; # 1416| # 1417|-> p_sys->frame->channel_layout = p_sys->p_context->channel_layout; # 1418| p_sys->frame->channels = p_sys->p_context->channels; # 1419| Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:1418:9: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 1418 | p_sys->frame->channels = p_sys->p_context->channels; # | ^~~~~ /usr/include/ffmpeg/libavutil/frame.h:731:9: note: declared here # 731 | int channels; # | ^~~~~~~~ # 1416| # 1417| p_sys->frame->channel_layout = p_sys->p_context->channel_layout; # 1418|-> p_sys->frame->channels = p_sys->p_context->channels; # 1419| # 1420| const int in_bytes = p_sys->frame->nb_samples * Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:1421:13: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 1421 | p_sys->p_context->channels * p_sys->i_sample_bytes; # | ^~~~~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 1419| # 1420| const int in_bytes = p_sys->frame->nb_samples * # 1421|-> p_sys->p_context->channels * p_sys->i_sample_bytes; # 1422| # 1423| if( p_sys->b_planar ) Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:1426:32: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 1426 | p_sys->frame->nb_samples, p_sys->p_context->channels, p_enc->fmt_in.i_codec ); # | ^~~~~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 1424| { # 1425| aout_Deinterleave( p_sys->p_buffer, p_aout_buf->p_buffer, # 1426|-> p_sys->frame->nb_samples, p_sys->p_context->channels, p_enc->fmt_in.i_codec ); # 1427| # 1428| } Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:1434:9: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 1434 | if( avcodec_fill_audio_frame( p_sys->frame, p_sys->p_context->channels, # | ^~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 1432| } # 1433| # 1434|-> if( avcodec_fill_audio_frame( p_sys->frame, p_sys->p_context->channels, # 1435| p_sys->p_context->sample_fmt, # 1436| p_sys->p_buffer, Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/encoder.c:1460:16: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 1460 | p_aout_buf->i_nb_samples * p_sys->i_sample_bytes * p_sys->p_context->channels); # | ^~~~~~~~~~ /usr/include/ffmpeg/libavcodec/avcodec.h:1072:9: note: declared here # 1072 | int channels; # | ^~~~~~~~ # 1458| { # 1459| memcpy( p_sys->p_buffer + buffer_delay, p_aout_buf->p_buffer, # 1460|-> p_aout_buf->i_nb_samples * p_sys->i_sample_bytes * p_sys->p_context->channels); # 1461| p_sys->i_samples_delay += p_aout_buf->i_nb_samples; # 1462| } Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/video.c: scope_hint: In function ‘lavc_GetVideoFormat’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/video.c:208:34: warning[-Wdeprecated-declarations]: ‘ticks_per_frame’ is deprecated vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/video.c:39: included_from: Included from here. /usr/include/ffmpeg/libavcodec/avcodec.h:579:9: note: declared here # 206| fmt->i_frame_rate = ctx->time_base.den; # 207| fmt->i_frame_rate_base = ctx->time_base.num # 208|-> * __MAX(ctx->ticks_per_frame, 1); # 209| } # 210| Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/video.c: scope_hint: In function ‘lavc_UpdateVideoFormat’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/video.c:331:39: warning[-Wdeprecated-declarations]: ‘ticks_per_frame’ is deprecated /usr/include/ffmpeg/libavcodec/avcodec.h:579:9: note: declared here # 329| if(dec->p_sys->pts.i_divider_num) # 330| date_Change(&dec->p_sys->pts, fmt_out.i_frame_rate * # 331|-> __MAX(ctx->ticks_per_frame, 1), # 332| fmt_out.i_frame_rate_base); # 333| else Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/video.c:335:37: warning[-Wdeprecated-declarations]: ‘ticks_per_frame’ is deprecated /usr/include/ffmpeg/libavcodec/avcodec.h:579:9: note: declared here # 333| else # 334| date_Init(&dec->p_sys->pts, fmt_out.i_frame_rate * # 335|-> __MAX(ctx->ticks_per_frame, 1), # 336| fmt_out.i_frame_rate_base); # 337| Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/video.c: scope_hint: In function ‘interpolate_next_pts’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/video.c:948:5: warning[-Wdeprecated-declarations]: ‘ticks_per_frame’ is deprecated /usr/include/ffmpeg/libavcodec/avcodec.h:579:9: note: declared here # 946| return VLC_TICK_INVALID; # 947| # 948|-> int i_tick = p_context->ticks_per_frame; # 949| if( i_tick <= 0 ) # 950| i_tick = 1; Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/video.c: scope_hint: In function ‘DecodeBlock’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/video.c:1429:9: warning[-Wdeprecated-declarations]: ‘interlaced_frame’ is deprecated /usr/include/ffmpeg/libavcodec/avcodec.h:36: included_from: Included from here. /usr/include/ffmpeg/libavutil/frame.h:530:9: note: declared here # 1427| p_pic->b_force = p_sys->b_first_frame; # 1428| p_pic->i_nb_fields = 2 + frame->repeat_pict; # 1429|-> p_pic->b_progressive = !frame->interlaced_frame; # 1430| p_pic->b_top_field_first = frame->top_field_first; # 1431| Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/video.c:1430:9: warning[-Wdeprecated-declarations]: ‘top_field_first’ is deprecated /usr/include/ffmpeg/libavutil/frame.h:538:9: note: declared here # 1428| p_pic->i_nb_fields = 2 + frame->repeat_pict; # 1429| p_pic->b_progressive = !frame->interlaced_frame; # 1430|-> p_pic->b_top_field_first = frame->top_field_first; # 1431| # 1432| if (DecodeSidedata(p_dec, frame, p_pic)) Error: GCC_ANALYZER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/cc.c: scope_hint: In function ‘Eia608RollUp’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/cc.c:732:9: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:46: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/codec/cc.c:37: included_from: Included from here. /usr/include/string.h:43:14: note: the behavior of ‘memcpy’ is undefined for overlapping buffers # 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: vlc-3.0.20-build/vlc-3.0.20/modules/codec/cc.c:733:9: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’ /usr/include/string.h:43:14: note: the behavior of ‘memcpy’ is undefined for overlapping buffers # 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: vlc-3.0.20-build/vlc-3.0.20/modules/codec/cc.c:734:9: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’ /usr/include/string.h:43:14: note: the behavior of ‘memcpy’ is undefined for overlapping buffers # 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/cea708.c: scope_hint: In function ‘CEA708_Window_Truncate’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/cea708.c:603:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘row’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/cea708.c: scope_hint: In function ‘CEA708_Window_Truncate’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/cea708.c:624:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘row’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/cea708.c: scope_hint: In function ‘CEA708_Window_Truncate’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/cea708.c: scope_hint: In function ‘CEA708_Window_Scroll’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/cea708.c:670:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘row’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/cea708.c: scope_hint: In function ‘CEA708_Window_Scroll’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/cea708.c:687:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘row’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/cea708.c: scope_hint: In function ‘CEA708_Window_Scroll’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/cvdsub.c: scope_hint: In function ‘Reassemble’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/cvdsub.c:254:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*p_sys.p_spu’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_codec.h:29: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/codec/cvdsub.c:36: included_from: Included from here. # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/cvdsub.c:315:53: warning[deadcode.DeadStores]: Value stored to 'p' is never read # 313| # 314| /* FIXME: check data sanity */ # 315|-> p_sys->metadata_offset = (p[0] << 8) + p[1]; p +=2; # 316| p_sys->metadata_length = p_sys->i_spu_size - p_sys->metadata_offset; # 317| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/dvbsub.c:955:9: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull' # 953| int i_background = ( i_depth == 1 ) ? i_2_bg : # 954| ( ( i_depth == 2 ) ? i_4_bg : i_8_bg ); # 955|-> memset( p_region->p_pixbuf, i_background, i_width * i_height ); # 956| } # 957| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/dvbsub.c:1886:31: warning[core.UndefinedBinaryOperatorResult]: The right operand of '+' is a garbage value # 1884| a += (((i_seed >> 24) & 0xff) - 0x80) * i_tolerance / 0x80; # 1885| #else # 1886|-> y += i_ydelta + pi_delta[ n * 4 ]; # 1887| u += i_udelta + pi_delta[ n * 4 + 1 ]; # 1888| v += i_vdelta + pi_delta[ n * 4 + 2 ]; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/dvbsub.c:1887:31: warning[core.UndefinedBinaryOperatorResult]: The right operand of '+' is a garbage value # 1885| #else # 1886| y += i_ydelta + pi_delta[ n * 4 ]; # 1887|-> u += i_udelta + pi_delta[ n * 4 + 1 ]; # 1888| v += i_vdelta + pi_delta[ n * 4 + 2 ]; # 1889| a += i_adelta + pi_delta[ n * 4 + 3 ]; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/dvbsub.c:1888:31: warning[core.UndefinedBinaryOperatorResult]: The right operand of '+' is a garbage value # 1886| y += i_ydelta + pi_delta[ n * 4 ]; # 1887| u += i_udelta + pi_delta[ n * 4 + 1 ]; # 1888|-> v += i_vdelta + pi_delta[ n * 4 + 2 ]; # 1889| a += i_adelta + pi_delta[ n * 4 + 3 ]; # 1890| #endif Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/dvbsub.c:1889:31: warning[core.UndefinedBinaryOperatorResult]: The right operand of '+' is a garbage value # 1887| u += i_udelta + pi_delta[ n * 4 + 1 ]; # 1888| v += i_vdelta + pi_delta[ n * 4 + 2 ]; # 1889|-> a += i_adelta + pi_delta[ n * 4 + 3 ]; # 1890| #endif # 1891| Error: COMPILER_WARNING (CWE-758): vlc-3.0.20-build/vlc-3.0.20/modules/codec/fdkaac.c: scope_hint: In function ‘OpenEncoder’ vlc-3.0.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/modules/codec/flac.c: scope_hint: In function ‘DecoderMetadataCallback’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/flac.c: scope_hint: In function ‘Encode’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/flac.c:898:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/flac.c:36: included_from: Included from here. # 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/fluidsynth.c: scope_hint: In function ‘Open’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/fluidsynth.c:164:5: warning[-Wdeprecated-declarations]: ‘fluid_synth_set_chorus_on’ is deprecated /usr/include/fluidsynth.h:100: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/codec/fluidsynth.c:42: included_from: Included from here. /usr/include/fluidsynth/synth.h:208:38: note: declared here # 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/fluidsynth.c:170:5: warning[-Wdeprecated-declarations]: ‘fluid_synth_set_reverb_on’ is deprecated /usr/include/fluidsynth/synth.h:162:38: note: declared here # 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/fluidsynth.c:175:5: warning[-Wdeprecated-declarations]: ‘fluid_synth_set_sample_rate’ is deprecated /usr/include/fluidsynth/synth.h:253:38: note: declared here # 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: vlc-3.0.20-build/vlc-3.0.20/modules/codec/gstreamer/gstdecode.c: scope_hint: In function ‘DecodeBlock’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/gstreamer/gstvlcpictureplaneallocator.c: scope_hint: In function ‘gst_vlc_picture_plane_allocator_init’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/jpeg.c:274:12: warning[unix.Malloc]: Potential leak of memory pointed to by 'psz_rdf' # 272| if (!strcasestr(psz_rdf, "ProjectionType=\"equirectangular\"") && # 273| !strcasestr(psz_rdf, "ProjectionType>equirectangular")) # 274|-> return false; # 275| # 276| fmt->projection_mode = PROJECTION_MODE_EQUIRECTANGULAR; Error: COMPILER_WARNING (CWE-758): vlc-3.0.20-build/vlc-3.0.20/modules/codec/jpeg.c: scope_hint: In function ‘DecodeBlock’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/jpeg.c: scope_hint: In function ‘EncodeBlock’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/jpeg.c:675:38: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*<unknown> + (long unsigned int)j * 8’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/jpeg.c:33: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/codec/jpeg.c:32: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/codec/jpeg.c: scope_hint: In function ‘EncodeBlock’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/jpeg.c: scope_hint: In function ‘EncodeBlock’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/jpeg.c:688:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/jpeg.c: scope_hint: In function ‘EncodeBlock’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/jpeg.c: scope_hint: In function ‘EncodeBlock’ # 686| free(p_row_pointers[i]); # 687| } # 688|-> free(p_row_pointers); # 689| # 690| p_block->i_buffer = size; Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/kate.c: scope_hint: In function ‘OpenDecoder’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/kate.c: scope_hint: In function ‘SetupText’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/kate.c:744:31: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘copy’ where non-null expected <built-in>: note: 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/kate.c: scope_hint: In function ‘DecodePacket’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/kate.c:1095:30: warning[-Wanalyzer-null-dereference]: 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/libass.c: scope_hint: In function ‘SubpictureValidate’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/libass.c:451:9: warning[-Wdeprecated-declarations]: ‘ass_set_aspect_ratio’ is deprecated: use 'ass_set_pixel_aspect' instead vlc-3.0.20-build/vlc-3.0.20/modules/codec/libass.c:44: included_from: Included from here. /usr/include/ass/ass.h:484:6: note: declared here # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/lpcm.c:419:81: warning[core.DivideZero]: Division by zero # 417| if ( p_sys->i_type == LPCM_AOB ) # 418| { # 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 ) + Error: GCC_ANALYZER_WARNING (CWE-457): vlc-3.0.20-build/vlc-3.0.20/modules/codec/lpcm.c: scope_hint: In function ‘Packetize’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/lpcm.c:421:46: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘p_aob_group[0].i_bits’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/lpcm.c:421:54: warning[core.UndefinedBinaryOperatorResult]: The left operand of '/' is a garbage value # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/lpcm.c:427:81: warning[core.DivideZero]: Division by zero # 425| else # 426| { # 427|-> i_frame_length = (p_block->i_buffer - p_sys->i_header_size - i_padding) / # 428| (i_channels + i_channels_padding) * 8 / i_bits; # 429| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/lpcm.c:1173:41: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value # 1171| uint8_t *p_out = p_aout_buffer->p_buffer; # 1172| const unsigned i_total_channels = p_group[0].i_channels + # 1173|-> ( p_group[1].i_bits ? p_group[1].i_channels : 0 ); # 1174| # 1175| while( p_block->i_buffer > 0 ) Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/oggspots.c: scope_hint: In function ‘ProcessHeader’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/oggspots.c: scope_hint: In function ‘DecodePacket’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/oggspots.c:385:5: warning[-Wunused-result]: ignoring return value of ‘decoder_UpdateVideoFormat’ declared with attribute ‘warn_unused_result’ # 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: vlc-3.0.20-build/vlc-3.0.20/modules/codec/png.c: scope_hint: In function ‘user_write’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/qsv.c: scope_hint: In function ‘Open’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/qsv.c:428:5: warning[-Wdeprecated-declarations]: ‘MFXInit’ is deprecated /usr/include/vpl/mfxvideo.h:9: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/codec/qsv.c:36: included_from: Included from here. /usr/include/vpl/mfxsession.h:56:36: note: declared here # 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: vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1034: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/codec/qsv.c:31: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/qsv.c:755:49: warning[core.DivideZero]: Division by zero # 753| /* Reset the task now it has been synchronized and advances first_task pointer */ # 754| task->syncp = 0; # 755|-> sys->first_task = (sys->first_task + 1) % sys->async_depth; # 756| } # 757| Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/codec/schroedinger.c: scope_hint: In function ‘CreateSchroFrameFromPic’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/schroedinger.c:689:19: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_free’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/schroedinger.c: scope_hint: In function ‘CreateSchroFrameFromPic’ # 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-688): vlc-3.0.20-build/vlc-3.0.20/modules/codec/scte18.c: scope_hint: In function ‘scte18_cea_Decode’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/scte18.c:115:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(len + 1)’ where non-null expected vlc-3.0.20-build/vlc-3.0.20/modules/codec/scte18.c:24: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/codec/scte18.c:105:29: note: in expansion of macro ‘GetWBE’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/scte18.c: scope_hint: In function ‘scte18_cea_Decode’ <built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null # 113| goto error; # 114| p_cea->psz_eas_event_code = malloc( len + 1 ); # 115|-> memcpy( p_cea->psz_eas_event_code, &p_buffer[1], len ); # 116| p_cea->psz_eas_event_code[len] = 0; # 117| BUF_ADVANCE( len + 1 ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/scte27.c:310:21: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value # 308| for (int by = 0; by < bitmap_v; by++) { # 309| for (int bx = 0; bx < bitmap_h; bx++) { # 310|-> if (bitmap[by * bitmap_h + bx]) # 311| SetYUVPPixel(r->p_picture, # 312| bx + bitmap_oh + shadow_right, Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/scte27.c:322:17: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value # 320| for (int by = 0; by < bitmap_v; by++) { # 321| for (int bx = 0; bx < bitmap_h; bx++) { # 322|-> if (bitmap[by * bitmap_h + bx]) # 323| SetYUVPPixel(r->p_picture, # 324| bx + bitmap_oh, by + bitmap_ov, COLOR_CHARACTER); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/speex.c:646:28: warning[core.NullDereference]: Access to field 'p_buffer' results in a dereference of a null pointer (loaded from variable 'p_block') # 644| i_bytes_in_speex_frame--; # 645| speex_bits_write( &p_sys->bits, # 646|-> (char*)p_block->p_buffer, # 647| p_block->i_buffer - i_bytes_in_speex_frame ); # 648| p_block = block_Realloc( p_block, Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/speex.c:872:37: warning[core.NullDereference]: Access to field 'i_pts' results in a dereference of a null pointer (loaded from variable 'p_block') # 870| # 871| /* Date management */ # 872|-> p_block->i_dts = p_block->i_pts = date_Get( &p_sys->end_date ); # 873| # 874| p_block->i_length = Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/codec/speex.c: scope_hint: In function ‘OpenEncoder’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/speex.c:1076:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_extra’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/speex.c:31: included_from: Included from here. # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/speex.c:1076:22: warning[core.NullDereference]: Dereference of null pointer # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/spudec/parse.c:708:31: warning[core.NullDereference]: Dereference of null pointer # 706| { # 707| /* We got a valid code, store it */ # 708|-> *p_dest++ = i_code; # 709| # 710| /* Valid code means no blank line */ Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/spudec/parse.c:717:27: warning[core.NullDereference]: Dereference of null pointer # 715| else # 716| { # 717|-> *p_dest++ = i_code; # 718| } # 719| } Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/codec/spudec/spudec.c: scope_hint: In function ‘DecoderOpen’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/spudec/spudec.c:88:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_sys’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/stl.c: scope_hint: In function ‘Open’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/stl.c:481:8: warning[-Wanalyzer-malloc-leak]: leak of ‘sys’ # 479| # 480| int rc = ParseGSI(dec, sys); # 481|-> if (VLC_SUCCESS != rc) # 482| return rc; # 483| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/stl.c:482:16: warning[unix.Malloc]: Potential leak of memory pointed to by 'sys' # 480| int rc = ParseGSI(dec, sys); # 481| if (VLC_SUCCESS != rc) # 482|-> return rc; # 483| # 484| for(size_t i=0; i<=STL_GROUPS_MAX; i++) Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/codec/subsdec.c: scope_hint: In function ‘AppendCharacter’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/subsdec.c:490:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p_segment’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/subsdec.c:38: included_from: Included from here. # 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/subsdec.c: scope_hint: In function ‘AppendString’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/subsdec.c:500:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p_segment’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/subsdec.c:770:25: warning[unix.Malloc]: Potential leak of memory pointed to by 'p_tag_stack' # 768| if ( !AppendCharacter( p_segment, '\n' ) ) # 769| { # 770|-> free( psz_tagname ); # 771| goto fail; # 772| } Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/codec/subsdec.c: scope_hint: In function ‘ParseSubtitles’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/subsdec.c:777:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/subsdec.c:783:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/subsdec.c:789:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/subsdec.c:795:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/subsdec.c:892:26: warning[unix.Malloc]: Potential leak of memory pointed to by 'psz_tagname' # 890| } # 891| // Skip potential spaces & end tag # 892|-> while ( *psz_subtitle && *psz_subtitle != '>' ) # 893| psz_subtitle++; # 894| if ( *psz_subtitle == '>' ) Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/subsdec.c: scope_hint: In function ‘ParseSubtitles’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/subsdec.c:988:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/subsdec.c:995:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/subsdec.c:1002:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/subsdec.c:1017:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/subsdec.c:1023:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/subsdec.c:1032:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/subsdec.c: scope_hint: In function ‘ParseSubtitles’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/substext.h:78:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘sys’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/substext.h: scope_hint: In function ‘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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/substx3g.c: scope_hint: In function ‘SegmentSplit’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/substx3g.c:229:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p_segment_left’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/substx3g.c: scope_hint: In function ‘SegmentSplit’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/substx3g.c:25: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:835:27: note: in definition of macro ‘GetWBE’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:496:30: note: in definition of macro ‘__MIN’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/substx3g.c:394:43: note: in expansion of macro ‘GetWBE’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:496:30: note: in definition of macro ‘__MIN’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:500:40: note: in expansion of macro ‘__MAX’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/substx3g.c:398:29: note: in expansion of macro ‘VLC_CLIP’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/substx3g.c: scope_hint: In function ‘Decode’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/substx3g.c:354:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/substx3g.c: scope_hint: In function ‘Decode’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/svcdsub.c:417:5: warning[deadcode.DeadStores]: Value stored to 'i_buffer' is never read # 415| if (i_buffer < 2) return; # 416| p_sys->second_field_offset = GETINT16(p); # 417|-> i_buffer -= 2; # 418| p_sys->i_image_offset = p - p_block->p_buffer; # 419| p_sys->i_image_length = p_sys->i_spu_size - p_sys->i_image_offset; Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/codec/svg.c: scope_hint: In function ‘DecodeBlock’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/svg.c:148:5: warning[-Wdeprecated-declarations]: ‘rsvg_handle_get_dimensions’ is deprecated: Use 'rsvg_handle_get_intrinsic_size_in_pixels' instead vlc-3.0.20-build/vlc-3.0.20/modules/codec/svg.c:39: included_from: Included from here. /usr/include/librsvg-2.0/librsvg/rsvg.h:708:6: note: declared here # 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/svg.c:240:5: warning[-Wdeprecated-declarations]: ‘rsvg_handle_render_cairo’ is deprecated: Use 'rsvg_handle_render_document' instead /usr/include/librsvg-2.0/librsvg/rsvg.h:1452: included_from: Included from here. /usr/include/librsvg-2.0/librsvg/rsvg-cairo.h:90:10: note: declared here # 238| } # 239| # 240|-> if( !rsvg_handle_render_cairo( rsvg, cr ) ) # 241| { # 242| picture_Release( p_pic ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/synchro.c:559:13: warning[deadcode.DeadStores]: Value stored to 'next_dts' is never read # 557| /* By definition of a DTS. */ # 558| p_synchro->current_pts = next_dts; # 559|-> next_dts = 0; # 560| } # 561| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/synchro.c:566:13: warning[deadcode.DeadStores]: Value stored to 'next_pts' is never read # 564| /* Store the PTS for the next time we have to date an I picture. */ # 565| p_synchro->backward_pts = next_pts; # 566|-> next_pts = 0; # 567| } # 568| } Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/codec/textst.c: scope_hint: In function ‘textst_FillRegions’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/textst.c:225:1: warning[-Wanalyzer-malloc-leak]: leak of ‘p_region’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/textst.c: scope_hint: In function ‘textst_FillRegions’ # 223| } # 224| } # 225|-> } # 226| # 227| static int Decode(decoder_t *p_dec, block_t *p_block) Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/textst.c:225:1: warning[unix.Malloc]: Potential leak of memory pointed to by 'p_region' # 223| } # 224| } # 225|-> } # 226| # 227| static int Decode(decoder_t *p_dec, block_t *p_block) Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/ttml/ttml.c:367:14: warning[unix.Malloc]: Potential leak of memory pointed to by 'p_newnode' # 365| } # 366| } # 367|-> } while( 1 ); # 368| # 369| return VLC_SUCCESS; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/ttml/ttml.c:367:14: warning[unix.Malloc]: Potential leak of memory pointed to by 'p_textnode' # 365| } # 366| } # 367|-> } while( 1 ); # 368| # 369| return VLC_SUCCESS; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/codec/ttml/ttml.c:369:12: warning[unix.Malloc]: Potential leak of memory pointed to by 'p_node' # 367| } while( 1 ); # 368| # 369|-> return VLC_SUCCESS; # 370| } # 371| Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/codec/ttml/ttml.h:119:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t1’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/ttml/ttml.c: scope_hint: In function ‘tt_time_Compare’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/ttml/ttml.c: scope_hint: In function ‘tt_time_Compare’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/webvtt/CSSGrammar.c: scope_hint: In function ‘yyparse’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/webvtt/CSSGrammar.c:647:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/webvtt/CSSGrammar.c:632:9: note: in expansion of macro ‘YYCOPY’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/webvtt/CSSGrammar.c:1630:9: note: in expansion of macro ‘YYSTACK_RELOCATE’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/webvtt/CSSGrammar.c:632:9: note: in expansion of macro ‘YYCOPY’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/webvtt/CSSGrammar.c:1630:9: note: in expansion of macro ‘YYSTACK_RELOCATE’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/webvtt/CSSGrammar.c:632:9: note: in expansion of macro ‘YYCOPY’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/webvtt/CSSGrammar.c:1630:9: note: in expansion of macro ‘YYSTACK_RELOCATE’ # 645| # if defined __GNUC__ && 1 < __GNUC__ # 646| # define YYCOPY(Dst, Src, Count) \ # 647|-> __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src))) # 648| # else # 649| # define YYCOPY(Dst, Src, Count) \ Error: GCC_ANALYZER_WARNING (CWE-457): vlc-3.0.20-build/vlc-3.0.20/modules/codec/webvtt/CSSGrammar.c:1757:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/webvtt/CSSLexer.c: scope_hint: In function ‘yy_create_buffer’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/webvtt/CSSLexer.c:2466:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/webvtt/CSSLexer.c: scope_hint: In function ‘yy_create_buffer’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/webvtt/CSSLexer.c: scope_hint: In function ‘yy_init_buffer’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/webvtt/CSSLexer.c:2508:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/webvtt/CSSLexer.c: scope_hint: In function ‘yy_scan_buffer’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/webvtt/CSSLexer.c:2726:32: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/webvtt/CSSLexer.c: scope_hint: In function ‘yy_scan_buffer’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/codec/webvtt/webvtt.c: scope_hint: In function ‘forward_line’ vlc-3.0.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/modules/codec/zvbi.c: scope_hint: In function ‘OpaquePage’ vlc-3.0.20-build/vlc-3.0.20/modules/codec/zvbi.c:673:19: warning[-Wimplicit-fallthrough=]: this statement may fall through # 673 | if( b_opaque ) # | ^ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/control/dbus/dbus.c:438:9: warning[deadcode.DeadStores]: Value stored to 'expiry' is never read # 436| continue; # 437| # 438|-> expiry += UINT64_C(1000) * dbus_timeout_get_interval(to); # 439| vlc_mutex_unlock(&sys->lock); # 440| Error: GCC_ANALYZER_WARNING (CWE-457): vlc-3.0.20-build/vlc-3.0.20/modules/control/dbus/dbus.c: scope_hint: In function ‘ProcessEvents’ vlc-3.0.20-build/vlc-3.0.20/modules/control/dbus/dbus.c:579:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:970:12: note: in expansion of macro ‘mul_overflow’ vlc-3.0.20-build/vlc-3.0.20/modules/control/dbus/dbus.c: scope_hint: In function ‘ProcessEvents’ vlc-3.0.20-build/vlc-3.0.20/modules/control/dbus/dbus.c: scope_hint: In function ‘ProcessEvents’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/control/dbus/dbus.c: scope_hint: In function ‘Run’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/control/dbus/dbus.c: scope_hint: In function ‘InputCallback’ vlc-3.0.20-build/vlc-3.0.20/modules/control/dbus/dbus.c:959:1: warning[-Wanalyzer-malloc-leak]: leak of ‘p_info’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/control/dbus/dbus.c:1145:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'p_info' # 1143| *p_info = info; # 1144| vlc_mutex_lock( &p_intf->p_sys->lock ); # 1145|-> bool added = add_event_locked( p_intf, p_info ); # 1146| vlc_mutex_unlock( &p_intf->p_sys->lock ); # 1147| Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/control/dbus/dbus_player.c: scope_hint: In function ‘PropertiesChangedSignal’ vlc-3.0.20-build/vlc-3.0.20/modules/control/dbus/dbus_player.c:834:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ vlc-3.0.20-build/vlc-3.0.20/modules/control/dbus/dbus_player.h:31: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/control/dbus/dbus_player.c:40: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/control/dbus/dbus_player.c:798:5: note: in expansion of macro ‘SIGNAL_INIT’ vlc-3.0.20-build/vlc-3.0.20/modules/control/dbus/dbus_player.c:802:5: note: in expansion of macro ‘OUT_ARGUMENTS’ vlc-3.0.20-build/vlc-3.0.20/modules/control/dbus/dbus_common.h:82:25: note: in expansion of macro ‘DBUS_ADD’ vlc-3.0.20-build/vlc-3.0.20/modules/control/dbus/dbus_player.c:803:5: note: in expansion of macro ‘ADD_STRING’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/control/dbus/dbus_player.c:33: included_from: Included from here. # 832| } # 833| # 834|-> free( ppsz_properties ); # 835| # 836| if( !dbus_message_iter_close_container( &args, &changed_properties ) ) Error: COMPILER_WARNING (CWE-563): vlc-3.0.20-build/vlc-3.0.20/modules/control/gestures.c: scope_hint: In function ‘PlaylistEvent’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/control/hotkeys.c: scope_hint: In function ‘PlayBookmark’ vlc-3.0.20-build/vlc-3.0.20/modules/control/hotkeys.c:1428:14: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1036: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/control/hotkeys.c:34: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/control/hotkeys.c: scope_hint: In function ‘PlayBookmark’ vlc-3.0.20-build/vlc-3.0.20/modules/control/hotkeys.c:1423:26: note: in expansion of macro ‘var_CreateGetString’ /usr/include/sched.h:29: included_from: Included from here. /usr/include/pthread.h:22: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_threads.h:236: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:413: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/control/hotkeys.c:1423:26: note: in expansion of macro ‘var_CreateGetString’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/control/hotkeys.c:1426:5: note: in expansion of macro ‘FOREACH_ARRAY’ vlc-3.0.20-build/vlc-3.0.20/modules/control/hotkeys.c:1426:5: note: in expansion of macro ‘FOREACH_ARRAY’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:46: included_from: Included from here. /usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null # 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: vlc-3.0.20-build/vlc-3.0.20/modules/control/motion.c: scope_hint: In function ‘RunIntf’ vlc-3.0.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/control/netsync.c: scope_hint: In function ‘PlaylistEvent’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/control/oldrc.c: scope_hint: In function ‘VideoConfig’ vlc-3.0.20-build/vlc-3.0.20/modules/control/oldrc.c:1607:23: warning[-Wanalyzer-null-argument]: use of NULL ‘psz_value’ where non-null expected vlc-3.0.20-build/vlc-3.0.20/modules/control/oldrc.c:41: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/control/oldrc.c:38: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_variables.h:660:43: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/modules/control/oldrc.c:1566:23: note: in expansion of macro ‘var_GetFloat’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1036: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/control/oldrc.c:1586:9: note: in expansion of macro ‘var_Change’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:46: included_from: Included from here. /usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null # 1605| for ( int i = 0; i < val.p_list->i_count; i++ ) # 1606| { # 1607|-> if ( !strcmp( psz_value, val.p_list->p_values[i].psz_string ) ) # 1608| msg_rc( "| %s - %s *", val.p_list->p_values[i].psz_string, # 1609| text.p_list->p_values[i].psz_string ); Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/PlaylistManager.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-909): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/SegmentTracker.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/StreamFormat.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/Streams.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/adaptive.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/encryption/CommonEncryption.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/http/Chunk.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/http/HTTPConnection.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/logic/BufferingLogic.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/logic/BufferingLogic.cpp:217:17: warning[deadcode.DeadStores]: Value stored to 'safeMinElementNumber' is never read # 215| { # 216| safestarttime = edgetime - timeshiftdepth; # 217|-> safeMinElementNumber = timeline->getElementNumberByScaledPlaybackTime(safestarttime); # 218| } # 219| } Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/logic/NearOptimalAdaptationLogic.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/logic/PredictiveAdaptationLogic.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/logic/Representationselectors.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/logic/Representationselectors.cpp:113:16: warning[deadcode.DeadStores]: Although the value stored to 'candidate' is used in the enclosing expression, the value is never actually read from 'candidate' # 111| # 112| if (!candidate) # 113|-> return candidate = lowest; # 114| # 115| return candidate; Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/playlist/BasePeriod.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/playlist/SegmentInformation.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/playlist/SegmentList.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/playlist/SegmentTemplate.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/playlist/SegmentTimeline.cpp:119:12: warning[core.NullDereference]: Access to field 'number' results in a dereference of a null pointer (loaded from variable 'prevel') # 117| # 118| /* time is >> any of the list */ # 119|-> return prevel->number + prevel->r; # 120| } # 121| Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/playlist/Url.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/plumbing/CommandsQueue.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/plumbing/Demuxer.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/plumbing/FakeESOut.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-562): vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/plumbing/FakeESOut.cpp:296: error[invalidLifetime]: Using pointer to local variable 'fmt' that is out of scope. # 294| } # 295| # 296|-> es_id->setRealESID( realid ); # 297| } # 298| Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/plumbing/SourceStream.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/plumbing/SourceStream.cpp:232:5: warning[deadcode.DeadStores]: Value stored to 'i_toread' is never read # 230| # 231| i_bytestream_offset += i_read; # 232|-> i_toread -= i_read; # 233| # 234| if(i_bytestream_offset > MAX_BACKEND) Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/logic/RateBasedAdaptationLogic.h:29: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/demux/adaptive/PlaylistManager.cpp:35: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/asf/asf.c: scope_hint: In function ‘DemuxInit’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/asf/asf.c:910:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b_access_selected’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/asf/asf.c:31: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:78:13: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:87:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/asf/asf.c:846:5: note: in expansion of macro ‘msg_Dbg’ # 908| (int) p_sp->i_stream_number, # 909| &b_access_selected ) && # 910|-> !b_access_selected ) # 911| { # 912| tk->i_cat = UNKNOWN_ES; Error: GCC_ANALYZER_WARNING (CWE-688): vlc-3.0.20-build/vlc-3.0.20/modules/demux/asf/asf.c:1019:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fmt.p_extra’ where non-null expected vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:78:13: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:87:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/asf/asf.c:846:5: note: in expansion of macro ‘msg_Dbg’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/asf/asf.c:774:19: note: in definition of macro ‘GET_CHECKED’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/asf/asf.c:1014:43: note: in expansion of macro ‘__MIN’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/asf/asf.c: scope_hint: In function ‘DemuxInit’ <built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null # 1017| UINT_MAX, uint32_t ); # 1018| fmt.p_extra = malloc( fmt.i_extra ); # 1019|-> memcpy( fmt.p_extra, &p_data[sizeof( VLC_BITMAPINFOHEADER )], # 1020| fmt.i_extra ); # 1021| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/asf/asfpacket.c:127:13: warning[deadcode.DeadStores]: Value stored to 'i_payload_extensions_size' is never read # 125| { # 126| if ( i_data < 2 ) return; # 127|-> i_payload_extensions_size = GetWLE( p_data ); # 128| p_data += 2; # 129| i_data -= 2; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/asf/libasf.c:748:9: warning[deadcode.DeadStores]: Value stored to 'p_data' is never read # 746| char *psz_str = FromCharset( "UTF-16LE", p_data, i_size ); # 747| if( psz_str ) # 748|-> p_data += i_size; # 749| return psz_str; # 750| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/asf/libasf.c:1495:13: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value # 1493| if( p_father ) # 1494| { # 1495|-> if( p_father->common.p_first ) # 1496| { # 1497| p_father->common.p_last->common.p_next = p_obj; Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/demux/avformat/demux.c: scope_hint: In function ‘get_rotation’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/avformat/demux.c:141:5: warning[-Wdeprecated-declarations]: ‘av_stream_get_side_data’ is deprecated # 141 | int32_t *matrix = (int32_t *)av_stream_get_side_data(s, AV_PKT_DATA_DISPLAYMATRIX, NULL); # | ^~~~~~~ vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/avcommon_compat.h:120: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/avcommon.h:38: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/avcodec.h:25: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/demux/avformat/demux.c:41: included_from: Included from here. /usr/include/ffmpeg/libavformat/avformat.h:1917:10: note: declared here # 1917 | uint8_t *av_stream_get_side_data(const AVStream *stream, # | ^~~~~~~~~~~~~~~~~~~~~~~ # 139| fmt->video.orientation = ORIENT_NORMAL; # 140| } # 141|-> int32_t *matrix = (int32_t *)av_stream_get_side_data(s, AV_PKT_DATA_DISPLAYMATRIX, NULL); # 142| if( matrix ) { # 143| angle = lround(av_display_rotation_get(matrix)); Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/demux/avformat/demux.c: scope_hint: In function ‘avformat_OpenDemux’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/avformat/demux.c:404:13: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 404 | es_fmt.audio.i_channels = cp->channels; # | ^~~~~~ /usr/include/ffmpeg/libavcodec/avcodec.h:53: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/codec/avcodec/avcommon_compat.h:31: included_from: Included from here. /usr/include/ffmpeg/libavcodec/codec_par.h:166:14: note: declared here # 166 | int channels; # | ^~~~~~~~ # 402| es_fmt.i_original_fourcc = CodecTagToFourcc( cp->codec_tag ); # 403| es_fmt.i_bitrate = cp->bit_rate; # 404|-> es_fmt.audio.i_channels = cp->channels; # 405| es_fmt.audio.i_rate = cp->sample_rate; # 406| es_fmt.audio.i_bitspersample = cp->bits_per_coded_sample; Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/avformat/demux.c:451:3: warning[-Wcpp]: #warning FIXME: implement palette transmission # 451 | # warning FIXME: implement palette transmission # | ^~~~~~~ # 449| get_rotation(&es_fmt, s); # 450| # 451|-> # warning FIXME: implement palette transmission # 452| psz_type = "video"; # 453| Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/demux/avformat/mux.c: scope_hint: In function ‘AddStream’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/avformat/mux.c:270:9: warning[-Wdeprecated-declarations]: ‘channels’ is deprecated # 270 | codecpar->channels = fmt->audio.i_channels; # | ^~~~~~~~ /usr/include/ffmpeg/libavformat/avformat.h:312: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/demux/avformat/mux.c:36: included_from: Included from here. /usr/include/ffmpeg/libavcodec/codec_par.h:166:14: note: declared here # 166 | int channels; # | ^~~~~~~~ # 268| case AUDIO_ES: # 269| codecpar->codec_type = AVMEDIA_TYPE_AUDIO; # 270|-> codecpar->channels = fmt->audio.i_channels; # 271| codecpar->sample_rate = fmt->audio.i_rate; # 272| stream->time_base = (AVRational){1, codecpar->sample_rate}; Error: COMPILER_WARNING (CWE-252): vlc-3.0.20-build/vlc-3.0.20/modules/demux/avi/avi.c: scope_hint: In function ‘Demux_Seekable’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/avi/avi.c: scope_hint: In function ‘Seek’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/avi/avi.c: scope_hint: In function ‘AVI_StreamChunkFind’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/avi/avi.c:2189:92: warning[core.DivideZero]: Division by zero # 2187| tk->i_blockno = 0; # 2188| for( unsigned int i = 0; i < tk->i_idxposc; i++ ) # 2189|-> tk->i_blockno += ( tk->idx.p_entry[i].i_length + tk->i_blocksize - 1 ) / tk->i_blocksize; # 2190| } # 2191| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/avi/avi.c:2429:29: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<' is a garbage value # 2427| } # 2428| AVI_PacketGetHeader( p_demux, &avi_pk ); # 2429|-> if( avi_pk.i_stream < p_sys->i_track && # 2430| ( avi_pk.i_cat == AUDIO_ES || avi_pk.i_cat == VIDEO_ES ) ) # 2431| { Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/avi/avi.c:2754:34: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>' is a garbage value # 2752| for( unsigned i = 0; i < p_sys->i_track; i++ ) # 2753| { # 2754|-> if( p_idx_indx[i].i_size > p_idx_idx1[i].i_size ) # 2755| { # 2756| msg_Dbg( p_demux, "selected ODML index for stream[%u]", i ); Error: COMPILER_WARNING (CWE-252): vlc-3.0.20-build/vlc-3.0.20/modules/demux/avi/avi.c: scope_hint: In function ‘AVI_IndexCreate’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/avi/avi.c:3139:5: warning[deadcode.DeadStores]: Value stored to 'i_size' is never read # 3137| goto exit; # 3138| p += 6; # 3139|-> i_size -= 6; # 3140| # 3141| if( !psz_description ) Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/demux/caf.c: scope_hint: In function ‘ReadKukiChunk’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/caf.c:730:9: warning[-Wanalyzer-malloc-leak]: leak of ‘**p_demux.p_sys.fmt.p_extra’ # 728| return VLC_ENOMEM; # 729| } # 730|-> memcpy( p_sys->fmt.p_extra, p_peek, p_sys->fmt.i_extra ); # 731| } # 732| Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/dash/DASHManager.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/dash/DASHStream.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-909): vlc-3.0.20-build/vlc-3.0.20/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: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/dash/mpd/IsoffMainParser.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/dash/mpd/TemplatedUri.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING (CWE-563): vlc-3.0.20-build/vlc-3.0.20/modules/demux/flac.c: scope_hint: In function ‘GetPacketizedBlock’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/flac.c:231:17: warning[deadcode.DeadStores]: Value stored to 'i_ret' during its initialization is never read # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/gme.c: scope_hint: In function ‘Open’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/gme.c:143:13: warning[-Wanalyzer-malloc-leak]: leak of ‘vlc_input_title_New()’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1034: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/demux/gme.c:31: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:87:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/gme.c:88:5: note: in expansion of macro ‘msg_Dbg’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/gme.c:32: included_from: Included from here. # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/gme.c:154:30: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(*infos.song)’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:87:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/gme.c:88:5: note: in expansion of macro ‘msg_Dbg’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:79:23: note: in definition of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/gme.c:150:10: note: in expansion of macro ‘msg_Dbg’ # 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: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/hls/HLSManager.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/hls/HLSStreams.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/hls/playlist/HLSRepresentation.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/hls/playlist/M3U8.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/hls/playlist/Parser.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING (CWE-252): vlc-3.0.20-build/vlc-3.0.20/modules/demux/image.c: scope_hint: In function ‘IsWebP’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/image.c:424:5: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’ # 422| return false; # 423| /* skip headers */ # 424|-> vlc_stream_Seek(s, 20); # 425| return true; # 426| } Error: COMPILER_WARNING (CWE-252): vlc-3.0.20-build/vlc-3.0.20/modules/demux/image.c: scope_hint: In function ‘IsTarga’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/image.c:559:5: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/image.c:676:18: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value # 674| } # 675| if ((size_t) peek_size >= img->marker_size && # 676|-> !memcmp(peek, img->marker, img->marker_size)) # 677| break; # 678| } Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mkv/Ebml_parser.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mkv/chapter_command.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mkv/chapter_command.cpp:395:21: warning[deadcode.DeadStores]: Value stored to 'p_vchapter' is never read # 393| } # 394| // find the VMG # 395|-> p_vchapter = sys.BrowseCodecPrivate( 1, MatchIsVMG, NULL, 0, p_vsegment ); # 396| if ( p_vsegment != NULL ) # 397| { Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mkv/demux.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING (CWE-563): vlc-3.0.20-build/vlc-3.0.20/modules/demux/mkv/demux.cpp: scope_hint: In member function ‘bool demux_sys_t::AnalyseAllSegmentsFound(demux_t*, matroska_stream_c*, bool)’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mkv/demux.cpp:514:19: warning[deadcode.DeadStores]: Although the value stored to 'b_keep_segment' is used in the enclosing expression, the value is never actually read from 'b_keep_segment' # 512| # 513| if ( !p_segment1->p_segment_uid || # 514|-> (b_keep_segment = (FindSegment( *p_segment1->p_segment_uid ) == NULL))) # 515| { # 516| opened_segments.push_back( p_segment1 ); Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mkv/matroska_segment.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mkv/matroska_segment.cpp: scope_hint: In member function ‘void matroska_segment_c::ComputeTrackPriority()’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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", typeid(*el).name()); Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mkv/matroska_segment_parse.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING (CWE-563): vlc-3.0.20-build/vlc-3.0.20/modules/demux/mkv/matroska_segment_parse.cpp: scope_hint: In member function ‘void matroska_segment_c::ParseTracks(libmatroska::KaxTracks*)’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mkv/mkv.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mkv/mkv.cpp:589:40: warning[core.CallAndMessage]: Called C++ object pointer is null # 587| track.i_encoding_scope & MATROSKA_ENCODING_SCOPE_ALL_FRAMES ) # 588| { # 589|-> memcpy( p_block->p_buffer, track.p_compression_data->GetBuffer(), track.p_compression_data->GetSize() ); # 590| } # 591| if ( track.fmt.i_codec == VLC_CODEC_PRORES ) Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mkv/util.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mkv/virtual_segment.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mkv/virtual_segment.cpp:488:18: warning[core.NullDereference]: Access to field 'b_ordered' results in a dereference of a null pointer (loaded from variable 'p_cur_vedition') # 486| { # 487| /* out of the scope of the data described by chapters, leave the edition */ # 488|-> if ( p_cur_vedition->b_ordered && p_current_vchapter != NULL ) # 489| { # 490| if ( !p_current_vchapter->Leave( ) ) Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mkv/virtual_segment.cpp:516:38: warning[core.NullDereference]: Access to field 'p_chapter' results in a dereference of a null pointer (loaded from variable 'p_leaving_vchapter') # 514| return false; # 515| # 516|-> return p_chapter->EnterAndLeave( p_leaving_vchapter->p_chapter, b_enter ); # 517| } # 518| Error: GCC_ANALYZER_WARNING (CWE-688): vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/essetup.c: scope_hint: In function ‘SetupESDS’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/essetup.c:98:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*p_track.fmt.p_extra’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null # 96| { # 97| p_track->fmt.p_extra = malloc( p_track->fmt.i_extra ); # 98|-> memcpy( p_track->fmt.p_extra, p_decconfig->p_decoder_specific_info, # 99| p_track->fmt.i_extra ); # 100| } Error: GCC_ANALYZER_WARNING (CWE-688): vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/essetup.c: scope_hint: In function ‘SetupVideoES’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/essetup.c:484:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*p_track.fmt.p_extra’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null # 482| { # 483| p_track->fmt.p_extra = malloc( p_track->fmt.i_extra ); # 484|-> memcpy( p_track->fmt.p_extra, # 485| p_sample->data.p_sample_vide->p_qt_image_description, # 486| p_track->fmt.i_extra); Error: GCC_ANALYZER_WARNING (CWE-688): vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/essetup.c:520:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*p_track.fmt.p_extra’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null # 518| { # 519| p_track->fmt.p_extra = malloc( BOXDATA(p_dvc1)->i_vc1 ); # 520|-> memcpy( p_track->fmt.p_extra, BOXDATA(p_dvc1)->p_vc1, # 521| p_track->fmt.i_extra ); # 522| } Error: GCC_ANALYZER_WARNING (CWE-688): vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/essetup.c:567:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*p_track.fmt.p_extra’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null # 565| { # 566| p_track->fmt.p_extra = malloc( BOXDATA(p_avcC)->i_avcC ); # 567|-> memcpy( p_track->fmt.p_extra, BOXDATA(p_avcC)->p_avcC, # 568| p_track->fmt.i_extra ); # 569| } Error: GCC_ANALYZER_WARNING (CWE-688): vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/essetup.c:706:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*p_track.fmt.p_extra’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null # 704| { # 705| p_track->fmt.p_extra = malloc( BOXDATA(p_strf)->i_extra ); # 706|-> memcpy( p_track->fmt.p_extra, BOXDATA(p_strf)->p_extra, # 707| p_track->fmt.i_extra ); # 708| } Error: GCC_ANALYZER_WARNING (CWE-688): vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/essetup.c: scope_hint: In function ‘SetupAudioFromWaveFormatEx’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/essetup.c:758:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*p_fmt.p_extra’ where non-null expected vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/libmp4.h:26: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/mp4.h:29: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/essetup.c:27: included_from: Included from here. <built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null # 756| { # 757| p_fmt->p_extra = malloc( BOXDATA(p_WMA2)->i_extra ); # 758|-> memcpy( p_fmt->p_extra, BOXDATA(p_WMA2)->p_extra, p_fmt->i_extra ); # 759| } # 760| return true; Error: GCC_ANALYZER_WARNING (CWE-688): vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/essetup.c:758:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*p_track.fmt.p_extra’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null # 756| { # 757| p_fmt->p_extra = malloc( BOXDATA(p_WMA2)->i_extra ); # 758|-> memcpy( p_fmt->p_extra, BOXDATA(p_WMA2)->p_extra, p_fmt->i_extra ); # 759| } # 760| return true; Error: GCC_ANALYZER_WARNING (CWE-688): vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/essetup.c: scope_hint: In function ‘SetupAudioES’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/essetup.c:1222:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*p_track.fmt.p_extra’ where non-null expected vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/essetup.c:1200:20: note: in expansion of macro ‘BOXDATA’ <built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null # 1220| { # 1221| p_track->fmt.p_extra = malloc( p_track->fmt.i_extra ); # 1222|-> memcpy( p_track->fmt.p_extra, # 1223| p_sample->data.p_sample_soun->p_qt_description, # 1224| p_track->fmt.i_extra); Error: COMPILER_WARNING (CWE-126): vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/libmp4.c: scope_hint: In function ‘MP4_ReadBox_dref’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/libmp4.c:1567:12: warning[-Wstringop-overread]: ‘MP4_ReadBox_LtdContainer’ reading 2 bytes from a region of size 1 vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/libmp4.c:1567:12: note: referencing argument 3 of type ‘const uint8_t[2]’ {aka ‘const unsigned char[2]’} vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/libmp4.c:1508:12: note: in a call to function ‘MP4_ReadBox_LtdContainer’ # 1565| { # 1566| const uint8_t versions[] = {0}; # 1567|-> return MP4_ReadBox_LtdContainer( p_stream, p_box, versions, 1 ); # 1568| } # 1569| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/libmp4.c:4329:9: warning[deadcode.DeadStores]: Value stored to 'i_number_of_entries' is never read # 4327| } # 4328| if ( i < i_number_of_entries ) # 4329|-> i_number_of_entries = i; # 4330| # 4331| FIX_VARIABLE_LENGTH(p_tfra->i_length_size_of_traf_num); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/mp4.c:519:9: warning[deadcode.DeadStores]: Value stored to 'i_remaining' is never read # 517| p_read += 8; # 518| i_bytes -= 8; # 519|-> i_remaining -= 8; # 520| do # 521| { Error: COMPILER_WARNING (CWE-563): vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/mp4.c: scope_hint: In function ‘Demux’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/mp4.c:1485:18: warning[-Wunused-variable]: unused variable ‘p_sys’ # 1485 | demux_sys_t *p_sys = p_demux->p_sys; # | ^~~~~ # 1483| static int Demux( demux_t *p_demux ) # 1484| { # 1485|-> demux_sys_t *p_sys = p_demux->p_sys; # 1486| # 1487| assert( ! p_sys->b_fragmented ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/mp4.c:1485:18: warning[deadcode.DeadStores]: Value stored to 'p_sys' during its initialization is never read # 1483| static int Demux( demux_t *p_demux ) # 1484| { # 1485|-> demux_sys_t *p_sys = p_demux->p_sys; # 1486| # 1487| assert( ! p_sys->b_fragmented ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/mp4.c:2483:17: warning[deadcode.DeadStores]: Value stored to 'i_index_samples_left' is never read # 2481| if ( i_index_samples_left > i_sample_count ) # 2482| { # 2483|-> i_index_samples_left -= i_sample_count; # 2484| i_sample_count = 0; # 2485| *pi_entry +=1; /* No samples left, go copy */ Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/mp4.c:2484:17: warning[deadcode.DeadStores]: Value stored to 'i_sample_count' is never read # 2482| { # 2483| i_index_samples_left -= i_sample_count; # 2484|-> i_sample_count = 0; # 2485| *pi_entry +=1; /* No samples left, go copy */ # 2486| break; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/mp4.c:2639:25: warning[deadcode.DeadStores]: Value stored to 'i_sample_count' is never read # 2637| if ( i_sample_count ) ck->i_duration = i_next_dts - ck->i_first_dts; # 2638| i_current_index_samples_left -= i_sample_count; # 2639|-> i_sample_count = 0; # 2640| assert( i == ck->i_entries_dts - 1 ); # 2641| break; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/mp4.c:2742:25: warning[deadcode.DeadStores]: Value stored to 'i_sample_count' is never read # 2740| ck->p_sample_offset_pts[i] = i_ctsdelta; # 2741| i_current_index_samples_left -= i_sample_count; # 2742|-> i_sample_count = 0; # 2743| assert( i == ck->i_entries_pts - 1 ); # 2744| break; Error: COMPILER_WARNING (CWE-195): vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/mp4.c: scope_hint: In function ‘TrackTimeToSampleChunk’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/mp4.c:3098:32: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} # 3098 | for( i_index = 0; i_index < p_track->chunk[i_chunk].i_entries_dts && # | ^ # 3096| i_sample = p_track->chunk[i_chunk].i_sample_first; # 3097| i_dts = p_track->chunk[i_chunk].i_first_dts; # 3098|-> for( i_index = 0; i_index < p_track->chunk[i_chunk].i_entries_dts && # 3099| i_sample < p_track->chunk[i_chunk].i_sample_count; ) # 3100| { Error: COMPILER_WARNING (CWE-195): vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/mp4.c: scope_hint: In function ‘MP4_TrackSetELST’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/mp4.c:3987:29: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} # 3987 | if( i_elst_last < elst->i_entry_count && # | ^ # 3985| { # 3986| msg_Warn( p_demux, "elst old=%d new=%"PRIu32, i_elst_last, tk->i_elst ); # 3987|-> if( i_elst_last < elst->i_entry_count && # 3988| elst->i_media_time[i_elst_last] >= 0 ) # 3989| tk->i_next_block_flags |= BLOCK_FLAG_DISCONTINUITY; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/mp4.c:4572:14: warning[deadcode.DeadStores]: Value stored to 'i_traf_base_data_offset' during its initialization is never read # 4570| demux_sys_t *p_sys = p_demux->p_sys; # 4571| # 4572|-> uint64_t i_traf_base_data_offset = p_moof->i_pos; # 4573| uint32_t i_traf = 0; # 4574| uint64_t i_prev_traf_end = 0; Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/mp4.c: scope_hint: In function ‘MP4ASF_Send’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/mp4.c:5118:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_stream.h:27: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_demux.h:31: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/demux/asf/asfpacket.h:25: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/mp4.h:31: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/mp4.c:29: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_block.h: scope_hint: In function ‘MP4ASF_Send’ # 5116| { # 5117| block_t *p_gather = block_ChainGather( *pp_frame ); # 5118|-> p_gather->i_dts = p_track->i_dts_backup; # 5119| p_gather->i_pts = p_track->i_pts_backup; # 5120| es_out_Send( p_packetsys->p_demux->out, p_track->p_es, p_gather ); Error: COMPILER_WARNING (CWE-563): vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/essetup.c:31: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/mpeg4.h: scope_hint: In function ‘MPEG4_Codec_By_ObjectType’ vlc-3.0.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/es.c: scope_hint: In function ‘Control’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/es.c: scope_hint: In function ‘Control’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/es.c: scope_hint: In function ‘Parse’ vlc-3.0.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/es.c: scope_hint: In function ‘WavSkipHeader’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/h26x.c:277:24: warning[deadcode.DeadStores]: Value stored to 'p_probe' during its initialization is never read # 275| size_t i_peek_target = H26X_MIN_PEEK; # 276| size_t i_probe_offset = 4; # 277|-> const uint8_t *p_probe = p_peek; # 278| bool b_synced = true; # 279| unsigned i_bitflow = 0; Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/h26x.c: scope_hint: In function ‘GenericOpen’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/h26x.c:333:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_sys’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/h26x.c:32: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:78:13: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:83:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/h26x.c:326:9: note: in expansion of macro ‘msg_Err’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/mpeg4_iod.c:638:9: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined # 636| for( int i=0; i<i_count; i++ ) # 637| { # 638|-> od_descriptor_t *p_od = p_odsread[i]; # 639| int i_pos = -1; # 640| ARRAY_BSEARCH( p_ods->objects, ->i_ID, int, p_od->i_ID, i_pos ); Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/mpgv.c: scope_hint: In function ‘Open’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/mpgv.c:119:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_sys’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/ps.c: scope_hint: In function ‘NotifyDiscontinuity’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/ps.c:388:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b_selected’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/ps.c:37: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/ps.h: scope_hint: In function ‘ps_track_fill’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/ps.h:310:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected <built-in>: note: 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/ts.c:1928:37: warning[core.DivideZero]: Division by zero # 1926| /* Round i_pos to a multiple of p_sys->i_packet_size */ # 1927| uint64_t i_splitpos = i_head_pos + (i_tail_pos - i_head_pos) / 2; # 1928|-> uint64_t i_div = i_splitpos % p_sys->i_packet_size; # 1929| i_splitpos -= i_div; # 1930| Error: COMPILER_WARNING (CWE-252): vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/ts.c: scope_hint: In function ‘SeekToTime’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/ts.c:2002:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/ts.c: scope_hint: In function ‘MayHaveStartCodeOnEnd’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/ts_pid.c:141:17: warning[core.NullDereference]: Access to field 'i_pid' results in a dereference of an undefined pointer value # 139| if( p_list->i_all ) # 140| { # 141|-> if( p_list->pp_all[i_index]->i_pid < i_pid ) # 142| i_index++; # 143| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/ts_pid.c:141:17: warning[core.NullDereference]: Array access (via field 'pp_all') results in a null pointer dereference # 139| if( p_list->i_all ) # 140| { # 141|-> if( p_list->pp_all[i_index]->i_pid < i_pid ) # 142| i_index++; # 143| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/ts_pid.c:149:33: warning[core.NullDereference]: Array access (via field 'pp_all') results in a null pointer dereference # 147| } # 148| # 149|-> p_list->pp_all[i_index] = p_pid; # 150| p_list->i_all++; # 151| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/ts_psi.c:872:9: warning[deadcode.DeadStores]: Value stored to 'stream_count' is never read # 870| static const uint8_t p_csc[8] = { 0, 1, 1, 2, 2, 2, 3, 3 }; # 871| csc = p_csc[channels - 1]; # 872|-> stream_count = channels - csc; # 873| # 874| static const uint8_t maps[6][7] = { Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mpeg/ts_psi.c:926:9: warning[deadcode.DeadStores]: Value stored to 'stream_count' is never read # 924| } # 925| csc = 0; # 926|-> stream_count = channels; # 927| } else { # 928| msg_Err(demux, "Opus channel configuration 0x%.2x is reserved", ccc); Error: COMPILER_WARNING (CWE-195): vlc-3.0.20-build/vlc-3.0.20/modules/demux/nuv.c: scope_hint: In function ‘Control’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/nuv.c: scope_hint: In function ‘ControlSetPosition’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/nuv.c: scope_hint: In function ‘SeekTableLoad’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/nuv.c: scope_hint: In function ‘demux_IndexAppend’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/nuv.c:947:17: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.idx.idx’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/nuv.c:32: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:78:13: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:87:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/nuv.c:571:13: note: in expansion of macro ‘msg_Dbg’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/ogg.c:919:25: warning[core.NullDereference]: Access to field 'i_seekpoint' results in a dereference of a null pointer (loaded from variable 'p_title') # 917| seekpoint_t *p_seekpoint_copy = vlc_seekpoint_Duplicate( p_sys->pp_seekpoints[i] ); # 918| if ( likely( p_seekpoint_copy ) ) # 919|-> TAB_APPEND( p_title->i_seekpoint, p_title->seekpoint, p_seekpoint_copy ); # 920| } # 921| *pi_title_offset = 0; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/ogg.c:1715:48: warning[core.NullDereference]: Dereference of null pointer # 1713| p_ogg->i_streams--; # 1714| } # 1715|-> p_stream->fmt.b_packetized = false; # 1716| } # 1717| /* Check for Theora header */ Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/oggseek.c:255:17: warning[deadcode.DeadStores]: Value stored to 'i_result' is never read # 253| { # 254| if ( oy.unsynced ) # 255|-> i_result = ogg_sync_pageseek( &oy, &page ); # 256| # 257| buffer = ogg_sync_buffer( &oy, OGGSEEK_BYTES_TO_READ ); Error: COMPILER_WARNING (CWE-252): vlc-3.0.20-build/vlc-3.0.20/modules/demux/oggseek.c: scope_hint: In function ‘Oggseek_ProbeEnd’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/oggseek.c:310:5: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’ # 308| # 309| clean: # 310|-> vlc_stream_Seek( p_demux->s, i_backup_pos ); # 311| # 312| ogg_sync_clear( &oy ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/oggseek.c:360:13: warning[deadcode.DeadStores]: Value stored to 'i_pos1' is never read # 358| /* found a page, sync to page start */ # 359| p_sys->i_input_position -= i_result; # 360|-> i_pos1 = p_sys->i_input_position; # 361| continue; # 362| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/oggseek.c:577:13: warning[deadcode.DeadStores]: Value stored to 'i_pos1' is never read # 575| /* found a page, sync to page start */ # 576| p_sys->i_input_position -= i_result; # 577|-> i_pos1 = p_sys->i_input_position; # 578| continue; # 579| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/oggseek.c:584:13: warning[deadcode.DeadStores]: Value stored to 'i_pos1' is never read # 582| ! strncmp( (char *)p_sys->oy.data, "OggS" , 4 ) ) ) # 583| { # 584|-> i_pos1 = p_sys->i_input_position; # 585| break; # 586| } Error: COMPILER_WARNING (CWE-563): vlc-3.0.20-build/vlc-3.0.20/modules/demux/oggseek.c: scope_hint: In function ‘Oggseek_BlindSeektoPosition’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/oggseek.c:982:9: warning[deadcode.DeadStores]: Value stored to 'i_pagepos' is never read # 980| /* Peek back until we meet a keyframe to start our decoding up to our # 981| * final seek time */ # 982|-> i_pagepos = OggBackwardSeekToFrame( p_demux, # 983| __MAX ( i_size - MAX_PAGE_SIZE, p_stream->i_data_start ), # 984| __MIN ( i_size + MAX_PAGE_SIZE, p_demux->p_sys->i_total_bytes ), Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/oggseek.c:990:9: warning[deadcode.DeadStores]: Value stored to 'i_pagepos' is never read # 988| { # 989| /* Otherwise, we just sync to the next keyframe we meet */ # 990|-> i_pagepos = OggForwardSeekToFrame( p_demux, # 991| __MAX ( i_size - MIN_PAGE_SIZE, p_stream->i_data_start ), # 992| stream_Size( p_demux->s ), Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/oggseek.c:1044:63: warning[core.UndefinedBinaryOperatorResult]: The left operand of '-' is a garbage value # 1042| ? CLOCK_FREQ * ceil( sqrt( p_sys->i_length / CLOCK_FREQ ) / 2 ) # 1043| : CLOCK_FREQ * 5; # 1044|-> if ( i_pagepos >= p_stream->i_data_start && ( i_sync_time - i_lower_index >= index_interval ) ) # 1045| OggSeek_IndexAdd( p_stream, i_sync_time, i_pagepos ); # 1046| Error: COMPILER_WARNING (CWE-252): vlc-3.0.20-build/vlc-3.0.20/modules/demux/oggseek.c: scope_hint: In function ‘oggseek_read_page’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/oggseek.c:1082:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/oggseek.c:1091:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/asx.c: scope_hint: In function ‘ParseTime’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/asx.c:79:12: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘psz_value’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_access.h:27: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/asx.c:36: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/asx.c:640:28: note: in expansion of macro ‘vlc_stream_MemoryNew’ # 77| psz_start = psz_value; # 78| # 79|-> while( *psz_value ) # 80| { # 81| if( isdigit( *psz_value ) ) Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/asx.c:465:9: warning[deadcode.DeadStores]: Value stored to 'psz_source_old' is never read # 463| # 464| memstream_puts_xmlencoded(&stream_out, psz_source_old, psz_source_cur); # 465|-> psz_source_old = psz_source_cur; # 466| # 467| //skip if comment, no need to copy them to the output. Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/b4s.c: scope_hint: In function ‘ReadDir’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/b4s.c:79:16: warning[-Wanalyzer-malloc-leak]: leak of ‘psz_mrl’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/b4s.c: scope_hint: In function ‘ReadDir’ # 77| p_xml_reader = xml_ReaderCreate( p_demux, p_demux->p_source ); # 78| if( !p_xml_reader ) # 79|-> return -1; # 80| # 81| /* xml */ Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/b4s.c:217:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'psz_bitrate' # 215| } # 216| # 217|-> if( i_ret < 0 ) # 218| { # 219| msg_Warn( p_demux, "error while parsing data" ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/b4s.c:217:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'psz_genre' # 215| } # 216| # 217|-> if( i_ret < 0 ) # 218| { # 219| msg_Warn( p_demux, "error while parsing data" ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/b4s.c:217:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'psz_listeners' # 215| } # 216| # 217|-> if( i_ret < 0 ) # 218| { # 219| msg_Warn( p_demux, "error while parsing data" ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/b4s.c:217:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'psz_mrl' # 215| } # 216| # 217|-> if( i_ret < 0 ) # 218| { # 219| msg_Warn( p_demux, "error while parsing data" ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/b4s.c:217:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'psz_now' # 215| } # 216| # 217|-> if( i_ret < 0 ) # 218| { # 219| msg_Warn( p_demux, "error while parsing data" ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/b4s.c:217:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'psz_title' # 215| } # 216| # 217|-> if( i_ret < 0 ) # 218| { # 219| msg_Warn( p_demux, "error while parsing data" ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/itml.c:228:27: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull' # 226| { # 227| free( psz_key ); # 228|-> psz_key = strdup( psz_value ); # 229| } # 230| /* call the simple handler */ Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/podcast.c:77:15: warning[deadcode.DeadStores]: Although the value stored to 'ret' is used in the enclosing expression, the value is never actually read from 'ret' # 75| const char *node; # 76| int ret; # 77|-> if( ( ret = xml_ReaderNextNode( p_xml_reader, &node ) ) != XML_READER_STARTELEM # 78| || strcmp( node, "rss" ) ) # 79| { Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/podcast.c:347:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'psz_item_author' # 345| } # 346| # 347|-> if( i_type < 0 ) # 348| { # 349| msg_Warn( p_demux, "error while parsing data" ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/podcast.c:347:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'psz_item_category' # 345| } # 346| # 347|-> if( i_type < 0 ) # 348| { # 349| msg_Warn( p_demux, "error while parsing data" ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/podcast.c:347:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'psz_item_date' # 345| } # 346| # 347|-> if( i_type < 0 ) # 348| { # 349| msg_Warn( p_demux, "error while parsing data" ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/podcast.c:347:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'psz_item_duration' # 345| } # 346| # 347|-> if( i_type < 0 ) # 348| { # 349| msg_Warn( p_demux, "error while parsing data" ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/podcast.c:347:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'psz_item_keywords' # 345| } # 346| # 347|-> if( i_type < 0 ) # 348| { # 349| msg_Warn( p_demux, "error while parsing data" ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/podcast.c:347:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'psz_item_mrl' # 345| } # 346| # 347|-> if( i_type < 0 ) # 348| { # 349| msg_Warn( p_demux, "error while parsing data" ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/podcast.c:347:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'psz_item_name' # 345| } # 346| # 347|-> if( i_type < 0 ) # 348| { # 349| msg_Warn( p_demux, "error while parsing data" ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/podcast.c:347:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'psz_item_size' # 345| } # 346| # 347|-> if( i_type < 0 ) # 348| { # 349| msg_Warn( p_demux, "error while parsing data" ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/podcast.c:347:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'psz_item_subtitle' # 345| } # 346| # 347|-> if( i_type < 0 ) # 348| { # 349| msg_Warn( p_demux, "error while parsing data" ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/podcast.c:347:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'psz_item_summary' # 345| } # 346| # 347|-> if( i_type < 0 ) # 348| { # 349| msg_Warn( p_demux, "error while parsing data" ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/podcast.c:347:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'psz_item_type' # 345| } # 346| # 347|-> if( i_type < 0 ) # 348| { # 349| msg_Warn( p_demux, "error while parsing data" ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/ram.c:368:13: warning[deadcode.DeadStores]: Value stored to 'i_start' is never read # 366| i_options = 0; # 367| i_duration = -1; # 368|-> i_start = 0; # 369| i_stop = 0; # 370| b_cleanup = false; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/ram.c:369:13: warning[deadcode.DeadStores]: Value stored to 'i_stop' is never read # 367| i_duration = -1; # 368| i_start = 0; # 369|-> i_stop = 0; # 370| b_cleanup = false; # 371| } Error: GCC_ANALYZER_WARNING (CWE-688): vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/ram.c: scope_hint: In function ‘ParseClipInfo’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/ram.c:393:24: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘psz_temp_clipinfo’ where non-null expected <built-in>: note: 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/sgimb.c: scope_hint: In function ‘ParseLine’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/sgimb.c:222:24: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(psz_bol)’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/sgimb.c:240:24: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(psz_bol)’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/sgimb.c:246:27: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(psz_bol)’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/sgimb.c:252:29: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(psz_bol)’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/sgimb.c:258:25: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(psz_bol)’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/sgimb.c:264:29: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(psz_bol)’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/sgimb.c:270:25: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(psz_bol)’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/playlist/sgimb.c:282:29: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(psz_bol)’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/pva.c:405:16: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value # 403| # 404| /* See §2.4.3.6 of ISO 13818-1 */ # 405|-> if( hdr[0] != 0 || hdr[1] != 0 || hdr[2] != 1 ) # 406| { # 407| msg_Warn( p_demux, "invalid hdr [0x%2.2x:%2.2x:%2.2x:%2.2x]", Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/smooth/SmoothManager.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/smooth/SmoothStream.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/smooth/mp4/SmoothIndexReader.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/smooth/playlist/ForgedInitSegment.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/smooth/playlist/QualityLevel.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/smooth/playlist/SmoothParser.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-688): vlc-3.0.20-build/vlc-3.0.20/modules/demux/subtitle.c: scope_hint: In function ‘ParseAQT’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/subtitle.c:1638:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘psz_text’ where non-null expected vlc-3.0.20-build/vlc-3.0.20/modules/demux/subtitle.c: scope_hint: In function ‘ParseAQT’ <built-in>: note: 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/subtitle.c: scope_hint: In function ‘ParseMPSub’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/subtitle.c:1783:24: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘psz_text’ where non-null expected vlc-3.0.20-build/vlc-3.0.20/modules/demux/subtitle.c: scope_hint: In function ‘ParseMPSub’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/subtitle.c: scope_hint: In function ‘ParseMPSub’ <built-in>: note: 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/subtitle.c: scope_hint: In function ‘ParseJSS’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/subtitle.c:1983:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘psz_text2’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/subtitle.c: scope_hint: In function ‘ParseJSS’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/subtitle.c:39: included_from: Included from here. # 1981| if( !p_props->jss.i_comment ) # 1982| { # 1983|-> *psz_text2 = ' '; # 1984| psz_text2++; # 1985| } Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/demux/subtitle.c:1993:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘psz_text2’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/subtitle.c: scope_hint: In function ‘ParseJSS’ # 1991| if( !p_props->jss.i_comment ) # 1992| { # 1993|-> *psz_text2 = ' '; # 1994| psz_text2++; # 1995| } Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/demux/subtitle.c:2000:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘psz_text2’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/subtitle.c: scope_hint: In function ‘ParseJSS’ # 1998| if( (*(psz_text + 1 ) ) == 'n' ) # 1999| { # 2000|-> *psz_text2 = '\n'; # 2001| psz_text++; # 2002| psz_text2++; Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/demux/subtitle.c:2031:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘psz_text2’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/subtitle.c: scope_hint: In function ‘ParseJSS’ # 2029| if( !p_props->jss.i_comment ) # 2030| { # 2031|-> *psz_text2 = *psz_text; # 2032| psz_text2++; # 2033| } Error: GCC_ANALYZER_WARNING (CWE-688): vlc-3.0.20-build/vlc-3.0.20/modules/demux/subtitle.c: scope_hint: In function ‘get_language_from_filename’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/subtitle.c:2467:15: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘psz_work’ where non-null expected vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:46: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/demux/subtitle.c:34: included_from: Included from here. /usr/include/string.h:273:14: note: argument 1 of ‘strrchr’ must be non-null # 2465| # 2466| /* Removing extension, but leaving the dot */ # 2467|-> psz_tmp = strrchr( psz_work, '.' ); # 2468| if( psz_tmp ) # 2469| { Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c:517:14: warning[deadcode.DeadStores]: Although the value stored to 'i64' is used in the enclosing expression, the value is never actually read from 'i64' # 515| f = (double) va_arg( args, double ); # 516| /* msg_Dbg(p_demux, "Control - set position to %2.3f", f); */ # 517|-> if ((i64 = p_sys->i_stream_size) > 0) # 518| return ty_stream_seek_pct(p_demux, f); # 519| return VLC_EGENERIC; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c:1082:23: warning[core.NullDereference]: Dereference of null pointer # 1080| l_skip_amt = 0; # 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); Error: COMPILER_WARNING (CWE-252): vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c: scope_hint: In function ‘ty_stream_seek_pct’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c:1083:5: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c: scope_hint: In function ‘ty_stream_seek_time’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c:1491:13: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c:1495:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c:1505:13: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c:1509:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c:1535:13: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c:1539:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c:1556:13: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c:1566:17: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c:1599:5: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Read’ declared with attribute ‘warn_unused_result’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c: scope_hint: In function ‘parse_master’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c:1628:5: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Read’ declared with attribute ‘warn_unused_result’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c: scope_hint: In function ‘parse_master’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c:1644:8: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.seq_table’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c:1650:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Read’ declared with attribute ‘warn_unused_result’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c:1654:13: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Read’ declared with attribute ‘warn_unused_result’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c:1656: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); # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c:1677:5: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Seek’ declared with attribute ‘warn_unused_result’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c: scope_hint: In function ‘get_chunk_header’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c:1854:9: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Read’ declared with attribute ‘warn_unused_result’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c:1903:5: warning[-Wunused-result]: ignoring return value of ‘vlc_stream_Read’ declared with attribute ‘warn_unused_result’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c: scope_hint: In function ‘get_chunk_header’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c:1915:5: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.rec_hdrs’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c:42: included_from: Included from here. # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c: scope_hint: In function ‘parse_chunk_headers’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/ty.c:1939:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_rec_hdr’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/vobsub.c: scope_hint: In function ‘Control’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/vobsub.c:261:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b_selected’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/vobsub.c: scope_hint: In function ‘ParseVobSubIDX’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/vobsub.c:605:48: warning[-Wanalyzer-malloc-leak]: leak of ‘xrealloc(*current_tk.p_subtitles, (long unsigned int)(*current_tk.i_subtitles + 2) * 16)’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/vobsub.c: scope_hint: In function ‘ParseVobSubIDX’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/vobsub.c:35: included_from: Included from here. # 603| current_sub = ¤t_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): vlc-3.0.20-build/vlc-3.0.20/modules/demux/webvtt.c: scope_hint: In function ‘demux_Range’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/xiph_metadata.c:292:24: warning[deadcode.DeadStores]: Although the value stored to 'p_seekpoint' is used in the enclosing expression, the value is never actually read from 'p_seekpoint' # 290| *pb_valid = false; # 291| } # 292|-> *pp_tmppoint = p_seekpoint = vlc_seekpoint_New(); # 293| } # 294| else if( p_seekpoint && !strncasecmp( psz_line, " INDEX 01 ", 13 ) ) Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c: scope_hint: In function ‘DrawStatus’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c: scope_hint: In function ‘HandleCommonKey’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/ncurses.c:1560:12: warning[-Wimplicit-fallthrough=]: this statement may fall through # 1560 | if (getch() != ERR) # | ^ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/complete_preferences.cpp: scope_hint: In constructor ‘PrefsTree::PrefsTree(intf_thread_t*, QWidget*, module_t**, size_t)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/controller.cpp: scope_hint: In member function ‘void AbstractController::parseAndCreate(const QString&, QBoxLayout*)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/gui/qt/qt.hpp:43: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/controller.cpp: scope_hint: In member function ‘QWidget* AbstractController::createWidget(buttonType_e, int)’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/controller.cpp:380:19: warning[-Wimplicit-fallthrough=]: this statement may fall through # 380 | b_special = true; # | ~~~~~~~~~~^~~~~~ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/controller.cpp: scope_hint: In constructor ‘ControlsWidget::ControlsWidget(intf_thread_t*, bool, QWidget*)’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/controller.cpp: scope_hint: In member function ‘void FullscreenControllerWidget::restoreFSC()’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/controller.cpp: scope_hint: In member function ‘void FullscreenControllerWidget::centerFSC(int)’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/controller.cpp: scope_hint: In member function ‘void FullscreenControllerWidget::updateFullwidthGeometry(int)’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/controller.cpp: scope_hint: In member function ‘int FullscreenControllerWidget::targetScreen()’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/controller.cpp: scope_hint: In member function ‘virtual void FullscreenControllerWidget::mouseMoveEvent(QMouseEvent*)’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/epg/EPGChannels.cpp: scope_hint: In member function ‘void EPGChannels::addProgram(const EPGProgram*)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/gui/qt/qt.hpp:44: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/epg/EPGChannels.cpp: scope_hint: In member function ‘virtual void EPGChannels::paintEvent(QPaintEvent*)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/gui/qt/components/epg/EPGChannels.hpp:28: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/epg/EPGView.cpp: scope_hint: In member function ‘virtual void EPGGraphicsScene::drawBackground(QPainter*, const QRectF&)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/gui/qt/components/epg/EPGProgram.hpp:29: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/epg/EPGView.hpp:29: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/epg/EPGView.cpp: scope_hint: In member function ‘void EPGView::setScale(double)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/extended_panels.cpp: scope_hint: In function ‘bool filterIsPresent(const QString&, const QString&)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/extended_panels.cpp: scope_hint: In function ‘QString ChangeFiltersString(intf_thread_t*, const char*, const char*, bool)’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/extended_panels.cpp: scope_hint: In member function ‘QStringList EqualizerSliderData::getBandsFromAout() const’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/extended_panels.cpp: scope_hint: In member function ‘virtual void Equalizer::build()’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/info_panels.cpp: scope_hint: In member function ‘void InfoPanel::update(input_item_t*)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/gui/qt/components/preferences_widgets.hpp:41: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/open_panels.hpp:35: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/dialogs/open.hpp:36: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/dialogs_provider.hpp:36: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/info_panels.cpp: scope_hint: In constructor ‘InputStatsPanel::InputStatsPanel(QWidget*)’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/info_panels.cpp:551:23: 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.20-build/vlc-3.0.20/modules/gui/qt/qt.hpp:43: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/info_panels.cpp:614:22: 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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/info_panels.cpp: scope_hint: In member function ‘void InputStatsPanel::update(input_item_t*)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/interface_widgets.cpp: scope_hint: In constructor ‘EasterEggBackgroundWidget::EasterEggBackgroundWidget(intf_thread_t*)’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/interface_widgets.cpp: scope_hint: In member function ‘void EasterEggBackgroundWidget::spawnFlakes()’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/gui/qt/qt.hpp:43: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/interface_widgets.cpp: scope_hint: In member function ‘virtual void EasterEggBackgroundWidget::paintEvent(QPaintEvent*)’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/interface_widgets.hpp: scope_hint: At global scope vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/open_panels.cpp:1379:42: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'gLayout' # 1377| # 1378| /* Button stuffs */ # 1379|-> QDialogButtonBox *advButtonBox = new QDialogButtonBox( adv ); # 1380| QPushButton *closeButton = new QPushButton( qtr( "OK" ) ); # 1381| QPushButton *cancelButton = new QPushButton( qtr( "Cancel" ) ); Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/playlist/playlist_model.cpp: scope_hint: In member function ‘virtual QMimeData* PLModel::mimeData(const QModelIndexList&) const’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/gui/qt/qt.hpp:44: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/playlist/playlist_model.cpp:738:65: warning[core.CallAndMessage]: Called C++ object pointer is null # 736| void PLModel::updateChildren( PLItem *root ) # 737| { # 738|-> playlist_item_t *p_node = playlist_ItemGetById( p_playlist, root->id() ); # 739| updateChildren( p_node, root ); # 740| } Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/playlist/selector.cpp: scope_hint: In member function ‘void PLSelector::setSource(QTreeWidgetItem*)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/gui/qt/qt.hpp:34: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/playlist/selector.cpp:29: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/playlist/selector.cpp: scope_hint: In member function ‘virtual void PLSelector::wheelEvent(QWheelEvent*)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/playlist/standardpanel.cpp: scope_hint: In member function ‘virtual void StandardPLPanel::wheelEvent(QWheelEvent*)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/gui/qt/components/playlist/playlist.hpp:41: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/playlist/standardpanel.hpp:32: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/playlist/vlc_model.cpp:74:12: warning[core.CallAndMessage]: Called C++ object pointer is null # 72| QString VLCModel::getMeta( const QModelIndex & index, int meta ) # 73| { # 74|-> return index.model()->index( index.row(), columnFromMeta( meta ), index.parent() ). # 75| data().toString(); # 76| } Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/gui/qt/components/playlist/vlc_model.hpp:39: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/playlist/vlc_model.cpp: scope_hint: In member function ‘virtual void VLCModel::ensureArtRequested(const QModelIndex&)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/preferences_widgets.cpp: scope_hint: In member function ‘virtual void FileConfigControl::fillGrid(QGridLayout*, int)’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/preferences_widgets.cpp:279:17: 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.20-build/vlc-3.0.20/modules/gui/qt/qt.hpp:43: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/preferences_widgets.hpp:33: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/preferences_widgets.cpp: scope_hint: In member function ‘virtual void ModuleConfigControl::fillGrid(QGridLayout*, int)’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/preferences_widgets.cpp:527:17: 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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/preferences_widgets.cpp: scope_hint: In member function ‘virtual void BoolConfigControl::fillGrid(QGridLayout*, int)’ vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/preferences_widgets.cpp:937:17: 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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/preferences_widgets.cpp: scope_hint: In member function ‘void KeySelectorControl::finish()’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/simple_preferences.cpp: scope_hint: In constructor ‘SPrefsPanel::SPrefsPanel(intf_thread_t*, QWidget*, int)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/gui/qt/ui/sprefs_input.h:13: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/simple_preferences.hpp:34: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/sout/profile_selector.cpp:522:5: warning[core.CallAndMessage]: Called C++ object pointer is null # 520| module_list_free (p_all); # 521| # 522|-> ui.valueholder_video_filters->sortItems(); # 523| ui.valueholder_audio_filters->sortItems(); # 524| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/components/sout/profile_selector.cpp:523:5: warning[core.CallAndMessage]: Called C++ object pointer is null # 521| # 522| ui.valueholder_video_filters->sortItems(); # 523|-> ui.valueholder_audio_filters->sortItems(); # 524| } # 525| Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/dialogs/bookmarks.cpp: scope_hint: In member function ‘void BookmarksDialog::update()’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/dialogs/bookmarks.cpp: scope_hint: In member function ‘void BookmarksDialog::del()’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/dialogs/bookmarks.cpp: scope_hint: In member function ‘void BookmarksDialog::edit(QTreeWidgetItem*, int)’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/dialogs/epg.cpp: scope_hint: In member function ‘void EpgDialog::displayEvent(EPGItem*)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/dialogs/openurl.cpp:60:5: warning[deadcode.DeadStores]: Value stored to 'but' is never read # 58| CONNECT( but, clicked(), this, enqueue() ); # 59| # 60|-> but = box->addButton( qtr( "&Cancel" ) , QDialogButtonBox::RejectRole ); # 61| CONNECT( box, rejected(), this, reject() ); # 62| Error: COMPILER_WARNING (CWE-563): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/dialogs/plugins.cpp: scope_hint: In constructor ‘ExtensionTab::ExtensionTab(intf_thread_t*)’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/dialogs/plugins.cpp:265:24: warning[deadcode.DeadStores]: Value stored to 'EM' during its initialization is never read # 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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/dialogs/podcast_configuration.cpp: scope_hint: In member function ‘virtual void PodcastConfigDialog::accept()’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/gui/qt/qt.hpp:34: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/util/qvlcframe.hpp:37: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/dialogs/toolbar.cpp: scope_hint: In member function ‘virtual void PreviewWidget::paintEvent(QPaintEvent*)’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/gui/qt/ui/vlm.h:13: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/dialogs_provider.cpp:429:13: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value # 427| { # 428| for( i = 0; i < p_arg->i_results; i++ ) # 429|-> free( p_arg->psz_results[i] ); # 430| free( p_arg->psz_results ); # 431| } Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/main_interface.cpp: scope_hint: In member function ‘void MainInterface::setVideoSize(unsigned int, unsigned int)’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/main_interface.cpp: scope_hint: In member function ‘virtual void MainInterface::setVideoFullScreen(bool)’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/menus.cpp:401:9: warning[deadcode.DeadStores]: Value stored to 'action' is never read # 399| if( mi && mi->getSysTray() ) # 400| { # 401|-> action = menu->addAction( qtr( "Close to systray"), mi, # 402| SLOT( toggleUpdateSystrayMenu() ) ); # 403| } Error: COMPILER_WARNING (CWE-563): vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/menus.cpp: scope_hint: In static member function ‘static int VLCMenuBar::CreateChoicesMenu(QMenu*, const char*, vlc_object_t*)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/gui/qt/qt.hpp:43: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/menus.hpp:28: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/menus.cpp:1574:5: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'actionGroup' # 1572| free( names[i] ); # 1573| } # 1574|-> free( ids ); # 1575| free( names ); # 1576| free( selected ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/qt.cpp:410:13: warning[deadcode.DeadStores]: Value stored to 'thread' during its initialization is never read # 408| { # 409| intf_thread_t *p_intf = (intf_thread_t *)p_this; # 410|-> void *(*thread)(void *) = Thread; # 411| # 412| #ifdef QT5_HAS_X11 Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/qt.cpp:791:9: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value # 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-457): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/qt.cpp: scope_hint: In function ‘WindowOpen(vout_window_t*, vout_window_cfg_t const*)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/styles/seekstyle.cpp:52:22: warning[deadcode.DeadStores]: Although the value stored to 'slider' is used in the enclosing expression, the value is never actually read from 'slider' # 50| const QStyleOptionSlider *slider; # 51| # 52|-> if ( widget && ( slider = qstyleoption_cast<const QStyleOptionSlider *>( option ) ) ) # 53| { # 54| switch( metric ) Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/util/input_slider.cpp: scope_hint: In member function ‘virtual void SeekSlider::mouseReleaseEvent(QMouseEvent*)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/gui/qt/qt.hpp:43: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/util/input_slider.cpp: scope_hint: In member function ‘virtual void SeekSlider::mousePressEvent(QMouseEvent*)’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/util/input_slider.cpp: scope_hint: In member function ‘virtual void SeekSlider::mouseMoveEvent(QMouseEvent*)’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/util/input_slider.cpp: scope_hint: In member function ‘virtual void SeekSlider::wheelEvent(QWheelEvent*)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/util/input_slider.cpp: scope_hint: In member function ‘virtual void SeekSlider::paintEvent(QPaintEvent*)’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/util/input_slider.cpp: scope_hint: In member function ‘virtual void SoundSlider::wheelEvent(QWheelEvent*)’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/util/pictureflow.cpp: scope_hint: In member function ‘virtual void PictureFlow::wheelEvent(QWheelEvent*)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/gui/qt/util/pictureflow.hpp:39: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/dialogs/open.hpp:34: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/dialogs_provider.hpp:36: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/recents.cpp:27: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/util/qvlcframe.hpp: scope_hint: In static member function ‘static bool QVLCTools::restoreWidgetPosition(QSettings*, QWidget*, QSize, QPoint)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/util/timetooltip.cpp: scope_hint: In member function ‘void TimeTooltip::adjustPosition()’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/gui/qt/util/timetooltip.cpp: scope_hint: In member function ‘virtual void TimeTooltip::paintEvent(QPaintEvent*)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/modules/gui/skins2/controls/ctrl_image.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/skins2/controls/ctrl_list.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/skins2/controls/ctrl_radialslider.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/skins2/controls/ctrl_text.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/skins2/controls/ctrl_tree.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/skins2/events/evt_input.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/skins2/parser/builder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/skins2/parser/expr_evaluator.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/skins2/parser/interpreter.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/skins2/src/ft2_font.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/skins2/src/scaled_bitmap.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/skins2/src/scaled_bitmap.cpp:39:15: warning[deadcode.DeadStores]: Value stored to 'pSrcData' during its initialization is never read # 37| int srcWidth = rBitmap.getWidth(); # 38| int srcHeight = rBitmap.getHeight(); # 39|-> uint32_t *pSrcData = (uint32_t*)rBitmap.getData(); # 40| uint32_t *pDestData = (uint32_t*)m_pData; # 41| Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/skins2/src/skin_main.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/skins2/src/theme_loader.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/skins2/src/vlcproc.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/skins2/src/window_manager.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/skins2/utils/ustring.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1034: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/gui/skins2/src/skin_common.hpp:32: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/gui/skins2/utils/ustring.hpp:28: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/gui/skins2/utils/ustring.cpp:26: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/gui/skins2/utils/ustring.cpp: scope_hint: In member function ‘UString::UString(intf_thread_t*, char const*)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/skins2/utils/var_text.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/skins2/vars/playtree.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/skins2/x11/x11_display.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/skins2/x11/x11_dragdrop.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/skins2/x11/x11_loop.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/gui/skins2/x11/x11_window.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/hw/vaapi/filters.c:344:22: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value # 342| # 343| error: # 344|-> if (pipeline_buf != VA_INVALID_ID) # 345| vlc_vaapi_DestroyBuffer(VLC_OBJECT(filter), # 346| filter_sys->va.dpy, pipeline_buf); Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/hw/vaapi/vlc_vaapi.c: scope_hint: In function ‘pic_ctx_copy_cb’ vlc-3.0.20-build/vlc-3.0.20/modules/hw/vaapi/vlc_vaapi.c:590:12: warning[-Wanalyzer-malloc-leak]: leak of ‘dst_ctx’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/hw/vdpau/picture.c: scope_hint: In function ‘SurfaceCopy’ vlc-3.0.20-build/vlc-3.0.20/modules/hw/vdpau/picture.c:75:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fnew’ # 73| # 74| atomic_fetch_add(&frame->refs, 1); # 75|-> return &fnew->context; # 76| } # 77| Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/hw/vdpau/picture.c: scope_hint: In function ‘vlc_vdp_video_attach’ vlc-3.0.20-build/vlc-3.0.20/modules/hw/vdpau/picture.c:124:18: warning[-Wanalyzer-malloc-leak]: leak of ‘vlc_vdp_video_create(vdp, surface)’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/keystore/file.c:201:13: warning[deadcode.DeadStores]: Although the value stored to 'i_read' is used in the enclosing expression, the value is never actually read from 'i_read' # 199| bool b_valid = false; # 200| # 201|-> while ((i_read = getline(&psz_line, &i_line_len, p_file)) != -1) # 202| { # 203| char *p = psz_line; Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/lua/demux.c: scope_hint: In function ‘probe_luascript’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/demux.c:200:27: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(filename)’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/vlc.h:43: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/lua/demux.c:38: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1034: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/lua/demux.c:35: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:87:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/demux.c:197:13: note: in expansion of macro ‘msg_Dbg’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/lua/extension.c: scope_hint: In function ‘vlclua_extension_require’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/extension.c:240:11: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘psz_package’ where non-null expected vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:46: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/lua/vlc.h:31: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/lua/extension.c:32: included_from: Included from here. /usr/include/string.h:273:14: note: argument 1 of ‘strrchr’ must be non-null # 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: vlc-3.0.20-build/vlc-3.0.20/modules/lua/extension.c: scope_hint: In function ‘ScanLuaCallback’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/lua/extension.c: scope_hint: In function ‘Control’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/lua/extension.c: scope_hint: In function ‘inputItemMetaChanged’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/lua/extension_thread.c: scope_hint: In function ‘PushCommand__’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/extension_thread.c:260:5: warning[-Wanalyzer-malloc-leak]: leak of ‘cmd’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/lua/intf.c: scope_hint: In function ‘MakeConfig’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/intf.c:91:14: warning[-Wanalyzer-null-argument]: use of NULL ‘psz_config’ where non-null expected vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1038: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/lua/intf.c:35: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/lua/intf.c:210:5: note: in expansion of macro ‘config_ChainParse’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1034: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:87:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/intf.c:239:5: note: in expansion of macro ‘msg_Dbg’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/intf.c:39: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/lua/intf.c:248:5: note: in expansion of macro ‘vlclua_set_this’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1036: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/lua/intf.c:304:24: note: in expansion of macro ‘var_InheritString’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/intf.c:304:24: note: in expansion of macro ‘var_InheritString’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/intf.c:304:24: note: in expansion of macro ‘var_InheritString’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_variables.h:642:51: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/intf.c:90:26: note: in expansion of macro ‘var_InheritString’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/intf.c:90:26: note: in expansion of macro ‘var_InheritString’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/intf.c:90:26: note: in expansion of macro ‘var_InheritString’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:46: included_from: Included from here. /usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null # 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): vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c: scope_hint: In function ‘vlclua_dialog_add_button.part.0’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c:425:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_widget’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c: scope_hint: In function ‘vlclua_dialog_add_label.part.0’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c:448:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_widget’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c:450:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'p_widget' # 448| p_widget->psz_text = strdup( luaL_checkstring( L, 2 ) ); # 449| # 450|-> return vlclua_create_widget_inner( L, 1, p_widget ); # 451| } # 452| Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c: scope_hint: In function ‘vlclua_dialog_add_text_inner’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c:465:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_widget’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c:469:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'p_widget' # 467| p_widget->psz_text = strdup( luaL_checkstring( L, 2 ) ); # 468| # 469|-> return vlclua_create_widget_inner( L, 1, p_widget ); # 470| } # 471| Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c: scope_hint: In function ‘vlclua_dialog_add_check_box.part.0’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c:484:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_widget’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c:488:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'p_widget' # 486| p_widget->b_checked = lua_toboolean( L, 3 ); # 487| # 488|-> return vlclua_create_widget_inner( L, 2, p_widget ); # 489| } # 490| Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c: scope_hint: In function ‘vlclua_dialog_add_dropdown’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c:500:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_widget’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c:502:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'p_widget' # 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-401): vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c:502:12: warning[-Wanalyzer-malloc-leak]: leak of ‘p_widget’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c: scope_hint: In function ‘vlclua_dialog_add_list’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c:513:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_widget’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c:515:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'p_widget' # 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-401): vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c:515:12: warning[-Wanalyzer-malloc-leak]: leak of ‘p_widget’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c: scope_hint: In function ‘vlclua_dialog_add_image.part.0’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c:530:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_widget’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c:533:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'p_widget' # 531| p_widget->psz_text = strdup( luaL_checkstring( L, 2 ) ); # 532| # 533|-> return vlclua_create_widget_inner( L, 1, p_widget ); # 534| } # 535| Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c: scope_hint: In function ‘vlclua_dialog_add_spin_icon’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c:548:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_widget’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c:550:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'p_widget' # 548| p_widget->type = EXTENSION_WIDGET_SPIN_ICON; # 549| # 550|-> return vlclua_create_widget_inner( L, 0, p_widget ); # 551| } # 552| Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c: scope_hint: In function ‘vlclua_dialog_add_check_box.part.0’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c:568:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c:568:16: warning[-Wanalyzer-malloc-leak]: leak of ‘p_widget’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c: scope_hint: In function ‘vlclua_widget_add_value’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/dialog.c:739:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_new_value’ # 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 (CWE-688): vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/equalizer.c: scope_hint: In function ‘vlclua_equalizer_set’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/equalizer.c:215:23: warning[-Wanalyzer-null-argument]: use of NULL ‘b’ where non-null expected vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/equalizer.c:35: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_variables.h:662:61: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/equalizer.c:198:20: note: in expansion of macro ‘var_GetNonEmptyString’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1036: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/equalizer.c:198:20: note: in expansion of macro ‘var_GetNonEmptyString’ /usr/include/sched.h:29: included_from: Included from here. /usr/include/pthread.h:22: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_threads.h:236: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:413: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/equalizer.c:198:20: note: in expansion of macro ‘var_GetNonEmptyString’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/equalizer.c:208:19: note: in expansion of macro ‘var_GetString’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/equalizer.c:208:19: note: in expansion of macro ‘var_GetString’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:43: included_from: Included from here. /usr/include/stdlib.h:124:14: note: argument 1 of ‘strtof’ must be non-null # 213| while( bandid > 0 ) # 214| { # 215|-> float dummy = strtof( b, &b ); # 216| (void)dummy; # 217| bandid--; Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/equalizer.c:219:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_variables.h:662:61: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/equalizer.c:198:20: note: in expansion of macro ‘var_GetNonEmptyString’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/equalizer.c:198:20: note: in expansion of macro ‘var_GetNonEmptyString’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/equalizer.c:198:20: note: in expansion of macro ‘var_GetNonEmptyString’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/equalizer.c:208:19: note: in expansion of macro ‘var_GetString’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/equalizer.c:208:19: note: in expansion of macro ‘var_GetString’ # 217| bandid--; # 218| } # 219|-> if( *b != '\0' ) # 220| *b++ = '\0'; # 221| float dummy = strtof( b, &b ); Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/net.c: scope_hint: In function ‘vlclua_net_poll’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/net.c:315:19: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc((long unsigned int)i_fds * 4)’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/net.c:41: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/lua/vlc.h:44: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/net.c:47: included_from: Included from here. # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/net.c:315:19: warning[unix.Malloc]: Use of memory allocated with size zero # 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): vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/net.c:316:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc((long unsigned int)i_fds * 8) + (long unsigned int)i * 8’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/net.c:337:9: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value # 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-476): vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/net.c:337:35: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc((long unsigned int)i_fds * 4) + (long unsigned int)i * 4’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/net.c:337:35: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/sd.c: scope_hint: In function ‘vlclua_sd_is_loaded’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/sd.c:449:5: warning[-Wdeprecated-declarations]: ‘playlist_IsServicesDiscoveryLoaded’ is deprecated vlc-3.0.20-build/vlc-3.0.20/modules/lua/libs/sd.c:40: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_playlist.h:357:14: note: declared here # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/lua/vlc.c:314:43: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'ppsz_dir') # 312| vlclua_dir_list( psz_luadirname, &ppsz_dir_list ); # 313| # 314|-> for( char **ppsz_dir = ppsz_dir_list; *ppsz_dir; ppsz_dir++ ) # 315| { # 316| for( const char **ppsz_ext = ppsz_lua_exts; *ppsz_ext; ppsz_ext++ ) Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/lua/vlc.c: scope_hint: In function ‘vlclua_add_modules_path’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/vlc.c:648:12: warning[-Wanalyzer-null-dereference]: 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/lua/vlc.c:648:12: warning[core.NullDereference]: Dereference of null pointer (loaded from variable '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): vlc-3.0.20-build/vlc-3.0.20/modules/lua/vlc.c: scope_hint: In function ‘vlclua_dofile’ vlc-3.0.20-build/vlc-3.0.20/modules/lua/vlc.c:682:10: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘uri’ where non-null expected vlc-3.0.20-build/vlc-3.0.20/modules/lua/vlc.c:681:17: note: in expansion of macro ‘ToLocaleDup’ <built-in>: note: 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: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/meta.c:32: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/meta_engine/ID3Meta.h: scope_hint: In function ‘ID3LinkFrameTagHandler’ vlc-3.0.20-build/vlc-3.0.20/modules/meta_engine/ID3Meta.h:91:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pb_updated’ vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/meta.c:31: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/mp4.h:28: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/meta.c:24: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:177:22: note: in definition of macro ‘VLC_FOURCC’ # 89| vlc_meta_Set( p_meta, vlc_meta_ArtworkURL, p_alloc ); # 90| free( p_alloc ); # 91|-> *pb_updated = true; # 92| } # 93| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mp4/meta.c:32: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/meta_engine/ID3Meta.h:91:29: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'pb_updated') # 89| vlc_meta_Set( p_meta, vlc_meta_ArtworkURL, p_alloc ); # 90| free( p_alloc ); # 91|-> *pb_updated = true; # 92| } # 93| } Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/meta_engine/folder.c: scope_hint: In function ‘FindMeta’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/meta_engine/taglib.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/meta_engine/taglib.cpp: scope_hint: In member function ‘virtual TagLib::ByteVector VlcIostream::readBlock(ulong)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/meta_engine/taglib.cpp: scope_hint: In function ‘void ReadMetaFromBasicTag(const TagLib::Tag*, vlc_meta_t*)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/meta_engine/taglib.cpp: scope_hint: In function ‘void ReadMetaFromXiph(TagLib::Ogg::XiphComment*, demux_meta_t*, vlc_meta_t*)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/meta_engine/taglib.cpp: scope_hint: In function ‘void ReadMetaFromMP4(TagLib::MP4::Tag*, demux_meta_t*, vlc_meta_t*)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/meta_engine/taglib.cpp:80: included_from: Included from here. /usr/include/taglib/mp4tag.h:77:36: note: declared here # 77 | 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): vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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:77:36: note: declared here # 77 | 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): vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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:77:36: note: declared here # 77 | 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): vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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:77:36: note: declared here # 77 | 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): vlc-3.0.20-build/vlc-3.0.20/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:77:36: note: declared here # 77 | 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): vlc-3.0.20-build/vlc-3.0.20/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:77:36: note: declared here # 77 | 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/misc/addons/fsstorage.c:180:32: warning[unix.Malloc]: Potential memory leak # 178| { # 179| const char *attr, *value; # 180|-> while( (attr = xml_ReaderNextAttr( p_xml_reader, &value )) ) # 181| { # 182| if ( !strcmp( attr, "name" ) ) Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/misc/addons/fsstorage.c: scope_hint: In function ‘LoadCatalog’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/addons/fsstorage.c:813:43: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(p_node)’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/addons/fsstorage.c:29: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_stream.h:404:51: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/addons/fsstorage.c:708:26: note: in expansion of macro ‘vlc_stream_NewURL’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/addons/fsstorage.c:37: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/misc/addons/fsstorage.c:712:34: note: in expansion of macro ‘xml_ReaderCreate’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/addons/fsstorage.c: scope_hint: In function ‘LoadCatalog’ # 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 (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/misc/addons/vorepository.c: scope_hint: In function ‘ParseManifest’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/addons/vorepository.c:155:43: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(p_node)’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1034: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/misc/addons/vorepository.c:33: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:79:23: note: in definition of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/addons/vorepository.c:441:5: note: in expansion of macro ‘msg_Dbg’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/addons/vorepository.c:36: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/misc/addons/vorepository.c:454:16: note: in expansion of macro ‘vlc_stream_NewMRL’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/addons/vorepository.c: scope_hint: In function ‘ParseManifest’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/misc/addons/vorepository.c:155:43: warning[core.NullDereference]: Dereference of null pointer (loaded from field 'ppsz') # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/misc/addons/vorepository.c:297:43: warning[core.NullDereference]: Dereference of null pointer (loaded from field 'ppsz') # 295| if( data_pointer.u_data.ppsz ) # 296| free( *data_pointer.u_data.ppsz ); # 297|-> *data_pointer.u_data.ppsz = strdup( p_node ); # 298| } # 299| else Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/misc/gnutls.c:288:9: warning[deadcode.DeadStores]: Value stored to 'val' is never read # 286| } # 287| # 288|-> val = gnutls_alpn_set_protocols (session, protv, protc, 0); # 289| free (protv); # 290| } Error: COMPILER_WARNING (CWE-563): vlc-3.0.20-build/vlc-3.0.20/modules/misc/gnutls.c: scope_hint: In function ‘gnutls_ServerSessionOpen’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/misc/playlist/xspf.c: scope_hint: In function ‘xspf_export_item’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/playlist/xspf.c:91:16: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:46: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/misc/playlist/xspf.c:33: included_from: Included from here. /usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/misc/playlist/xspf.c:91:16: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull' # 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): vlc-3.0.20-build/vlc-3.0.20/modules/misc/playlist/xspf.c:94:5: warning[-Wanalyzer-double-free]: double-‘free’ of ‘0’ # 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: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c: scope_hint: In function ‘sprintf_hexa’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:243:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘s’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1034: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:34: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:87:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:488:5: note: in expansion of macro ‘msg_Dbg’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c: scope_hint: In function ‘Close’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/misc/rtsp.c:38: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c: scope_hint: In function ‘MediaAddES’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:688:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:87:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:488:5: note: in expansion of macro ‘msg_Dbg’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:83:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:686:9: note: in expansion of macro ‘msg_Err’ # 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: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c: scope_hint: In function ‘RtspCallback’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c: scope_hint: In function ‘RtspCallbackES’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/misc/rtsp.c:1412:13: warning[deadcode.DeadStores]: Value stored to 'p_rtsp' is never read # 1410| msg_Dbg( p_vod, "HTTPD_MSG_PLAY for session: %s", psz_session ); # 1411| # 1412|-> p_rtsp = RtspClientGet( p_media, psz_session ); # 1413| # 1414| psz_position = httpd_MsgGet( query, "Range" ); Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/misc/webservices/json.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING (CWE-9001): vlc-3.0.20-build/vlc-3.0.20/modules/misc/webservices/json.c: scope_hint: In function ‘new_value’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/misc/webservices/json.c: scope_hint: In function ‘json_parse_ex’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/misc/webservices/json.c:375:23: warning[core.NullDereference]: Access to field 'type' results in a dereference of a null pointer (loaded from variable 'top') # 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: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/misc/webservices/json.c: scope_hint: In function ‘json_parse_ex’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/webservices/json.c:375:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘top’ # 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: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/misc/webservices/json_helper.h:33:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/webservices/musicbrainz.c: scope_hint: In function ‘musicbrainz_lookup_recording_by_apiurl’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/webservices/musicbrainz.c: scope_hint: In function ‘musicbrainz_lookup_recording_by_apiurl’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1034: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/misc/webservices/json_helper.h:23: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:87:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/webservices/musicbrainz.c:59:13: note: in expansion of macro ‘msg_Dbg’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/misc/webservices/json_helper.h: scope_hint: In function ‘coverartarchive_lookup_releasegroup’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/webservices/json_helper.h:106:55: warning[-Wanalyzer-malloc-leak]: leak of ‘musicbrainz_lookup(*cfg.obj, psz_url)’ vlc-3.0.20-build/vlc-3.0.20/modules/misc/webservices/musicbrainz.c: scope_hint: In function ‘coverartarchive_lookup_releasegroup’ # 104| break; # 105| # 106|-> char *p_realloc = realloc(p_buffer, 1 + i_ret + i_read); # 107| if(unlikely(p_realloc == NULL)) # 108| { Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/misc/webservices/musicbrainz.c:336:16: warning[unix.Malloc]: Potential leak of memory pointed to by 'c' # 334| if(0 < asprintf(&psz_url, "https://%s/releasegroup/%s", cfg->psz_coverart_server, psz_id )) # 335| { # 336|-> return NULL; # 337| } # 338| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/misc/webservices/musicbrainz.c:348:12: warning[unix.Malloc]: Potential leak of memory pointed to by 'p_lookup' # 346| } # 347| # 348|-> return c; # 349| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/mux/asf.c:605:17: warning[unix.Malloc]: Potential leak of memory pointed to by 'p_codec_extra' # 603| } # 604| # 605|-> if( p_fmt->i_bitrate > 50000 ) # 606| { # 607| p_sys->i_bitrate += p_fmt->i_bitrate; Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/mux/asf.c: scope_hint: In function ‘asf_header_create’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/mux/avi.c: scope_hint: In function ‘Mux’ vlc-3.0.20-build/vlc-3.0.20/modules/mux/avi.c:516:9: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated # 516 | i_count = block_FifoCount( p_fifo ); # | ^~~~~~~ vlc-3.0.20-build/vlc-3.0.20/modules/mux/avi.c:37: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/mux/avi.c:523:13: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated # 523 | if( block_FifoCount( p_fifo ) > 0 ) # | ^~ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/mux/dummy.c: scope_hint: In function ‘Mux’ vlc-3.0.20-build/vlc-3.0.20/modules/mux/dummy.c:167:9: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated # 167 | i_count = block_FifoCount( p_fifo ); # | ^~~~~~~ vlc-3.0.20-build/vlc-3.0.20/modules/mux/dummy.c:36: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/mux/mp4/mp4.c: scope_hint: In function ‘Mux’ vlc-3.0.20-build/vlc-3.0.20/modules/mux/mp4/mp4.c:650:13: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated vlc-3.0.20-build/vlc-3.0.20/modules/mux/mp4/mp4.c:35: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_block.h:477:16: note: declared here # 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): vlc-3.0.20-build/vlc-3.0.20/modules/mux/mpeg/ts.c: scope_hint: In function ‘SetBlockDuration’ vlc-3.0.20-build/vlc-3.0.20/modules/mux/mpeg/ts.c:1071:9: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated vlc-3.0.20-build/vlc-3.0.20/modules/mux/mpeg/ts.c:40: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_block.h:477:16: note: declared here # 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): vlc-3.0.20-build/vlc-3.0.20/modules/mux/mpeg/ts.c: scope_hint: In function ‘MuxStreams’ vlc-3.0.20-build/vlc-3.0.20/modules/mux/mpeg/ts.c:1235:9: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated vlc-3.0.20-build/vlc-3.0.20/include/vlc_block.h:477:16: note: declared here # 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): vlc-3.0.20-build/vlc-3.0.20/modules/mux/mpeg/ts.c:1243:13: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated vlc-3.0.20-build/vlc-3.0.20/include/vlc_block.h:477:16: note: declared here # 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): vlc-3.0.20-build/vlc-3.0.20/modules/mux/mpeg/ts.c:1306:21: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated vlc-3.0.20-build/vlc-3.0.20/include/vlc_block.h:477:16: note: declared here # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/mux/mpeg/ts.c:1948:5: warning[core.VLASize]: Declared variable-length array (VLA) has negative size # 1946| { # 1947| sout_mux_sys_t *p_sys = p_mux->p_sys; # 1948|-> pes_mapped_stream_t mapped[p_mux->i_nb_inputs]; # 1949| # 1950| for (int i_stream = 0; i_stream < p_mux->i_nb_inputs; i_stream++ ) Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/mux/mpeg/ts.c:1948:5: warning[core.VLASize]: Declared variable-length array (VLA) has zero size # 1946| { # 1947| sout_mux_sys_t *p_sys = p_mux->p_sys; # 1948|-> pes_mapped_stream_t mapped[p_mux->i_nb_inputs]; # 1949| # 1950| for (int i_stream = 0; i_stream < p_mux->i_nb_inputs; i_stream++ ) Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/mux/mpjpeg.c: scope_hint: In function ‘Mux’ vlc-3.0.20-build/vlc-3.0.20/modules/mux/mpjpeg.c:153:5: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated vlc-3.0.20-build/vlc-3.0.20/modules/mux/mpjpeg.c:35: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_block.h:477:16: note: declared here # 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: vlc-3.0.20-build/vlc-3.0.20/modules/mux/ogg.c: scope_hint: In function ‘AddStream’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/mux/ogg.c: scope_hint: In function ‘DelStream’ vlc-3.0.20-build/vlc-3.0.20/modules/mux/ogg.c:570:13: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated # 570 | while( block_FifoCount( p_input->p_fifo ) ) # | ^~~~~ vlc-3.0.20-build/vlc-3.0.20/modules/mux/ogg.c:36: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/modules/mux/ogg.c: scope_hint: In function ‘OggCreateHeaders’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/mux/ogg.c: scope_hint: In function ‘OggCreateStreamFooter’ vlc-3.0.20-build/vlc-3.0.20/modules/mux/ogg.c:1327:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘op.packet’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/mux/ogg.c:1327:24: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value # 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): vlc-3.0.20-build/vlc-3.0.20/modules/mux/wav.c: scope_hint: In function ‘Mux’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/include/vlc_aout.h:112: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/mux/wav.c:34: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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-843): vlc-3.0.20-build/vlc-3.0.20/modules/notify/notify.c: scope_hint: In function ‘Open’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/notify/notify.c: scope_hint: In function ‘Notify’ vlc-3.0.20-build/vlc-3.0.20/modules/notify/notify.c:327:9: warning[-Wdeprecated-declarations]: ‘gdk_pixbuf_unref’ is deprecated: Use 'g_object_unref' instead /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.20-build/vlc-3.0.20/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 # 325| { # 326| notify_notification_set_icon_from_pixbuf( notification, pix ); # 327|-> gdk_pixbuf_unref( pix ); # 328| } # 329| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/a52.c:175:33: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value # 173| == VLC_SUCCESS ) # 174| { # 175|-> if( p_header[0] == 0x0b && p_header[1] == 0x77 ) # 176| { # 177| p_sys->i_state = STATE_SYNC; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/a52.c:243:29: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value # 241| } # 242| # 243|-> if( p_header[0] == 0 || p_header[1] == 0 ) # 244| { # 245| /* A52 wav files and audio CD's use stuffing */ Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/mlp.c:39: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/a52.h:262:21: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value # 260| # 261| /* Check synword */ # 262|-> if( p_buffer[0] != 0x0b || p_buffer[1] != 0x77 ) # 263| return VLC_EGENERIC; # 264| Error: COMPILER_WARNING (CWE-483): vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/av1.c: scope_hint: In function ‘ParseOBUBlock’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/packetizer/av1.c:314:13: note: in expansion of macro ‘PUSHQ’ # 314 | PUSHQ(tu.pre, p_obu); # | ^~~~~ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/demux/mkv/mkv.cpp:40: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/demux/av1_unpack.h:23: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/av1_obu.h:231:37: warning[core.UndefinedBinaryOperatorResult]: The right operand of '+' is a garbage value # 229| uint8_t i_obu_size_len; # 230| const uint32_t i_obu_size = AV1_OBUSize(p_ctx->p_head, i_remain, &i_obu_size_len); # 231|-> const size_t i_obu = i_obu_size + i_obu_size_len + !!AV1_OBUHasExtensionField(p_ctx->p_head) + 1; # 232| if(i_obu_size_len == 0 || i_obu > i_remain) # 233| return false; Error: COMPILER_WARNING (CWE-704): vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/avparser.c: scope_hint: In function ‘avparser_OpenPacketizer’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/dirac.c:480:16: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value # 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): vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/dirac.c: scope_hint: In function ‘dirac_DoSync’ vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/dirac.c:675:22: warning[-Wanalyzer-infinite-loop]: infinite loop # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/dirac.c:757:36: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined # 755| * pu_a has probably been inserted by something that doesn't # 756| * know what the last next_parse_offset was */ # 757|-> pu_a.u_prev_offset = pu.u_next_offset; # 758| } # 759| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/dts.c:285:33: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value # 283| } # 284| # 285|-> if( p_header[0] == 0 ) # 286| { # 287| /* DTS wav files, audio CD's and some mkvs use stuffing */ Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/dts.c: scope_hint: In function ‘PacketizeBlock’ vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/dts.c:367:58: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*p_sys.bytestream.p_block’ vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/dts.c:34: included_from: Included from here. # 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): vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/flac.c: scope_hint: In function ‘Packetize’ vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/flac.c:341:28: 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/flac.c:38: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/flac.h:153:18: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value # 151| # 152| /* Check syncword */ # 153|-> if (p_buf[0] != 0xFF || (p_buf[1] & 0xFE) != 0xF8) # 154| return 0; # 155| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/h264_nal.c:209:13: warning[deadcode.DeadStores]: Value stored to 'nal_len' is never read # 207| if( nal_len > i_len ) # 208| { # 209|-> nal_len -= i_len; # 210| return; # 211| } Error: COMPILER_WARNING (CWE-195): vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/hxxx_sei.c: scope_hint: In function ‘HxxxParseSEI’ vlc-3.0.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/mlp.c:219:23: warning[core.UndefinedBinaryOperatorResult]: The right operand of '^' is a garbage value # 217| if( !b_has_sync ) # 218| { # 219|-> int i_tmp = 0 ^ p_hdr[0] ^ p_hdr[1] ^ p_hdr[2] ^ p_hdr[3]; # 220| const uint8_t *p = &p_hdr[4]; # 221| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/mpeg4audio.c:371:24: warning[core.UndefinedBinaryOperatorResult]: The left operand of '&' is a garbage value # 369| /* Fixed header between frames */ # 370| //int i_id = ((p_buf[1] >> 3) & 0x01) ? 2 : 4; /* MPEG-2 or 4 */ # 371|-> b_crc = !(p_buf[1] & 0x01); # 372| i_profile = p_buf[2] >> 6; # 373| i_sample_rate_idx = (p_buf[2] >> 2) & 0x0f; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/mpeg4audio.c:457:26: warning[core.UndefinedBinaryOperatorResult]: The left operand of '&' is a garbage value # 455| { # 456| *pi_header_size = 3; # 457|-> return ((p_header[1] & 0x1f) << 8) + p_header[2]; # 458| } # 459| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/mpeg4audio.c:1029:24: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value # 1027| static inline bool HasADTSHeader( const uint8_t *p_header ) # 1028| { # 1029|-> return p_header[0] == 0xff && (p_header[1] & 0xf6) == 0xf0; # 1030| } # 1031| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/mpeg4audio.c:1034:24: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value # 1032| static inline bool HasLoasHeader( const uint8_t *p_header ) # 1033| { # 1034|-> return p_header[0] == 0x56 && (p_header[1] & 0xe0) == 0xe0; # 1035| } # 1036| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/mpegaudio.c:269:48: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage # 267| # 268| /* Free bitrate mode can support higher bitrates */ # 269|-> if( !*pi_bit_rate ) *pi_max_frame_size *= 2; # 270| } # 271| else Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/mpegaudio.c:333:33: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value # 331| { # 332| /* Look for sync word - should be 0xffe */ # 333|-> if( p_header[0] == 0xff && (p_header[1] & 0xe0) == 0xe0 ) # 334| { # 335| p_sys->i_state = STATE_SYNC; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/mpegaudio.c:428:29: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value # 426| } # 427| # 428|-> if( p_header[0] == 0xff && (p_header[1] & 0xe0) == 0xe0 ) # 429| { # 430| /* Startcode is fine, let's try the header as an extra check */ Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/mpegaudio.c:478:42: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value # 476| # 477| /* Check info is in sync with previous one */ # 478|-> if( i_next_channels_conf != p_sys->i_channels_conf || # 479| i_next_stereo_mode != p_sys->i_chan_mode || # 480| i_next_rate != p_sys->i_rate || Error: GCC_ANALYZER_WARNING (CWE-465): vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/mpegvideo.c: scope_hint: In function ‘ParseMPEGBlock’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/vc1.c: scope_hint: In function ‘ParseIDU’ vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/vc1.c:380:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_codec.h:29: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/packetizer/vc1.c:35: included_from: Included from here. # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/avahi.c:486:19: warning[unix.MallocSizeof]: Result of 'calloc' is converted to a pointer of type 'services_discovery_sys_t', which is incompatible with sizeof operand type 'discovery_sys_t' # 484| p_sd->description = _("Zeroconf network services"); # 485| # 486|-> p_sd->p_sys = calloc( 1, sizeof( discovery_sys_t ) ); # 487| discovery_sys_t *p_sys = (void *) p_sd->p_sys; # 488| if( !p_sd->p_sys ) Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/avahi.c:507:19: warning[unix.MallocSizeof]: Result of 'calloc' is converted to a pointer of type 'vlc_renderer_discovery_sys', which is incompatible with sizeof operand type 'discovery_sys_t' # 505| vlc_renderer_discovery_t *p_rd = (vlc_renderer_discovery_t *)p_this; # 506| # 507|-> p_rd->p_sys = calloc( 1, sizeof( discovery_sys_t ) ); # 508| discovery_sys_t *p_sys = (void *) p_rd->p_sys; # 509| if( !p_rd->p_sys ) Error: GCC_ANALYZER_WARNING (CWE-688): vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/mediadirs.c: scope_hint: In function ‘fileType’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/include/vlc_common.h:46: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/mediadirs.c:35: included_from: Included from here. /usr/include/string.h:273:14: note: argument 1 of ‘strrchr’ must be non-null # 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): vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/microdns.c: scope_hint: In function ‘items_timeout’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/microdns.c:269:1: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/microdns.c:30: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/microdns.c:258:31: note: in expansion of macro ‘vlc_array_item_at_index’ # 267| } # 268| } # 269|-> } # 270| # 271| static void Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/microdns.c:343:22: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull' # 341| p_txt != NULL ; p_txt = p_txt->next ) # 342| { # 343|-> if( !strcmp( p_srv->psz_protocol, "chromecast" ) ) # 344| { # 345| if ( !strncmp( "fn=", p_txt->txt, 3 ) ) Error: COMPILER_WARNING (CWE-9001): vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/mtp.c: scope_hint: In function 'Run' vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/mtp.c: scope_hint: In function ‘AddDevice’ vlc-3.0.20-build/vlc-3.0.20/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)’ # 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: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c: scope_hint: In function ‘ParseUrls’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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-688): vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c: scope_hint: In function ‘SaveUrls’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/podcast.c:444:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘psz_urls’ where non-null expected <built-in>: note: 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): vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/pulse.c:152:16: warning[-Wanalyzer-malloc-leak]: leak of ‘d’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_input.h:40: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_services_discovery.h:27: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_input_item.h:337:33: note: in definition of macro ‘input_item_NewCard’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/pulse.c: scope_hint: In function ‘AddSource’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/pulse.c:186:5: warning[-Wdeprecated-declarations]: ‘services_discovery_AddItemCat’ is deprecated vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/pulse.c:34: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_services_discovery.h:194:20: note: declared here # 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): vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c: scope_hint: In function ‘ParseSAP’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:726:16: warning[-Wanalyzer-malloc-leak]: leak of ‘decomp’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c: scope_hint: In function ‘ParseSAP’ # 724| } # 725| # 726|-> decomp = xrealloc (decomp, newsize + 1); # 727| decomp[newsize] = '\0'; # 728| psz_sdp = (const char *)decomp; Error: GCC_ANALYZER_WARNING (CWE-688): vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:742:9: warning[-Wanalyzer-null-argument]: use of NULL ‘psz_sdp’ where non-null expected vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c: scope_hint: In function ‘ParseSAP’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:46: included_from: Included from here. /usr/include/string.h:159:12: note: argument 1 of ‘strncmp’ must be non-null # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:756:9: warning[deadcode.DeadStores]: Value stored to 'len' is never read # 754| goto error; # 755| # 756|-> len -= clen; # 757| psz_sdp += clen; # 758| } Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c: scope_hint: In function ‘CreateAnnounce’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/services_discovery/sap.c:39: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c: scope_hint: In function ‘ParseSDP’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:1606:14: warning[-Wanalyzer-malloc-leak]: leak of ‘MakeAttribute(data)’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:1354:21: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/sap.c:1354:21: note: in expansion of macro ‘TAB_APPEND’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/udev.c: scope_hint: In function ‘AddDevice’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/udev.c:204:11: warning[-Wanalyzer-malloc-leak]: leak of ‘d’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/udev.c: scope_hint: In function ‘AddDevice’ # 202| # 203| services_discovery_AddItem(sd, item); # 204|-> d->sd = sd; # 205| return 0; # 206| } Error: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/upnp.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/upnp.cpp:607: error[memleak]: Memory leak: psz_satip_channellist # 605| psz_satip_channellist = strdup( "MasterList" ); # 606| if( unlikely( !psz_satip_channellist ) ) # 607|-> return; # 608| } # 609| Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/upnp.cpp: scope_hint: In member function ‘bool Access::MediaServer::addItem(IXML_Element*)’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/upnp.cpp:1092:17: warning[-Wimplicit-fallthrough=]: this statement may fall through # 1092 | if (!p_item) { # | ^~ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/upnp.cpp:1096:13: note: here # 1096 | case ItemDescriptionHolder::VIDEO: # | ^~~~ # 1090| { # 1091| case ItemDescriptionHolder::IMAGE: # 1092|-> if (!p_item) { # 1093| p_item = holder.createNewItem(p_resource); # 1094| break; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/upnp.cpp:1253:17: warning[deadcode.DeadStores]: Value stored to 'psz_TotalMatches' during its initialization is never read # 1251| std::string StartingIndex = "0"; # 1252| std::string RequestedCount = "5000"; # 1253|-> const char* psz_TotalMatches = "0"; # 1254| const char* psz_NumberReturned = "0"; # 1255| long l_reqCount = 0; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/upnp.cpp:1254:17: warning[deadcode.DeadStores]: Value stored to 'psz_NumberReturned' during its initialization is never read # 1252| std::string RequestedCount = "5000"; # 1253| const char* psz_TotalMatches = "0"; # 1254|-> const char* psz_NumberReturned = "0"; # 1255| long l_reqCount = 0; # 1256| Error: COMPILER_WARNING (CWE-1164): vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/upnp.cpp: scope_hint: At global scope vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/upnp.cpp:1634:14: warning[-Wunused-function]: ‘char* getIpv4ForMulticast()’ defined but not used # 1634 | static char *getIpv4ForMulticast() # | ^~~~~~~~~~~~~~~~~~~ # 1632| #endif # 1633| # 1634|-> static char *getIpv4ForMulticast() # 1635| { # 1636| return NULL; Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/xcb_apps.c: scope_hint: In function ‘UpdateApps’ vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/xcb_apps.c:336:13: warning[-Wanalyzer-malloc-leak]: leak of ‘app’ # 334| { # 335| app = *pa; # 336|-> tdelete (app, &oldnodes, cmpapp); # 337| } # 338| else /* new entry */ Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/services_discovery/xcb_apps.c:353:17: warning[-Wanalyzer-malloc-leak]: leak of ‘app’ # 351| /* Remove old nodes */ # 352| tdestroy (oldnodes, DelApp); # 353|-> p_sys->apps = newnodes; # 354| } # 355| Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/spu/mosaic.c:244:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ vlc-3.0.20-build/vlc-3.0.20/modules/spu/mosaic.c: scope_hint: In function ‘CreateFilter’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1036: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/spu/mosaic.c:35: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/spu/mosaic.c:338:17: note: in expansion of macro ‘var_CreateGetStringCommand’ vlc-3.0.20-build/vlc-3.0.20/modules/spu/mosaic.c:338:17: note: in expansion of macro ‘var_CreateGetStringCommand’ vlc-3.0.20-build/vlc-3.0.20/modules/spu/mosaic.c:362:19: note: in expansion of macro ‘var_CreateGetStringCommand’ /usr/include/sched.h:29: included_from: Included from here. /usr/include/pthread.h:22: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_threads.h:236: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:413: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/spu/mosaic.c:362:19: note: in expansion of macro ‘var_CreateGetStringCommand’ vlc-3.0.20-build/vlc-3.0.20/modules/spu/mosaic.c:366:5: note: in expansion of macro ‘mosaic_ParseSetOffsets’ # 242| char *psz_offsets ) # 243| { # 244|-> if( *psz_offsets ) # 245| { # 246| char *psz_end = NULL; Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/spu/mosaic.c: scope_hint: In function ‘CreateFilter’ vlc-3.0.20-build/vlc-3.0.20/modules/spu/mosaic.c:342:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ vlc-3.0.20-build/vlc-3.0.20/modules/spu/mosaic.c:338:17: note: in expansion of macro ‘var_CreateGetStringCommand’ vlc-3.0.20-build/vlc-3.0.20/modules/spu/mosaic.c:338:17: note: in expansion of macro ‘var_CreateGetStringCommand’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/spu/mosaic.c:354:23: warning[-Wanalyzer-malloc-leak]: leak of ‘strndup(psz_order, (long unsigned int)(psz_end - psz_order))’ vlc-3.0.20-build/vlc-3.0.20/modules/spu/mosaic.c:338:17: note: in expansion of macro ‘var_CreateGetStringCommand’ vlc-3.0.20-build/vlc-3.0.20/modules/spu/mosaic.c:338:17: note: in expansion of macro ‘var_CreateGetStringCommand’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/spu/mosaic.c:573:22: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull' # 571| { # 572| if ( i == p_sys->i_order_length ) break; # 573|-> if ( strcmp( p_es->psz_id, p_sys->ppsz_order[i] ) == 0 ) # 574| { # 575| i_real_index = i; Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/spu/remoteosd.c: scope_hint: In function ‘vnc_connect’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/spu/rss.c: scope_hint: In function ‘Filter’ vlc-3.0.20-build/vlc-3.0.20/modules/spu/rss.c:475:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘a’ # 473| while( *b != '\0' ) # 474| { # 475|-> if( *b != *a ) *b = ' '; # 476| b++;a++; # 477| } Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/spu/rss.c: scope_hint: In function ‘removeWhiteChars’ vlc-3.0.20-build/vlc-3.0.20/modules/spu/rss.c:609:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘psz_clean’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/spu/rss.c: scope_hint: In function ‘ParseUrls’ vlc-3.0.20-build/vlc-3.0.20/modules/spu/rss.c:659:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘psz_end’ vlc-3.0.20-build/vlc-3.0.20/modules/spu/rss.c: scope_hint: In function ‘ParseUrls’ # 657| { # 658| psz_end = strchr( psz_urls, '|' ); # 659|-> *psz_end = '\0'; # 660| } # 661| else Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/stream_extractor/archive.c: scope_hint: In function ‘archive_push_resource’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_extractor/archive.c:248:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1036: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/stream_extractor/archive.c:28: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/stream_extractor/archive.c:412:23: note: in expansion of macro ‘var_InheritString’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_extractor/archive.c:412:23: note: in expansion of macro ‘var_InheritString’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:44: note: in definition of macro ‘unlikely’ # 246| # 247| error: # 248|-> free( pp_callback_data ); # 249| return VLC_ENOMEM; # 250| } Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/stream_extractor/archive.c: scope_hint: In function ‘setup’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_extractor/archive.c:443:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_extractor/archive.c:412:23: note: in expansion of macro ‘var_InheritString’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_extractor/archive.c:412:23: note: in expansion of macro ‘var_InheritString’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:114:44: note: in definition of macro ‘unlikely’ # 441| error: # 442| free( psz_files ); # 443|-> free( p_sys ); # 444| return NULL; # 445| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/stream_extractor/archive.c:661:13: warning[deadcode.DeadStores]: Value stored to 'i_offset' is never read # 659| # 660| i_skip = i_req; # 661|-> i_offset = 0; # 662| } # 663| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/stream_filter/cache_block.c:106:9: warning[core.NullDereference]: Access to field 'p_next' results in a dereference of a null pointer (loaded from field 'p_current') # 104| if (sys->i_size >= STREAM_CACHE_SIZE && # 105| sys->p_current == sys->p_first && # 106|-> sys->p_current->p_next) /* At least 2 packets */ # 107| { # 108| /* Enough data, don't read more */ Error: GCC_ANALYZER_WARNING (CWE-688): vlc-3.0.20-build/vlc-3.0.20/modules/stream_filter/hds/hds.c: scope_hint: In function ‘parse_BootstrapData.part.0’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/stream_filter/hds/hds.c: scope_hint: In function ‘parse_BootstrapData.part.0’ <built-in>: note: 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): vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/stream_filter/hds/hds.c: scope_hint: In function ‘parse_BootstrapData.part.0’ <built-in>: note: 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): vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/stream_filter/hds/hds.c: scope_hint: In function ‘parse_BootstrapData.part.0’ <built-in>: note: 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): vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/stream_filter/hds/hds.c: scope_hint: In function ‘parse_BootstrapData.part.0’ <built-in>: note: 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): vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/stream_filter/hds/hds.c: scope_hint: In function ‘parse_BootstrapData.part.0’ <built-in>: note: 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): vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/stream_filter/hds/hds.c: scope_hint: In function ‘parse_BootstrapData.part.0’ <built-in>: note: 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): vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/stream_filter/hds/hds.c: scope_hint: In function ‘parse_BootstrapData.part.0’ <built-in>: note: 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): vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/stream_filter/hds/hds.c: scope_hint: In function ‘parse_BootstrapData.part.0’ <built-in>: note: 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): vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/stream_filter/hds/hds.c: scope_hint: In function ‘parse_BootstrapData.part.0’ <built-in>: note: 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): vlc-3.0.20-build/vlc-3.0.20/modules/stream_filter/hds/hds.c: scope_hint: In function ‘parse_Manifest’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_filter/hds/hds.c:1379:56: warning[-Wanalyzer-malloc-leak]: leak of ‘m.medias[0].stream_id’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1034: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:81:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_filter/hds/hds.c:1657:5: note: in expansion of macro ‘msg_Info’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/stream_filter/hds/hds.c:1387:56: warning[-Wanalyzer-malloc-leak]: leak of ‘m.medias[0].media_url’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:81:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_filter/hds/hds.c:1657:5: note: in expansion of macro ‘msg_Info’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/stream_filter/hds/hds.c:1415:58: warning[-Wanalyzer-malloc-leak]: leak of ‘m.bootstraps[0].url’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:81:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_filter/hds/hds.c:1657:5: note: in expansion of macro ‘msg_Info’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/stream_filter/hds/hds.c:1423:57: warning[-Wanalyzer-malloc-leak]: leak of ‘m.bootstraps[0].id’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:81:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_filter/hds/hds.c:1657:5: note: in expansion of macro ‘msg_Info’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/stream_filter/hds/hds.c:1463:23: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:81:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_filter/hds/hds.c:1657:5: note: in expansion of macro ‘msg_Info’ # └──────────────────────────┘ # ^ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/stream_filter/hds/hds.c:1466:32: warning[unix.Malloc]: Potential leak of memory pointed to by 'media_id' # 1464| { # 1465| if( !( media_id = strdup( node ) ) ) # 1466|-> return VLC_ENOMEM; # 1467| } # 1468| } Error: GCC_ANALYZER_WARNING (CWE-127): vlc-3.0.20-build/vlc-3.0.20/modules/stream_filter/hds/hds.c:1470:24: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:81:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_filter/hds/hds.c:1657:5: note: in expansion of macro ‘msg_Info’ # └──────────────────────────┘ # ^ # 1468| } # 1469| else if( ! strcmp( current_element, "metadata" ) && # 1470|-> ! strcmp( element_stack[current_element_idx-1], "media" ) && # 1471| ( media_idx >= 1 ) ) # 1472| { Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/stream_filter/hds/hds.c:1616:15: warning[core.NullDereference]: Access to field 'quality_segment_modifier' results in a dereference of a null pointer (loaded from variable 'p_stream') # 1614| static void hds_free( hds_stream_t *p_stream ) # 1615| { # 1616|-> FREENULL( p_stream->quality_segment_modifier ); # 1617| # 1618| FREENULL( p_stream->abst_url ); Error: GCC_ANALYZER_WARNING (CWE-457): vlc-3.0.20-build/vlc-3.0.20/modules/stream_filter/hds/hds.c: scope_hint: In function ‘send_flv_header’ vlc-3.0.20-build/vlc-3.0.20/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’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/stream_filter/prefetch.c:235:25: warning[core.DivideZero]: Division by zero # 233| # 234| size_t offset = (sys->buffer_offset + sys->buffer_length) # 235|-> % sys->buffer_size; # 236| /* Do not step past the sharp edge of the circular buffer */ # 237| if (offset + len > sys->buffer_size) Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/autodel.c: scope_hint: In function ‘Open’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/autodel.c:91:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_sys’ # 89| return VLC_EGENERIC; # 90| } # 91|-> p_sys->pp_es = NULL; # 92| p_sys->i_es_num = 0; # 93| Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/chromecast/chromecast_communication.cpp: scope_hint: In member function ‘int ChromecastCommunication::sendMessage(const castchannel::CastMessage&)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/stream_out/chromecast/cast_channel.pb.h:26: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/chromecast/chromecast.h:45: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/chromecast/chromecast_ctrl.cpp: scope_hint: In member function ‘bool intf_sys_t::processReceiverMessage(const castchannel::CastMessage&)’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/cycle.c: scope_hint: In function ‘Send’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/cycle.c:160:47: 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/duplicate.c:247:13: warning[core.NullDereference]: Array access (via field 'pp_ids') results in a null pointer dereference # 245| for( i_stream = 0; i_stream < p_sys->i_nb_streams; i_stream++ ) # 246| { # 247|-> if( id->pp_ids[i_stream] ) # 248| { # 249| sout_stream_t *out = p_sys->pp_streams[i_stream]; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/duplicate.c:247:13: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value # 245| for( i_stream = 0; i_stream < p_sys->i_nb_streams; i_stream++ ) # 246| { # 247|-> if( id->pp_ids[i_stream] ) # 248| { # 249| sout_stream_t *out = p_sys->pp_streams[i_stream]; Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/es.c: scope_hint: In function ‘Open’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/es.c:157:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_sys’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/mosaic_bridge.c: scope_hint: In function ‘Add’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/stream_out/mosaic_bridge.c:33: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_objects.h:57:51: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/mosaic_bridge.c:288:24: note: in expansion of macro ‘vlc_object_create’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/mosaic_bridge.c:44: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/mosaic_bridge.c:326:16: note: in expansion of macro ‘GetBridge’ vlc-3.0.20-build/vlc-3.0.20/modules/spu/mosaic.h:46:12: note: in expansion of macro ‘var_GetAddress’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_variables.h: scope_hint: In function ‘Add’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/mosaic_bridge.c:326:16: note: in expansion of macro ‘GetBridge’ vlc-3.0.20-build/vlc-3.0.20/modules/spu/mosaic.h:46:12: note: in expansion of macro ‘var_GetAddress’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/mosaic_bridge.c: scope_hint: In function ‘Add’ # 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: vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1034: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/mosaic_bridge.c:33: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/mosaic_bridge.c: scope_hint: In function ‘Add’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/mosaic_bridge.c: scope_hint: In function ‘Del’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/mosaic_bridge.c:457:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/mosaic_bridge.c:446:16: note: in expansion of macro ‘GetBridge’ vlc-3.0.20-build/vlc-3.0.20/modules/spu/mosaic.h:46:12: note: in expansion of macro ‘var_GetAddress’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_variables.h: scope_hint: In function ‘Del’ /usr/include/sched.h:29: included_from: Included from here. /usr/include/pthread.h:22: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_threads.h:236: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:413: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/mosaic_bridge.c:446:16: note: in expansion of macro ‘GetBridge’ vlc-3.0.20-build/vlc-3.0.20/modules/spu/mosaic.h:46:12: note: in expansion of macro ‘var_GetAddress’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/mosaic_bridge.c: scope_hint: In function ‘Del’ # 455| } # 456| # 457|-> for ( i = 0; i < p_bridge->i_es_num; i++ ) # 458| { # 459| if ( !p_bridge->pp_es[i]->b_empty ) Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/record.c:578:17: warning[deadcode.DeadStores]: Value stored to 'canddts' is never read # 576| { # 577| p_cand = id; # 578|-> canddts = 0; # 579| break; # 580| } Error: GCC_ANALYZER_WARNING (CWE-688): vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/rtp.c: scope_hint: In function ‘HttpCallback’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/rtp.c:1380:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*pp_data’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null # 1378| *pi_data = strlen( p_sys->psz_sdp ); # 1379| *pp_data = malloc( *pi_data ); # 1380|-> memcpy( *pp_data, p_sys->psz_sdp, *pi_data ); # 1381| } # 1382| else Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/rtp.c: scope_hint: In function ‘Open’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/rtp.c: scope_hint: In function ‘rtp_get_video_geometry’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/rtp.c:1812:9: warning[deadcode.DeadStores]: Value stored to 'ret' during its initialization is never read # 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 (CWE-195): vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/rtpfmt.c: scope_hint: In function ‘rtp_packetize_eac3’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/rtpfmt.c: scope_hint: In function ‘rtp_packetize_jpeg’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/rtsp.c:791:42: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value # 789| /* Checking for multicast port override */ # 790| if( b_multicast_port_set # 791|-> && ((unsigned)dport != mloport # 792| || (unsigned)dport + 1 != mhiport)) # 793| { Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/rtsp.c:816:53: warning[core.UndefinedBinaryOperatorResult]: The left operand of '+' is a garbage value # 814| "RTP/AVP/UDP;destination=%s;port=%u-%u;" # 815| "ttl=%d;mode=play", # 816|-> dst, dport, dport + 1, ttl ); # 817| /* FIXME: this doesn't work with RTP + RTCP mux */ # 818| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/rtsp.c:934:35: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value # 932| "client_port=%u-%u;server_port=%u-%u;" # 933| "ssrc=%08X;mode=play", # 934|-> src[0] ? ";source=" : "", src, # 935| loport, loport + 1, sport, sport + 1, ssrc ); # 936| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/rtsp.c:935:68: warning[core.UndefinedBinaryOperatorResult]: The left operand of '+' is a garbage value # 933| "ssrc=%08X;mode=play", # 934| src[0] ? ";source=" : "", src, # 935|-> loport, loport + 1, sport, sport + 1, ssrc ); # 936| # 937| answer->i_status = 200; Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/rtsp.c: scope_hint: In function ‘RtspHandler’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/standard.c: scope_hint: In function ‘exactMatch’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/include/vlc_common.h:1036: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/standard.c:31: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/standard.c:339:15: note: in expansion of macro ‘var_GetNonEmptyString’ /usr/include/sched.h:29: included_from: Included from here. /usr/include/pthread.h:22: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_threads.h:236: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:413: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/standard.c:339:15: note: in expansion of macro ‘var_GetNonEmptyString’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/standard.c:341:18: note: in expansion of macro ‘var_GetNonEmptyString’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/standard.c:341:18: note: in expansion of macro ‘var_GetNonEmptyString’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/standard.c:345:15: note: in expansion of macro ‘var_GetNonEmptyString’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:46: included_from: Included from here. /usr/include/string.h:159:12: note: argument 1 of ‘strncmp’ must be non-null # 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): vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/standard.c:300:28: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/standard.c:341:18: note: in expansion of macro ‘var_GetNonEmptyString’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/standard.c:341:18: note: in expansion of macro ‘var_GetNonEmptyString’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/standard.c:345:15: note: in expansion of macro ‘var_GetNonEmptyString’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/standard.c:300:28: note: read of 1 byte from after the end of the region # └─────────────────────────────┘ # ^ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/transcode/transcode.c: scope_hint: In function ‘Open’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/transcode/transcode.c:259:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p_sys’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1036: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/transcode/transcode.c:35: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/transcode/transcode.c:258:18: note: in expansion of macro ‘var_GetString’ /usr/include/sched.h:29: included_from: Included from here. /usr/include/pthread.h:22: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_threads.h:236: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:413: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/transcode/transcode.c:258:18: note: in expansion of macro ‘var_GetString’ # 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: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/transcode/transcode.c: scope_hint: In function ‘Add’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/transcode/transcode.c:521:45: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(*p_sys.psz_alang)’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/transcode/transcode.c:523:45: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(*p_fmt.psz_language)’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/transcode/video.c:568:9: warning[deadcode.DeadStores]: Value stored to 'i_src_visible_width' is never read # 566| # 567| if (i_src_visible_width == 0) # 568|-> i_src_visible_width = p_vid_out->i_width; # 569| if (i_src_visible_height == 0) # 570| i_src_visible_height = p_vid_out->i_height; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/transcode/video.c:570:9: warning[deadcode.DeadStores]: Value stored to 'i_src_visible_height' is never read # 568| i_src_visible_width = p_vid_out->i_width; # 569| if (i_src_visible_height == 0) # 570|-> i_src_visible_height = p_vid_out->i_height; # 571| # 572| /* Check whether a particular aspect ratio was requested */ Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/vod.c: scope_hint: In function ‘CloseVoD’ vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/vod.c:188:5: warning[-Wdeprecated-declarations]: ‘block_FifoCount’ is deprecated vlc-3.0.20-build/vlc-3.0.20/modules/stream_out/vod.c:38: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_block.h:477:16: note: declared here # 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): vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/freetype/freetype.c: scope_hint: In function ‘LoadFontsFromAttachments’ vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/freetype/freetype.c:333:7: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.pp_font_attachments’ vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/freetype/freetype.c: scope_hint: In function ‘LoadFontsFromAttachments’ vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/freetype/freetype.c: scope_hint: In function ‘LoadFontsFromAttachments’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/freetype/freetype.c: scope_hint: In function ‘RenderYUVP’ vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/freetype/freetype.c:496:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘fmt.p_palette’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/freetype/freetype.c:522:19: warning[-Wanalyzer-deref-before-check]: check of ‘p_line’ for NULL after already dereferencing it # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/freetype/freetype.c:1045:21: warning[core.UndefinedBinaryOperatorResult]: The right operand of '!=' is a garbage value # 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-476): vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/freetype/freetype.c: scope_hint: In function ‘FreeStylesArray’ vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/freetype/freetype.c:1045:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pp_styles’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/freetype/freetype.c: scope_hint: In function ‘SegmentsToTextAndStyles’ vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/freetype/freetype.c:1123:44: warning[-Wanalyzer-double-free]: double-‘free’ of ‘pp_styles’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/freetype/text_layout.c:227:25: warning[core.NullDereference]: Access to field 'left' results in a dereference of a null pointer (loaded from variable 'glyph_bmp') # 225| p_bbox->xMin = FT_CEIL(p_pen->x); # 226| p_bbox->xMax = FT_CEIL(p_pen->x + i_x_advance); # 227|-> glyph_bmp->left = p_bbox->xMin; # 228| } # 229| if( p_bbox->yMin >= p_bbox->yMax ) Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/freetype/text_layout.c:233:25: warning[core.NullDereference]: Access to field 'top' results in a dereference of a null pointer (loaded from variable 'glyph_bmp') # 231| p_bbox->yMax = FT_CEIL(p_pen->y); # 232| p_bbox->yMin = FT_CEIL(p_pen->y + i_y_advance); # 233|-> glyph_bmp->top = p_bbox->yMax; # 234| } # 235| } Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/freetype/text_layout.c: scope_hint: In function ‘AddRun’ vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/freetype/text_layout.c:469:11: warning[-Wanalyzer-malloc-leak]: leak of ‘p_new_runs’ vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/freetype/text_layout.c: scope_hint: In function ‘AddRun’ vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/freetype/text_layout.c: scope_hint: In function ‘AddRun’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_variables.h:658:47: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/freetype/text_layout.c:282:30: note: in expansion of macro ‘var_GetInteger’ vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/freetype/text_layout.c: scope_hint: In function ‘AddRun’ vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/freetype/text_layout.c: scope_hint: In function ‘AddRun’ vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/freetype/text_layout.c: scope_hint: In function ‘AddRun’ vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/freetype/text_layout.c: scope_hint: In function ‘AddRun’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_variables.h:615:53: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/freetype/text_layout.c:311:23: note: in expansion of macro ‘var_InheritInteger’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/freetype/text_layout.c:1156:17: warning[core.NullDereference]: Access to field 'i_style_flags' results in a dereference of a null pointer (loaded from variable 'p_style') # 1154| # 1155| i_font_width = i_font_size = ConvertToLiveSize( p_filter, p_style ); # 1156|-> if( p_style->i_style_flags & STYLE_HALFWIDTH ) # 1157| i_font_width /= 2; # 1158| else if( p_style->i_style_flags & STYLE_DOUBLEWIDTH ) Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/svg.c: scope_hint: In function ‘svg_LoadTemplate’ vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/svg.c:141:1: warning[-Wanalyzer-malloc-leak]: leak of ‘psz_template’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1036: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/svg.c:32: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/svg.c:90:26: note: in expansion of macro ‘var_InheritString’ vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/svg.c:90:26: note: in expansion of macro ‘var_InheritString’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1034: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:87:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/svg.c:109:17: note: in expansion of macro ‘msg_Dbg’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/text_renderer/svg.c: scope_hint: In function ‘svg_RenderPicture’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/text_renderer/svg.c:45: included_from: Included from here. /usr/include/librsvg-2.0/librsvg/rsvg.h:708:6: note: declared here # 708 | 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): vlc-3.0.20-build/vlc-3.0.20/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:1452: 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_rgb16_x86.c:269:13: warning[deadcode.DeadStores]: Value stored to 'p_buffer' is never read # 267| p_v += i_source_margin_c; # 268| } # 269|-> p_buffer = b_hscale ? p_buffer_start : p_pic; # 270| } # 271| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_rgb16_x86.c:317:13: warning[deadcode.DeadStores]: Value stored to 'p_buffer' is never read # 315| p_u += 4; # 316| p_v += 4; # 317|-> p_buffer += 8; # 318| } # 319| SCALE_WIDTH; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_rgb16_x86.c:501:13: warning[deadcode.DeadStores]: Value stored to 'p_buffer' is never read # 499| p_v += i_source_margin_c; # 500| } # 501|-> p_buffer = b_hscale ? p_buffer_start : p_pic; # 502| } # 503| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_rgb16_x86.c:549:13: warning[deadcode.DeadStores]: Value stored to 'p_buffer' is never read # 547| p_u += 4; # 548| p_v += 4; # 549|-> p_buffer += 8; # 550| } # 551| SCALE_WIDTH; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_rgb16_x86.c:732:13: warning[deadcode.DeadStores]: Value stored to 'p_buffer' is never read # 730| p_v += i_source_margin_c; # 731| } # 732|-> p_buffer = b_hscale ? p_buffer_start : p_pic; # 733| } # 734| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_rgb16_x86.c:779:13: warning[deadcode.DeadStores]: Value stored to 'p_buffer' is never read # 777| p_u += 4; # 778| p_v += 4; # 779|-> p_buffer += 8; # 780| } # 781| SCALE_WIDTH; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_rgb16_x86.c:962:13: warning[deadcode.DeadStores]: Value stored to 'p_buffer' is never read # 960| p_v += i_source_margin_c; # 961| } # 962|-> p_buffer = b_hscale ? p_buffer_start : p_pic; # 963| } # 964| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_rgb16_x86.c:1009:13: warning[deadcode.DeadStores]: Value stored to 'p_buffer' is never read # 1007| p_u += 4; # 1008| p_v += 4; # 1009|-> p_buffer += 8; # 1010| } # 1011| SCALE_WIDTH; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_rgb16_x86.c:1192:13: warning[deadcode.DeadStores]: Value stored to 'p_buffer' is never read # 1190| p_v += i_source_margin_c; # 1191| } # 1192|-> p_buffer = b_hscale ? p_buffer_start : p_pic; # 1193| } # 1194| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_rgb16_x86.c:1236:13: warning[deadcode.DeadStores]: Value stored to 'p_buffer' is never read # 1234| p_u += 4; # 1235| p_v += 4; # 1236|-> p_buffer += 8; # 1237| } # 1238| SCALE_WIDTH; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_rgb16_x86.c:1419:13: warning[deadcode.DeadStores]: Value stored to 'p_buffer' is never read # 1417| p_v += i_source_margin_c; # 1418| } # 1419|-> p_buffer = b_hscale ? p_buffer_start : p_pic; # 1420| } # 1421| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_rgb16_x86.c:1463:13: warning[deadcode.DeadStores]: Value stored to 'p_buffer' is never read # 1461| p_u += 4; # 1462| p_v += 4; # 1463|-> p_buffer += 8; # 1464| } # 1465| SCALE_WIDTH; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_rgb8.c:106:5: warning[deadcode.DeadStores]: Value stored to 'p_y' is never read # 104| } # 105| # 106|-> p_y += i_source_margin; # 107| if( i_y % 2 ) # 108| { Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_rgb8.c:109:9: warning[deadcode.DeadStores]: Value stored to 'p_u' is never read # 107| if( i_y % 2 ) # 108| { # 109|-> p_u += i_source_margin_c; # 110| p_v += i_source_margin_c; # 111| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_rgb8.c:110:9: warning[deadcode.DeadStores]: Value stored to 'p_v' is never read # 108| { # 109| p_u += i_source_margin_c; # 110|-> p_v += i_source_margin_c; # 111| } # 112| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_yuy2.c:535:9: warning[deadcode.DeadStores]: Value stored to 'p_y1' is never read # 533| } # 534| # 535|-> p_y1 += i_source_margin; # 536| p_y2 += i_source_margin; # 537| p_u += i_source_margin_c; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_yuy2.c:539:9: warning[deadcode.DeadStores]: Value stored to 'p_line1' is never read # 537| p_u += i_source_margin_c; # 538| p_v += i_source_margin_c; # 539|-> p_line1 += i_dest_margin; # 540| p_line2 += i_dest_margin; # 541| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_yuy2.c:578:13: warning[deadcode.DeadStores]: Value stored to 'p_y1' is never read # 576| } # 577| # 578|-> p_y1 += i_source_margin; # 579| p_y2 += i_source_margin; # 580| p_u += i_source_margin_c; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_yuy2.c:582:13: warning[deadcode.DeadStores]: Value stored to 'p_line1' is never read # 580| p_u += i_source_margin_c; # 581| p_v += i_source_margin_c; # 582|-> p_line1 += i_dest_margin; # 583| p_line2 += i_dest_margin; # 584| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_yuy2.c:606:13: warning[deadcode.DeadStores]: Value stored to 'p_y1' is never read # 604| } # 605| # 606|-> p_y1 += i_source_margin; # 607| p_y2 += i_source_margin; # 608| p_u += i_source_margin_c; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_yuy2.c:610:13: warning[deadcode.DeadStores]: Value stored to 'p_line1' is never read # 608| p_u += i_source_margin_c; # 609| p_v += i_source_margin_c; # 610|-> p_line1 += i_dest_margin; # 611| p_line2 += i_dest_margin; # 612| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_yuy2.c:748:9: warning[deadcode.DeadStores]: Value stored to 'p_y1' is never read # 746| } # 747| # 748|-> p_y1 += i_source_margin; # 749| p_y2 += i_source_margin; # 750| p_u += i_source_margin_c; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_yuy2.c:752:9: warning[deadcode.DeadStores]: Value stored to 'p_line1' is never read # 750| p_u += i_source_margin_c; # 751| p_v += i_source_margin_c; # 752|-> p_line1 += i_dest_margin; # 753| p_line2 += i_dest_margin; # 754| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_yuy2.c:791:13: warning[deadcode.DeadStores]: Value stored to 'p_y1' is never read # 789| } # 790| # 791|-> p_y1 += i_source_margin; # 792| p_y2 += i_source_margin; # 793| p_u += i_source_margin_c; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_yuy2.c:795:13: warning[deadcode.DeadStores]: Value stored to 'p_line1' is never read # 793| p_u += i_source_margin_c; # 794| p_v += i_source_margin_c; # 795|-> p_line1 += i_dest_margin; # 796| p_line2 += i_dest_margin; # 797| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_yuy2.c:819:13: warning[deadcode.DeadStores]: Value stored to 'p_y1' is never read # 817| } # 818| # 819|-> p_y1 += i_source_margin; # 820| p_y2 += i_source_margin; # 821| p_u += i_source_margin_c; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_yuy2.c:823:13: warning[deadcode.DeadStores]: Value stored to 'p_line1' is never read # 821| p_u += i_source_margin_c; # 822| p_v += i_source_margin_c; # 823|-> p_line1 += i_dest_margin; # 824| p_line2 += i_dest_margin; # 825| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_yuy2.c:883:9: warning[deadcode.DeadStores]: Value stored to 'p_y1' is never read # 881| } # 882| # 883|-> p_y1 += i_source_margin; # 884| p_y2 += i_source_margin; # 885| p_u += i_source_margin_c; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_chroma/i420_yuy2.c:887:9: warning[deadcode.DeadStores]: Value stored to 'p_line1' is never read # 885| p_u += i_source_margin_c; # 886| p_v += i_source_margin_c; # 887|-> p_line1 += i_dest_margin; # 888| p_line2 += i_dest_margin; # 889| } Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/ball.c: scope_hint: In function ‘FilterBall’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/bluescreen.c: scope_hint: In function ‘Filter’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/bluescreen.c:204:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/bluescreen.c:32: included_from: Included from here. # 202| && p_v[i] < vmax && p_v[i] > vmin ) # 203| { # 204|-> p_at[i] = 0x00; # 205| } # 206| else Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/bluescreen.c:208:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 206| else # 207| { # 208|-> p_at[i] = 0xff; # 209| } # 210| } Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/bluescreen.c:221:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/croppadd.c:336:13: warning[deadcode.DeadStores]: Value stored to 'p_in' is never read # 334| memcpy( p_out, p_in, i_width * i_pixel_pitch ); # 335| p_out += i_width * i_pixel_pitch; # 336|-> p_in += i_width * i_pixel_pitch; # 337| # 338| /* Padd on the right */ Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/deinterlace/algo_phosphor.c: scope_hint: In function ‘DarkenField’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/deinterlace/algo_phosphor.c: scope_hint: In function ‘DarkenFieldMMX’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/deinterlace/algo_x.c:454:15: warning[deadcode.DeadStores]: Although the value stored to 's' is used in the enclosing expression, the value is never actually read from 's' # 452| { # 453| int s; # 454|-> if( ( s = XDeint8x8DetectC( src, i_src ) ) ) # 455| { # 456| if( x == 0 || x == i_mbx - 1 ) Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/deinterlace/algo_x.c:488:15: warning[deadcode.DeadStores]: Although the value stored to 's' is used in the enclosing expression, the value is never actually read from 's' # 486| { # 487| int s; # 488|-> if( ( s = XDeint8x8DetectMMXEXT( src, i_src ) ) ) # 489| { # 490| if( x == 0 || x == i_mbx - 1 ) Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/deinterlace/helpers.c:396:11: warning[deadcode.DeadStores]: Value stored to 'motion_in_block' during its initialization is never read # 394| return -1; # 395| # 396|-> int (*motion_in_block)(uint8_t *, uint8_t *, int , int, int *, int *) = # 397| TestForMotionInBlock; # 398| /* We must tell our inline helper whether to use MMX acceleration. */ Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/deinterlace/algo_yadif.c:48: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/deinterlace/yadif.h: scope_hint: In function ‘yadif_filter_line_c’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/video_filter/deinterlace/yadif.h:108:19: note: in expansion of macro ‘CHECK’ # 108 | CHECK(-1) CHECK(-2) }} }} \ # | ^~~~~ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/deinterlace/yadif.h:139:5: note: in expansion of macro ‘FILTER’ # 139 | FILTER # | ^~~~~~ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/video_filter/deinterlace/yadif.h:108:9: note: in expansion of macro ‘CHECK’ # 108 | CHECK(-1) CHECK(-2) }} }} \ # | ^~~~~ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gaussianblur.c: scope_hint: In function ‘gaussianblur_InitDistribution’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gaussianblur.c:126:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.pt_distribution’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1038: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gaussianblur.c:156:5: note: in expansion of macro ‘config_ChainParse’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gaussianblur.c: scope_hint: In function ‘Filter’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gaussianblur.c:208:26: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.pt_buffer’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gaussianblur.c:34: included_from: Included from here. # 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): vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gaussianblur.c:223:37: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.pt_scale’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gaussianblur.c:241:48: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*p_sys.pt_scale’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gaussianblur.c:229:30: note: in expansion of macro ‘__MAX’ # 239| } # 240| } # 241|-> pt_scale[i_line*i_pitch+i_col] = t_value; # 242| } # 243| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gaussianblur.c:287:46: warning[core.BitwiseShift]: Right operand is negative in right shift # 285| { # 286| t_value += pt_distribution[y+i_dim] * # 287|-> pt_buffer[c+(y>>y_factor)*i_in_pitch]; # 288| } # 289| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gaussianblur.c:287:46: warning[core.BitwiseShift]: Right shift overflows the capacity of 'int' # 285| { # 286| t_value += pt_distribution[y+i_dim] * # 287|-> pt_buffer[c+(y>>y_factor)*i_in_pitch]; # 288| } # 289| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gaussianblur.c:290:56: warning[core.BitwiseShift]: Right operand is negative in left shift # 288| } # 289| # 290|-> const type_t t_scale = pt_scale[(i_line<<y_factor)*(i_in_pitch<<x_factor)+(i_col<<x_factor)]; # 291| p_out[i_line * p_outpic->p[i_plane].i_pitch + i_col] = (uint8_t)(t_value / t_scale); // FIXME wouldn't it be better to round instead of trunc ? # 292| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gaussianblur.c:290:79: warning[core.BitwiseShift]: Left shift overflows the capacity of 'int' # 288| } # 289| # 290|-> const type_t t_scale = pt_scale[(i_line<<y_factor)*(i_in_pitch<<x_factor)+(i_col<<x_factor)]; # 291| p_out[i_line * p_outpic->p[i_plane].i_pitch + i_col] = (uint8_t)(t_value / t_scale); // FIXME wouldn't it be better to round instead of trunc ? # 292| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gaussianblur.c:290:79: warning[core.BitwiseShift]: Right operand is negative in left shift # 288| } # 289| # 290|-> const type_t t_scale = pt_scale[(i_line<<y_factor)*(i_in_pitch<<x_factor)+(i_col<<x_factor)]; # 291| p_out[i_line * p_outpic->p[i_plane].i_pitch + i_col] = (uint8_t)(t_value / t_scale); // FIXME wouldn't it be better to round instead of trunc ? # 292| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gaussianblur.c:291:90: warning[core.DivideZero]: Division by zero # 289| # 290| const type_t t_scale = pt_scale[(i_line<<y_factor)*(i_in_pitch<<x_factor)+(i_col<<x_factor)]; # 291|-> p_out[i_line * p_outpic->p[i_plane].i_pitch + i_col] = (uint8_t)(t_value / t_scale); // FIXME wouldn't it be better to round instead of trunc ? # 292| } # 293| } Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c: scope_hint: In function ‘FilterGradient’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c:353:34: warning[-Wanalyzer-malloc-leak]: leak of ‘**p_filter.p_sys.p_buf32’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c: scope_hint: In function ‘FilterGradient’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c:353:34: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c: scope_hint: In function ‘FilterGradient’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c:403:13: warning[core.UndefinedBinaryOperatorResult]: The left operand of '-' is a garbage value # 401| if( p_filter->p_sys->b_cartoon ) # 402| { # 403|-> FOR # 404| if( a > 60 ) # 405| { Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c:427:13: warning[core.UndefinedBinaryOperatorResult]: The left operand of '-' is a garbage value # 425| else # 426| { # 427|-> FOR # 428| p_outpix[y*i_dst_pitch+x] = clip_uint8_vlc( a ); # 429| }} Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c:434:9: warning[core.UndefinedBinaryOperatorResult]: The left operand of '-' is a garbage value # 432| else # 433| { # 434|-> FOR # 435| if( a>>8 ) # 436| p_outpix[y*i_dst_pitch+x] = 0; Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c: scope_hint: In function ‘FilterEdge’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c:475:34: warning[-Wanalyzer-malloc-leak]: leak of ‘**p_filter.p_sys.p_buf32’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c: scope_hint: In function ‘FilterEdge’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c:475:34: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c: scope_hint: In function ‘FilterEdge’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c:480:38: warning[-Wanalyzer-malloc-leak]: leak of ‘**p_filter.p_sys.p_buf32_bis’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c: scope_hint: In function ‘FilterEdge’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c:480:38: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c: scope_hint: In function ‘FilterEdge’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c:485:33: warning[-Wanalyzer-malloc-leak]: leak of ‘**p_filter.p_sys.p_buf8’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c: scope_hint: In function ‘FilterEdge’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c:485:33: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc((long unsigned int)(i_src_visible * i_num_lines))’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c: scope_hint: In function ‘FilterEdge’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c: scope_hint: In function ‘FilterHough’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c:655:27: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c: scope_hint: In function ‘FilterHough’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c: scope_hint: In function ‘FilterHough’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c:645:11: note: in expansion of macro ‘p_pre_hough’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:78:13: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_messages.h:87:5: note: in expansion of macro ‘msg_Generic’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c:647:9: note: in expansion of macro ‘msg_Dbg’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c: scope_hint: In function ‘FilterHough’ # 653| return; # 654| } # 655|-> for( int i = 0; i < i_nb_steps; i++) # 656| { # 657| d_sin = sin(d_step * i); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/gradient.c:692:23: warning[core.UndefinedBinaryOperatorResult]: The left operand of '-' is a garbage value # 690| uint32_t a = # 691| abs((((int)p_smooth[(y - 1) * i_src_visible + x] # 692|-> - (int)p_smooth[(y + 1) * i_src_visible + x]) * 2) # 693| + ((int)p_smooth[(y - 1) * i_src_visible + x - 1] # 694| - (int)p_smooth[(y + 1) * i_src_visible + x - 1]) Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/hqdn3d.c:39: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/hqdn3d.h: scope_hint: In function ‘deNoiseSpacial’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/hqdn3d.c:39: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/hqdn3d.h: scope_hint: In function ‘deNoise’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/hqdn3d.h:145:35: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*FrameAnt’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/hqdn3d.c:39: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/hqdn3d.h:145:38: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<<' is a garbage value # 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: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/hqdn3d.h: scope_hint: In function ‘deNoise’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/oldmovie.c: scope_hint: In function ‘oldmovie_sliding_offset_effect’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/puzzle.c:280:25: warning[core.NullDereference]: Dereference of null pointer # 278| if ( (p_sys->ps_pict_planes[i_plane].i_lines != p_pic_in->p[i_plane].i_visible_lines) # 279| || (p_sys->ps_pict_planes[i_plane].i_width != p_pic_in->p[i_plane].i_visible_pitch / p_pic_in->p[i_plane].i_pixel_pitch) # 280|-> || (p_sys->ps_desk_planes[i_plane].i_lines != p_pic_out->p[i_plane].i_visible_lines) # 281| || (p_sys->ps_desk_planes[i_plane].i_width != p_pic_out->p[i_plane].i_visible_pitch / p_pic_out->p[i_plane].i_pixel_pitch) ) # 282| p_sys->b_init = false; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/puzzle_bezier.c:82:23: warning[core.UndefinedBinaryOperatorResult]: The right operand of '*' is a garbage value # 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: COMPILER_WARNING (CWE-197): vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/puzzle_bezier.c: scope_hint: In function ‘puzzle_scale_curve_H’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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: GCC_ANALYZER_WARNING (CWE-122): vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/puzzle_bezier.c:36: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/puzzle_bezier.c: scope_hint: In function ‘puzzle_scale_curve_H’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/puzzle_bezier.h:38:137: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/puzzle_bezier.c:82:23: note: in expansion of macro ‘bezier_val’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/puzzle_bezier.c:82:23: note: in expansion of macro ‘bezier_val’ # └─────────────────┘ # ^ # 36| point_t *puzzle_rand_bezier(uint8_t i_pts_nbr); # 37| # 38|-> #define bezier_val(ps_pt,f_sub_t,i_main_t,axis) (( 1 - (f_sub_t)) * ( 1 - (f_sub_t) ) * ( 1 - (f_sub_t) ) * ps_pt[ 3 * (i_main_t) ].f_ ## axis \ # 39| + 3 * (f_sub_t) * ( 1 - (f_sub_t) ) * ( 1 - (f_sub_t) ) * ps_pt[ 3 * (i_main_t) + 1 ].f_ ## axis \ # 40| + 3 * (f_sub_t) * (f_sub_t) * ( 1 - (f_sub_t) ) * ps_pt[ 3 * (i_main_t) + 2 ].f_ ## axis \ Error: GCC_ANALYZER_WARNING (CWE-122): vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/puzzle_bezier.h:39:137: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/puzzle_bezier.c:82:23: note: in expansion of macro ‘bezier_val’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/puzzle_bezier.c:82:23: note: in expansion of macro ‘bezier_val’ # └─────────────────┘ # ^ # 37| # 38| #define bezier_val(ps_pt,f_sub_t,i_main_t,axis) (( 1 - (f_sub_t)) * ( 1 - (f_sub_t) ) * ( 1 - (f_sub_t) ) * ps_pt[ 3 * (i_main_t) ].f_ ## axis \ # 39|-> + 3 * (f_sub_t) * ( 1 - (f_sub_t) ) * ( 1 - (f_sub_t) ) * ps_pt[ 3 * (i_main_t) + 1 ].f_ ## axis \ # 40| + 3 * (f_sub_t) * (f_sub_t) * ( 1 - (f_sub_t) ) * ps_pt[ 3 * (i_main_t) + 2 ].f_ ## axis \ # 41| + (f_sub_t) * (f_sub_t) * (f_sub_t) * ps_pt[ 3 * (i_main_t) + 3 ].f_ ## axis ) Error: GCC_ANALYZER_WARNING (CWE-122): vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/puzzle_bezier.h:40:137: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/puzzle_bezier.c:82:23: note: in expansion of macro ‘bezier_val’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/puzzle_bezier.c:82:23: note: in expansion of macro ‘bezier_val’ # └─────────────────┘ # ^ # 38| #define bezier_val(ps_pt,f_sub_t,i_main_t,axis) (( 1 - (f_sub_t)) * ( 1 - (f_sub_t) ) * ( 1 - (f_sub_t) ) * ps_pt[ 3 * (i_main_t) ].f_ ## axis \ # 39| + 3 * (f_sub_t) * ( 1 - (f_sub_t) ) * ( 1 - (f_sub_t) ) * ps_pt[ 3 * (i_main_t) + 1 ].f_ ## axis \ # 40|-> + 3 * (f_sub_t) * (f_sub_t) * ( 1 - (f_sub_t) ) * ps_pt[ 3 * (i_main_t) + 2 ].f_ ## axis \ # 41| + (f_sub_t) * (f_sub_t) * (f_sub_t) * ps_pt[ 3 * (i_main_t) + 3 ].f_ ## axis ) # 42| Error: GCC_ANALYZER_WARNING (CWE-122): vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/puzzle_bezier.h:41:137: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/puzzle_bezier.c:82:23: note: in expansion of macro ‘bezier_val’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/puzzle_bezier.c:82:23: note: in expansion of macro ‘bezier_val’ # └─────────────────┘ # ^ # 39| + 3 * (f_sub_t) * ( 1 - (f_sub_t) ) * ( 1 - (f_sub_t) ) * ps_pt[ 3 * (i_main_t) + 1 ].f_ ## axis \ # 40| + 3 * (f_sub_t) * (f_sub_t) * ( 1 - (f_sub_t) ) * ps_pt[ 3 * (i_main_t) + 2 ].f_ ## axis \ # 41|-> + (f_sub_t) * (f_sub_t) * (f_sub_t) * ps_pt[ 3 * (i_main_t) + 3 ].f_ ## axis ) # 42| # 43| #endif Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/puzzle_mgt.c:112:105: warning[core.DivideZero]: Division by zero # 110| # 111| p_sys->ps_desk_planes[i_plane].i_pce_max_width = (( p_sys->ps_desk_planes[i_plane].i_width # 112|-> - 2 * p_sys->ps_desk_planes[i_plane].i_border_width ) + p_sys->s_allocated.i_cols - 1 ) / p_sys->s_allocated.i_cols; # 113| p_sys->ps_desk_planes[i_plane].i_pce_max_lines = (( p_sys->ps_desk_planes[i_plane].i_lines # 114| - 2 * p_sys->ps_desk_planes[i_plane].i_border_lines ) + p_sys->s_allocated.i_rows - 1 ) / p_sys->s_allocated.i_rows; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/puzzle_mgt.c:114:105: warning[core.DivideZero]: Division by zero # 112| - 2 * p_sys->ps_desk_planes[i_plane].i_border_width ) + p_sys->s_allocated.i_cols - 1 ) / p_sys->s_allocated.i_cols; # 113| p_sys->ps_desk_planes[i_plane].i_pce_max_lines = (( p_sys->ps_desk_planes[i_plane].i_lines # 114|-> - 2 * p_sys->ps_desk_planes[i_plane].i_border_lines ) + p_sys->s_allocated.i_rows - 1 ) / p_sys->s_allocated.i_rows; # 115| # 116| p_sys->ps_pict_planes[i_plane].i_lines = p_pic_in->p[i_plane].i_visible_lines; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/puzzle_mgt.c:136:21: warning[core.NullDereference]: Array access results in an undefined pointer dereference # 134| for (int32_t c = 0; c < p_sys->s_allocated.i_cols; c++) { # 135| if ( r == 0 ) # 136|-> p_sys->ps_puzzle_array[r][c][i_plane].i_y = p_sys->ps_pict_planes[i_plane].i_border_lines; # 137| if ( c == 0 ) # 138| p_sys->ps_puzzle_array[r][c][i_plane].i_x = p_sys->ps_pict_planes[i_plane].i_border_width; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/puzzle_mgt.c:136:63: warning[core.NullDereference]: Dereference of undefined pointer value # 134| for (int32_t c = 0; c < p_sys->s_allocated.i_cols; c++) { # 135| if ( r == 0 ) # 136|-> p_sys->ps_puzzle_array[r][c][i_plane].i_y = p_sys->ps_pict_planes[i_plane].i_border_lines; # 137| if ( c == 0 ) # 138| p_sys->ps_puzzle_array[r][c][i_plane].i_x = p_sys->ps_pict_planes[i_plane].i_border_width; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/puzzle_mgt.c:262:76: warning[core.NullDereference]: Dereference of undefined pointer value # 260| for (uint8_t i_plane = 0; i_plane < p_sys->s_allocated.i_planes; i_plane++) { # 261| # 262|-> p_sys->ps_pieces[i].ps_piece_in_plane[i_plane].i_width = p_sys->ps_puzzle_array[row][col][i_plane].i_width; # 263| p_sys->ps_pieces[i].ps_piece_in_plane[i_plane].i_lines = p_sys->ps_puzzle_array[row][col][i_plane].i_lines; # 264| p_sys->ps_pieces[i].ps_piece_in_plane[i_plane].i_original_x = p_sys->ps_puzzle_array[orow][ocol][i_plane].i_x; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/puzzle_mgt.c:309:65: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value # 307| for (uint16_t i_pce_A=0; i_pce_A < p_sys->s_allocated.i_pieces_nbr; i_pce_A++) # 308| { # 309|-> if ( ( p_sys->ps_pieces[i_pce_A].i_original_row == p_sys->ps_pieces[i_pce_B].i_original_row ) # 310| && ( p_sys->ps_pieces[i_pce_A].i_original_col == p_sys->ps_pieces[i_pce_B].i_original_col-1 ) ) # 311| /* left shape is based on negative (invert ID LSB) right one */ Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/puzzle_pce.c:827:5: warning[deadcode.DeadStores]: Value stored to 'f_xd' is never read # 825| f_yo = f_yd; # 826| } # 827|-> f_xd = ps_pt[i_pts_nbr - 1].f_x * f_x_ratio; # 828| f_yd = ps_pt[i_pts_nbr - 1].f_y * f_y_ratio; # 829| Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/puzzle_pce.c:828:5: warning[deadcode.DeadStores]: Value stored to 'f_yd' is never read # 826| } # 827| f_xd = ps_pt[i_pts_nbr - 1].f_x * f_x_ratio; # 828|-> f_yd = ps_pt[i_pts_nbr - 1].f_y * f_y_ratio; # 829| # 830| /* ...fill from this junction to next junction */ Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/ripple.c:146:9: warning[deadcode.DeadStores]: Value stored to 'black_pixel' is never read # 144| uint8_t *p_in, *p_out; # 145| # 146|-> black_pixel = ( p_pic->i_planes > 1 && i_index == Y_PLANE ) ? 0x00 # 147| : 0x80; # 148| Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/ripple.c: scope_hint: In function ‘Filter’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/ripple.c:160:31: warning[-Wimplicit-fallthrough=]: this statement may fall through # 160 | i_pixel_pitch *= 2; # | ~~~~~~~~~~~~~~^~~~ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/ripple.c:39: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/filter_picture.h:26:9: note: here # 26 | case VLC_CODEC_I420: \ # | ^~~~ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/scale.c: scope_hint: In function ‘OpenFilter’ vlc-3.0.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/scale.c: scope_hint: In function ‘Filter’ vlc-3.0.20-build/vlc-3.0.20/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: COMPILER_WARNING (CWE-197): vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/vhs.c: scope_hint: In function ‘vhs_sliding_effect’ vlc-3.0.20-build/vlc-3.0.20/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: vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/wave.c: scope_hint: In function ‘Filter’ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/wave.c:161:31: warning[-Wimplicit-fallthrough=]: this statement may fall through # 161 | i_pixel_pitch *= 2; # | ~~~~~~~~~~~~~~^~~~ vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/wave.c:39: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/video_filter/filter_picture.h:26:9: note: here # 26 | case VLC_CODEC_I420: \ # | ^~~~ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/video_output/aa.c: scope_hint: In function ‘Open’ vlc-3.0.20-build/vlc-3.0.20/modules/video_output/aa.c:138:5: warning[-Wdeprecated-declarations]: ‘manage’ is deprecated vlc-3.0.20-build/vlc-3.0.20/modules/video_output/aa.c:33: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_vout_display.h:333:18: note: declared here # 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): vlc-3.0.20-build/vlc-3.0.20/modules/video_output/aa.c: scope_hint: In function ‘Control’ vlc-3.0.20-build/vlc-3.0.20/modules/video_output/aa.c:253:5: warning[-Wdeprecated-declarations]: ‘VOUT_DISPLAY_HIDE_MOUSE’ is deprecated vlc-3.0.20-build/vlc-3.0.20/include/vlc_vout_display.h:144:5: note: declared here # 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): vlc-3.0.20-build/vlc-3.0.20/modules/video_output/caca.c: scope_hint: In function ‘Open’ vlc-3.0.20-build/vlc-3.0.20/modules/video_output/caca.c:200:5: warning[-Wdeprecated-declarations]: ‘manage’ is deprecated vlc-3.0.20-build/vlc-3.0.20/modules/video_output/caca.c:35: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_vout_display.h:333:18: note: declared here # 198| vd->display = PictureDisplay; # 199| vd->control = Control; # 200|-> vd->manage = Manage; # 201| # 202| /* Fix initial state */ Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/modules/video_output/caca.c: scope_hint: In function ‘Control’ vlc-3.0.20-build/vlc-3.0.20/modules/video_output/caca.c:319:5: warning[-Wdeprecated-declarations]: ‘VOUT_DISPLAY_HIDE_MOUSE’ is deprecated vlc-3.0.20-build/vlc-3.0.20/include/vlc_vout_display.h:144:5: note: declared here # 317| # 318| switch (query) { # 319|-> case VOUT_DISPLAY_HIDE_MOUSE: # 320| caca_set_mouse(sys->dp, 0); # 321| return VLC_SUCCESS; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_output/glx.c:245:9: warning[deadcode.DeadStores]: Value stored to 'is_swap_interval_set' is never read # 243| assert (SwapIntervalEXT != NULL); # 244| SwapIntervalEXT (dpy, sys->win, 1); # 245|-> is_swap_interval_set = true; # 246| } # 247| # endif Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/video_output/opengl/converter_sw.c: scope_hint: In function ‘persistent_release_gpupics’ vlc-3.0.20-build/vlc-3.0.20/modules/video_output/opengl/converter_sw.c:305:24: warning[-Wanalyzer-null-dereference]: 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): vlc-3.0.20-build/vlc-3.0.20/modules/video_output/opengl/converter_sw.c: scope_hint: In function ‘upload_plane’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/video_output/opengl/converter_sw.c:465:29: note: in expansion of macro ‘ALIGN’ vlc-3.0.20-build/vlc-3.0.20/modules/video_output/opengl/converter_sw.c:30: included_from: Included from here. # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_output/opengl/converter_vdpau.c:88:14: warning[deadcode.DeadStores]: Although the value stored to 'st' is used in the enclosing expression, the value is never actually read from 'st' # 86| # 87| VdpStatus st; # 88|-> if ((st = vdp_output_surface_create(priv->vdp, priv->vdp_device, # 89| VDP_RGBA_FORMAT_B8G8R8A8, # 90| tc->fmt.i_visible_width, Error: COMPILER_WARNING (CWE-457): vlc-3.0.20-build/vlc-3.0.20/modules/video_output/opengl/converter_vdpau.c: scope_hint: In function ‘tc_vdpau_gl_get_pool’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/modules/video_output/opengl/converter.h:26: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/video_output/opengl/internal.h:24: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/video_output/opengl/converter_vdpau.c:37: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_output/opengl/egl.c:254:18: warning[deadcode.DeadStores]: Value stored to 'createSurface' during its initialization is never read # 252| # 253| vout_window_t *wnd = gl->surface; # 254|-> EGLSurface (*createSurface)(EGLDisplay, EGLConfig, void *, const EGLint *) # 255| = CreateWindowSurface; # 256| void *window; Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/video_output/opengl/vout_helper.c: scope_hint: In function ‘vout_display_opengl_Prepare’ vlc-3.0.20-build/vlc-3.0.20/modules/video_output/opengl/vout_helper.c:1197:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘glr’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/video_output/vdummy.c: scope_hint: In function ‘DisplayStat’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/modules/video_output/xcb/window.c: scope_hint: In function ‘ReleaseDrawable’ vlc-3.0.20-build/vlc-3.0.20/modules/video_output/xcb/window.c:585:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1036: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/video_output/xcb/window.c:37: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/video_output/xcb/window.c:583:12: note: in expansion of macro ‘var_GetAddress’ /usr/include/stdio.h:34: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:47: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/modules/video_output/xcb/window.c:583:12: note: in expansion of macro ‘var_GetAddress’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/video_output/xcb/xvideo.c: scope_hint: In function ‘PoolAlloc’ vlc-3.0.20-build/vlc-3.0.20/modules/video_output/xcb/xvideo.c:631:31: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow vlc-3.0.20-build/vlc-3.0.20/modules/video_output/xcb/xvideo.c:631:31: note: write of 8 bytes to beyond the end of ‘res’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/video_output/xcb/xvideo.c: scope_hint: In function ‘EnumAdaptors’ vlc-3.0.20-build/vlc-3.0.20/modules/video_output/xcb/xvideo.c:824:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*tp’ vlc-3.0.20-build/vlc-3.0.20/modules/video_output/xcb/xvideo.c:35: included_from: Included from here. # 822| # 823| *(values++) = -1; # 824|-> *(texts++) = strdup (N_("Auto")); # 825| # 826| for (it = xcb_xv_query_adaptors_info_iterator (adaptors), n = -1; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/video_splitter/panoramix.c:1018:13: warning[deadcode.DeadStores]: Value stored to 'p_dst' is never read # 1016| { # 1017| memset( p_dst, i_pixel_black, p_cfg->black.i_right ); # 1018|-> p_dst += p_cfg->black.i_right; # 1019| } # 1020| Error: GCC_ANALYZER_WARNING (CWE-126): vlc-3.0.20-build/vlc-3.0.20/modules/video_splitter/wall.c: scope_hint: In function ‘Filter’ vlc-3.0.20-build/vlc-3.0.20/modules/video_splitter/wall.c:416:53: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read vlc-3.0.20-build/vlc-3.0.20/modules/video_splitter/wall.c:416:53: note: read of 4 bytes from after the end of ‘tmp’ # └───────────────────────┘ # ^ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/video_splitter/wall.c:417:53: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read vlc-3.0.20-build/vlc-3.0.20/modules/video_splitter/wall.c:417:53: note: read of 4 bytes from after the end of ‘tmp’ # └───────────────────────┘ # ^ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/video_splitter/wall.c:419:18: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read vlc-3.0.20-build/vlc-3.0.20/modules/video_splitter/wall.c:419:18: note: read of 8 bytes from after the end of ‘tmp’ # └─────────────────────────────┘ # ^ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/video_splitter/wall.c:419:29: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow vlc-3.0.20-build/vlc-3.0.20/modules/video_splitter/wall.c:419:29: note: write of 8 bytes to beyond the end of ‘tmp’ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/video_splitter/wall.c:419:39: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read vlc-3.0.20-build/vlc-3.0.20/modules/video_splitter/wall.c:419:39: note: read of 4 bytes from after the end of ‘tmp’ # └───────────────────────┘ # ^ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/video_splitter/wall.c:419:58: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read vlc-3.0.20-build/vlc-3.0.20/modules/video_splitter/wall.c:419:58: note: read of 4 bytes from after the end of ‘tmp’ # └───────────────────────┘ # ^ # 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): vlc-3.0.20-build/vlc-3.0.20/modules/visualization/glspectrum.c:402:16: warning[-Wanalyzer-malloc-leak]: leak of ‘*p_sys.p_prev_s16_buff’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/visualization/glspectrum.c:416:26: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'p_buffs') # 414| u.f = *p_buffl + 384.f; # 415| if (u.i > 0x43c07fff) # 416|-> *p_buffs = 32767; # 417| else if (u.i < 0x43bf8000) # 418| *p_buffs = -32768; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/visualization/glspectrum.c:418:26: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'p_buffs') # 416| *p_buffs = 32767; # 417| else if (u.i < 0x43bf8000) # 418|-> *p_buffs = -32768; # 419| else # 420| *p_buffs = u.i - 0x43c00000; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/visualization/glspectrum.c:420:26: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'p_buffs') # 418| *p_buffs = -32768; # 419| else # 420|-> *p_buffs = u.i - 0x43c00000; # 421| # 422| p_buffl++; p_buffs++; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/visualization/glspectrum.c:439:28: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'p_buffs') # 437| { # 438| p_output[i] = 0; # 439|-> p_buffer1[i] = *p_buffs; # 440| # 441| p_buffs += p_sys->i_channels; Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/visualization/glspectrum.c: scope_hint: In function ‘Thread’ vlc-3.0.20-build/vlc-3.0.20/modules/visualization/glspectrum.c:449:43: warning[-Wxor-used-as-pow]: result of ‘2^16’ is 18; did you mean ‘1 << 16’ (65536)? vlc-3.0.20-build/vlc-3.0.20/modules/visualization/glspectrum.c:449:41: note: you can silence this warning by using a hexadecimal constant (0x2 rather than 2) # 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: vlc-3.0.20-build/vlc-3.0.20/modules/visualization/visual/effects.c: scope_hint: In function ‘spectrum_Run’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/visualization/visual/effects.c:962:9: warning[deadcode.DeadStores]: Value stored to 'p_sample' is never read # 960| i_value_r = ch; # 961| # 962|-> p_sample += p_effect->i_nb_chans; # 963| } # 964| Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/modules/visualization/visual/effects.c: scope_hint: In function ‘vuMeter_Run’ vlc-3.0.20-build/vlc-3.0.20/modules/visualization/visual/effects.c:981:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*p_effect.p_data’ vlc-3.0.20-build/vlc-3.0.20/modules/visualization/visual/effects.c: scope_hint: In function ‘vuMeter_Run’ # 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: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/visualization/visual/fft.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/modules/visualization/visual/visual.c:255:23: warning[deadcode.DeadStores]: Although the value stored to 'psz_eoa' is used in the enclosing expression, the value is never actually read from 'psz_eoa' # 253| psz_parser++; # 254| # 255|-> if( ( psz_eoa = strchr( psz_parser, '}') ) == NULL ) # 256| { # 257| msg_Err( p_filter, "unable to parse effect list. Aborting"); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/audio_output/common.c:343:33: warning[core.DivideZero]: Division by zero # 341| assert( size != 0 && size <= 8 ); # 342| # 343|-> const size_t frames = bytes / (size * channels); # 344| unsigned char *buf = ptr; # 345| Error: COMPILER_WARNING (CWE-563): vlc-3.0.20-build/vlc-3.0.20/src/audio_output/filters.c: scope_hint: In function ‘CreateFilter’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/src/audio_output/filters.c: scope_hint: In function ‘AppendRemapFilter’ vlc-3.0.20-build/vlc-3.0.20/src/audio_output/filters.c:460:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘remap[8]’ vlc-3.0.20-build/vlc-3.0.20/src/audio_output/filters.c: scope_hint: In function ‘AppendRemapFilter’ vlc-3.0.20-build/vlc-3.0.20/src/audio_output/filters.c: scope_hint: In function ‘AppendRemapFilter’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1036: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/audio_output/filters.c:34: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/audio_output/filters.c:591:9: note: in expansion of macro ‘var_InheritBool’ # 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-457): vlc-3.0.20-build/vlc-3.0.20/src/config/cmdline.c: scope_hint: In function ‘config_LoadCmdLine’ vlc-3.0.20-build/vlc-3.0.20/src/config/cmdline.c:198:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘flag’ vlc-3.0.20-build/vlc-3.0.20/src/config/cmdline.c: scope_hint: In function ‘config_LoadCmdLine’ # 196| # 197| /* Check if we deal with a --nofoo or --no-foo long option */ # 198|-> if( flag ) psz_name += psz_name[2] == '-' ? 3 : 2; # 199| # 200| /* Store the configuration option */ Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/src/config/core.c: scope_hint: In function ‘config_ListModules’ vlc-3.0.20-build/vlc-3.0.20/src/config/core.c:369:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc((long unsigned int)(module_list_cap(&list, cap) + 2) * 8)’ vlc-3.0.20-build/vlc-3.0.20/src/config/core.c:28: included_from: Included from here. # 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): vlc-3.0.20-build/vlc-3.0.20/src/config/core.c:370:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc((long unsigned int)(module_list_cap(&list, cap) + 2) * 8)’ # 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): vlc-3.0.20-build/vlc-3.0.20/src/config/core.c: scope_hint: In function ‘config_GetPszChoices’ vlc-3.0.20-build/vlc-3.0.20/src/config/core.c:441:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc(count * 8)’ vlc-3.0.20-build/vlc-3.0.20/src/config/core.c: scope_hint: In function ‘config_GetPszChoices’ # 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): vlc-3.0.20-build/vlc-3.0.20/src/config/core.c:443:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc(count * 8) + i * 8’ vlc-3.0.20-build/vlc-3.0.20/src/config/core.c: scope_hint: In function ‘config_GetPszChoices’ # 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: vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/src/input/control.c:202:24: warning[-Wanalyzer-null-dereference]: 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-476): vlc-3.0.20-build/vlc-3.0.20/src/input/control.c:276:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ vlc-3.0.20-build/vlc-3.0.20/src/input/control.c: scope_hint: In function ‘input_vaControl’ # 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): vlc-3.0.20-build/vlc-3.0.20/src/input/control.c:276:36: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘<unknown>’ vlc-3.0.20-build/vlc-3.0.20/src/input/control.c: scope_hint: In function ‘input_vaControl’ # 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): vlc-3.0.20-build/vlc-3.0.20/src/input/control.c:402:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc((long unsigned int)i_chapters, 8)’ # 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): vlc-3.0.20-build/vlc-3.0.20/src/input/control.c:470:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ vlc-3.0.20-build/vlc-3.0.20/src/input/control.c: scope_hint: In function ‘input_vaControl’ # 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): vlc-3.0.20-build/vlc-3.0.20/src/input/control.c:470:38: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*ppp_attachment + (long unsigned int)i * 8’ vlc-3.0.20-build/vlc-3.0.20/src/input/control.c: scope_hint: In function ‘input_vaControl’ # 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): vlc-3.0.20-build/vlc-3.0.20/src/input/decoder.c: scope_hint: In function 'spu_new_buffer' vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/src/input/decoder.c: scope_hint: In function ‘input_DecoderGetFifoSize’ vlc-3.0.20-build/vlc-3.0.20/src/input/decoder.c:2379:5: warning[-Wdeprecated-declarations]: ‘block_FifoSize’ is deprecated # 2379 | return block_FifoSize( p_owner->p_fifo ); # | ^~~~~~ vlc-3.0.20-build/vlc-3.0.20/src/input/decoder.c:37: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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-9001): vlc-3.0.20-build/vlc-3.0.20/src/input/es_out.c: scope_hint: In function 'EsOutDel' vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/src/input/es_out.c: scope_hint: In function ‘EsOutControlLocked’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/input/es_out.c:2790:20: warning[deadcode.DeadStores]: Value stored to 'b_source_paused' during its initialization is never read # 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): vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/input/es_out.c:2802:19: warning[deadcode.DeadStores]: Value stored to 'i_src_rate' during its initialization is never read # 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): vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/input/es_out.c:2813:26: warning[deadcode.DeadStores]: Value stored to 'i_date' during its initialization is never read # 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): vlc-3.0.20-build/vlc-3.0.20/src/input/control.c:39: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/input/es_out.h: scope_hint: In function ‘es_out_SetMode’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/input/control.c:39: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/input/es_out.h:95:9: warning[deadcode.DeadStores]: Value stored to 'i_ret' during its initialization is never read # 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): vlc-3.0.20-build/vlc-3.0.20/src/input/es_out.h: scope_hint: In function ‘es_out_GetWakeup’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/input/es_out.h:101:9: warning[deadcode.DeadStores]: Value stored to 'i_ret' during its initialization is never read # 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): vlc-3.0.20-build/vlc-3.0.20/src/input/es_out.h: scope_hint: In function ‘es_out_GetBuffering’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/input/es_out.h:109:9: warning[deadcode.DeadStores]: Value stored to 'i_ret' during its initialization is never read # 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): vlc-3.0.20-build/vlc-3.0.20/src/input/es_out.h: scope_hint: In function ‘es_out_GetEmpty’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/input/es_out.h:117:9: warning[deadcode.DeadStores]: Value stored to 'i_ret' during its initialization is never read # 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): vlc-3.0.20-build/vlc-3.0.20/src/input/es_out.h: scope_hint: In function ‘es_out_SetDelay’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/input/es_out.h:124:9: warning[deadcode.DeadStores]: Value stored to 'i_ret' during its initialization is never read # 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): vlc-3.0.20-build/vlc-3.0.20/src/input/es_out.h: scope_hint: In function ‘es_out_SetTimes’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/input/es_out.h:149:9: warning[deadcode.DeadStores]: Value stored to 'i_ret' during its initialization is never read # 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): vlc-3.0.20-build/vlc-3.0.20/src/input/es_out.h: scope_hint: In function ‘es_out_SetJitter’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/input/es_out.h:155:9: warning[deadcode.DeadStores]: Value stored to 'i_ret' during its initialization is never read # 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): vlc-3.0.20-build/vlc-3.0.20/src/input/es_out.h: scope_hint: In function ‘es_out_GetGroupForced’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/input/es_out.h:167:9: warning[deadcode.DeadStores]: Value stored to 'i_ret' during its initialization is never read # 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): vlc-3.0.20-build/vlc-3.0.20/src/input/es_out.h: scope_hint: In function ‘es_out_Eos’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/input/es_out.h:173:9: warning[deadcode.DeadStores]: Value stored to 'i_ret' during its initialization is never read # 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): vlc-3.0.20-build/vlc-3.0.20/src/input/es_out_timeshift.c: scope_hint: In function ‘TsChangePause’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/input/input.c:750:17: warning[deadcode.DeadStores]: Value stored to 'b_paused' is never read # 748| Control( p_input, INPUT_CONTROL_SET_STATE, val ); # 749| # 750|-> b_paused = true; # 751| b_paused_at_eof = true; # 752| } Error: GCC_ANALYZER_WARNING (CWE-457): vlc-3.0.20-build/vlc-3.0.20/src/input/input.c: scope_hint: In function ‘UpdateGenericFromDemux’ vlc-3.0.20-build/vlc-3.0.20/src/input/input.c:2536:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘strength’ # 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): vlc-3.0.20-build/vlc-3.0.20/src/input/input.c: scope_hint: In function ‘InputUpdateMeta’ vlc-3.0.20-build/vlc-3.0.20/src/input/input.c:3141:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘i_attachment’ # 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): vlc-3.0.20-build/vlc-3.0.20/src/input/item.c: scope_hint: In function ‘GuessType’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/include/vlc_atomic.h:39: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/input/item.h:28: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/input/item.c:38: included_from: Included from here. <built-in>: note: 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): vlc-3.0.20-build/vlc-3.0.20/src/input/item.c: scope_hint: In function ‘vlc_readdir_helper_additem’ vlc-3.0.20-build/vlc-3.0.20/src/input/item.c:1792:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ # 1790| { # 1791| free(p_rdh_slave->psz_filename); # 1792|-> free(p_rdh_slave); # 1793| return VLC_ENOMEM; # 1794| } Error: GCC_ANALYZER_WARNING (CWE-126): vlc-3.0.20-build/vlc-3.0.20/src/input/stats.c: scope_hint: In function ‘stats_Update’ vlc-3.0.20-build/vlc-3.0.20/src/input/stats.c:183:19: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/input/stats.c:28: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:114:5: note: in expansion of macro ‘TAB_INSERT_CAST’ vlc-3.0.20-build/vlc-3.0.20/src/input/stats.c:179:9: note: in expansion of macro ‘TAB_INSERT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:114:5: note: in expansion of macro ‘TAB_INSERT_CAST’ vlc-3.0.20-build/vlc-3.0.20/src/input/stats.c:179:9: note: in expansion of macro ‘TAB_INSERT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:114:5: note: in expansion of macro ‘TAB_INSERT_CAST’ vlc-3.0.20-build/vlc-3.0.20/src/input/stats.c:179:9: note: in expansion of macro ‘TAB_INSERT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:114:5: note: in expansion of macro ‘TAB_INSERT_CAST’ vlc-3.0.20-build/vlc-3.0.20/src/input/stats.c:179:9: note: in expansion of macro ‘TAB_INSERT’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:114:5: note: in expansion of macro ‘TAB_INSERT_CAST’ vlc-3.0.20-build/vlc-3.0.20/src/input/stats.c:179:9: note: in expansion of macro ‘TAB_INSERT’ vlc-3.0.20-build/vlc-3.0.20/src/input/stats.c:183:19: note: read of 8 bytes from after the end of the region # └─────────────────────────────────────────────┘ # ^ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/input/subtitles.c:380:25: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull' # 378| # 379| bool b_reject = false; # 380|-> char *psz_ext = strrchr( p_sub->psz_uri, '.' ); # 381| if( !psz_ext ) # 382| continue; Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/src/input/vlm.c: scope_hint: In function ‘vlm_ControlMediaInstanceStart’ vlc-3.0.20-build/vlc-3.0.20/src/input/vlm.c:951:19: warning[-Wanalyzer-malloc-leak]: leak of ‘vlm_MediaInstanceNew(p_vlm, psz_id)’ vlc-3.0.20-build/vlc-3.0.20/src/input/vlm.c: scope_hint: In function ‘vlm_ControlMediaInstanceStart’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_input.h:40: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_vlm.h:28: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/input/vlm.c:894:26: note: in expansion of macro ‘input_item_New’ # 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): vlc-3.0.20-build/vlc-3.0.20/src/input/vlm.c: scope_hint: In function ‘vlm_ControlMediaInstanceGets’ vlc-3.0.20-build/vlc-3.0.20/src/input/vlm.c:1153:23: warning[-Wanalyzer-malloc-leak]: leak of ‘vlm_media_instance_New()’ vlc-3.0.20-build/vlc-3.0.20/src/input/vlm.c: scope_hint: In function ‘vlm_ControlMediaInstanceGets’ vlc-3.0.20-build/vlc-3.0.20/src/input/vlm.c: scope_hint: In function ‘vlm_ControlMediaInstanceGets’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/src/input/vlm.c:1166:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/src/input/vlm.c:1166:9: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/src/input/vlm.c:1166:9: note: in expansion of macro ‘TAB_APPEND’ # 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): vlc-3.0.20-build/vlc-3.0.20/src/input/vlm.c:1154:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘vlm_media_instance_New()’ vlc-3.0.20-build/vlc-3.0.20/src/input/vlm.c: scope_hint: In function ‘vlm_ControlMediaInstanceGets’ # 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): vlc-3.0.20-build/vlc-3.0.20/src/input/vlm.c:1157:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘vlm_media_instance_New()’ vlc-3.0.20-build/vlc-3.0.20/src/input/vlm.c: scope_hint: In function ‘vlm_ControlMediaInstanceGets’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_variables.h:658:47: note: in expansion of macro ‘VLC_OBJECT’ vlc-3.0.20-build/vlc-3.0.20/src/input/vlm.c:1157:30: note: in expansion of macro ‘var_GetInteger’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/input/vlmshell.c:673:14: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull' # 671| const char *psz_value = i+1 < i_property ? ppsz_property[i+1] : NULL; # 672| # 673|-> if( !strcmp( psz_option, "enabled" ) ) # 674| { # 675| p_cfg->b_enabled = true; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/input/vlmshell.c:1056:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull' # 1054| # 1055| /* date should be year/month/day-hour:minutes:seconds */ # 1056|-> p = strchr( psz_value, '-' ); # 1057| # 1058| if( !strcmp( psz_value, "now" ) ) Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/input/vlmshell.c:1130:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull' # 1128| # 1129| /* date should be year/month/day-hour:minutes:seconds */ # 1130|-> p = strchr( psz_value, '-' ); # 1131| if( p ) # 1132| { Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/input/vlmshell.c:1199:25: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull' # 1197| else if( !strcmp( psz_cmd, "append" ) ) # 1198| { # 1199|-> char *command = strdup( psz_value ); # 1200| # 1201| TAB_APPEND( schedule->i_command, schedule->command, command ); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/interface/dialog.c:789:9: warning[unix.Malloc]: Potential memory leak # 787| }; # 788| if (answer.u.login.psz_username == NULL # 789|-> || answer.u.login.psz_password == NULL) # 790| { # 791| free(answer.u.login.psz_username); Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/src/misc/actions.c: scope_hint: In function ‘add_mapping’ vlc-3.0.20-build/vlc-3.0.20/src/misc/actions.c:429:8: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:1036: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/misc/actions.c:40: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/misc/actions.c:476:18: note: in expansion of macro ‘var_InheritString’ vlc-3.0.20-build/vlc-3.0.20/src/misc/actions.c:476:18: note: in expansion of macro ‘var_InheritString’ vlc-3.0.20-build/vlc-3.0.20/src/misc/actions.c: scope_hint: In function ‘add_mapping’ # 427| # 428| struct mapping **pent = tsearch (entry, map, keycmp); # 429|-> if (unlikely(pent == NULL)) # 430| return ENOMEM; # 431| if (*pent != entry) Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/misc/actions.c: scope_hint: In function ‘libvlc_InternalActionsInit’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/src/misc/addons.c:535:28: 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.20-build/vlc-3.0.20/include/vlc_arrays.h:153:11: note: in definition of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/misc/addons.c:535:5: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/misc/addons.c:535:5: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/misc/addons.c:535:5: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/misc/addons.c:535:5: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:150:23: note: in definition of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/misc/addons.c:535:5: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:160:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/misc/addons.c:535:5: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:160:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/misc/addons.c:535:5: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:153:11: note: in definition of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/misc/addons.c:535:5: note: in expansion of macro ‘ARRAY_APPEND’ # 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): vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/misc/addons.c:25: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/misc/addons.c: scope_hint: In function ‘InstallEntry’ vlc-3.0.20-build/vlc-3.0.20/src/misc/addons.c:535:28: warning[-Wanalyzer-malloc-leak]: leak of ‘realloc(*p_manager_47(D)->p_priv.installer.entries.p_elems, 80)’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:153:11: note: in definition of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/misc/addons.c:535:5: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/misc/addons.c:535:5: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:158:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/misc/addons.c:535:5: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:158:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/misc/addons.c:535:5: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:158:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/misc/addons.c:535:5: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:153:11: note: in definition of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/misc/addons.c:535:5: note: in expansion of macro ‘ARRAY_APPEND’ # 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): vlc-3.0.20-build/vlc-3.0.20/src/misc/background_worker.c: scope_hint: In function ‘Thread’ vlc-3.0.20-build/vlc-3.0.20/src/misc/background_worker.c:115:13: warning[-Wanalyzer-null-dereference]: 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/misc/background_worker.c:115:51: warning[core.NullDereference]: Access to field 'entity' results in a dereference of a null pointer (loaded from variable '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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/misc/block.c:230:9: warning[deadcode.DeadStores]: Value stored to 'i_prebody' is never read # 228| p_block->i_buffer += i_prebody; # 229| i_body += i_prebody; # 230|-> i_prebody = 0; # 231| } # 232| Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/src/misc/block.c: scope_hint: In function ‘block_shm_Alloc’ vlc-3.0.20-build/vlc-3.0.20/src/misc/block.c:335:22: warning[-Wanalyzer-malloc-leak]: leak of ‘block’ # 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): vlc-3.0.20-build/vlc-3.0.20/src/misc/epg.c: scope_hint: In function ‘vlc_epg_Duplicate’ vlc-3.0.20-build/vlc-3.0.20/src/misc/epg.c:78:54: warning[-Wanalyzer-malloc-leak]: leak of ‘vlc_epg_event_Duplicate(*<unknown>)’ vlc-3.0.20-build/vlc-3.0.20/src/misc/epg.c: scope_hint: In function ‘vlc_epg_Duplicate’ vlc-3.0.20-build/vlc-3.0.20/src/misc/epg.c: scope_hint: In function ‘vlc_epg_Duplicate’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/misc/epg.c:32: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:55:10: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/src/misc/epg.c:236:17: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/src/misc/epg.c:236:17: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/src/misc/epg.c:236:17: note: in expansion of macro ‘TAB_APPEND’ # 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): vlc-3.0.20-build/vlc-3.0.20/src/misc/epg.c:227:34: warning[-Wanalyzer-malloc-leak]: leak of ‘vlc_epg_New(*p_src.i_id, (int)*p_src.i_source_id)’ vlc-3.0.20-build/vlc-3.0.20/src/misc/epg.c: scope_hint: In function ‘vlc_epg_Duplicate’ vlc-3.0.20-build/vlc-3.0.20/src/misc/epg.c: scope_hint: In function ‘vlc_epg_Duplicate’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:55:10: note: in definition of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/src/misc/epg.c:236:17: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/src/misc/epg.c:236:17: note: in expansion of macro ‘TAB_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:65:5: note: in expansion of macro ‘TAB_APPEND_CAST’ vlc-3.0.20-build/vlc-3.0.20/src/misc/epg.c:236:17: note: in expansion of macro ‘TAB_APPEND’ # 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: CPPCHECK_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/misc/fourcc_gen.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING (CWE-252): vlc-3.0.20-build/vlc-3.0.20/src/misc/interrupt.c: scope_hint: In function ‘vlc_poll_i11e_wake’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/src/misc/interrupt.c: scope_hint: In function ‘vlc_poll_i11e_inner’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/src/misc/objects.c: scope_hint: In function ‘vlc_list_children’ vlc-3.0.20-build/vlc-3.0.20/src/misc/objects.c:537:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ vlc-3.0.20-build/vlc-3.0.20/src/misc/objects.c:49: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/misc/objects.c:537:55: note: in expansion of macro ‘vlc_externals’ # 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): vlc-3.0.20-build/vlc-3.0.20/src/misc/objres.c: scope_hint: In function ‘vlc_objres_new’ vlc-3.0.20-build/vlc-3.0.20/src/misc/objres.c:60:12: warning[-Wanalyzer-malloc-leak]: leak of ‘res’ # 58| # 59| res->release = release; # 60|-> return res->payload; # 61| } # 62| Error: COMPILER_WARNING (CWE-563): vlc-3.0.20-build/vlc-3.0.20/src/misc/picture.c: scope_hint: In function ‘picture_Hold’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/misc/picture.c:300:15: warning[deadcode.DeadStores]: Value stored to 'refs' during its initialization is never read # 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): vlc-3.0.20-build/vlc-3.0.20/src/misc/picture_pool.c: scope_hint: In function ‘picture_pool_NewFromFormat’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/src/misc/picture_pool.c: scope_hint: In function ‘picture_pool_Reserve’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: COMPILER_WARNING (CWE-563): vlc-3.0.20-build/vlc-3.0.20/src/misc/variables.c: scope_hint: In function ‘var_SetChecked’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/src/misc/variables.c: scope_hint: In function ‘var_GetChecked’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/misc/variables.c:1319:17: warning[deadcode.DeadStores]: Value stored to 'typename' during its initialization is never read # 1317| # 1318| const variable_t *var = *(const variable_t **)data; # 1319|-> const char *typename = "unknown"; # 1320| # 1321| switch (var->i_type & VLC_VAR_TYPE) Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/src/modules/bank.c: scope_hint: In function ‘vlc_module_store’ vlc-3.0.20-build/vlc-3.0.20/src/modules/bank.c:136:8: warning[-Wanalyzer-malloc-leak]: leak of ‘cap’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_atomic.h:39: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/modules/modules.h:27: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/modules/bank.c:50: included_from: Included from here. # 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): vlc-3.0.20-build/vlc-3.0.20/src/modules/bank.c:141:14: warning[-Wanalyzer-malloc-leak]: leak of ‘cap’ # 139| cap->modv = modv; # 140| cap->modv[cap->modc] = mod; # 141|-> cap->modc++; # 142| return 0; # 143| error: Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/src/modules/bank.c:141:14: warning[-Wanalyzer-malloc-leak]: leak of ‘modv’ # 139| cap->modv = modv; # 140| cap->modv[cap->modc] = mod; # 141|-> cap->modc++; # 142| return 0; # 143| error: Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/modules/cache.c: scope_hint: In function ‘vlc_cache_load_plugin_config’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/src/modules/entry.c: scope_hint: In function ‘vlc_plugin_desc_cb’ vlc-3.0.20-build/vlc-3.0.20/src/modules/entry.c:294:37: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(8)’ # 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-688): vlc-3.0.20-build/vlc-3.0.20/src/modules/entry.c:417:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xmalloc(len * 8)’ where non-null expected vlc-3.0.20-build/vlc-3.0.20/src/modules/entry.c:38: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/config/configuration.h:49:8: note: in definition of macro ‘IsConfigIntegerType’ vlc-3.0.20-build/vlc-3.0.20/src/modules/entry.c:412:17: note: in expansion of macro ‘IsConfigStringType’ vlc-3.0.20-build/vlc-3.0.20/src/modules/entry.c:26: included_from: Included from here. <built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null # 415| const char **dst = xmalloc (sizeof (const char *) * len); # 416| # 417|-> memcpy(dst, src, sizeof (const char *) * len); # 418| item->list.psz = dst; # 419| } Error: GCC_ANALYZER_WARNING (CWE-688): vlc-3.0.20-build/vlc-3.0.20/src/modules/entry.c:428:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xmalloc((len + 1) * 8)’ where non-null expected vlc-3.0.20-build/vlc-3.0.20/src/config/configuration.h:49:8: note: in definition of macro ‘IsConfigIntegerType’ <built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null # 426| const char **dtext = xmalloc (sizeof (const char *) * (len + 1)); # 427| # 428|-> memcpy(dtext, text, sizeof (const char *) * len); # 429| item->list_text = dtext; # 430| item->list_count = len; Error: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/src/modules/entry.c: scope_hint: In function ‘vlc_plugin_gpa_cb’ vlc-3.0.20-build/vlc-3.0.20/src/modules/entry.c:528:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘sym’ # 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): vlc-3.0.20-build/vlc-3.0.20/src/modules/entry.c:539:8: warning[-Wanalyzer-malloc-leak]: leak of ‘sym’ # 537| } # 538| # 539|-> if (*symp != sym) # 540| { /* Duplicate symbol */ # 541| assert((*symp)->addr == sym->addr); Error: GCC_ANALYZER_WARNING (CWE-688): vlc-3.0.20-build/vlc-3.0.20/src/network/httpd.c: scope_hint: In function ‘httpd_HandlerCallBack.part.0’ vlc-3.0.20-build/vlc-3.0.20/src/network/httpd.c:448:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:46: included_from: Included from here. /usr/include/string.h:159:12: note: argument 1 of ‘strncmp’ must be non-null # 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): vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/src/network/httpd.c: scope_hint: In function ‘httpd_HandlerCallBack.part.0’ <built-in>: note: 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): vlc-3.0.20-build/vlc-3.0.20/src/network/httpd.c: scope_hint: In function ‘httpd_ClientRecv’ vlc-3.0.20-build/vlc-3.0.20/src/network/httpd.c:1467:35: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*cl.query.psz_url’ where non-null expected <built-in>: note: 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): vlc-3.0.20-build/vlc-3.0.20/src/network/httpd.c: scope_hint: In function ‘httpd_ClientSend’ vlc-3.0.20-build/vlc-3.0.20/src/network/httpd.c:1589:14: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘p’ where non-null expected <built-in>: note: 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/network/httpd.c:1872:33: warning[core.NullDereference]: Access to field 'i_proto' results in a dereference of a null pointer (loaded from variable 'answer') # 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): vlc-3.0.20-build/vlc-3.0.20/src/network/httpd.c: scope_hint: In function ‘httpdLoop’ vlc-3.0.20-build/vlc-3.0.20/src/network/httpd.c:1872:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘answer’ # 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): vlc-3.0.20-build/vlc-3.0.20/src/network/httpd.c:2041:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘httpd_ClientNew(sk)’ # 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): vlc-3.0.20-build/vlc-3.0.20/src/network/httpd.c:2043:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘httpd_ClientNew(sk)’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/network/tcp.c:282:5: warning[core.VLASize]: Declared variable-length array (VLA) has zero size # 280| n++; # 281| # 282|-> struct pollfd ufd[n]; # 283| /* Initialize file descriptor set */ # 284| for (unsigned i = 0; i < n; i++) Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/src/network/tls.c: scope_hint: In function ‘vlc_tls_SocketAlloc’ vlc-3.0.20-build/vlc-3.0.20/src/network/tls.c:410:8: warning[-Wanalyzer-malloc-leak]: leak of ‘sock’ # 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): vlc-3.0.20-build/vlc-3.0.20/src/network/tls.c:411:9: warning[-Wanalyzer-malloc-leak]: leak of ‘sock’ # 409| sock->peerlen = peerlen; # 410| if (peerlen > 0) # 411|-> memcpy(sock->peer, peer, peerlen); # 412| return tls; # 413| } Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/playlist/item.c:875:44: warning[core.NullDereference]: Access to field 'i_children' results in a dereference of a null pointer (loaded from variable 'p_parent') # 873| else # 874| RecursiveInsertCopy( p_playlist, p_item->pp_children[i], # 875|-> p_parent, p_parent->i_children, false ); # 876| } # 877| Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/playlist/preparser.c: scope_hint: In function ‘playlist_preparser_Push’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/posix/thread.c:478:5: warning[deadcode.DeadStores]: Value stored to 'ret' is never read # 476| # 477| #ifdef VLC_STACKSIZE # 478|-> ret = pthread_attr_setstacksize (attr, VLC_STACKSIZE); # 479| assert (ret == 0); /* fails iif VLC_STACKSIZE is invalid */ # 480| #endif Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/src/stream_output/stream_output.c: scope_hint: In function ‘sout_MuxDeleteStream’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/src/stream_output/stream_output.c:47: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/src/stream_output/stream_output.c: scope_hint: In function ‘sout_MuxGetStream’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/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: GCC_ANALYZER_WARNING (CWE-476): vlc-3.0.20-build/vlc-3.0.20/src/stream_output/stream_output.c: scope_hint: In function ‘mrl_Parse’ vlc-3.0.20-build/vlc-3.0.20/src/stream_output/stream_output.c:611:12: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘psz_parser’ # 609| # 610| /* *** first parse psz_dest */ # 611|-> while( *psz_parser && *psz_parser != ':' ) # 612| { # 613| if( *psz_parser == '{' ) Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/stream_output/stream_output.c:915:35: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value # 913| /* Check if the URLs goes to #rtp - otherwise we'll use #standard */ # 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; Error: GCC_ANALYZER_WARNING (CWE-688): vlc-3.0.20-build/vlc-3.0.20/src/stream_output/stream_output.c: scope_hint: In function ‘sout_stream_url_to_chain’ vlc-3.0.20-build/vlc-3.0.20/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.20-build/vlc-3.0.20/include/vlc_common.h:46: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/stream_output/stream_output.c:36: included_from: Included from here. /usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null # 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): vlc-3.0.20-build/vlc-3.0.20/src/stream_output/stream_output.c:923:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow vlc-3.0.20-build/vlc-3.0.20/src/stream_output/stream_output.c:923:9: note: write of 3 bytes to beyond the end of the region # 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): vlc-3.0.20-build/vlc-3.0.20/src/stream_output/stream_output.c:925:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘mrl.psz_name’ # 923| strcpy (mrl.psz_access, "udp"); # 924| rtp: # 925|-> if (mrl.psz_name[0] == '[') # 926| { # 927| port = strstr (mrl.psz_name, "]:"); Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/text/url.c:61:15: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined # 59| # 60| char c; # 61|-> while ((c = *(in++)) != '\0') # 62| { # 63| if (c == '%') Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/text/url.c:432:19: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value # 430| /* URI scheme */ # 431| next = buf; # 432|-> while ((*next >= 'A' && *next <= 'Z') || (*next >= 'a' && *next <= 'z') # 433| || (*next >= '0' && *next <= '9') || memchr ("+-.", *next, 3) != NULL) # 434| next++; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/text/url.c:498:18: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value # 496| # 497| /* Host name */ # 498|-> if (*cur == '[' && (next = strrchr(cur, ']')) != NULL) # 499| { /* Try IPv6 numeral within brackets */ # 500| *(next++) = '\0'; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/text/url.c:640:21: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value due to array index out of bounds # 638| char *input = str, *output = str; # 639| # 640|-> while (input[0] != '\0') # 641| { # 642| assert(output <= input); Error: GCC_ANALYZER_WARNING (CWE-401): vlc-3.0.20-build/vlc-3.0.20/src/video_output/control.c: scope_hint: In function ‘vout_control_PushMessage’ vlc-3.0.20-build/vlc-3.0.20/src/video_output/control.c:160:1: warning[-Wanalyzer-malloc-leak]: leak of ‘cmd.u.message.string’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_common.h:787: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/video_output/control.c:28: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:158:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/video_output/control.c:105:9: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:158:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/video_output/control.c:105:9: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/src/video_output/control.c:105:9: note: in expansion of macro ‘ARRAY_APPEND’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/video_output/control.c:160:1: warning[unix.Malloc]: Potential leak of memory pointed to by 'cmd.u.message.string' # 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): vlc-3.0.20-build/vlc-3.0.20/src/video_output/control.c: scope_hint: In function ‘vout_control_PushString’ vlc-3.0.20-build/vlc-3.0.20/src/video_output/control.c:177:1: warning[-Wanalyzer-malloc-leak]: leak of ‘cmd.u.string’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:158:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/video_output/control.c:105:9: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:158:9: note: in expansion of macro ‘_ARRAY_ALLOC’ vlc-3.0.20-build/vlc-3.0.20/include/vlc_arrays.h:190:5: note: in expansion of macro ‘_ARRAY_GROW1’ vlc-3.0.20-build/vlc-3.0.20/src/video_output/control.c:105:9: note: in expansion of macro ‘ARRAY_APPEND’ vlc-3.0.20-build/vlc-3.0.20/src/video_output/control.c:105:9: note: in expansion of macro ‘ARRAY_APPEND’ # 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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/video_output/control.c:177:1: warning[unix.Malloc]: Potential leak of memory pointed to by 'cmd.u.string' # 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): vlc-3.0.20-build/vlc-3.0.20/src/video_output/display.c: scope_hint: In function ‘VideoBufferNew’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/video_output/display.c:56:27: warning[deadcode.DeadStores]: Value stored to 'fmt' during its initialization is never read # 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): vlc-3.0.20-build/vlc-3.0.20/src/video_output/display.c: scope_hint: In function ‘vout_display_New’ vlc-3.0.20-build/vlc-3.0.20/src/video_output/display.c:103:5: warning[-Wdeprecated-declarations]: ‘manage’ is deprecated vlc-3.0.20-build/vlc-3.0.20/src/video_output/display.c:34: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/include/vlc_vout_display.h:333:18: note: declared here # 101| vd->display = NULL; # 102| vd->control = NULL; # 103|-> vd->manage = NULL; # 104| vd->sys = NULL; # 105| Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/src/video_output/display.c: scope_hint: In function ‘vout_display_Manage’ vlc-3.0.20-build/vlc-3.0.20/src/video_output/display.c:151:5: warning[-Wdeprecated-declarations]: ‘manage’ is deprecated vlc-3.0.20-build/vlc-3.0.20/include/vlc_vout_display.h:333:18: note: declared here # 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): vlc-3.0.20-build/vlc-3.0.20/src/video_output/display.c:152:9: warning[-Wdeprecated-declarations]: ‘manage’ is deprecated vlc-3.0.20-build/vlc-3.0.20/include/vlc_vout_display.h:333:18: note: declared here # 150| { # 151| if (vd->manage) # 152|-> vd->manage(vd); # 153| } # 154| Error: COMPILER_WARNING (CWE-477): vlc-3.0.20-build/vlc-3.0.20/src/video_output/display.c: scope_hint: In function ‘vout_ManageDisplay’ vlc-3.0.20-build/vlc-3.0.20/src/video_output/display.c:756:13: warning[-Wdeprecated-declarations]: ‘VOUT_DISPLAY_HIDE_MOUSE’ is deprecated vlc-3.0.20-build/vlc-3.0.20/include/vlc_vout_display.h:144:5: note: declared here # 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): vlc-3.0.20-build/vlc-3.0.20/src/video_output/display.c: scope_hint: In function ‘DisplayNew’ vlc-3.0.20-build/vlc-3.0.20/src/video_output/display.c:1136:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘osys’ # 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): vlc-3.0.20-build/vlc-3.0.20/src/video_output/display.c: scope_hint: In function ‘SplitterPrepare’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/src/video_output/display.c: scope_hint: In function ‘SplitterDisplay’ vlc-3.0.20-build/vlc-3.0.20/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): vlc-3.0.20-build/vlc-3.0.20/src/video_output/display.c: scope_hint: In function ‘vout_NewSplitter’ vlc-3.0.20-build/vlc-3.0.20/src/video_output/display.c:1464:5: warning[-Wdeprecated-declarations]: ‘manage’ is deprecated vlc-3.0.20-build/vlc-3.0.20/include/vlc_vout_display.h:333:18: note: declared here # 1462| wrapper->display = SplitterDisplay; # 1463| wrapper->control = SplitterControl; # 1464|-> wrapper->manage = SplitterManage; # 1465| wrapper->sys = sys; # 1466| Error: COMPILER_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/video_output/display.c:46: included_from: Included from here. vlc-3.0.20-build/vlc-3.0.20/src/video_output/event.h: scope_hint: In function ‘vout_SendEventClose’ vlc-3.0.20-build/vlc-3.0.20/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: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/video_output/interlacing.c:159:60: warning[core.NullDereference]: Dereference of null pointer # 157| # 158| /* */ # 159|-> val.psz_string = deinterlace_mode ? deinterlace_mode : optm->orig.psz; # 160| var_Change(vout, "deinterlace-mode", VLC_VAR_SETVALUE, &val, NULL); # 161| val.b_bool = is_interlaced; Error: CLANG_WARNING: vlc-3.0.20-build/vlc-3.0.20/src/video_output/video_epg.c:408:17: warning[deadcode.DeadStores]: Value stored to 'last_ptr' is never read # 406| { # 407| (*last_ptr)->i_align = SUBPICTURE_ALIGN_TOP|SUBPICTURE_ALIGN_RIGHT; # 408|-> last_ptr = &(*last_ptr)->p_next; # 409| } # 410| } Error: GCC_ANALYZER_WARNING (CWE-457): vlc-3.0.20-build/vlc-3.0.20/src/video_output/vout_subpictures.c: scope_hint: In function ‘spu_Render’ vlc-3.0.20-build/vlc-3.0.20/src/video_output/vout_subpictures.c:1599:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘subpicture_array[i]’ # 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,