Task #90496 - ffmpeg-7.1.2-2.fc43/scan-results.err
back to task #90496download
Error: COMPILER_WARNING:
ffmpeg-7.1.2/config.h:339:9: note[note]: this is the location of the previous definition
# 337| #define HAVE_PTHREAD_CANCEL 1
# 338| #define HAVE_PTHREAD_SET_NAME_NP 0
# 339|-> #define HAVE_PTHREAD_SETNAME_NP 0
# 340| #define HAVE_SCHED_GETAFFINITY 1
# 341| #define HAVE_SECITEMIMPORT 0
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavutil/common.h:48: included_from: Included from here.
ffmpeg-7.1.2/libavutil/avutil.h:301: included_from: Included from here.
ffmpeg-7.1.2/libavutil/opt.h:31: included_from: Included from here.
ffmpeg-7.1.2/libavdevice/sdl2.c:31: included_from: Included from here.
ffmpeg-7.1.2/config.h:339:9: warning: ‘HAVE_PTHREAD_SETNAME_NP’ redefined
# 339 | #define HAVE_PTHREAD_SETNAME_NP 0
# | ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/SDL2/SDL_config-x86_64.h:51: included_from: Included from here.
/usr/include/SDL2/SDL_config.h:58: included_from: Included from here.
/usr/include/SDL2/SDL_stdinc.h:33: included_from: Included from here.
/usr/include/SDL2/SDL_main.h:25: included_from: Included from here.
/usr/include/SDL2/SDL.h:31: included_from: Included from here.
ffmpeg-7.1.2/libavdevice/sdl2.c:26: included_from: Included from here.
/usr/include/SDL2/SDL_config_unix.h:188:9: note: this is the location of the previous definition
# 188 | #define HAVE_PTHREAD_SETNAME_NP 1
# | ^~~~~~~~~~~~~~~~~~~~~~~
# 337| #define HAVE_PTHREAD_CANCEL 1
# 338| #define HAVE_PTHREAD_SET_NAME_NP 0
# 339|-> #define HAVE_PTHREAD_SETNAME_NP 0
# 340| #define HAVE_SCHED_GETAFFINITY 1
# 341| #define HAVE_SECITEMIMPORT 0
Error: COMPILER_WARNING:
ffmpeg-7.1.2/config.h:339:9: warning[warning]: ‘HAVE_PTHREAD_SETNAME_NP’ redefined
# 337| #define HAVE_PTHREAD_CANCEL 1
# 338| #define HAVE_PTHREAD_SET_NAME_NP 0
# 339|-> #define HAVE_PTHREAD_SETNAME_NP 0
# 340| #define HAVE_SCHED_GETAFFINITY 1
# 341| #define HAVE_SECITEMIMPORT 0
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/fftools/cmdutils.c: scope_hint: In function ‘write_option’
ffmpeg-7.1.2/fftools/cmdutils.c:278:19: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 278 | char *p = strchr(opt, ':');
# | ^~~~~~
# 276|
# 277| if (po->flags & OPT_FLAG_SPEC) {
# 278|-> char *p = strchr(opt, ':');
# 279| char *str;
# 280|
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/fftools/cmdutils.c:278:19: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 276|
# 277| if (po->flags & OPT_FLAG_SPEC) {
# 278|-> char *p = strchr(opt, ':');
# 279| char *str;
# 280|
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/fftools/cmdutils.c:968:34: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
ffmpeg-7.1.2/fftools/cmdutils.c:920:7: enter_function: entry to ‘get_preset_file’
ffmpeg-7.1.2/fftools/cmdutils.c:935:8: branch_false: following ‘false’ branch (when ‘is_path == 0’)...
ffmpeg-7.1.2/fftools/cmdutils.c:935:8: branch_false: ...to here
ffmpeg-7.1.2/fftools/cmdutils.c:968:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/fftools/cmdutils.c:969:18: branch_true: ...to here
ffmpeg-7.1.2/fftools/cmdutils.c:973:17: call_function: inlined call to ‘fopen_utf8’ from ‘get_preset_file’
ffmpeg-7.1.2/fftools/cmdutils.c:968:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/fftools/cmdutils.c:969:18: branch_true: ...to here
ffmpeg-7.1.2/fftools/cmdutils.c:968:34: danger: ‘f’ leaks here; was opened at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
# 966| }
# 967| #endif
# 968|-> for (i = 0; i < 3 && !f; i++) {
# 969| if (!base[i])
# 970| continue;
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/fftools/cmdutils.c:968:34: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
ffmpeg-7.1.2/fftools/cmdutils.c:920:7: enter_function: entry to ‘get_preset_file’
ffmpeg-7.1.2/fftools/cmdutils.c:935:8: branch_false: following ‘false’ branch (when ‘is_path == 0’)...
ffmpeg-7.1.2/fftools/cmdutils.c:935:8: branch_false: ...to here
ffmpeg-7.1.2/fftools/cmdutils.c:968:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/fftools/cmdutils.c:969:18: branch_true: ...to here
ffmpeg-7.1.2/fftools/cmdutils.c:973:17: call_function: inlined call to ‘fopen_utf8’ from ‘get_preset_file’
ffmpeg-7.1.2/fftools/cmdutils.c:968:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/fftools/cmdutils.c:969:18: branch_true: ...to here
ffmpeg-7.1.2/fftools/cmdutils.c:968:34: danger: ‘f’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
# 966| }
# 967| #endif
# 968|-> for (i = 0; i < 3 && !f; i++) {
# 969| if (!base[i])
# 970| continue;
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:1414:24: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘<unknown>’
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:912:12: enter_function: entry to ‘decoder_thread’
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:919:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:922:5: branch_false: ...to here
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:924:12: branch_true: following ‘true’ branch (when ‘input_status == 0’)...
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:927:63: branch_true: ...to here
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:933:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:938:14: branch_false: ...to here
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:938:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:939:16: branch_true: ...to here
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:939:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:941:16: branch_false: ...to here
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:941:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:948:43: branch_false: ...to here
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:948:19: call_function: calling ‘dec_standalone_open’ from ‘decoder_thread’
# 1412| // This will be dealt with by API-specific initialisation
# 1413| // (using hwaccel_device), so nothing further needed here.
# 1414|-> return 0;
# 1415| }
# 1416| } else {
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:1509:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘type’
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:912:12: enter_function: entry to ‘decoder_thread’
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:919:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:922:5: branch_false: ...to here
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:924:12: branch_true: following ‘true’ branch (when ‘input_status == 0’)...
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:927:63: branch_true: ...to here
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:933:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:938:14: branch_false: ...to here
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:938:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:939:16: branch_true: ...to here
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:939:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:941:16: branch_false: ...to here
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:941:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:948:43: branch_false: ...to here
ffmpeg-7.1.2/fftools/ffmpeg_dec.c:948:19: call_function: calling ‘dec_standalone_open’ from ‘decoder_thread’
# 1507|
# 1508| if (!dev) {
# 1509|-> av_log(dp, AV_LOG_ERROR, "No device available "
# 1510| "for decoder: device type %s needed for codec %s.\n",
# 1511| av_hwdevice_get_type_name(type), codec->name);
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/fftools/ffmpeg_enc.c:212:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.1.2/fftools/ffmpeg_enc.c:841:5: enter_function: entry to ‘encoder_thread’
ffmpeg-7.1.2/fftools/ffmpeg_enc.c:850:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/fftools/ffmpeg_enc.c:860:9: branch_false: ...to here
ffmpeg-7.1.2/fftools/ffmpeg_enc.c:860:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/fftools/ffmpeg_enc.c:861:15: branch_true: ...to here
ffmpeg-7.1.2/fftools/ffmpeg_enc.c:861:15: call_function: calling ‘enc_open’ from ‘encoder_thread’
# 210| // the timebase is chosen by filtering code
# 211| if (ost->type == AVMEDIA_TYPE_AUDIO || ost->type == AVMEDIA_TYPE_VIDEO) {
# 212|-> enc_ctx->time_base = frame->time_base;
# 213| enc_ctx->framerate = fd->frame_rate_filter;
# 214| ost->st->avg_frame_rate = fd->frame_rate_filter;
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/fftools/ffmpeg_enc.c:219:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.1.2/fftools/ffmpeg_enc.c:841:5: enter_function: entry to ‘encoder_thread’
ffmpeg-7.1.2/fftools/ffmpeg_enc.c:850:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/fftools/ffmpeg_enc.c:860:9: branch_false: ...to here
ffmpeg-7.1.2/fftools/ffmpeg_enc.c:860:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/fftools/ffmpeg_enc.c:861:15: branch_true: ...to here
ffmpeg-7.1.2/fftools/ffmpeg_enc.c:861:15: call_function: calling ‘enc_open’ from ‘encoder_thread’
# 217| switch (enc_ctx->codec_type) {
# 218| case AVMEDIA_TYPE_AUDIO:
# 219|-> av_assert0(frame->format != AV_SAMPLE_FMT_NONE &&
# 220| frame->sample_rate > 0 &&
# 221| frame->ch_layout.nb_channels > 0);
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/fftools/ffmpeg_enc.c:236:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.1.2/fftools/ffmpeg_enc.c:841:5: enter_function: entry to ‘encoder_thread’
ffmpeg-7.1.2/fftools/ffmpeg_enc.c:850:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/fftools/ffmpeg_enc.c:860:9: branch_false: ...to here
ffmpeg-7.1.2/fftools/ffmpeg_enc.c:860:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/fftools/ffmpeg_enc.c:861:15: branch_true: ...to here
ffmpeg-7.1.2/fftools/ffmpeg_enc.c:861:15: call_function: calling ‘enc_open’ from ‘encoder_thread’
# 234|
# 235| case AVMEDIA_TYPE_VIDEO: {
# 236|-> av_assert0(frame->format != AV_PIX_FMT_NONE &&
# 237| frame->width > 0 &&
# 238| frame->height > 0);
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/fftools/ffmpeg_mux.c:368:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘err_msg’
ffmpeg-7.1.2/fftools/ffmpeg_mux.c:407:5: enter_function: entry to ‘muxer_thread’
ffmpeg-7.1.2/fftools/ffmpeg_mux.c:417:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/fftools/ffmpeg_mux.c:420:5: branch_false: ...to here
ffmpeg-7.1.2/fftools/ffmpeg_mux.c:428:12: branch_false: following ‘false’ branch (when ‘stream_idx >= 0’)...
ffmpeg-7.1.2/fftools/ffmpeg_mux.c:434:15: branch_false: ...to here
ffmpeg-7.1.2/fftools/ffmpeg_mux.c:438:15: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/fftools/ffmpeg_mux.c:438:15: branch_true: ...to here
ffmpeg-7.1.2/fftools/ffmpeg_mux.c:438:15: call_function: calling ‘mux_packet_filter’ from ‘muxer_thread’
# 366| fail:
# 367| if (ret != AVERROR_EOF)
# 368|-> av_log(ost, AV_LOG_ERROR, "Error %s: %s\n", err_msg, av_err2str(ret));
# 369| return ret;
# 370| }
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/fftools/ffmpeg_mux_init.c:1851:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘attachment’
ffmpeg-7.1.2/fftools/ffmpeg_mux_init.c:1805:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/fftools/ffmpeg_mux_init.c:1812:36: branch_true: ...to here
ffmpeg-7.1.2/fftools/ffmpeg_mux_init.c:1812:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/fftools/ffmpeg_mux_init.c:1817:20: branch_false: ...to here
ffmpeg-7.1.2/fftools/ffmpeg_mux_init.c:1817:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/fftools/ffmpeg_mux_init.c:1819:20: branch_true: ...to here
ffmpeg-7.1.2/fftools/ffmpeg_mux_init.c:1820:13: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/fftools/ffmpeg_mux_init.c:1820:13: branch_true: ...to here
ffmpeg-7.1.2/fftools/ffmpeg_mux_init.c:1848:12: branch_false: following ‘false’ branch (when ‘err >= 0’)...
ffmpeg-7.1.2/fftools/ffmpeg_mux_init.c:1851:9: branch_false: ...to here
ffmpeg-7.1.2/fftools/ffmpeg_mux_init.c:1851:9: danger: use of uninitialized value ‘attachment’ here
# 1849| return err;
# 1850|
# 1851|-> memset(attachment + len, 0, AV_INPUT_BUFFER_PADDING_SIZE);
# 1852|
# 1853| av_log(mux, AV_LOG_VERBOSE, "Creating attachment stream from file %s\n",
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/fftools/ffmpeg_mux_init.c: scope_hint: In function ‘parse_forced_key_frames’
ffmpeg-7.1.2/fftools/ffmpeg_mux_init.c:3090:22: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 3090 | char *next = strchr(p, ',');
# | ^~~~~~
# 3088| p = spec;
# 3089| for (i = 0; i < n; i++) {
# 3090|-> char *next = strchr(p, ',');
# 3091|
# 3092| if (next)
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/fftools/ffmpeg_mux_init.c:3090:22: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 3088| p = spec;
# 3089| for (i = 0; i < n; i++) {
# 3090|-> char *next = strchr(p, ',');
# 3091|
# 3092| if (next)
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/fftools/ffplay.c:593:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.1.2/fftools/ffplay.c:2263:12: enter_function: entry to ‘subtitle_thread’
ffmpeg-7.1.2/fftools/ffplay.c:2271:20: call_function: calling ‘frame_queue_peek_writable’ from ‘subtitle_thread’
ffmpeg-7.1.2/fftools/ffplay.c:2271:20: return_function: returning to ‘subtitle_thread’ from ‘frame_queue_peek_writable’
ffmpeg-7.1.2/fftools/ffplay.c:2271:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/fftools/ffplay.c:2274:29: branch_false: ...to here
ffmpeg-7.1.2/fftools/ffplay.c:2274:29: call_function: calling ‘decoder_decode_frame’ from ‘subtitle_thread’
# 591| if (ret >= 0) {
# 592| if (decoder_reorder_pts == -1) {
# 593|-> frame->pts = frame->best_effort_timestamp;
# 594| } else if (!decoder_reorder_pts) {
# 595| frame->pts = frame->pkt_dts;
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/fftools/ffplay.c:595:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.1.2/fftools/ffplay.c:2263:12: enter_function: entry to ‘subtitle_thread’
ffmpeg-7.1.2/fftools/ffplay.c:2271:20: call_function: calling ‘frame_queue_peek_writable’ from ‘subtitle_thread’
ffmpeg-7.1.2/fftools/ffplay.c:2271:20: return_function: returning to ‘subtitle_thread’ from ‘frame_queue_peek_writable’
ffmpeg-7.1.2/fftools/ffplay.c:2271:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/fftools/ffplay.c:2274:29: branch_false: ...to here
ffmpeg-7.1.2/fftools/ffplay.c:2274:29: call_function: calling ‘decoder_decode_frame’ from ‘subtitle_thread’
# 593| frame->pts = frame->best_effort_timestamp;
# 594| } else if (!decoder_reorder_pts) {
# 595|-> frame->pts = frame->pkt_dts;
# 596| }
# 597| }
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/fftools/ffplay.c:602:61: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.1.2/fftools/ffplay.c:2263:12: enter_function: entry to ‘subtitle_thread’
ffmpeg-7.1.2/fftools/ffplay.c:2271:20: call_function: calling ‘frame_queue_peek_writable’ from ‘subtitle_thread’
ffmpeg-7.1.2/fftools/ffplay.c:2271:20: return_function: returning to ‘subtitle_thread’ from ‘frame_queue_peek_writable’
ffmpeg-7.1.2/fftools/ffplay.c:2271:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/fftools/ffplay.c:2274:29: branch_false: ...to here
ffmpeg-7.1.2/fftools/ffplay.c:2274:29: call_function: calling ‘decoder_decode_frame’ from ‘subtitle_thread’
# 600| ret = avcodec_receive_frame(d->avctx, frame);
# 601| if (ret >= 0) {
# 602|-> AVRational tb = (AVRational){1, frame->sample_rate};
# 603| if (frame->pts != AV_NOPTS_VALUE)
# 604| frame->pts = av_rescale_q(frame->pts, d->avctx->pkt_timebase, tb);
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/fftools/ffplay_renderer.c: scope_hint: In function ‘create_vk_by_placebo’
ffmpeg-7.1.2/fftools/ffplay_renderer.c:411:5: warning[-Wdeprecated-declarations]: ‘queue_family_index’ is deprecated
# 411 | vk_dev_ctx->queue_family_index = ctx->placebo_vulkan->queue_graphics.index;
# | ^~~~~~~~~~
/usr/include/libplacebo/utils/libav_internal.h:47: included_from: Included from here.
/usr/include/libplacebo/utils/libav.h:293: included_from: Included from here.
ffmpeg-7.1.2/fftools/ffplay_renderer.c:41: included_from: Included from here.
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.h:124:9: note: declared here
# 124 | int queue_family_index;
# | ^~~~~~~~~~~~~~~~~~
# 409| vk_dev_ctx->nb_enabled_dev_extensions = ctx->placebo_vulkan->num_extensions;
# 410|
# 411|-> vk_dev_ctx->queue_family_index = ctx->placebo_vulkan->queue_graphics.index;
# 412| vk_dev_ctx->nb_graphics_queues = ctx->placebo_vulkan->queue_graphics.count;
# 413|
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/fftools/ffplay_renderer.c:411:5: warning[-Wdeprecated-declarations]: ‘queue_family_index’ is deprecated
# 409| vk_dev_ctx->nb_enabled_dev_extensions = ctx->placebo_vulkan->num_extensions;
# 410|
# 411|-> vk_dev_ctx->queue_family_index = ctx->placebo_vulkan->queue_graphics.index;
# 412| vk_dev_ctx->nb_graphics_queues = ctx->placebo_vulkan->queue_graphics.count;
# 413|
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/fftools/ffplay_renderer.c:412:5: warning[-Wdeprecated-declarations]: ‘nb_graphics_queues’ is deprecated
# 412 | vk_dev_ctx->nb_graphics_queues = ctx->placebo_vulkan->queue_graphics.count;
# | ^~~~~~~~~~
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.h:126:9: note: declared here
# 126 | int nb_graphics_queues;
# | ^~~~~~~~~~~~~~~~~~
# 410|
# 411| vk_dev_ctx->queue_family_index = ctx->placebo_vulkan->queue_graphics.index;
# 412|-> vk_dev_ctx->nb_graphics_queues = ctx->placebo_vulkan->queue_graphics.count;
# 413|
# 414| vk_dev_ctx->queue_family_tx_index = ctx->placebo_vulkan->queue_transfer.index;
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/fftools/ffplay_renderer.c:412:5: warning[-Wdeprecated-declarations]: ‘nb_graphics_queues’ is deprecated
# 410|
# 411| vk_dev_ctx->queue_family_index = ctx->placebo_vulkan->queue_graphics.index;
# 412|-> vk_dev_ctx->nb_graphics_queues = ctx->placebo_vulkan->queue_graphics.count;
# 413|
# 414| vk_dev_ctx->queue_family_tx_index = ctx->placebo_vulkan->queue_transfer.index;
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/fftools/ffplay_renderer.c:414:5: warning[-Wdeprecated-declarations]: ‘queue_family_tx_index’ is deprecated
# 414 | vk_dev_ctx->queue_family_tx_index = ctx->placebo_vulkan->queue_transfer.index;
# | ^~~~~~~~~~
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.h:133:9: note: declared here
# 133 | int queue_family_tx_index;
# | ^~~~~~~~~~~~~~~~~~~~~
# 412| vk_dev_ctx->nb_graphics_queues = ctx->placebo_vulkan->queue_graphics.count;
# 413|
# 414|-> vk_dev_ctx->queue_family_tx_index = ctx->placebo_vulkan->queue_transfer.index;
# 415| vk_dev_ctx->nb_tx_queues = ctx->placebo_vulkan->queue_transfer.count;
# 416|
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/fftools/ffplay_renderer.c:414:5: warning[-Wdeprecated-declarations]: ‘queue_family_tx_index’ is deprecated
# 412| vk_dev_ctx->nb_graphics_queues = ctx->placebo_vulkan->queue_graphics.count;
# 413|
# 414|-> vk_dev_ctx->queue_family_tx_index = ctx->placebo_vulkan->queue_transfer.index;
# 415| vk_dev_ctx->nb_tx_queues = ctx->placebo_vulkan->queue_transfer.count;
# 416|
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/fftools/ffplay_renderer.c:415:5: warning[-Wdeprecated-declarations]: ‘nb_tx_queues’ is deprecated
# 415 | vk_dev_ctx->nb_tx_queues = ctx->placebo_vulkan->queue_transfer.count;
# | ^~~~~~~~~~
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.h:135:9: note: declared here
# 135 | int nb_tx_queues;
# | ^~~~~~~~~~~~
# 413|
# 414| vk_dev_ctx->queue_family_tx_index = ctx->placebo_vulkan->queue_transfer.index;
# 415|-> vk_dev_ctx->nb_tx_queues = ctx->placebo_vulkan->queue_transfer.count;
# 416|
# 417| vk_dev_ctx->queue_family_comp_index = ctx->placebo_vulkan->queue_compute.index;
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/fftools/ffplay_renderer.c:415:5: warning[-Wdeprecated-declarations]: ‘nb_tx_queues’ is deprecated
# 413|
# 414| vk_dev_ctx->queue_family_tx_index = ctx->placebo_vulkan->queue_transfer.index;
# 415|-> vk_dev_ctx->nb_tx_queues = ctx->placebo_vulkan->queue_transfer.count;
# 416|
# 417| vk_dev_ctx->queue_family_comp_index = ctx->placebo_vulkan->queue_compute.index;
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/fftools/ffplay_renderer.c:417:5: warning[-Wdeprecated-declarations]: ‘queue_family_comp_index’ is deprecated
# 417 | vk_dev_ctx->queue_family_comp_index = ctx->placebo_vulkan->queue_compute.index;
# | ^~~~~~~~~~
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.h:142:9: note: declared here
# 142 | int queue_family_comp_index;
# | ^~~~~~~~~~~~~~~~~~~~~~~
# 415| vk_dev_ctx->nb_tx_queues = ctx->placebo_vulkan->queue_transfer.count;
# 416|
# 417|-> vk_dev_ctx->queue_family_comp_index = ctx->placebo_vulkan->queue_compute.index;
# 418| vk_dev_ctx->nb_comp_queues = ctx->placebo_vulkan->queue_compute.count;
# 419|
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/fftools/ffplay_renderer.c:417:5: warning[-Wdeprecated-declarations]: ‘queue_family_comp_index’ is deprecated
# 415| vk_dev_ctx->nb_tx_queues = ctx->placebo_vulkan->queue_transfer.count;
# 416|
# 417|-> vk_dev_ctx->queue_family_comp_index = ctx->placebo_vulkan->queue_compute.index;
# 418| vk_dev_ctx->nb_comp_queues = ctx->placebo_vulkan->queue_compute.count;
# 419|
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/fftools/ffplay_renderer.c:418:5: warning[-Wdeprecated-declarations]: ‘nb_comp_queues’ is deprecated
# 418 | vk_dev_ctx->nb_comp_queues = ctx->placebo_vulkan->queue_compute.count;
# | ^~~~~~~~~~
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.h:144:9: note: declared here
# 144 | int nb_comp_queues;
# | ^~~~~~~~~~~~~~
# 416|
# 417| vk_dev_ctx->queue_family_comp_index = ctx->placebo_vulkan->queue_compute.index;
# 418|-> vk_dev_ctx->nb_comp_queues = ctx->placebo_vulkan->queue_compute.count;
# 419|
# 420| ret = get_decode_queue(renderer, &decode_index, &decode_count);
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/fftools/ffplay_renderer.c:418:5: warning[-Wdeprecated-declarations]: ‘nb_comp_queues’ is deprecated
# 416|
# 417| vk_dev_ctx->queue_family_comp_index = ctx->placebo_vulkan->queue_compute.index;
# 418|-> vk_dev_ctx->nb_comp_queues = ctx->placebo_vulkan->queue_compute.count;
# 419|
# 420| ret = get_decode_queue(renderer, &decode_index, &decode_count);
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/fftools/ffplay_renderer.c:424:5: warning[-Wdeprecated-declarations]: ‘queue_family_decode_index’ is deprecated
# 424 | vk_dev_ctx->queue_family_decode_index = decode_index;
# | ^~~~~~~~~~
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.h:162:9: note: declared here
# 162 | int queue_family_decode_index;
# | ^~~~~~~~~~~~~~~~~~~~~~~~~
# 422| return ret;
# 423|
# 424|-> vk_dev_ctx->queue_family_decode_index = decode_index;
# 425| vk_dev_ctx->nb_decode_queues = decode_count;
# 426|
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/fftools/ffplay_renderer.c:424:5: warning[-Wdeprecated-declarations]: ‘queue_family_decode_index’ is deprecated
# 422| return ret;
# 423|
# 424|-> vk_dev_ctx->queue_family_decode_index = decode_index;
# 425| vk_dev_ctx->nb_decode_queues = decode_count;
# 426|
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/fftools/ffplay_renderer.c:425:5: warning[-Wdeprecated-declarations]: ‘nb_decode_queues’ is deprecated
# 425 | vk_dev_ctx->nb_decode_queues = decode_count;
# | ^~~~~~~~~~
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.h:164:9: note: declared here
# 164 | int nb_decode_queues;
# | ^~~~~~~~~~~~~~~~
# 423|
# 424| vk_dev_ctx->queue_family_decode_index = decode_index;
# 425|-> vk_dev_ctx->nb_decode_queues = decode_count;
# 426|
# 427| ret = av_hwdevice_ctx_init(ctx->hw_device_ref);
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/fftools/ffplay_renderer.c:425:5: warning[-Wdeprecated-declarations]: ‘nb_decode_queues’ is deprecated
# 423|
# 424| vk_dev_ctx->queue_family_decode_index = decode_index;
# 425|-> vk_dev_ctx->nb_decode_queues = decode_count;
# 426|
# 427| ret = av_hwdevice_ctx_init(ctx->hw_device_ref);
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/fftools/ffprobe.c: scope_hint: In function ‘json_escape_str’
ffmpeg-7.1.2/fftools/ffprobe.c:1678:19: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 1678 | char *s = strchr(json_escape, *p);
# | ^~~~~~
# 1676|
# 1677| for (p = src; *p; p++) {
# 1678|-> char *s = strchr(json_escape, *p);
# 1679| if (s) {
# 1680| av_bprint_chars(dst, '\\', 1);
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/fftools/ffprobe.c:1678:19: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 1676|
# 1677| for (p = src; *p; p++) {
# 1678|-> char *s = strchr(json_escape, *p);
# 1679| if (s) {
# 1680| av_bprint_chars(dst, '\\', 1);
Error: GCC_ANALYZER_WARNING (CWE-404):
ffmpeg-7.1.2/fftools/opt_common.c:1142:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
ffmpeg-7.1.2/fftools/opt_common.c:1141:5: acquire_resource: ‘va_copy’ called here
ffmpeg-7.1.2/fftools/opt_common.c:1142:5: throw: if ‘av_log_default_callback’ throws an exception...
ffmpeg-7.1.2/fftools/opt_common.c:1142:5: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 1140|
# 1141| va_copy(vl2, vl);
# 1142|-> av_log_default_callback(ptr, level, fmt, vl);
# 1143| av_log_format_line(ptr, level, fmt, vl2, line, sizeof(line), &print_prefix);
# 1144| va_end(vl2);
Error: GCC_ANALYZER_WARNING (CWE-404):
ffmpeg-7.1.2/fftools/opt_common.c:1143:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
ffmpeg-7.1.2/fftools/opt_common.c:1141:5: acquire_resource: ‘va_copy’ called here
ffmpeg-7.1.2/fftools/opt_common.c:1143:5: throw: if ‘av_log_format_line’ throws an exception...
ffmpeg-7.1.2/fftools/opt_common.c:1143:5: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
# 1141| va_copy(vl2, vl);
# 1142| av_log_default_callback(ptr, level, fmt, vl);
# 1143|-> av_log_format_line(ptr, level, fmt, vl2, line, sizeof(line), &print_prefix);
# 1144| va_end(vl2);
# 1145| if (report_file_level >= level) {
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/012v.c:130:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&y_temp’
ffmpeg-7.1.2/libavcodec/012v.c:48:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/012v.c:58:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/012v.c:64:16: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/012v.c:64:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/012v.c:67:16: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/012v.c:68:20: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/012v.c:69:18: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/012v.c:77:21: branch_true: following ‘true’ branch (when ‘x < width’)...
ffmpeg-7.1.2/libavcodec/012v.c:80:17: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/012v.c:80:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/012v.c:80:16: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/012v.c:86:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/012v.c:126:12: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/012v.c:126:12: branch_true: following ‘true’ branch (when ‘x < width’)...
ffmpeg-7.1.2/libavcodec/012v.c:127:21: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/012v.c:130:13: danger: use of uninitialized value ‘&y_temp’ here
# 128| u = x/2 + (uint16_t *)(pic->data[1] + line * pic->linesize[1]);
# 129| v = x/2 + (uint16_t *)(pic->data[2] + line * pic->linesize[2]);
# 130|-> memcpy(y, y_temp, sizeof(*y) * (width - x));
# 131| memcpy(u, u_temp, sizeof(*u) * ((width - x + 1) / 2));
# 132| memcpy(v, v_temp, sizeof(*v) * ((width - x + 1) / 2));
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/4xm.c:696:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘flag[node]’
ffmpeg-7.1.2/libavcodec/4xm.c:836:12: enter_function: entry to ‘decode_frame’
ffmpeg-7.1.2/libavcodec/4xm.c:844:8: branch_false: following ‘false’ branch (when ‘buf_size > 19’)...
ffmpeg-7.1.2/libavcodec/4xm.c:847:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/4xm.c:847:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/4xm.c:849:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/4xm.c:855:17: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/4xm.c:857:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/4xm.c:926:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/4xm.c:930:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/4xm.c:933:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/4xm.c:933:8: branch_false: following ‘false’ branch (when ‘frame_4cc != 846358121’)...
ffmpeg-7.1.2/libavcodec/4xm.c:939:15: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/4xm.c:939:15: branch_true: following ‘true’ branch (when ‘frame_4cc == 1836213865’)...
ffmpeg-7.1.2/libavcodec/4xm.c:940:9: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/4xm.c:941:20: call_function: calling ‘decode_i_frame’ from ‘decode_frame’
# 694|
# 695| for (node = j; up[node] != -1; node = up[node]) {
# 696|-> bits += flag[node] << len;
# 697| len++;
# 698| if (len > 31)
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavcodec/aac/aacdec.c: scope_hint: In function ‘decode_close’
ffmpeg-7.1.2/libavcodec/aac/aacdec.c:1132:9: warning[-Wdeclaration-after-statement]: ISO C90 forbids mixed declarations and code
# 1132 | AACUSACConfig *usac = &oc->usac;
# | ^~~~~~~~~~~~~
# 1130| av_channel_layout_uninit(&ac->oc[i].ch_layout);
# 1131|
# 1132|-> AACUSACConfig *usac = &oc->usac;
# 1133| for (int j = 0; j < usac->nb_elems; j++) {
# 1134| AACUsacElemConfig *ec = &usac->elems[j];
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/aac/aacdec_dsp_template.c:212:40: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘tmp[i]’
ffmpeg-7.1.2/libavcodec/aac/aacdec_dsp_template.c:164:13: enter_function: entry to ‘apply_tns’
ffmpeg-7.1.2/libavcodec/aac/aacdec_dsp_template.c:175:7: branch_false: following ‘false’ branch (when ‘mmm != 0’)...
ffmpeg-7.1.2/libavcodec/aac/aacdec_dsp_template.c:175:7: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/aac/aacdec_dsp_template.c:178:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/aac/aacdec_dsp_template.c:179:9: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/aac/aacdec_dsp_template.c:188:13: call_function: calling ‘compute_lpc_coefs’ from ‘apply_tns’
ffmpeg-7.1.2/libavcodec/aac/aacdec_dsp_template.c:188:13: return_function: returning to ‘apply_tns’ from ‘compute_lpc_coefs’
ffmpeg-7.1.2/libavcodec/aac/aacdec_dsp_template.c:212:40: danger: use of uninitialized value ‘tmp[i]’ here
# 210| tmp[0] = coef[start];
# 211| for (i = 1; i <= FFMIN(m, order); i++)
# 212|-> coef[start] += AAC_MUL26(tmp[i], lpc[i - 1]);
# 213| for (i = order; i > 0; i--)
# 214| tmp[i] = tmp[i - 1];
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/aac/aacdec_usac.c:1720:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘che’
ffmpeg-7.1.2/libavcodec/aac/aacdec_usac.c:1700:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/aac/aacdec_usac.c:1703:28: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/aac/aacdec_usac.c:1706:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/aac/aacdec_usac.c:1710:19: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/aac/aacdec_usac.c:1710:19: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/aac/aacdec_usac.c:1714:19: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/aac/aacdec_usac.c:1714:19: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/aac/aacdec_usac.c:1720:12: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/aac/aacdec_usac.c:1720:11: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/aac/aacdec_usac.c:1720:12: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/aac/aacdec_usac.c:1720:12: danger: use of uninitialized value ‘che’ here
# 1718| }
# 1719|
# 1720|-> if (e->type != ID_USAC_EXT && !che) {
# 1721| av_log(ac->avctx, AV_LOG_ERROR,
# 1722| "channel element %d.%d is not allocated\n",
Error: COMPILER_WARNING (CWE-563):
ffmpeg-7.1.2/libavcodec/aac_ac3_parser.c: scope_hint: In function ‘ff_aac_ac3_parse’
ffmpeg-7.1.2/libavcodec/aac_ac3_parser.c:151:17: warning[-Wunused-variable]: unused variable ‘profile’
# 151 | int profile;
# | ^~~~~~~
# 149| AACADTSHeaderInfo hdr;
# 150| GetBitContext gb;
# 151|-> int profile;
# 152| init_get_bits8(&gb, buf, buf_size);
# 153| if (buf_size < AV_AAC_ADTS_HEADER_SIZE ||
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/ac3enc.c:598:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘flags’
ffmpeg-7.1.2/libavcodec/ac3enc.c:1985:5: enter_function: entry to ‘ff_ac3_encode_frame’
ffmpeg-7.1.2/libavcodec/ac3enc.c:1991:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/ac3enc.c:1997:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/ac3enc.c:2002:5: call_function: calling ‘ac3_apply_rematrixing’ from ‘ff_ac3_encode_frame’
# 596| nb_coefs = FFMIN(block->end_freq[1], block->end_freq[2]);
# 597| for (bnd = 0; bnd < block->num_rematrixing_bands; bnd++) {
# 598|-> if (flags[bnd]) {
# 599| start = ff_ac3_rematrix_band_tab[bnd];
# 600| end = FFMIN(nb_coefs, ff_ac3_rematrix_band_tab[bnd+1]);
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/ac3enc.c:2459:45: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘cpl_coord_mant_buffer’
ffmpeg-7.1.2/libavcodec/ac3enc.c:2427:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/ac3enc.c:2428:10: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/ac3enc.c:2427:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/ac3enc.c:2429:10: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/ac3enc.c:2427:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/ac3enc.c:2430:10: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/ac3enc.c:2427:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/ac3enc.c:2431:10: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/ac3enc.c:2427:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/ac3enc.c:2432:10: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/ac3enc.c:2427:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/ac3enc.c:2433:10: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/ac3enc.c:2427:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/ac3enc.c:2434:10: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/ac3enc.c:2427:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/ac3enc.c:2435:10: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/ac3enc.c:2427:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/ac3enc.c:2438:10: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/ac3enc.c:2438:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/ac3enc.c:2442:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/ac3enc.c:2442:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/ac3enc.c:2447:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/ac3enc.c:2447:19: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/ac3enc.c:2447:19: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/ac3enc.c:2450:22: branch_true: following ‘true’ branch (when ‘ch < channels’)...
ffmpeg-7.1.2/libavcodec/ac3enc.c:2452:39: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/ac3enc.c:2457:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/ac3enc.c:2458:46: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/ac3enc.c:2459:45: danger: use of uninitialized value ‘cpl_coord_mant_buffer’ here
# 2457| if (s->cpl_enabled) {
# 2458| block->cpl_coord_exp[ch] = &s->cpl_coord_buffer [16 * (blk * channels + ch)];
# 2459|-> block->cpl_coord_mant[ch] = &cpl_coord_mant_buffer[16 * (blk * channels + ch)];
# 2460| }
# 2461|
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/amfenc.c:864:73: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘res_query’
ffmpeg-7.1.2/libavcodec/amfenc.c:656:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/amfenc.c:659:10: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/amfenc.c:661:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/amfenc.c:665:10: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/amfenc.c:863:12: branch_true: following ‘true’ branch (when ‘query_output_data_flag == 0’)...
ffmpeg-7.1.2/libavcodec/amfenc.c:864:16: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/amfenc.c:864:73: danger: use of uninitialized value ‘res_query’ here
# 862|
# 863| if (query_output_data_flag == 0) {
# 864|-> if (res_resubmit == AMF_INPUT_FULL || ctx->delayed_drain || (ctx->eof && res_query != AMF_EOF) || (ctx->hwsurfaces_in_queue >= ctx->hwsurfaces_in_queue_max)) {
# 865| block_and_wait = 1;
# 866| av_usleep(1000);
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/amfenc.c:871:8: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘res_query’
ffmpeg-7.1.2/libavcodec/amfenc.c:656:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/amfenc.c:659:10: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/amfenc.c:846:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/amfenc.c:848:23: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/amfenc.c:849:20: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/amfenc.c:879:1: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/amfenc.c:863:12: branch_true: following ‘true’ branch (when ‘query_output_data_flag == 0’)...
ffmpeg-7.1.2/libavcodec/amfenc.c:864:16: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/amfenc.c:864:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/amfenc.c:869:14: branch_false: following ‘false’ branch (when ‘block_and_wait == 0’)...
ffmpeg-7.1.2/libavcodec/amfenc.c:871:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/amfenc.c:871:8: danger: use of uninitialized value ‘res_query’ here
# 869| } while (block_and_wait);
# 870|
# 871|-> if (res_query == AMF_EOF) {
# 872| ret = AVERROR_EOF;
# 873| } else if (data == NULL) {
Error: GCC_ANALYZER_WARNING:
ffmpeg-7.1.2/libavcodec/apedec.c:982:13: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
ffmpeg-7.1.2/libavcodec/apedec.c:960:21: branch_true: following ‘true’ branch (when ‘i < length’)...
ffmpeg-7.1.2/libavcodec/apedec.c:962:30: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/apedec.c:964:25: branch_false: following ‘false’ branch (when ‘order <= j’)...
ffmpeg-7.1.2/libavcodec/apedec.c:978:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/apedec.c:981:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/apedec.c:982:13: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/apedec.c:982:13: danger: overlapping buffers passed as arguments to ‘memcpy’
# 980| delayp[order - 1] = buffer[i];
# 981| if (delayp - delay == 256) {
# 982|-> memcpy(delay, delayp, sizeof(*delay)*256);
# 983| delayp = delay;
# 984| }
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/binkaudio.c:206:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘quant[0]’
ffmpeg-7.1.2/libavcodec/binkaudio.c:295:12: enter_function: entry to ‘binkaudio_receive_frame’
ffmpeg-7.1.2/libavcodec/binkaudio.c:303:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/binkaudio.c:325:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/binkaudio.c:325:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/binkaudio.c:326:29: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/binkaudio.c:327:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/binkaudio.c:329:12: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/binkaudio.c:329:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/binkaudio.c:330:13: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/binkaudio.c:333:9: call_function: calling ‘decode_block’ from ‘binkaudio_receive_frame’
# 204|
# 205| k = 0;
# 206|-> q = quant[0];
# 207|
# 208| // parse coefficients
Error: GCC_ANALYZER_WARNING (CWE-1335):
ffmpeg-7.1.2/libavcodec/bitstream_template.h:83:22: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘64’) >= precision of type (‘64’)
ffmpeg-7.1.2/libavcodec/utvideodec.c:581:12: enter_function: entry to ‘decode_frame’
ffmpeg-7.1.2/libavcodec/utvideodec.c:593:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/utvideodec.c:597:5: call_function: inlined call to ‘bytestream2_init’ from ‘decode_frame’
ffmpeg-7.1.2/libavcodec/utvideodec.c:705:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/utvideodec.c:709:25: call_function: inlined call to ‘bytestream2_get_le32u’ from ‘decode_frame’
ffmpeg-7.1.2/libavcodec/utvideodec.c:722:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/utvideodec.c:728:13: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/utvideodec.c:731:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/utvideodec.c:735:32: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/utvideodec.c:732:19: call_function: calling ‘decode_plane’ from ‘decode_frame’
# 81|
# 82| #ifdef BITSTREAM_TEMPLATE_LE
# 83|-> bc->bits |= (uint64_t)AV_RL32(bc->ptr) << bc->bits_valid;
# 84| #else
# 85| bc->bits |= (uint64_t)AV_RB32(bc->ptr) << (32 - bc->bits_valid);
Error: GCC_ANALYZER_WARNING (CWE-688):
ffmpeg-7.1.2/libavcodec/bsf/dovi_rpu.c:101:9: warning[-Wanalyzer-null-argument]: use of NULL ‘rpu’ where non-null expected
ffmpeg-7.1.2/libavcodec/bsf/dovi_rpu.c:83:31: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/bsf/dovi_rpu.c:83:47: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/bsf/dovi_rpu.c:84:14: release_memory: ‘rpu’ is NULL
ffmpeg-7.1.2/libavcodec/bsf/dovi_rpu.c:87:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/bsf/dovi_rpu.c:90:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/bsf/dovi_rpu.c:95:50: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/bsf/dovi_rpu.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/bsf/dovi_rpu.c:100:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/bsf/dovi_rpu.c:100:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/bsf/dovi_rpu.c:101:9: release_memory: ‘rpu’ is NULL
ffmpeg-7.1.2/libavcodec/bsf/dovi_rpu.c:101:9: danger: argument 2 (‘rpu’) NULL where non-null expected
# 99| /* NAL unit header + NAL prefix */
# 100| if (rpu_size + 3 <= nal->data_size && av_buffer_is_writable(nal->data_ref)) {
# 101|-> memcpy(nal->data + 3, rpu, rpu_size);
# 102| av_free(rpu);
# 103| nal->data_size = rpu_size + 3;
Error: GCC_ANALYZER_WARNING (CWE-688):
ffmpeg-7.1.2/libavcodec/bsf/dovi_rpu.c:112:9: warning[-Wanalyzer-null-argument]: use of NULL ‘rpu’ where non-null expected
ffmpeg-7.1.2/libavcodec/bsf/dovi_rpu.c:83:31: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/bsf/dovi_rpu.c:83:47: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/bsf/dovi_rpu.c:84:14: release_memory: ‘rpu’ is NULL
ffmpeg-7.1.2/libavcodec/bsf/dovi_rpu.c:87:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/bsf/dovi_rpu.c:90:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/bsf/dovi_rpu.c:95:50: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/bsf/dovi_rpu.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/bsf/dovi_rpu.c:100:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/bsf/dovi_rpu.c:106:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/bsf/dovi_rpu.c:111:27: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/bsf/dovi_rpu.c:112:9: release_memory: ‘rpu’ is NULL
ffmpeg-7.1.2/libavcodec/bsf/dovi_rpu.c:112:9: danger: argument 2 (‘rpu’) NULL where non-null expected
# 110|
# 111| memcpy(ref->data, nal->data, 3);
# 112|-> memcpy(ref->data + 3, rpu, rpu_size);
# 113| av_buffer_unref(&nal->data_ref);
# 114| av_free(rpu);
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/bsf/extract_extradata.c:142:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘filtered_buf’
ffmpeg-7.1.2/libavcodec/bsf/extract_extradata.c:94:12: enter_function: entry to ‘extract_extradata_av1’
ffmpeg-7.1.2/libavcodec/bsf/extract_extradata.c:104:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/bsf/extract_extradata.c:104:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/bsf/extract_extradata.c:109:13: call_function: calling ‘obu_is_global’ from ‘extract_extradata_av1’
ffmpeg-7.1.2/libavcodec/bsf/extract_extradata.c:109:13: return_function: returning to ‘extract_extradata_av1’ from ‘obu_is_global’
ffmpeg-7.1.2/libavcodec/bsf/extract_extradata.c:118:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/bsf/extract_extradata.c:119:22: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/bsf/extract_extradata.c:119:22: release_memory: ‘filtered_buf’ is NULL
ffmpeg-7.1.2/libavcodec/bsf/extract_extradata.c:123:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/bsf/extract_extradata.c:131:31: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/bsf/extract_extradata.c:132:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/bsf/extract_extradata.c:137:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/bsf/extract_extradata.c:140:9: call_function: inlined call to ‘bytestream2_init_writer’ from ‘extract_extradata_av1’
ffmpeg-7.1.2/libavcodec/bsf/extract_extradata.c:141:13: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/bsf/extract_extradata.c:141:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/bsf/extract_extradata.c:142:68: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/bsf/extract_extradata.c:142:68: release_memory: ‘filtered_buf’ is NULL
ffmpeg-7.1.2/libavcodec/bsf/extract_extradata.c:142:13: danger: dereference of NULL ‘filtered_buf’
# 140| bytestream2_init_writer(&pb_extradata, extradata, extradata_size);
# 141| if (s->remove)
# 142|-> bytestream2_init_writer(&pb_filtered_data, filtered_buf->data, filtered_size);
# 143|
# 144| for (i = 0; i < s->av1_pkt.nb_obus; i++) {
Error: GCC_ANALYZER_WARNING (CWE-787):
ffmpeg-7.1.2/libavcodec/bsf/filter_units.c:84:21: warning[-Wanalyzer-out-of-bounds]: buffer overflow
ffmpeg-7.1.2/libavcodec/bsf/filter_units.c:59:20: branch_true: following ‘true’ branch (when ‘pass != 3’)...
ffmpeg-7.1.2/libavcodec/bsf/filter_units.c:59:20: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/bsf/filter_units.c:90:12: branch_true: following ‘true’ branch (when ‘pass == 1’)...
ffmpeg-7.1.2/libavcodec/bsf/filter_units.c:91:20: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/bsf/filter_units.c:92:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/bsf/filter_units.c:104:1: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/bsf/filter_units.c:59:20: branch_true: following ‘true’ branch (when ‘pass != 3’)...
ffmpeg-7.1.2/libavcodec/bsf/filter_units.c:59:20: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/bsf/filter_units.c:65:33: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/bsf/filter_units.c:66:21: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/bsf/filter_units.c:67:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/bsf/filter_units.c:70:17: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/bsf/filter_units.c:83:20: branch_true: following ‘true’ branch (when ‘pass == 2’)...
ffmpeg-7.1.2/libavcodec/bsf/filter_units.c:84:25: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/bsf/filter_units.c:84:21: danger: write of 4 bytes at offset ‘count’ exceeds ‘*(void *)((void *)list)’
# 82| } else {
# 83| if (pass == 2)
# 84|-> list[count] = value;
# 85| ++count;
# 86| }
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/cbs.c:671:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘start_position’
ffmpeg-7.1.2/libavcodec/cbs.c:647:5: enter_function: entry to ‘ff_cbs_write_unsigned’
ffmpeg-7.1.2/libavcodec/cbs.c:652:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/cbs.c:654:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/cbs.c:654:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/cbs.c:656:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/cbs.c:656:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/cbs.c:663:9: call_function: inlined call to ‘put_bits_left’ from ‘ff_cbs_write_unsigned’
ffmpeg-7.1.2/libavcodec/cbs.c:663:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/cbs.c:666:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/cbs.c:667:9: call_function: inlined call to ‘put_bits’ from ‘ff_cbs_write_unsigned’
ffmpeg-7.1.2/libavcodec/cbs.c:667:9: call_function: inlined call to ‘put_bits’ from ‘ff_cbs_write_unsigned’
ffmpeg-7.1.2/libavcodec/cbs.c:671:5: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/cbs.c:671:5: call_function: inlined call to ‘put_bits_count’ from ‘ff_cbs_write_unsigned’
ffmpeg-7.1.2/libavcodec/cbs.c:671:5: danger: use of uninitialized value ‘start_position’ here
# 669| put_bits32(pbc, value);
# 670|
# 671|-> CBS_TRACE_WRITE_END();
# 672|
# 673| return 0;
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/cbs.c:739:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘start_position’
ffmpeg-7.1.2/libavcodec/cbs.c:715:5: enter_function: entry to ‘ff_cbs_write_signed’
ffmpeg-7.1.2/libavcodec/cbs.c:720:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/cbs.c:722:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/cbs.c:722:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/cbs.c:724:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/cbs.c:724:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/cbs.c:731:9: call_function: inlined call to ‘put_bits_left’ from ‘ff_cbs_write_signed’
ffmpeg-7.1.2/libavcodec/cbs.c:731:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/cbs.c:734:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/cbs.c:737:9: call_function: inlined call to ‘put_bits32’ from ‘ff_cbs_write_signed’
ffmpeg-7.1.2/libavcodec/cbs.c:737:9: call_function: inlined call to ‘put_bits32’ from ‘ff_cbs_write_signed’
ffmpeg-7.1.2/libavcodec/cbs.c:739:5: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/cbs.c:739:5: call_function: inlined call to ‘put_bits_count’ from ‘ff_cbs_write_signed’
ffmpeg-7.1.2/libavcodec/cbs.c:739:5: danger: use of uninitialized value ‘start_position’ here
# 737| put_bits32(pbc, value);
# 738|
# 739|-> CBS_TRACE_WRITE_END();
# 740|
# 741| return 0;
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/cbs_av1.c:114:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘start_position’
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:158:12: enter_function: entry to ‘cbs_av1_write_timing_info’
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:163:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:164:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:164:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:166:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:166:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:167:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:167:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:168:9: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:168:9: call_function: calling ‘cbs_av1_write_uvlc’ from ‘cbs_av1_write_timing_info’
# 112| put_bits(pbc, zeroes, v);
# 113|
# 114|-> CBS_TRACE_WRITE_END_NO_SUBSCRIPTS();
# 115|
# 116| return 0;
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/cbs_av1.c:255:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘start_position’
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1132:12: enter_function: entry to ‘cbs_av1_write_global_motion_param’
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1153:5: call_function: calling ‘cbs_av1_write_subexp’ from ‘cbs_av1_write_global_motion_param’
# 253| }
# 254|
# 255|-> CBS_TRACE_WRITE_END();
# 256|
# 257| return 0;
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/cbs_av1.c:314:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘start_position’
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1024:12: enter_function: entry to ‘cbs_av1_write_read_tx_mode’
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1030:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1033:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1033:9: call_function: calling ‘cbs_av1_write_increment’ from ‘cbs_av1_write_read_tx_mode’
# 312| put_bits(pbc, len, (1U << len) - 1 - (value != range_max));
# 313|
# 314|-> CBS_TRACE_WRITE_END_NO_SUBSCRIPTS();
# 315|
# 316| return 0;
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/cbs_vp9.c:129:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘start_position’
ffmpeg-7.1.2/libavcodec/cbs_vp9_syntax_template.c:244:12: enter_function: entry to ‘cbs_vp9_write_tile_info’
ffmpeg-7.1.2/libavcodec/cbs_vp9_syntax_template.c:258:5: call_function: calling ‘cbs_vp9_write_increment’ from ‘cbs_vp9_write_tile_info’
# 127| put_bits(pbc, len, (1 << len) - 1 - (value != range_max));
# 128|
# 129|-> CBS_TRACE_WRITE_END_NO_SUBSCRIPTS();
# 130|
# 131| return 0;
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/cbs_vp9.c:177:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘start_position’
ffmpeg-7.1.2/libavcodec/cbs_vp9_syntax_template.c:407:12: enter_function: entry to ‘cbs_vp9_write_superframe_index’
ffmpeg-7.1.2/libavcodec/cbs_vp9_syntax_template.c:414:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/cbs_vp9_syntax_template.c:415:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/cbs_vp9_syntax_template.c:415:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/cbs_vp9_syntax_template.c:416:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/cbs_vp9_syntax_template.c:416:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/cbs_vp9_syntax_template.c:416:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/cbs_vp9_syntax_template.c:418:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/cbs_vp9_syntax_template.c:420:9: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/cbs_vp9_syntax_template.c:420:9: call_function: calling ‘cbs_vp9_write_le’ from ‘cbs_vp9_write_superframe_index’
# 175| put_bits(pbc, 8, value >> b & 0xff);
# 176|
# 177|-> CBS_TRACE_WRITE_END();
# 178|
# 179| return 0;
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/ccaption_dec.c:687:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ret’
ffmpeg-7.1.2/libavcodec/ccaption_dec.c:851:12: enter_function: entry to ‘decode’
ffmpeg-7.1.2/libavcodec/ccaption_dec.c:865:17: branch_true: following ‘true’ branch (when ‘i < len’)...
ffmpeg-7.1.2/libavcodec/ccaption_dec.c:866:35: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/ccaption_dec.c:874:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/ccaption_dec.c:877:50: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/ccaption_dec.c:877:15: call_function: calling ‘process_cc608’ from ‘decode’
# 685| ret = capture_screen(ctx);
# 686|
# 687|-> return ret;
# 688| }
# 689|
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/cinepakenc.c:1128:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*(unsigned char (*)[128])(&strip_offsets[0])’
ffmpeg-7.1.2/libavcodec/cinepakenc.c:1167:12: enter_function: entry to ‘cinepak_encode_frame’
ffmpeg-7.1.2/libavcodec/cinepakenc.c:1175:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/cinepakenc.c:1177:17: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/cinepakenc.c:1177:17: call_function: calling ‘rd_frame’ from ‘cinepak_encode_frame’
# 1126| best_nstrips = num_strips;
# 1127| *got_keyframe = all_no_skip; // no skip MBs in any strip -> keyframe
# 1128|-> memcpy(best_strip_offsets, strip_offsets, sizeof(strip_offsets));
# 1129| }
# 1130| // avoid trying too many strip numbers without a real reason
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/libavcodec/decode.c:2008:20: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open("UTF-8", *avctx.sub_charenc)’
ffmpeg-7.1.2/libavcodec/decode.c:1984:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/decode.c:1989:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/decode.c:1990:13: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/decode.c:1990:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/decode.c:1994:20: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/decode.c:1994:19: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/decode.c:2002:17: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/decode.c:2002:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/decode.c:2005:17: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/decode.c:2005:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/decode.c:2007:30: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/decode.c:2007:30: acquire_memory: allocated here
ffmpeg-7.1.2/libavcodec/decode.c:2008:20: danger: ‘iconv_open("UTF-8", *avctx.sub_charenc)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
# 2006| #if CONFIG_ICONV
# 2007| iconv_t cd = iconv_open("UTF-8", avctx->sub_charenc);
# 2008|-> if (cd == (iconv_t)-1) {
# 2009| ret = AVERROR(errno);
# 2010| av_log(avctx, AV_LOG_ERROR, "Unable to open iconv context "
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/libavcodec/decode.c:2014:17: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open("UTF-8", *avctx.sub_charenc)’
ffmpeg-7.1.2/libavcodec/decode.c:1989:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/decode.c:1990:13: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/decode.c:1990:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/decode.c:1994:20: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/decode.c:1994:19: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/decode.c:2002:17: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/decode.c:2005:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/decode.c:2007:30: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/decode.c:2007:30: acquire_memory: allocated here
ffmpeg-7.1.2/libavcodec/decode.c:2008:20: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/decode.c:2014:17: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/decode.c:2014:17: danger: ‘iconv_open("UTF-8", *avctx.sub_charenc)’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
# 2012| return ret;
# 2013| }
# 2014|-> iconv_close(cd);
# 2015| #else
# 2016| av_log(avctx, AV_LOG_ERROR, "Character encoding subtitles "
Error: GCC_ANALYZER_WARNING (CWE-688):
ffmpeg-7.1.2/libavcodec/dnxhdenc.c:909:5: warning[-Wanalyzer-null-argument]: use of NULL ‘pb0.buf’ where non-null expected
ffmpeg-7.1.2/libavcodec/dnxhdenc.c:875:12: enter_function: entry to ‘dnxhd_encode_thread’
ffmpeg-7.1.2/libavcodec/dnxhdenc.c:882:5: call_function: inlined call to ‘init_put_bits’ from ‘dnxhd_encode_thread’
ffmpeg-7.1.2/libavcodec/dnxhdenc.c:888:20: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/dnxhdenc.c:908:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/dnxhdenc.c:908:5: call_function: calling ‘flush_put_bits’ from ‘dnxhd_encode_thread’
ffmpeg-7.1.2/libavcodec/dnxhdenc.c:908:5: return_function: returning to ‘dnxhd_encode_thread’ from ‘flush_put_bits’
ffmpeg-7.1.2/libavcodec/dnxhdenc.c:909:33: call_function: inlined call to ‘put_bytes_left’ from ‘dnxhd_encode_thread’
ffmpeg-7.1.2/libavcodec/dnxhdenc.c:909:5: danger: argument 1 (‘pb0.buf_ptr’) NULL where non-null expected
# 907| }
# 908| flush_put_bits(pb);
# 909|-> memset(put_bits_ptr(pb), 0, put_bytes_left(pb, 0));
# 910| return 0;
# 911| }
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/dpx.c:289:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘i’
ffmpeg-7.1.2/libavcodec/dpx.c:152:12: enter_function: entry to ‘decode_frame’
ffmpeg-7.1.2/libavcodec/dpx.c:172:8: branch_false: following ‘false’ branch (when ‘buf_size > 1634’)...
ffmpeg-7.1.2/libavcodec/dpx.c:177:17: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/dpx.c:192:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/dpx.c:197:22: call_function: inlined call to ‘read32’ from ‘decode_frame’
ffmpeg-7.1.2/libavcodec/dpx.c:220:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/dpx.c:224:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/dpx.c:237:8: branch_false: following ‘false’ branch (when ‘encoding == 0’)...
ffmpeg-7.1.2/libavcodec/dpx.c:242:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/dpx.c:242:8: branch_false: following ‘false’ branch (when ‘bits_per_color <= 31’)...
ffmpeg-7.1.2/libavcodec/dpx.c:245:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/dpx.c:256:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/dpx.c:279:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/dpx.c:279:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/dpx.c:284:15: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/dpx.c:289:12: danger: use of uninitialized value ‘i’ here
# 287| tc = av_bswap32(read32(&buf, endian));
# 288|
# 289|-> if (i != 0xFFFFFFFF) {
# 290| AVFrameSideData *tcside;
# 291| ret = ff_frame_new_side_data(avctx, p, AV_FRAME_DATA_S12M_TIMECODE,
Error: GCC_ANALYZER_WARNING (CWE-127):
ffmpeg-7.1.2/libavcodec/dv_tablegen.h:88:42: warning[-Wanalyzer-out-of-bounds]: buffer under-read
ffmpeg-7.1.2/libavcodec/dv_tablegen.h:55:21: branch_true: following ‘true’ branch (when ‘i != 409’)...
ffmpeg-7.1.2/libavcodec/dv_tablegen.h:56:43: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/dv_tablegen.h:73:17: branch_true: following ‘true’ branch (when ‘i != 64’)...
ffmpeg-7.1.2/libavcodec/dv_tablegen.h:73:17: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/dv_tablegen.h:85:21: branch_true: following ‘true’ branch (when ‘j != 256’)...
ffmpeg-7.1.2/libavcodec/dv_tablegen.h:86:17: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/dv_tablegen.h:86:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/dv_tablegen.h:87:41: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/dv_tablegen.h:88:42: danger: out-of-bounds read from byte -4096 till byte -4093 but ‘dv_vlc_map’ starts at byte 0
# 86| if (dv_vlc_map[i][j].size == 0) {
# 87| dv_vlc_map[i][j].vlc = dv_vlc_map[0][j].vlc |
# 88|-> (dv_vlc_map[i - 1][0].vlc <<
# 89| dv_vlc_map[0][j].size);
# 90| dv_vlc_map[i][j].size = dv_vlc_map[i - 1][0].size +
Error: GCC_ANALYZER_WARNING (CWE-127):
ffmpeg-7.1.2/libavcodec/dv_tablegen.h:90:41: warning[-Wanalyzer-out-of-bounds]: buffer under-read
ffmpeg-7.1.2/libavcodec/dv_tablegen.h:55:21: branch_true: following ‘true’ branch (when ‘i != 409’)...
ffmpeg-7.1.2/libavcodec/dv_tablegen.h:56:43: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/dv_tablegen.h:73:17: branch_true: following ‘true’ branch (when ‘i != 64’)...
ffmpeg-7.1.2/libavcodec/dv_tablegen.h:73:17: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/dv_tablegen.h:85:21: branch_true: following ‘true’ branch (when ‘j != 256’)...
ffmpeg-7.1.2/libavcodec/dv_tablegen.h:86:17: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/dv_tablegen.h:86:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/dv_tablegen.h:87:41: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/dv_tablegen.h:90:41: danger: out-of-bounds read from byte -4092 till byte -4089 but ‘dv_vlc_map’ starts at byte 0
# 88| (dv_vlc_map[i - 1][0].vlc <<
# 89| dv_vlc_map[0][j].size);
# 90|-> dv_vlc_map[i][j].size = dv_vlc_map[i - 1][0].size +
# 91| dv_vlc_map[0][j].size;
# 92| }
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/encode.c:239:55: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.1.2/libavcodec/encode.c:362:12: enter_function: entry to ‘encode_receive_packet_internal’
ffmpeg-7.1.2/libavcodec/encode.c:367:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/encode.c:370:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/encode.c:370:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/encode.c:379:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/encode.c:388:15: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/encode.c:388:15: call_function: calling ‘encode_simple_receive_packet’ from ‘encode_receive_packet_internal’
# 237| {
# 238| if (avctx->flags & AV_CODEC_FLAG_COPY_OPAQUE) {
# 239|-> int ret = av_buffer_replace(&pkt->opaque_ref, frame->opaque_ref);
# 240| if (ret < 0)
# 241| return ret;
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/encode.c:272:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.1.2/libavcodec/encode.c:305:12: enter_function: entry to ‘encode_simple_internal’
ffmpeg-7.1.2/libavcodec/encode.c:313:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/encode.c:316:10: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/encode.c:323:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/encode.c:324:15: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/encode.c:334:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/encode.c:336:40: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/encode.c:336:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/encode.c:340:15: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/encode.c:340:15: call_function: calling ‘ff_encode_encode_cb’ from ‘encode_simple_internal’
# 270| (frame && (codec->caps_internal & FF_CODEC_CAP_EOF_FLUSH))) {
# 271| if (avpkt->pts == AV_NOPTS_VALUE)
# 272|-> avpkt->pts = frame->pts;
# 273|
# 274| if (!avpkt->duration) {
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/encode.c:275:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.1.2/libavcodec/encode.c:305:12: enter_function: entry to ‘encode_simple_internal’
ffmpeg-7.1.2/libavcodec/encode.c:313:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/encode.c:316:10: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/encode.c:323:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/encode.c:324:15: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/encode.c:334:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/encode.c:336:40: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/encode.c:336:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/encode.c:340:15: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/encode.c:340:15: call_function: calling ‘ff_encode_encode_cb’ from ‘encode_simple_internal’
# 273|
# 274| if (!avpkt->duration) {
# 275|-> if (frame->duration)
# 276| avpkt->duration = frame->duration;
# 277| else if (avctx->codec->type == AVMEDIA_TYPE_AUDIO) {
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/flacdec.c:323:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b’
ffmpeg-7.1.2/libavcodec/flacdec.c:714:12: enter_function: entry to ‘flac_decode_frame’
ffmpeg-7.1.2/libavcodec/flacdec.c:725:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/flacdec.c:730:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:730:8: branch_true: following ‘true’ branch (when ‘buf_size > 0’)...
ffmpeg-7.1.2/libavcodec/flacdec.c:730:26: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:730:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/flacdec.c:738:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:738:8: branch_false: following ‘false’ branch (when ‘buf_size > 9’)...
ffmpeg-7.1.2/libavcodec/flacdec.c:742:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:742:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/flacdec.c:751:16: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:751:16: call_function: inlined call to ‘init_get_bits8’ from ‘flac_decode_frame’
ffmpeg-7.1.2/libavcodec/flacdec.c:751:16: call_function: inlined call to ‘init_get_bits8’ from ‘flac_decode_frame’
ffmpeg-7.1.2/libavcodec/flacdec.c:751:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/flacdec.c:753:16: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:753:16: call_function: calling ‘decode_frame’ from ‘flac_decode_frame’
# 321| b = a - decoded[pred_order-2];
# 322| if (pred_order > 2)
# 323|-> c = b - decoded[pred_order-2] + decoded[pred_order-3];
# 324| if (pred_order > 3)
# 325| d = c - decoded[pred_order-2] + 2U*decoded[pred_order-3] - decoded[pred_order-4];
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/flacdec.c:332:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘a’
ffmpeg-7.1.2/libavcodec/flacdec.c:714:12: enter_function: entry to ‘flac_decode_frame’
ffmpeg-7.1.2/libavcodec/flacdec.c:725:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/flacdec.c:730:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:730:8: branch_true: following ‘true’ branch (when ‘buf_size > 0’)...
ffmpeg-7.1.2/libavcodec/flacdec.c:730:26: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:730:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/flacdec.c:738:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:738:8: branch_false: following ‘false’ branch (when ‘buf_size > 9’)...
ffmpeg-7.1.2/libavcodec/flacdec.c:742:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:742:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/flacdec.c:751:16: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:751:16: call_function: inlined call to ‘init_get_bits8’ from ‘flac_decode_frame’
ffmpeg-7.1.2/libavcodec/flacdec.c:751:16: call_function: inlined call to ‘init_get_bits8’ from ‘flac_decode_frame’
ffmpeg-7.1.2/libavcodec/flacdec.c:751:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/flacdec.c:753:16: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:753:16: call_function: calling ‘decode_frame’ from ‘flac_decode_frame’
# 330| case 1:
# 331| for (i = pred_order; i < blocksize; i++)
# 332|-> decoded[i] = a += decoded[i];
# 333| break;
# 334| case 2:
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/flacdec.c:336:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b’
ffmpeg-7.1.2/libavcodec/flacdec.c:714:12: enter_function: entry to ‘flac_decode_frame’
ffmpeg-7.1.2/libavcodec/flacdec.c:725:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/flacdec.c:730:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:730:8: branch_true: following ‘true’ branch (when ‘buf_size > 0’)...
ffmpeg-7.1.2/libavcodec/flacdec.c:730:26: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:730:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/flacdec.c:738:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:738:8: branch_false: following ‘false’ branch (when ‘buf_size > 9’)...
ffmpeg-7.1.2/libavcodec/flacdec.c:742:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:742:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/flacdec.c:751:16: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:751:16: call_function: inlined call to ‘init_get_bits8’ from ‘flac_decode_frame’
ffmpeg-7.1.2/libavcodec/flacdec.c:751:16: call_function: inlined call to ‘init_get_bits8’ from ‘flac_decode_frame’
ffmpeg-7.1.2/libavcodec/flacdec.c:751:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/flacdec.c:753:16: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:753:16: call_function: calling ‘decode_frame’ from ‘flac_decode_frame’
# 334| case 2:
# 335| for (i = pred_order; i < blocksize; i++)
# 336|-> decoded[i] = a += b += decoded[i];
# 337| break;
# 338| case 3:
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/flacdec.c:340:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘c’
ffmpeg-7.1.2/libavcodec/flacdec.c:714:12: enter_function: entry to ‘flac_decode_frame’
ffmpeg-7.1.2/libavcodec/flacdec.c:725:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/flacdec.c:730:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:730:8: branch_true: following ‘true’ branch (when ‘buf_size > 0’)...
ffmpeg-7.1.2/libavcodec/flacdec.c:730:26: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:730:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/flacdec.c:738:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:738:8: branch_false: following ‘false’ branch (when ‘buf_size > 9’)...
ffmpeg-7.1.2/libavcodec/flacdec.c:742:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:742:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/flacdec.c:751:16: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:751:16: call_function: inlined call to ‘init_get_bits8’ from ‘flac_decode_frame’
ffmpeg-7.1.2/libavcodec/flacdec.c:751:16: call_function: inlined call to ‘init_get_bits8’ from ‘flac_decode_frame’
ffmpeg-7.1.2/libavcodec/flacdec.c:751:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/flacdec.c:753:16: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:753:16: call_function: calling ‘decode_frame’ from ‘flac_decode_frame’
# 338| case 3:
# 339| for (i = pred_order; i < blocksize; i++)
# 340|-> decoded[i] = a += b += c += decoded[i];
# 341| break;
# 342| case 4:
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/flacdec.c:344:41: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘d’
ffmpeg-7.1.2/libavcodec/flacdec.c:714:12: enter_function: entry to ‘flac_decode_frame’
ffmpeg-7.1.2/libavcodec/flacdec.c:725:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/flacdec.c:730:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:730:8: branch_true: following ‘true’ branch (when ‘buf_size > 0’)...
ffmpeg-7.1.2/libavcodec/flacdec.c:730:26: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:730:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/flacdec.c:738:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:738:8: branch_false: following ‘false’ branch (when ‘buf_size > 9’)...
ffmpeg-7.1.2/libavcodec/flacdec.c:742:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:742:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/flacdec.c:751:16: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:751:16: call_function: inlined call to ‘init_get_bits8’ from ‘flac_decode_frame’
ffmpeg-7.1.2/libavcodec/flacdec.c:751:16: call_function: inlined call to ‘init_get_bits8’ from ‘flac_decode_frame’
ffmpeg-7.1.2/libavcodec/flacdec.c:751:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/flacdec.c:753:16: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/flacdec.c:753:16: call_function: calling ‘decode_frame’ from ‘flac_decode_frame’
# 342| case 4:
# 343| for (i = pred_order; i < blocksize; i++)
# 344|-> decoded[i] = a += b += c += d += decoded[i];
# 345| break;
# 346| default:
Error: GCC_ANALYZER_WARNING:
ffmpeg-7.1.2/libavcodec/gdv.c:167:13: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
ffmpeg-7.1.2/libavcodec/gdv.c:459:12: enter_function: entry to ‘gdv_decode_frame’
ffmpeg-7.1.2/libavcodec/gdv.c:470:5: call_function: inlined call to ‘bytestream2_init’ from ‘gdv_decode_frame’
ffmpeg-7.1.2/libavcodec/gdv.c:471:5: call_function: inlined call to ‘bytestream2_init_writer’ from ‘gdv_decode_frame’
ffmpeg-7.1.2/libavcodec/gdv.c:476:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/gdv.c:479:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/gdv.c:481:21: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/gdv.c:485:5: call_function: calling ‘rescale’ from ‘gdv_decode_frame’
# 165| uint8_t *dst1 = dst + PREAMBLE_SIZE + y * w;
# 166| uint8_t *src1 = dst + PREAMBLE_SIZE + y*2 * w;
# 167|-> memcpy(dst1, src1, w);
# 168| }
# 169| } else if (scale_v) {
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/get_bits.h:325:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gb.buffer’
ffmpeg-7.1.2/libavcodec/dvdec.c:392:12: enter_function: entry to ‘dv_decode_video_segment’
ffmpeg-7.1.2/libavcodec/dvdec.c:428:24: branch_true: following ‘true’ branch (when ‘mb_index != 5’)...
ffmpeg-7.1.2/libavcodec/dvdec.c:430:20: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/dvdec.c:431:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/dvdec.c:439:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/dvdec.c:444:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/dvdec.c:445:26: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/dvdec.c:446:13: call_function: calling ‘init_get_bits’ from ‘dv_decode_video_segment’
ffmpeg-7.1.2/libavcodec/dvdec.c:446:13: return_function: returning to ‘dv_decode_video_segment’ from ‘init_get_bits’
ffmpeg-7.1.2/libavcodec/dvdec.c:449:24: call_function: calling ‘get_sbits’ from ‘dv_decode_video_segment’
# 323| OPEN_READER(re, s);
# 324| av_assert2(n>0 && n<=25);
# 325|-> UPDATE_CACHE(re, s);
# 326| tmp = SHOW_SBITS(re, s, n);
# 327| LAST_SKIP_BITS(re, s, n);
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/get_bits.h:340:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*s.gb.buffer’
ffmpeg-7.1.2/libavcodec/nellymoserdec.c:63:13: enter_function: entry to ‘nelly_decode_block’
ffmpeg-7.1.2/libavcodec/nellymoserdec.c:73:5: call_function: calling ‘init_get_bits’ from ‘nelly_decode_block’
ffmpeg-7.1.2/libavcodec/nellymoserdec.c:73:5: return_function: returning to ‘nelly_decode_block’ from ‘init_get_bits’
ffmpeg-7.1.2/libavcodec/nellymoserdec.c:77:31: call_function: calling ‘get_bits’ from ‘nelly_decode_block’
# 338| OPEN_READER(re, s);
# 339| av_assert2(n>0 && n<=25);
# 340|-> UPDATE_CACHE(re, s);
# 341| tmp = SHOW_UBITS(re, s, n);
# 342| LAST_SKIP_BITS(re, s, n);
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/get_bits.h:340:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.1.2/libavcodec/atrac3.c:833:12: enter_function: entry to ‘atrac3al_decode_frame’
ffmpeg-7.1.2/libavcodec/atrac3.c:842:11: call_function: calling ‘al_decode_frame’ from ‘atrac3al_decode_frame’
# 338| OPEN_READER(re, s);
# 339| av_assert2(n>0 && n<=25);
# 340|-> UPDATE_CACHE(re, s);
# 341| tmp = SHOW_UBITS(re, s, n);
# 342| LAST_SKIP_BITS(re, s, n);
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/get_bits.h:340:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘fh.buffer’
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1728:12: enter_function: entry to ‘cbs_av1_write_frame_header_obu’
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1736:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1737:12: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1737:12: branch_false: following ‘false’ branch (when ‘redundant != 0’)...
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1746:13: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1748:13: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1750:13: call_function: calling ‘init_get_bits’ from ‘cbs_av1_write_frame_header_obu’
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1750:13: return_function: returning to ‘cbs_av1_write_frame_header_obu’ from ‘init_get_bits’
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1752:25: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1753:21: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1754:23: call_function: calling ‘get_bits’ from ‘cbs_av1_write_frame_header_obu’
# 338| OPEN_READER(re, s);
# 339| av_assert2(n>0 && n<=25);
# 340|-> UPDATE_CACHE(re, s);
# 341| tmp = SHOW_UBITS(re, s, n);
# 342| LAST_SKIP_BITS(re, s, n);
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/get_bits.h:340:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gb.buffer’
ffmpeg-7.1.2/libavformat/mov.c:3383:12: enter_function: entry to ‘mov_read_stsz’
ffmpeg-7.1.2/libavformat/mov.c:3392:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mov.c:3397:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:3397:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mov.c:3399:10: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:3405:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mov.c:3413:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:3421:8: branch_false: following ‘false’ branch (when ‘sample_size == 0’)...
ffmpeg-7.1.2/libavformat/mov.c:3424:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:3429:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mov.c:3431:20: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:3431:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mov.c:3433:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:3438:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mov.c:3441:18: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:3444:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mov.c:3449:11: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:3450:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mov.c:3457:29: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:3457:5: call_function: calling ‘init_get_bits’ from ‘mov_read_stsz’
ffmpeg-7.1.2/libavformat/mov.c:3457:5: return_function: returning to ‘mov_read_stsz’ from ‘init_get_bits’
ffmpeg-7.1.2/libavformat/mov.c:3459:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/mov.c:3460:31: branch_true: ...to here
ffmpeg-7.1.2/libavformat/mov.c:3460:31: call_function: calling ‘get_bits_long’ from ‘mov_read_stsz’
# 338| OPEN_READER(re, s);
# 339| av_assert2(n>0 && n<=25);
# 340|-> UPDATE_CACHE(re, s);
# 341| tmp = SHOW_UBITS(re, s, n);
# 342| LAST_SKIP_BITS(re, s, n);
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/get_bits.h:340:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s.buffer’
ffmpeg-7.1.2/libavcodec/pcx.c:73:12: enter_function: entry to ‘pcx_decode_frame’
ffmpeg-7.1.2/libavcodec/pcx.c:84:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/pcx.c:89:27: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/pcx.c:91:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/pcx.c:91:47: call_function: inlined call to ‘bytestream2_get_byteu’ from ‘pcx_decode_frame’
ffmpeg-7.1.2/libavcodec/pcx.c:91:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/pcx.c:96:38: call_function: inlined call to ‘bytestream2_get_byteu’ from ‘pcx_decode_frame’
ffmpeg-7.1.2/libavcodec/pcx.c:105:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/pcx.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/pcx.c:118:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/pcx.c:118:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/pcx.c:144:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/pcx.c:147:16: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/pcx.c:147:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/pcx.c:150:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/pcx.c:156:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/pcx.c:159:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/pcx.c:159:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/pcx.c:173:16: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/pcx.c:173:15: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/pcx.c:200:15: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/pcx.c:200:15: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/pcx.c:200:15: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/pcx.c:203:21: branch_true: following ‘true’ branch (when ‘y < h’)...
ffmpeg-7.1.2/libavcodec/pcx.c:204:13: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/pcx.c:204:13: call_function: calling ‘init_get_bits8’ from ‘pcx_decode_frame’
ffmpeg-7.1.2/libavcodec/pcx.c:204:13: return_function: returning to ‘pcx_decode_frame’ from ‘init_get_bits8’
ffmpeg-7.1.2/libavcodec/pcx.c:206:19: call_function: calling ‘pcx_rle_decode’ from ‘pcx_decode_frame’
ffmpeg-7.1.2/libavcodec/pcx.c:206:19: return_function: returning to ‘pcx_decode_frame’ from ‘pcx_rle_decode’
ffmpeg-7.1.2/libavcodec/pcx.c:207:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/pcx.c:207:16: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/pcx.c:210:25: branch_true: following ‘true’ branch (when ‘x < w’)...
ffmpeg-7.1.2/libavcodec/pcx.c:211:26: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/pcx.c:211:26: call_function: calling ‘get_bits’ from ‘pcx_decode_frame’
# 338| OPEN_READER(re, s);
# 339| av_assert2(n>0 && n<=25);
# 340|-> UPDATE_CACHE(re, s);
# 341| tmp = SHOW_UBITS(re, s, n);
# 342| LAST_SKIP_BITS(re, s, n);
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/get_bits.h:361:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gb.buffer’
ffmpeg-7.1.2/libavcodec/g726.c:466:12: enter_function: entry to ‘g726_decode_frame’
ffmpeg-7.1.2/libavcodec/g726.c:480:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/g726.c:482:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/g726.c:484:5: call_function: calling ‘init_get_bits’ from ‘g726_decode_frame’
ffmpeg-7.1.2/libavcodec/g726.c:484:5: return_function: returning to ‘g726_decode_frame’ from ‘init_get_bits’
ffmpeg-7.1.2/libavcodec/g726.c:486:12: branch_true: following ‘true’ branch (when ‘out_samples != 0’)...
ffmpeg-7.1.2/libavcodec/g726.c:487:37: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/g726.c:487:22: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/g726.c:488:37: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/g726.c:488:37: call_function: calling ‘get_bits_le’ from ‘g726_decode_frame’
# 359| OPEN_READER(re, s);
# 360| av_assert2(n>0 && n<=25);
# 361|-> UPDATE_CACHE_LE(re, s);
# 362| tmp = SHOW_UBITS_LE(re, s, n);
# 363| LAST_SKIP_BITS(re, s, n);
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/get_bits.h:376:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gb.buffer’
ffmpeg-7.1.2/libavcodec/vble.c:117:12: enter_function: entry to ‘vble_decode_frame’
ffmpeg-7.1.2/libavcodec/vble.c:128:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vble.c:134:15: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vble.c:139:5: call_function: calling ‘init_get_bits’ from ‘vble_decode_frame’
ffmpeg-7.1.2/libavcodec/vble.c:139:5: return_function: returning to ‘vble_decode_frame’ from ‘init_get_bits’
ffmpeg-7.1.2/libavcodec/vble.c:142:9: call_function: calling ‘vble_unpack’ from ‘vble_decode_frame’
# 374| OPEN_READER_NOSIZE(re, s);
# 375| av_assert2(n>0 && n<=25);
# 376|-> UPDATE_CACHE(re, s);
# 377| tmp = SHOW_UBITS(re, s, n);
# 378| return tmp;
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/get_bits.h:391:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.1.2/libavcodec/rv10.c:408:12: enter_function: entry to ‘rv10_decode_packet’
ffmpeg-7.1.2/libavcodec/rv10.c:416:5: call_function: calling ‘init_get_bits’ from ‘rv10_decode_packet’
ffmpeg-7.1.2/libavcodec/rv10.c:416:5: return_function: returning to ‘rv10_decode_packet’ from ‘init_get_bits’
ffmpeg-7.1.2/libavcodec/rv10.c:417:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/rv10.c:418:20: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/rv10.c:418:20: call_function: calling ‘rv10_decode_picture_header’ from ‘rv10_decode_packet’
# 389| {
# 390| unsigned int index = s->index;
# 391|-> uint8_t result = s->buffer[index >> 3];
# 392| #ifdef BITSTREAM_READER_LE
# 393| result >>= index & 7;
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/get_bits.h:391:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gb.buffer’
ffmpeg-7.1.2/libavformat/bit.c:144:12: enter_function: entry to ‘write_packet’
ffmpeg-7.1.2/libavformat/bit.c:150:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/bit.c:153:5: branch_false: ...to here
ffmpeg-7.1.2/libavformat/bit.c:156:5: call_function: calling ‘init_get_bits’ from ‘write_packet’
ffmpeg-7.1.2/libavformat/bit.c:156:5: return_function: returning to ‘write_packet’ from ‘init_get_bits’
ffmpeg-7.1.2/libavformat/bit.c:157:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/bit.c:158:23: branch_true: ...to here
ffmpeg-7.1.2/libavformat/bit.c:158:23: call_function: calling ‘get_bits1’ from ‘write_packet’
# 389| {
# 390| unsigned int index = s->index;
# 391|-> uint8_t result = s->buffer[index >> 3];
# 392| #ifdef BITSTREAM_READER_LE
# 393| result >>= index & 7;
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/get_bits.h:433:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gb.buffer’
ffmpeg-7.1.2/libavformat/mov.c:3383:12: enter_function: entry to ‘mov_read_stsz’
ffmpeg-7.1.2/libavformat/mov.c:3392:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mov.c:3397:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:3397:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mov.c:3399:10: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:3405:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mov.c:3413:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:3421:8: branch_false: following ‘false’ branch (when ‘sample_size == 0’)...
ffmpeg-7.1.2/libavformat/mov.c:3424:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:3429:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mov.c:3431:20: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:3431:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mov.c:3433:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:3438:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mov.c:3441:18: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:3444:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mov.c:3449:11: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:3450:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mov.c:3457:29: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:3457:5: call_function: calling ‘init_get_bits’ from ‘mov_read_stsz’
ffmpeg-7.1.2/libavformat/mov.c:3457:5: return_function: returning to ‘mov_read_stsz’ from ‘init_get_bits’
ffmpeg-7.1.2/libavformat/mov.c:3459:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/mov.c:3460:31: branch_true: ...to here
ffmpeg-7.1.2/libavformat/mov.c:3460:31: call_function: calling ‘get_bits_long’ from ‘mov_read_stsz’
# 431| unsigned tmp;
# 432| OPEN_READER(re, s);
# 433|-> UPDATE_CACHE_32(re, s);
# 434| tmp = SHOW_UBITS(re, s, n);
# 435| LAST_SKIP_BITS(re, s, n);
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/golomb.h:175:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.1.2/libavcodec/svq3.c:1008:12: enter_function: entry to ‘svq3_decode_slice_header’
ffmpeg-7.1.2/libavcodec/svq3.c:1017:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/svq3.c:1032:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/svq3.c:1035:13: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/svq3.c:1035:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/svq3.c:1039:30: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/svq3.c:1049:9: call_function: calling ‘init_get_bits’ from ‘svq3_decode_slice_header’
ffmpeg-7.1.2/libavcodec/svq3.c:1049:9: return_function: returning to ‘svq3_decode_slice_header’ from ‘init_get_bits’
ffmpeg-7.1.2/libavcodec/svq3.c:1054:21: call_function: calling ‘get_interleaved_ue_golomb’ from ‘svq3_decode_slice_header’
# 173| #else
# 174| OPEN_READER(re, gb);
# 175|-> UPDATE_CACHE(re, gb);
# 176| buf = GET_CACHE(re, gb);
# 177|
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/golomb.h:175:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gc.buffer’
ffmpeg-7.1.2/libavformat/rtpenc_vc2hq.c:106:6: enter_function: entry to ‘ff_rtp_send_vc2hq’
ffmpeg-7.1.2/libavformat/rtpenc_vc2hq.c:113:12: branch_true: following ‘true’ branch (when ‘unit < end’)...
ffmpeg-7.1.2/libavformat/rtpenc_vc2hq.c:114:9: branch_true: ...to here
ffmpeg-7.1.2/libavformat/rtpenc_vc2hq.c:117:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/rtpenc_vc2hq.c:120:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/rtpenc_vc2hq.c:130:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/rtpenc_vc2hq.c:131:71: branch_true: ...to here
ffmpeg-7.1.2/libavformat/rtpenc_vc2hq.c:131:17: call_function: calling ‘send_picture’ from ‘ff_rtp_send_vc2hq’
# 173| #else
# 174| OPEN_READER(re, gb);
# 175|-> UPDATE_CACHE(re, gb);
# 176| buf = GET_CACHE(re, gb);
# 177|
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/h264_parse.c:89:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘chroma_def’
ffmpeg-7.1.2/libavcodec/h264_parse.c:30:5: enter_function: entry to ‘ff_h264_pred_weight_table’
ffmpeg-7.1.2/libavcodec/h264_parse.c:48:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/h264_parse.c:57:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/h264_parse.c:57:20: branch_true: following ‘true’ branch (when ‘list != 2’)...
ffmpeg-7.1.2/libavcodec/h264_parse.c:58:9: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/h264_parse.c:60:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/h264_parse.c:63:32: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/h264_parse.c:64:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/h264_parse.c:65:48: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/h264_parse.c:67:20: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/h264_parse.c:68:21: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/h264_parse.c:67:21: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/h264_parse.c:70:20: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/h264_parse.c:80:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/h264_parse.c:81:38: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/h264_parse.c:82:20: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/h264_parse.c:82:20: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/h264_parse.c:84:33: branch_true: following ‘true’ branch (when ‘j != 2’)...
ffmpeg-7.1.2/libavcodec/h264_parse.c:85:61: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/h264_parse.c:85:61: call_function: calling ‘get_se_golomb’ from ‘ff_h264_pred_weight_table’
ffmpeg-7.1.2/libavcodec/h264_parse.c:85:61: return_function: returning to ‘ff_h264_pred_weight_table’ from ‘get_se_golomb’
ffmpeg-7.1.2/libavcodec/h264_parse.c:86:61: call_function: calling ‘get_se_golomb’ from ‘ff_h264_pred_weight_table’
ffmpeg-7.1.2/libavcodec/h264_parse.c:86:61: return_function: returning to ‘ff_h264_pred_weight_table’ from ‘get_se_golomb’
ffmpeg-7.1.2/libavcodec/h264_parse.c:87:28: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/h264_parse.c:89:29: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/h264_parse.c:89:29: danger: use of uninitialized value ‘chroma_def’ here
# 87| if ((int8_t)pwt->chroma_weight[i][list][j][0] != pwt->chroma_weight[i][list][j][0] ||
# 88| (int8_t)pwt->chroma_weight[i][list][j][1] != pwt->chroma_weight[i][list][j][1]) {
# 89|-> pwt->chroma_weight[i][list][j][0] = chroma_def;
# 90| pwt->chroma_weight[i][list][j][1] = 0;
# 91| goto out_range_weight;
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/h264_parse.c:93:28: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘chroma_def’
ffmpeg-7.1.2/libavcodec/h264_parse.c:30:5: enter_function: entry to ‘ff_h264_pred_weight_table’
ffmpeg-7.1.2/libavcodec/h264_parse.c:48:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/h264_parse.c:57:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/h264_parse.c:57:20: branch_true: following ‘true’ branch (when ‘list != 2’)...
ffmpeg-7.1.2/libavcodec/h264_parse.c:58:9: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/h264_parse.c:60:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/h264_parse.c:63:32: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/h264_parse.c:64:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/h264_parse.c:65:48: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/h264_parse.c:67:20: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/h264_parse.c:68:21: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/h264_parse.c:67:21: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/h264_parse.c:70:20: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/h264_parse.c:80:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/h264_parse.c:81:38: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/h264_parse.c:82:20: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/h264_parse.c:82:20: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/h264_parse.c:84:33: branch_true: following ‘true’ branch (when ‘j != 2’)...
ffmpeg-7.1.2/libavcodec/h264_parse.c:85:61: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/h264_parse.c:85:61: call_function: calling ‘get_se_golomb’ from ‘ff_h264_pred_weight_table’
ffmpeg-7.1.2/libavcodec/h264_parse.c:85:61: return_function: returning to ‘ff_h264_pred_weight_table’ from ‘get_se_golomb’
ffmpeg-7.1.2/libavcodec/h264_parse.c:86:61: call_function: calling ‘get_se_golomb’ from ‘ff_h264_pred_weight_table’
ffmpeg-7.1.2/libavcodec/h264_parse.c:86:61: return_function: returning to ‘ff_h264_pred_weight_table’ from ‘get_se_golomb’
ffmpeg-7.1.2/libavcodec/h264_parse.c:87:28: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/h264_parse.c:88:29: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/h264_parse.c:87:29: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/h264_parse.c:93:28: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/h264_parse.c:93:28: danger: use of uninitialized value ‘chroma_def’ here
# 91| goto out_range_weight;
# 92| }
# 93|-> if (pwt->chroma_weight[i][list][j][0] != chroma_def ||
# 94| pwt->chroma_weight[i][list][j][1] != 0) {
# 95| pwt->use_weight_chroma = 1;
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/libavcodec/htmlsubtitles.c: scope_hint: In function ‘handle_open_brace’
ffmpeg-7.1.2/libavcodec/htmlsubtitles.c:78:28: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 78 | char *bracep = strchr(in+2, '}');
# | ^~~~~~
# 76| if ( (*an != 1 && in[1] == '\\')
# 77| || (in[1] && strchr("CcFfoPSsYy", in[1]) && in[2] == ':')) {
# 78|-> char *bracep = strchr(in+2, '}');
# 79| if (bracep) {
# 80| *inp = bracep;
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/libavcodec/htmlsubtitles.c:78:28: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 76| if ( (*an != 1 && in[1] == '\\')
# 77| || (in[1] && strchr("CcFfoPSsYy", in[1]) && in[2] == ':')) {
# 78|-> char *bracep = strchr(in+2, '}');
# 79| if (bracep) {
# 80| *inp = bracep;
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/libavcodec/htmlsubtitles.c: scope_hint: In function ‘ff_htmlmarkup_to_ass’
ffmpeg-7.1.2/libavcodec/htmlsubtitles.c:212:28: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 212 | if ((param = strchr(tagname, ' ')))
# | ^
# 210| tagname++;
# 211| }
# 212|-> if ((param = strchr(tagname, ' ')))
# 213| *param++ = 0;
# 214|
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/libavcodec/htmlsubtitles.c:212:28: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 210| tagname++;
# 211| }
# 212|-> if ((param = strchr(tagname, ' ')))
# 213| *param++ = 0;
# 214|
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/hw_base_encode.c:53:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘target’
ffmpeg-7.1.2/libavcodec/hw_base_encode.c:557:5: enter_function: entry to ‘ff_hw_base_encode_receive_packet’
ffmpeg-7.1.2/libavcodec/hw_base_encode.c:560:28: release_memory: ‘pic’ is NULL
ffmpeg-7.1.2/libavcodec/hw_base_encode.c:564:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/hw_base_encode.c:581:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/hw_base_encode.c:586:11: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/hw_base_encode.c:586:11: call_function: calling ‘hw_base_encode_send_frame’ from ‘ff_hw_base_encode_receive_packet’
ffmpeg-7.1.2/libavcodec/hw_base_encode.c:586:11: return_function: returning to ‘ff_hw_base_encode_receive_packet’ from ‘hw_base_encode_send_frame’
ffmpeg-7.1.2/libavcodec/hw_base_encode.c:587:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/hw_base_encode.c:590:10: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/hw_base_encode.c:590:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/hw_base_encode.c:597:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/hw_base_encode.c:597:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/hw_base_encode.c:598:31: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/hw_base_encode.c:598:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/hw_base_encode.c:599:19: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/hw_base_encode.c:599:19: call_function: calling ‘hw_base_encode_pick_next’ from ‘ff_hw_base_encode_receive_packet’
# 51| av_assert0(pic->nb_refs[0] < MAX_PICTURE_REFERENCES &&
# 52| pic->nb_refs[1] < MAX_PICTURE_REFERENCES);
# 53|-> if (target->display_order < pic->display_order)
# 54| pic->refs[0][pic->nb_refs[0]++] = target;
# 55| else
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavcodec/j2kenc.c: scope_hint: In function ‘makelayers’
ffmpeg-7.1.2/libavcodec/j2kenc.c:1271:53: warning[-Wunused-but-set-variable=]: variable ‘lev’ set but not used
# 1271 | int precno, compno, reslevelno, bandno, cblkno, lev, passno, layno;
# | ^~~
# 1269| static void makelayers(Jpeg2000EncoderContext *s, Jpeg2000Tile *tile)
# 1270| {
# 1271|-> int precno, compno, reslevelno, bandno, cblkno, lev, passno, layno;
# 1272| int i;
# 1273| double min = DBL_MAX;
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavcodec/jpeg2000dec.c: scope_hint: In function ‘get_siz’
ffmpeg-7.1.2/libavcodec/jpeg2000dec.c:285:5: warning[-Wdeclaration-after-statement]: ISO C90 forbids mixed declarations and code
# 285 | int cdef_used = 0;
# | ^~~
# 283| // after here we no longer have to consider negative cdef
# 284|
# 285|-> int cdef_used = 0;
# 286| for (i = 0; i < s->ncomponents; i++)
# 287| cdef_used |= 1<<s->cdef[i];
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavcodec/jpeg2000dec.c:305:9: warning[-Wdeclaration-after-statement]: ISO C90 forbids mixed declarations and code
# 305 | int i_remapped = s->cdef[i] ? s->cdef[i]-1 : (s->ncomponents-1);
# | ^~~
# 303| return AVERROR_INVALIDDATA;
# 304| }
# 305|-> int i_remapped = s->cdef[i] ? s->cdef[i]-1 : (s->ncomponents-1);
# 306|
# 307| log2_chroma_wh |= s->cdy[i] >> 1 << i_remapped * 4 | s->cdx[i] >> 1 << i_remapped * 4 + 2;
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/jpeg2000dec.c:973:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘v’
ffmpeg-7.1.2/libavcodec/jpeg2000dec.c:2821:12: enter_function: entry to ‘jpeg2000_decode_frame’
ffmpeg-7.1.2/libavcodec/jpeg2000dec.c:2828:5: call_function: inlined call to ‘bytestream2_init’ from ‘jpeg2000_decode_frame’
ffmpeg-7.1.2/libavcodec/jpeg2000dec.c:2832:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeg2000dec.c:2838:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeg2000dec.c:2855:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeg2000dec.c:2860:15: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeg2000dec.c:2860:15: call_function: calling ‘jpeg2000_read_main_headers’ from ‘jpeg2000_decode_frame’
# 971| v = bytestream2_get_byte(&s->g);
# 972| }
# 973|-> if (v & 0x80)
# 974| return AVERROR_INVALIDDATA;
# 975|
Error: GCC_ANALYZER_WARNING (CWE-131):
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:247:39: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:355:5: enter_function: entry to ‘ff_jpegls_decode_picture’
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:364:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:370:23: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:371:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:374:12: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:390:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:391:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:390:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:392:21: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:390:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:390:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:390:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:394:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:390:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:399:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:406:8: branch_false: following ‘false’ branch (when ‘shift <= 15’)...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:411:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:421:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:425:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:425:8: branch_true: following ‘true’ branch (when ‘ilv == 0’)...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:426:13: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:426:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:430:18: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:434:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:436:17: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:436:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:440:23: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:440:23: call_function: calling ‘ls_decode_line’ from ‘ff_jpegls_decode_picture’
# 245|
# 246| /* compute gradients */
# 247|-> Ra = x ? R(dst, x - stride) : R(last, x);
# 248| Rb = R(last, x);
# 249| Rc = x ? R(last, x - stride) : last2;
Error: GCC_ANALYZER_WARNING (CWE-131):
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:248:14: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:355:5: enter_function: entry to ‘ff_jpegls_decode_picture’
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:364:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:370:23: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:371:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:374:12: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:390:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:391:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:390:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:392:21: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:390:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:390:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:390:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:394:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:390:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:399:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:406:8: branch_false: following ‘false’ branch (when ‘shift <= 15’)...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:411:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:421:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:425:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:425:8: branch_true: following ‘true’ branch (when ‘ilv == 0’)...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:426:13: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:426:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:430:18: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:434:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:436:17: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:436:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:440:23: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:440:23: call_function: calling ‘ls_decode_line’ from ‘ff_jpegls_decode_picture’
# 246| /* compute gradients */
# 247| Ra = x ? R(dst, x - stride) : R(last, x);
# 248|-> Rb = R(last, x);
# 249| Rc = x ? R(last, x - stride) : last2;
# 250| Rd = (x >= w - stride) ? R(last, x) : R(last, x + stride);
Error: GCC_ANALYZER_WARNING (CWE-131):
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:250:34: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:355:5: enter_function: entry to ‘ff_jpegls_decode_picture’
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:364:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:370:23: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:371:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:374:12: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:390:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:391:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:390:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:392:21: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:390:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:390:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:390:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:394:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:390:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:399:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:406:8: branch_false: following ‘false’ branch (when ‘shift <= 15’)...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:411:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:421:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:425:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:425:8: branch_true: following ‘true’ branch (when ‘ilv == 0’)...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:426:13: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:426:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:430:18: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:434:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:436:17: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:436:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:440:23: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/jpeglsdec.c:440:23: call_function: calling ‘ls_decode_line’ from ‘ff_jpegls_decode_picture’
# 248| Rb = R(last, x);
# 249| Rc = x ? R(last, x - stride) : last2;
# 250|-> Rd = (x >= w - stride) ? R(last, x) : R(last, x + stride);
# 251| D0 = Rd - Rb;
# 252| D1 = Rb - Rc;
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavcodec/jrevdct.c:215:28: warning[-Warray-parameter=]: argument 1 of type ‘int16_t[64]’ {aka ‘short int[64]’} with mismatched bound
# 215 | void ff_j_rev_dct(DCTBLOCK data)
# | ~~~~~~~~~^~~~
ffmpeg-7.1.2/libavcodec/jrevdct.c:70: included_from: Included from here.
ffmpeg-7.1.2/libavcodec/dct.h:30:28: note: previously declared as ‘int16_t *’ {aka ‘short int *’}
# 30 | void ff_j_rev_dct(int16_t *data);
# | ~~~~~~~~~^~~~
# 213| */
# 214|
# 215|-> void ff_j_rev_dct(DCTBLOCK data)
# 216| {
# 217| int32_t tmp0, tmp1, tmp2, tmp3;
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavcodec/jrevdct.c:953:29: warning[-Warray-parameter=]: argument 1 of type ‘int16_t[64]’ {aka ‘short int[64]’} with mismatched bound
# 953 | void ff_j_rev_dct4(DCTBLOCK data)
# | ~~~~~~~~~^~~~
ffmpeg-7.1.2/libavcodec/dct.h:31:29: note: previously declared as ‘int16_t *’ {aka ‘short int *’}
# 31 | void ff_j_rev_dct4(int16_t *data);
# | ~~~~~~~~~^~~~
# 951| #define DCTSTRIDE 8
# 952|
# 953|-> void ff_j_rev_dct4(DCTBLOCK data)
# 954| {
# 955| int32_t tmp0, tmp1, tmp2, tmp3;
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavcodec/jrevdct.c:1140:29: warning[-Warray-parameter=]: argument 1 of type ‘int16_t[64]’ {aka ‘short int[64]’} with mismatched bound
# 1140 | void ff_j_rev_dct2(DCTBLOCK data){
# | ~~~~~~~~~^~~~
ffmpeg-7.1.2/libavcodec/dct.h:32:29: note: previously declared as ‘int16_t *’ {aka ‘short int *’}
# 32 | void ff_j_rev_dct2(int16_t *data);
# | ~~~~~~~~~^~~~
# 1138| }
# 1139|
# 1140|-> void ff_j_rev_dct2(DCTBLOCK data){
# 1141| int d00, d01, d10, d11;
# 1142|
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavcodec/jrevdct.c:1155:29: warning[-Warray-parameter=]: argument 1 of type ‘int16_t[64]’ {aka ‘short int[64]’} with mismatched bound
# 1155 | void ff_j_rev_dct1(DCTBLOCK data){
# | ~~~~~~~~~^~~~
ffmpeg-7.1.2/libavcodec/dct.h:33:29: note: previously declared as ‘int16_t *’ {aka ‘short int *’}
# 33 | void ff_j_rev_dct1(int16_t *data);
# | ~~~~~~~~~^~~~
# 1153| }
# 1154|
# 1155|-> void ff_j_rev_dct1(DCTBLOCK data){
# 1156| data[0] = (data[0] + 4)>>3;
# 1157| }
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/kbdwin.c:45:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘int_window’
ffmpeg-7.1.2/libavcodec/kbdwin.c:54:14: enter_function: entry to ‘ff_kbd_window_init’
ffmpeg-7.1.2/libavcodec/kbdwin.c:56:5: call_function: calling ‘kbd_window_init’ from ‘ff_kbd_window_init’
# 43| sum += temp[i];
# 44| if (float_window) float_window[i] = sqrt(sum * scale);
# 45|-> else int_window[i] = lrint(2147483647 * sqrt(sum * scale));
# 46| }
# 47| for (; i < n; i++) {
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/libaomenc.c:346:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*ptr’
ffmpeg-7.1.2/libavcodec/libaomenc.c:385:20: enter_function: entry to ‘aom_free’
ffmpeg-7.1.2/libavcodec/libaomenc.c:392:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/libaomenc.c:397:14: call_function: calling ‘codecctl_intp’ from ‘aom_free’
# 344|
# 345| snprintf(buf, sizeof(buf), "%s:", ctlidstr[id]);
# 346|-> av_log(avctx, AV_LOG_DEBUG, " %*s%d\n", width, buf, *ptr);
# 347|
# 348| res = aom_codec_control(&ctx->encoder, id, ptr);
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/libavcodec/libopenjpegenc.c: scope_hint: In function ‘mj2_create_image’
ffmpeg-7.1.2/libavcodec/libopenjpegenc.c:256:9: warning[-Wdeprecated-declarations]: ‘bpp’ is deprecated: Use prec instead
# 256 | cmptparm[i].bpp = desc->comp[i].depth;
# | ^~~~~~~~
ffmpeg-7.1.2/libavcodec/libopenjpegenc.c:34: included_from: Included from here.
/usr/include/openjpeg-2.5/openjpeg.h:754:45: note: declared here
# 754 | OPJ_DEPRECATED_STRUCT_MEMBER(OPJ_UINT32 bpp, "Use prec instead");
# | ^~~
/usr/include/openjpeg-2.5/openjpeg.h:80:83: note: in definition of macro ‘OPJ_DEPRECATED_STRUCT_MEMBER’
# 80 | #define OPJ_DEPRECATED_STRUCT_MEMBER(memb, msg) __attribute__ ((deprecated(msg))) memb
# | ^~~~
# 254| for (i = 0; i < numcomps; i++) {
# 255| cmptparm[i].prec = desc->comp[i].depth;
# 256|-> cmptparm[i].bpp = desc->comp[i].depth;
# 257| cmptparm[i].sgnd = 0;
# 258| cmptparm[i].dx = sub_dx[i];
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/libavcodec/libopenjpegenc.c:256:9: warning[-Wdeprecated-declarations]: ‘bpp’ is deprecated: Use prec instead
# 254| for (i = 0; i < numcomps; i++) {
# 255| cmptparm[i].prec = desc->comp[i].depth;
# 256|-> cmptparm[i].bpp = desc->comp[i].depth;
# 257| cmptparm[i].sgnd = 0;
# 258| cmptparm[i].dx = sub_dx[i];
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/libvpxdec.c:290:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘img_alpha’
ffmpeg-7.1.2/libavcodec/libvpxdec.c:229:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/libvpxdec.c:232:17: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/libvpxdec.c:263:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/libvpxdec.c:264:11: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/libvpxdec.c:263:9: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/libvpxdec.c:269:13: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/libvpxdec.c:269:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/libvpxdec.c:275:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/libvpxdec.c:281:13: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/libvpxdec.c:281:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/libvpxdec.c:289:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/libvpxdec.c:290:14: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/libvpxdec.c:290:26: danger: use of uninitialized value ‘img_alpha’ here
# 288|
# 289| if (ctx->has_alpha_channel &&
# 290|-> (img->d_w != img_alpha->d_w ||
# 291| img->d_h != img_alpha->d_h ||
# 292| img->bit_depth != img_alpha->bit_depth)) {
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/libvpxdec.c:319:49: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘img_alpha’
ffmpeg-7.1.2/libavcodec/libvpxdec.c:229:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/libvpxdec.c:232:17: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/libvpxdec.c:263:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/libvpxdec.c:264:11: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/libvpxdec.c:263:9: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/libvpxdec.c:269:13: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/libvpxdec.c:269:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/libvpxdec.c:275:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/libvpxdec.c:281:13: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/libvpxdec.c:289:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/libvpxdec.c:300:21: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/libvpxdec.c:304:13: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/libvpxdec.c:303:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/libvpxdec.c:309:13: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/libvpxdec.c:308:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/libvpxdec.c:311:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/libvpxdec.c:313:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/libvpxdec.c:315:45: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/libvpxdec.c:316:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/libvpxdec.c:318:17: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/libvpxdec.c:318:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/libvpxdec.c:319:49: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/libvpxdec.c:319:49: danger: use of uninitialized value ‘img_alpha’ here
# 317| return AVERROR(ENOMEM);
# 318| if (ctx->has_alpha_channel) {
# 319|-> picture->buf[1] = av_buffer_ref(img_alpha->fb_priv);
# 320| if (!picture->buf[1])
# 321| return AVERROR(ENOMEM);
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/libxeve.c:507:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘av_pic_type’
ffmpeg-7.1.2/libavcodec/libxeve.c:462:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/libxeve.c:464:15: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/libxeve.c:465:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/libxeve.c:471:12: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/libxeve.c:471:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/libxeve.c:474:19: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/libxeve.c:474:19: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/libxeve.c:477:17: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/libxeve.c:477:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/libxeve.c:479:23: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/libxeve.c:480:20: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/libxeve.c:483:55: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/libxeve.c:507:17: danger: use of uninitialized value ‘av_pic_type’ here
# 505| }
# 506|
# 507|-> ff_side_data_set_encoder_stats(avpkt, xectx->stat.qp * FF_QP2LAMBDA, NULL, 0, av_pic_type);
# 508|
# 509| *got_packet = 1;
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/libavcodec/microdvddec.c: scope_hint: In function ‘indexof’
ffmpeg-7.1.2/libavcodec/microdvddec.c:38:15: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 38 | char *f = strchr(s, c);
# | ^~~~~~
# 36| static int indexof(const char *s, int c)
# 37| {
# 38|-> char *f = strchr(s, c);
# 39| return f ? (f - s) : -1;
# 40| }
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/libavcodec/microdvddec.c:38:15: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 36| static int indexof(const char *s, int c)
# 37| {
# 38|-> char *f = strchr(s, c);
# 39| return f ? (f - s) : -1;
# 40| }
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavcodec/mpc8.c: scope_hint: In function ‘mpc8_decode_init’
ffmpeg-7.1.2/libavcodec/mpc8.c:158:5: warning[-Wdeclaration-after-statement]: ISO C90 forbids mixed declarations and code
# 158 | uint8_t sample_rate_idx = get_bits(&gb, 3);
# | ^~~~~~~
# 156| init_get_bits(&gb, avctx->extradata, 16);
# 157|
# 158|-> uint8_t sample_rate_idx = get_bits(&gb, 3);
# 159| static const int sample_rates[] = { 44100, 48000, 37800, 32000 };
# 160| if (sample_rate_idx >= FF_ARRAY_ELEMS(sample_rates)) {
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/mpegaudioenc_template.c:516:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘smr1’
ffmpeg-7.1.2/libavcodec/mpegaudioenc_template.c:737:12: enter_function: entry to ‘MPA_encode_frame’
ffmpeg-7.1.2/libavcodec/mpegaudioenc_template.c:746:13: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/mpegaudioenc_template.c:746:13: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/mpegaudioenc_template.c:750:13: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/mpegaudioenc_template.c:750:13: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/mpegaudioenc_template.c:754:13: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/mpegaudioenc_template.c:757:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/mpegaudioenc_template.c:757:5: call_function: calling ‘compute_bit_allocation’ from ‘MPA_encode_frame’
# 514| const unsigned char *alloc;
# 515|
# 516|-> memcpy(smr, smr1, s->nb_channels * sizeof(short) * SBLIMIT);
# 517| memset(subband_status, SB_NOTALLOCATED, s->nb_channels * SBLIMIT);
# 518| memset(bit_alloc, 0, s->nb_channels * SBLIMIT);
Error: GCC_ANALYZER_WARNING (CWE-835):
ffmpeg-7.1.2/libavcodec/opus/celt.c:87:20: warning[-Wanalyzer-infinite-loop]: infinite loop
ffmpeg-7.1.2/libavcodec/opus/celt.c:87:20: danger: infinite loop here
ffmpeg-7.1.2/libavcodec/opus/celt.c:87:20: branch_true: if it ever follows ‘true’ branch, it will always do so...
ffmpeg-7.1.2/libavcodec/opus/celt.c:87:20: branch_true: ...to here
# 85| ff_celt_freq_bands[lowband_offset] - ff_celt_freq_range[i]);
# 86| foldstart = lowband_offset;
# 87|-> while (ff_celt_freq_bands[--foldstart] > effective_lowband);
# 88| foldend = lowband_offset - 1;
# 89| while (++foldend < i && ff_celt_freq_bands[foldend] < effective_lowband + ff_celt_freq_range[i]);
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/opus/enc.c:148:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cur’
ffmpeg-7.1.2/libavcodec/opus/enc.c:123:13: enter_function: entry to ‘celt_frame_setup_input’
ffmpeg-7.1.2/libavcodec/opus/enc.c:125:14: release_memory: ‘cur’ is NULL
ffmpeg-7.1.2/libavcodec/opus/enc.c:129:11: call_function: calling ‘ff_bufqueue_get’ from ‘celt_frame_setup_input’
ffmpeg-7.1.2/libavcodec/opus/enc.c:129:11: return_function: returning to ‘celt_frame_setup_input’ from ‘ff_bufqueue_get’
ffmpeg-7.1.2/libavcodec/opus/enc.c:140:22: branch_true: following ‘true’ branch (when ‘sf < subframes’)...
ffmpeg-7.1.2/libavcodec/opus/enc.c:141:19: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/opus/enc.c:144:19: call_function: inlined call to ‘ff_bufqueue_peek’ from ‘celt_frame_setup_input’
ffmpeg-7.1.2/libavcodec/opus/enc.c:144:13: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/opus/enc.c:146:26: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/opus/enc.c:148:36: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/opus/enc.c:148:36: release_memory: ‘cur’ is NULL
ffmpeg-7.1.2/libavcodec/opus/enc.c:148:33: danger: dereference of NULL ‘cur’
# 146| for (int ch = 0; ch < f->channels; ch++) {
# 147| CeltBlock *b = &f->block[ch];
# 148|-> const void *input = cur->extended_data[ch];
# 149| const size_t bps = av_get_bytes_per_sample(cur->format);
# 150| const size_t left = (subframesize - cur->nb_samples)*bps;
Error: GCC_ANALYZER_WARNING:
ffmpeg-7.1.2/libavcodec/opus/enc.c:696:16: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
ffmpeg-7.1.2/libavcodec/opus/enc.c:633:20: enter_function: entry to ‘opus_encode_init’
ffmpeg-7.1.2/libavcodec/opus/enc.c:663:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/opus/enc.c:665:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/opus/enc.c:669:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/opus/enc.c:672:43: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/opus/enc.c:672:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/opus/enc.c:672:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/opus/enc.c:676:21: branch_true: following ‘true’ branch (when ‘i != 4’)...
ffmpeg-7.1.2/libavcodec/opus/enc.c:677:35: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/opus/enc.c:678:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/opus/enc.c:713:1: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/opus/enc.c:678:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/opus/enc.c:713:1: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/opus/enc.c:688:10: call_function: inlined call to ‘ff_bufqueue_peek’ from ‘opus_encode_init’
ffmpeg-7.1.2/libavcodec/opus/enc.c:688:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/opus/enc.c:691:16: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/opus/enc.c:691:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/opus/enc.c:695:24: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/opus/enc.c:696:16: danger: at least one operand of the size argument is of a floating-point type
# 694| /* Frame structs and range coder buffers */
# 695| max_frames = ceilf(FFMIN(s->options.max_delay_ms, 120.0f)/2.5f);
# 696|-> s->frame = av_malloc(max_frames*sizeof(CeltFrame));
# 697| if (!s->frame)
# 698| return AVERROR(ENOMEM);
Error: GCC_ANALYZER_WARNING:
ffmpeg-7.1.2/libavcodec/opus/enc.c:699:13: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
ffmpeg-7.1.2/libavcodec/opus/enc.c:633:20: enter_function: entry to ‘opus_encode_init’
ffmpeg-7.1.2/libavcodec/opus/enc.c:663:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/opus/enc.c:665:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/opus/enc.c:669:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/opus/enc.c:672:43: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/opus/enc.c:672:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/opus/enc.c:672:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/opus/enc.c:676:21: branch_true: following ‘true’ branch (when ‘i != 4’)...
ffmpeg-7.1.2/libavcodec/opus/enc.c:677:35: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/opus/enc.c:678:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/opus/enc.c:713:1: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/opus/enc.c:678:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/opus/enc.c:713:1: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/opus/enc.c:688:10: call_function: inlined call to ‘ff_bufqueue_peek’ from ‘opus_encode_init’
ffmpeg-7.1.2/libavcodec/opus/enc.c:688:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/opus/enc.c:691:16: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/opus/enc.c:691:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/opus/enc.c:695:24: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/opus/enc.c:697:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/opus/enc.c:699:23: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/opus/enc.c:699:13: danger: at least one operand of the size argument is of a floating-point type
# 697| if (!s->frame)
# 698| return AVERROR(ENOMEM);
# 699|-> s->rc = av_malloc(max_frames*sizeof(OpusRangeCoder));
# 700| if (!s->rc)
# 701| return AVERROR(ENOMEM);
Error: GCC_ANALYZER_WARNING:
ffmpeg-7.1.2/libavcodec/opus/enc_psy.c:530:28: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
# 528| s->inflection_points_count = 0;
# 529|
# 530|-> s->inflection_points = av_mallocz(sizeof(*s->inflection_points)*s->max_steps);
# 531| if (!s->inflection_points) {
# 532| ret = AVERROR(ENOMEM);
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:165:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dst16’
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:228:12: enter_function: entry to ‘pcm_dvd_decode_frame’
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:238:8: branch_false: following ‘false’ branch (when ‘buf_size > 2’)...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:243:19: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:243:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:245:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:257:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:259:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:262:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:263:31: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:264:12: branch_true: following ‘true’ branch (when ‘buf_size >= missing_samples’)...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:265:13: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:267:19: call_function: calling ‘pcm_dvd_decode_samples’ from ‘pcm_dvd_decode_frame’
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:267:19: return_function: returning to ‘pcm_dvd_decode_frame’ from ‘pcm_dvd_decode_samples’
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:281:8: branch_true: following ‘true’ branch (when ‘blocks != 0’)...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:282:9: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:282:9: call_function: calling ‘pcm_dvd_decode_samples’ from ‘pcm_dvd_decode_frame’
# 163| int samples = blocks * avctx->ch_layout.nb_channels;
# 164| do {
# 165|-> *dst16++ = bytestream2_get_be16u(&gb);
# 166| } while (--samples);
# 167| #endif
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:174:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dst32’
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:228:12: enter_function: entry to ‘pcm_dvd_decode_frame’
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:238:8: branch_false: following ‘false’ branch (when ‘buf_size > 2’)...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:243:19: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:243:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:245:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:257:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:259:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:262:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:263:31: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:264:12: branch_true: following ‘true’ branch (when ‘buf_size >= missing_samples’)...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:265:13: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:267:19: call_function: calling ‘pcm_dvd_decode_samples’ from ‘pcm_dvd_decode_frame’
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:267:19: return_function: returning to ‘pcm_dvd_decode_frame’ from ‘pcm_dvd_decode_samples’
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:281:8: branch_true: following ‘true’ branch (when ‘blocks != 0’)...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:282:9: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:282:9: call_function: calling ‘pcm_dvd_decode_samples’ from ‘pcm_dvd_decode_frame’
# 172| do {
# 173| for (i = 2; i; i--) {
# 174|-> dst32[0] = bytestream2_get_be16u(&gb) << 16;
# 175| dst32[1] = bytestream2_get_be16u(&gb) << 16;
# 176| t = bytestream2_get_byteu(&gb);
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:184:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dst32’
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:228:12: enter_function: entry to ‘pcm_dvd_decode_frame’
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:238:8: branch_false: following ‘false’ branch (when ‘buf_size > 2’)...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:243:19: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:243:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:245:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:257:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:259:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:262:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:263:31: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:264:12: branch_true: following ‘true’ branch (when ‘buf_size >= missing_samples’)...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:265:13: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:267:19: call_function: calling ‘pcm_dvd_decode_samples’ from ‘pcm_dvd_decode_frame’
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:267:19: return_function: returning to ‘pcm_dvd_decode_frame’ from ‘pcm_dvd_decode_samples’
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:281:8: branch_true: following ‘true’ branch (when ‘blocks != 0’)...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:282:9: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:282:9: call_function: calling ‘pcm_dvd_decode_samples’ from ‘pcm_dvd_decode_frame’
# 182| do {
# 183| for (i = s->groups_per_block; i; i--) {
# 184|-> dst32[0] = bytestream2_get_be16u(&gb) << 16;
# 185| dst32[1] = bytestream2_get_be16u(&gb) << 16;
# 186| dst32[2] = bytestream2_get_be16u(&gb) << 16;
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:202:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dst32’
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:228:12: enter_function: entry to ‘pcm_dvd_decode_frame’
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:238:8: branch_false: following ‘false’ branch (when ‘buf_size > 2’)...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:243:19: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:243:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:245:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:257:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:259:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:262:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:263:31: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:264:12: branch_true: following ‘true’ branch (when ‘buf_size >= missing_samples’)...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:265:13: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:267:19: call_function: calling ‘pcm_dvd_decode_samples’ from ‘pcm_dvd_decode_frame’
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:267:19: return_function: returning to ‘pcm_dvd_decode_frame’ from ‘pcm_dvd_decode_samples’
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:281:8: branch_true: following ‘true’ branch (when ‘blocks != 0’)...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:282:9: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:282:9: call_function: calling ‘pcm_dvd_decode_samples’ from ‘pcm_dvd_decode_frame’
# 200| do {
# 201| for (i = 2; i; i--) {
# 202|-> dst32[0] = bytestream2_get_be16u(&gb) << 16;
# 203| dst32[1] = bytestream2_get_be16u(&gb) << 16;
# 204| *dst32++ += bytestream2_get_byteu(&gb) << 8;
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:211:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dst32’
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:228:12: enter_function: entry to ‘pcm_dvd_decode_frame’
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:238:8: branch_false: following ‘false’ branch (when ‘buf_size > 2’)...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:243:19: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:243:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:245:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:257:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:259:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:262:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:263:31: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:264:12: branch_true: following ‘true’ branch (when ‘buf_size >= missing_samples’)...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:265:13: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:267:19: call_function: calling ‘pcm_dvd_decode_samples’ from ‘pcm_dvd_decode_frame’
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:267:19: return_function: returning to ‘pcm_dvd_decode_frame’ from ‘pcm_dvd_decode_samples’
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:281:8: branch_true: following ‘true’ branch (when ‘blocks != 0’)...
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:282:9: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/pcm-dvd.c:282:9: call_function: calling ‘pcm_dvd_decode_samples’ from ‘pcm_dvd_decode_frame’
# 209| do {
# 210| for (i = s->groups_per_block; i; i--) {
# 211|-> dst32[0] = bytestream2_get_be16u(&gb) << 16;
# 212| dst32[1] = bytestream2_get_be16u(&gb) << 16;
# 213| dst32[2] = bytestream2_get_be16u(&gb) << 16;
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/libavcodec/pcm.c: scope_hint: In function ‘pcm_decode_init’
ffmpeg-7.1.2/libavcodec/pcm.c:287:5: warning[-Wdeprecated-declarations]: ‘sample_fmts’ is deprecated
# 287 | avctx->sample_fmt = avctx->codec->sample_fmts[0];
# | ^~~~~
ffmpeg-7.1.2/libavcodec/avcodec.h:41: included_from: Included from here.
ffmpeg-7.1.2/libavcodec/pcm.c:34: included_from: Included from here.
ffmpeg-7.1.2/libavcodec/codec.h:219:32: note: declared here
# 219 | const enum AVSampleFormat *sample_fmts; ///< @deprecated use avcodec_get_supported_config()
# | ^~~~~~~~~~~
# 285| }
# 286|
# 287|-> avctx->sample_fmt = avctx->codec->sample_fmts[0];
# 288|
# 289| if (avctx->sample_fmt == AV_SAMPLE_FMT_S32)
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/libavcodec/pcm.c:287:5: warning[-Wdeprecated-declarations]: ‘sample_fmts’ is deprecated
# 285| }
# 286|
# 287|-> avctx->sample_fmt = avctx->codec->sample_fmts[0];
# 288|
# 289| if (avctx->sample_fmt == AV_SAMPLE_FMT_S32)
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/libavcodec/pnm_parser.c: scope_hint: In function ‘pnm_parse’
ffmpeg-7.1.2/libavcodec/pnm_parser.c:98:34: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 98 | uint8_t *match = memchr(bs, '\n', end-bs);
# | ^~~~~~
# 96| c = *bs++;
# 97| if (c == '#') {
# 98|-> uint8_t *match = memchr(bs, '\n', end-bs);
# 99| if (match)
# 100| bs = match + 1;
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/libavcodec/pnm_parser.c:98:34: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 96| c = *bs++;
# 97| if (c == '#') {
# 98|-> uint8_t *match = memchr(bs, '\n', end-bs);
# 99| if (match)
# 100| bs = match + 1;
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/proresdec.c:472:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gb.buffer_end’
ffmpeg-7.1.2/libavcodec/proresdec.c:639:12: enter_function: entry to ‘decode_slice_thread’
ffmpeg-7.1.2/libavcodec/proresdec.c:670:9: branch_false: following ‘false’ branch (when ‘v_data_size >= 0’)...
ffmpeg-7.1.2/libavcodec/proresdec.c:671:12: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/proresdec.c:670:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/proresdec.c:676:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/proresdec.c:678:17: branch_true: following ‘true’ branch (when ‘i != 64’)...
ffmpeg-7.1.2/libavcodec/proresdec.c:679:33: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/proresdec.c:712:11: call_function: calling ‘decode_slice_luma’ from ‘decode_slice_thread’
# 470| OPEN_READER(re, gb);
# 471|
# 472|-> DECODE_CODEWORD(code, FIRST_DC_CB, LAST_SKIP_BITS);
# 473| prev_dc = TOSIGNED(code);
# 474| out[0] = prev_dc;
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/proresdec.c:472:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gb.buffer’
ffmpeg-7.1.2/libavcodec/proresdec.c:572:12: enter_function: entry to ‘decode_slice_chroma’
ffmpeg-7.1.2/libavcodec/proresdec.c:587:5: call_function: calling ‘init_get_bits’ from ‘decode_slice_chroma’
ffmpeg-7.1.2/libavcodec/proresdec.c:587:5: return_function: returning to ‘decode_slice_chroma’ from ‘init_get_bits’
ffmpeg-7.1.2/libavcodec/proresdec.c:589:16: call_function: inlined call to ‘decode_dc_coeffs’ from ‘decode_slice_chroma’
# 470| OPEN_READER(re, gb);
# 471|
# 472|-> DECODE_CODEWORD(code, FIRST_DC_CB, LAST_SKIP_BITS);
# 473| prev_dc = TOSIGNED(code);
# 474| out[0] = prev_dc;
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/proresenc_kostya.c:837:53: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘linesize[3]’
ffmpeg-7.1.2/libavcodec/proresenc_kostya.c:801:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/proresenc_kostya.c:801:17: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/proresenc_kostya.c:836:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/proresenc_kostya.c:838:58: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/proresenc_kostya.c:837:53: danger: use of uninitialized value ‘linesize[3]’ here
# 835|
# 836| if (ctx->alpha_bits)
# 837|-> alpha_bits = estimate_alpha_plane(ctx, src, linesize[3],
# 838| mbs_per_slice, td->blocks[3]);
# 839| // todo: maybe perform coarser quantising to fit into frame size when needed
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/proresenc_kostya.c:843:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘num_cblocks[0]’
ffmpeg-7.1.2/libavcodec/proresenc_kostya.c:801:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/proresenc_kostya.c:801:17: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/proresenc_kostya.c:836:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/proresenc_kostya.c:840:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/proresenc_kostya.c:840:25: branch_true: following ‘true’ branch (when ‘q <= max_quant’)...
ffmpeg-7.1.2/libavcodec/proresenc_kostya.c:842:9: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/proresenc_kostya.c:843:17: danger: use of uninitialized value ‘num_cblocks[0]’ here
# 841| bits = alpha_bits;
# 842| error = 0;
# 843|-> bits += estimate_slice_plane(ctx, &error, 0,
# 844| src, linesize[0],
# 845| mbs_per_slice,
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/proresenc_kostya.c:861:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘slice_bits[max_quant]’
ffmpeg-7.1.2/libavcodec/proresenc_kostya.c:801:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/proresenc_kostya.c:801:17: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/proresenc_kostya.c:836:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/proresenc_kostya.c:840:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/proresenc_kostya.c:840:25: branch_false: following ‘false’ branch (when ‘q > max_quant’)...
ffmpeg-7.1.2/libavcodec/proresenc_kostya.c:861:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/proresenc_kostya.c:861:9: danger: use of uninitialized value ‘slice_bits[max_quant]’ here
# 859| slice_score[q] = error;
# 860| }
# 861|-> if (slice_bits[max_quant] <= ctx->bits_per_mb * mbs_per_slice) {
# 862| slice_bits[max_quant + 1] = slice_bits[max_quant];
# 863| slice_score[max_quant + 1] = slice_score[max_quant] + 1;
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/put_bits.h:65:8: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘start_position’
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1161:12: enter_function: entry to ‘cbs_av1_write_global_motion_params’
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1167:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1167:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1171:36: branch_true: following ‘true’ branch (when ‘ref != 8’)...
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1172:9: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1172:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1204:1: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1173:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1174:13: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1174:13: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1204:1: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1175:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1187:13: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/cbs_av1_syntax_template.c:1187:13: call_function: calling ‘cbs_av1_write_global_motion_param’ from ‘cbs_av1_write_global_motion_params’
# 63| int buffer_size)
# 64| {
# 65|-> if (buffer_size < 0) {
# 66| buffer_size = 0;
# 67| buffer = NULL;
Error: GCC_ANALYZER_WARNING (CWE-1335):
ffmpeg-7.1.2/libavcodec/put_bits.h:225:9: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘64’) >= precision of type (‘64’)
ffmpeg-7.1.2/libavcodec/huffyuvenc.c:697:12: enter_function: entry to ‘encode_frame’
ffmpeg-7.1.2/libavcodec/huffyuvenc.c:709:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/huffyuvenc.c:712:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/huffyuvenc.c:722:5: call_function: inlined call to ‘init_put_bits’ from ‘encode_frame’
ffmpeg-7.1.2/libavcodec/huffyuvenc.c:724:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/huffyuvenc.c:829:14: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/huffyuvenc.c:829:14: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/huffyuvenc.c:856:15: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/huffyuvenc.c:856:15: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/huffyuvenc.c:884:16: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/huffyuvenc.c:884:15: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/huffyuvenc.c:884:15: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/huffyuvenc.c:886:25: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/huffyuvenc.c:892:16: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/huffyuvenc.c:898:20: call_function: calling ‘sub_left_prediction’ from ‘encode_frame’
ffmpeg-7.1.2/libavcodec/huffyuvenc.c:898:20: return_function: returning to ‘encode_frame’ from ‘sub_left_prediction’
ffmpeg-7.1.2/libavcodec/huffyuvenc.c:900:13: call_function: calling ‘encode_plane_bitstream’ from ‘encode_frame’
# 223| bit_left -= n;
# 224| } else {
# 225|-> bit_buf <<= bit_left;
# 226| bit_buf |= value >> (n - bit_left);
# 227| if (s->buf_end - s->buf_ptr >= sizeof(BitBuf)) {
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/qsvenc.c:1525:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&vps_buf’
ffmpeg-7.1.2/libavcodec/qsvenc.c:1504:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/qsvenc.c:1508:22: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/qsvenc.c:1510:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/qsvenc.c:1510:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/qsvenc.c:1521:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/qsvenc.c:1524:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/qsvenc.c:1524:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/qsvenc.c:1525:43: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/qsvenc.c:1525:9: danger: use of uninitialized value ‘&vps_buf’ here
# 1523|
# 1524| if (q->hevc_vps) {
# 1525|-> memcpy(avctx->extradata, vps_buf, extradata_vps.VPSBufSize);
# 1526| extradata_offset += extradata_vps.VPSBufSize;
# 1527| }
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/qsvenc.c:1529:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&sps_buf’
ffmpeg-7.1.2/libavcodec/qsvenc.c:1504:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/qsvenc.c:1508:22: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/qsvenc.c:1510:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/qsvenc.c:1510:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/qsvenc.c:1521:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/qsvenc.c:1524:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/qsvenc.c:1524:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/qsvenc.c:1529:58: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/qsvenc.c:1529:5: danger: use of uninitialized value ‘&sps_buf’ here
# 1527| }
# 1528|
# 1529|-> memcpy(avctx->extradata + extradata_offset, sps_buf, extradata.SPSBufSize);
# 1530| extradata_offset += extradata.SPSBufSize;
# 1531| if (need_pps) {
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/rka.c:475:8: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘val’
ffmpeg-7.1.2/libavcodec/rka.c:849:12: enter_function: entry to ‘rka_decode_frame’
ffmpeg-7.1.2/libavcodec/rka.c:856:5: call_function: inlined call to ‘bytestream2_init’ from ‘rka_decode_frame’
ffmpeg-7.1.2/libavcodec/rka.c:859:22: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/rka.c:866:25: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/rka.c:867:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/rka.c:870:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/rka.c:919:25: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/rka.c:919:25: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/rka.c:920:30: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/rka.c:921:26: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/rka.c:924:23: call_function: calling ‘decode_ch_samples’ from ‘rka_decode_frame’
# 473| freq = 0;
# 474| dst[0] = 0;
# 475|-> if (val > 0 && am->buf_size > 0) {
# 476| for (dst[0] = 0; dst[0] < size & freq < val; dst[0]++) {
# 477| if (!am->prob[1][dst[0]])
Error: GCC_ANALYZER_WARNING (CWE-688):
ffmpeg-7.1.2/libavcodec/rl2.c:132:13: warning[-Wanalyzer-null-argument]: use of NULL ‘back_frame’ where non-null expected
ffmpeg-7.1.2/libavcodec/rl2.c:148:20: enter_function: entry to ‘rl2_decode_init’
ffmpeg-7.1.2/libavcodec/rl2.c:159:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/rl2.c:163:10: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/rl2.c:163:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/rl2.c:172:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/rl2.c:172:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/rl2.c:178:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
ffmpeg-7.1.2/libavcodec/rl2.c:179:39: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/rl2.c:184:8: branch_true: following ‘true’ branch (when ‘back_size != 0’)...
ffmpeg-7.1.2/libavcodec/rl2.c:187:42: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/rl2.c:188:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/rl2.c:191:36: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/rl2.c:190:9: call_function: calling ‘rl2_rle_decode’ from ‘rl2_decode_init’
# 130| if (s->back_frame) {
# 131| while (1) {
# 132|-> memcpy(out, back_frame, line_end - out);
# 133| if (line_end == out_end)
# 134| break;
Error: GCC_ANALYZER_WARNING (CWE-835):
ffmpeg-7.1.2/libavcodec/sbc.c:118:17: warning[-Wanalyzer-infinite-loop]: infinite loop
ffmpeg-7.1.2/libavcodec/sbc.c:118:17: danger: infinite loop here
ffmpeg-7.1.2/libavcodec/sbc.c:121:30: branch_false: when ‘sb >= subbands’: always following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/sbc.c:127:22: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/sbc.c:127:22: branch_true: if it ever follows ‘true’ branch, it will always do so...
ffmpeg-7.1.2/libavcodec/sbc.c:127:22: branch_true: ...to here
# 116| bitslice = max_bitneed + 1;
# 117| do {
# 118|-> bitslice--;
# 119| bitcount += slicecount;
# 120| slicecount = 0;
Error: GCC_ANALYZER_WARNING:
ffmpeg-7.1.2/libavcodec/sbcdec.c:227:13: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
ffmpeg-7.1.2/libavcodec/sbcdec.c:304:13: enter_function: entry to ‘sbc_synthesize_audio’
ffmpeg-7.1.2/libavcodec/sbcdec.c:311:22: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/sbcdec.c:311:22: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/sbcdec.c:313:17: call_function: calling ‘sbc_synthesize_four’ from ‘sbc_synthesize_audio’
# 225| if (offset[i] < 0) {
# 226| offset[i] = 79;
# 227|-> memcpy(v + 80, v, 9 * sizeof(*v));
# 228| }
# 229|
Error: GCC_ANALYZER_WARNING:
ffmpeg-7.1.2/libavcodec/sbcdec.c:270:13: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
ffmpeg-7.1.2/libavcodec/sbcdec.c:304:13: enter_function: entry to ‘sbc_synthesize_audio’
ffmpeg-7.1.2/libavcodec/sbcdec.c:317:22: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/sbcdec.c:317:22: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/sbcdec.c:319:17: call_function: calling ‘sbc_synthesize_eight’ from ‘sbc_synthesize_audio’
# 268| if (offset[i] < 0) {
# 269| offset[i] = 159;
# 270|-> memcpy(v + 160, v, 9 * sizeof(*v));
# 271| }
# 272|
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/libavcodec/sbcenc.c: scope_hint: In function ‘sbc_encode_init’
ffmpeg-7.1.2/libavcodec/sbcenc.c:263:5: warning[-Wdeprecated-declarations]: ‘supported_samplerates’ is deprecated
# 263 | for (int i = 0; avctx->codec->supported_samplerates[i]; i++)
# | ^~~
ffmpeg-7.1.2/libavcodec/avcodec.h:41: included_from: Included from here.
ffmpeg-7.1.2/libavcodec/sbcenc.c:36: included_from: Included from here.
ffmpeg-7.1.2/libavcodec/codec.h:217:16: note: declared here
# 217 | const int *supported_samplerates; ///< @deprecated use avcodec_get_supported_config()
# | ^~~~~~~~~~~~~~~~~~~~~
# 261| }
# 262|
# 263|-> for (int i = 0; avctx->codec->supported_samplerates[i]; i++)
# 264| if (avctx->sample_rate == avctx->codec->supported_samplerates[i])
# 265| frame->frequency = i;
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/libavcodec/sbcenc.c:263:5: warning[-Wdeprecated-declarations]: ‘supported_samplerates’ is deprecated
# 261| }
# 262|
# 263|-> for (int i = 0; avctx->codec->supported_samplerates[i]; i++)
# 264| if (avctx->sample_rate == avctx->codec->supported_samplerates[i])
# 265| frame->frequency = i;
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/libavcodec/sbcenc.c:264:9: warning[-Wdeprecated-declarations]: ‘supported_samplerates’ is deprecated
# 264 | if (avctx->sample_rate == avctx->codec->supported_samplerates[i])
# | ^~
ffmpeg-7.1.2/libavcodec/codec.h:217:16: note: declared here
# 217 | const int *supported_samplerates; ///< @deprecated use avcodec_get_supported_config()
# | ^~~~~~~~~~~~~~~~~~~~~
# 262|
# 263| for (int i = 0; avctx->codec->supported_samplerates[i]; i++)
# 264|-> if (avctx->sample_rate == avctx->codec->supported_samplerates[i])
# 265| frame->frequency = i;
# 266|
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/libavcodec/sbcenc.c:264:9: warning[-Wdeprecated-declarations]: ‘supported_samplerates’ is deprecated
# 262|
# 263| for (int i = 0; avctx->codec->supported_samplerates[i]; i++)
# 264|-> if (avctx->sample_rate == avctx->codec->supported_samplerates[i])
# 265| frame->frequency = i;
# 266|
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/snow.c:209:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
ffmpeg-7.1.2/libavcodec/snow.c:285:6: enter_function: entry to ‘ff_snow_pred_block’
ffmpeg-7.1.2/libavcodec/snow.c:286:7: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/snow.c:325:46: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/snow.c:353:13: call_function: calling ‘mc_block’ from ‘ff_snow_pred_block’
# 207| for(y=0; y < b_h; y++){
# 208| for(x=0; x < b_w; x++){
# 209|-> int a_1=tmpI[x + (HTAPS_MAX/2-4)*64];
# 210| int a0= tmpI[x + (HTAPS_MAX/2-3)*64];
# 211| int a1= tmpI[x + (HTAPS_MAX/2-2)*64];
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/snow_dwt.c:134:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
ffmpeg-7.1.2/libavcodec/snow_dwt.c:838:5: enter_function: entry to ‘ff_w97_32_c’
ffmpeg-7.1.2/libavcodec/snow_dwt.c:840:12: call_function: calling ‘w_c’ from ‘ff_w97_32_c’
# 132|
# 133| for (i = 0; i < w; i++)
# 134|-> dst[i * dst_step] = LIFT(src[i * src_step],
# 135| ((mul * (ref[i * ref_step] +
# 136| ref[(i + 1) * ref_step]) +
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/snow_dwt.c:186:24: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
ffmpeg-7.1.2/libavcodec/snow_dwt.c:833:5: enter_function: entry to ‘ff_w53_32_c’
ffmpeg-7.1.2/libavcodec/snow_dwt.c:835:12: call_function: calling ‘w_c’ from ‘ff_w53_32_c’
# 184|
# 185| for (x = 0; x < width2; x++) {
# 186|-> temp[x] = b[2 * x];
# 187| temp[x + w2] = b[2 * x + 1];
# 188| }
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/speexdec.c:856:24: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘n0’
ffmpeg-7.1.2/libavcodec/speexdec.c:843:21: branch_true: following ‘true’ branch (when ‘j <= lpcrdr’)...
ffmpeg-7.1.2/libavcodec/speexdec.c:843:21: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:845:25: branch_false: following ‘false’ branch (when ‘i >= m’)...
ffmpeg-7.1.2/libavcodec/speexdec.c:856:24: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:856:24: danger: use of uninitialized value ‘n0’ here
# 854| xin2 = xout2;
# 855| }
# 856|-> xout1 = xin1 + n0[4];
# 857| xout2 = xin2 - n0[5];
# 858| if (j > 0)
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/speexdec.c:1319:67: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘low_innov_alias’
ffmpeg-7.1.2/libavcodec/speexdec.c:1235:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1245:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1261:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1275:31: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1283:23: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1289:18: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1292:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1293:43: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1297:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1298:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1305:25: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1310:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1314:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1315:27: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1318:29: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1319:31: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1319:67: danger: use of uninitialized value ‘low_innov_alias’ here
# 1317|
# 1318| for (int i = 0; i < st->subframe_size; i += 2) {
# 1319|-> exc[i ] = mode->folding_gain * low_innov_alias[offset + i ] * g;
# 1320| exc[i + 1] = -mode->folding_gain * low_innov_alias[offset + i + 1] * g;
# 1321| }
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/speexdec.c:1355:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&ak’
ffmpeg-7.1.2/libavcodec/speexdec.c:1219:12: enter_function: entry to ‘sb_decode’
ffmpeg-7.1.2/libavcodec/speexdec.c:1235:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1245:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1261:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1275:31: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1283:23: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1289:18: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1292:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1293:43: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1297:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1298:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1305:25: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1310:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1314:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1315:27: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1318:29: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1348:13: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1353:9: call_function: calling ‘iir_mem’ from ‘sb_decode’
ffmpeg-7.1.2/libavcodec/speexdec.c:1353:9: return_function: returning to ‘sb_decode’ from ‘iir_mem’
ffmpeg-7.1.2/libavcodec/speexdec.c:1355:9: danger: use of uninitialized value ‘&ak’ here
# 1353| iir_mem(st->exc_buf, st->interp_qlpc, sp, st->subframe_size, st->lpc_size, st->mem_sp);
# 1354| memcpy(st->exc_buf, exc, sizeof(exc));
# 1355|-> memcpy(st->interp_qlpc, ak, sizeof(st->interp_qlpc));
# 1356| st->exc_rms[sub] = compute_rms(st->exc_buf, st->subframe_size);
# 1357| }
Error: GCC_ANALYZER_WARNING (CWE-126):
ffmpeg-7.1.2/libavcodec/speexdec.c:1370:18: warning[-Wanalyzer-out-of-bounds]: buffer over-read
ffmpeg-7.1.2/libavcodec/speexdec.c:1442:20: enter_function: entry to ‘speex_decode_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1448:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1451:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1457:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1460:26: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1461:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1464:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1508:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1508:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1508:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1508:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
# 1368| {
# 1369| st->mode = mode;
# 1370|-> st->modeID = mode->modeID;
# 1371|
# 1372| st->first = 1;
Error: GCC_ANALYZER_WARNING (CWE-126):
ffmpeg-7.1.2/libavcodec/speexdec.c:1378:21: warning[-Wanalyzer-out-of-bounds]: buffer over-read
ffmpeg-7.1.2/libavcodec/speexdec.c:1442:20: enter_function: entry to ‘speex_decode_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1448:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1451:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1457:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1460:26: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1461:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1464:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1508:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1508:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1508:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1508:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
# 1376|
# 1377| st->submodes = mode->submodes;
# 1378|-> st->submodeID = mode->default_submode;
# 1379| st->subframe_size = mode->subframe_size;
# 1380| st->lpc_size = mode->lpc_size;
Error: GCC_ANALYZER_WARNING (CWE-126):
ffmpeg-7.1.2/libavcodec/speexdec.c:1379:25: warning[-Wanalyzer-out-of-bounds]: buffer over-read
ffmpeg-7.1.2/libavcodec/speexdec.c:1442:20: enter_function: entry to ‘speex_decode_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1448:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1451:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1457:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1460:26: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1461:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1464:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1508:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1508:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1508:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1508:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
# 1377| st->submodes = mode->submodes;
# 1378| st->submodeID = mode->default_submode;
# 1379|-> st->subframe_size = mode->subframe_size;
# 1380| st->lpc_size = mode->lpc_size;
# 1381| st->full_frame_size = (1 + (st->modeID > 0)) * mode->frame_size;
Error: GCC_ANALYZER_WARNING (CWE-126):
ffmpeg-7.1.2/libavcodec/speexdec.c:1380:20: warning[-Wanalyzer-out-of-bounds]: buffer over-read
ffmpeg-7.1.2/libavcodec/speexdec.c:1442:20: enter_function: entry to ‘speex_decode_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1448:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1451:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1457:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1460:26: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1461:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1464:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1508:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1508:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1508:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1508:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
# 1378| st->submodeID = mode->default_submode;
# 1379| st->subframe_size = mode->subframe_size;
# 1380|-> st->lpc_size = mode->lpc_size;
# 1381| st->full_frame_size = (1 + (st->modeID > 0)) * mode->frame_size;
# 1382| st->nb_subframes = mode->frame_size / mode->subframe_size;
Error: GCC_ANALYZER_WARNING (CWE-126):
ffmpeg-7.1.2/libavcodec/speexdec.c:1381:52: warning[-Wanalyzer-out-of-bounds]: buffer over-read
ffmpeg-7.1.2/libavcodec/speexdec.c:1442:20: enter_function: entry to ‘speex_decode_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1448:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1451:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1457:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1460:26: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1461:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1464:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1508:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1508:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1508:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.2/libavcodec/speexdec.c:1508:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/speexdec.c:1509:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
# 1379| st->subframe_size = mode->subframe_size;
# 1380| st->lpc_size = mode->lpc_size;
# 1381|-> st->full_frame_size = (1 + (st->modeID > 0)) * mode->frame_size;
# 1382| st->nb_subframes = mode->frame_size / mode->subframe_size;
# 1383| st->frame_size = mode->frame_size;
Error: GCC_ANALYZER_WARNING (CWE-404):
ffmpeg-7.1.2/libavcodec/srtenc.c:48:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
ffmpeg-7.1.2/libavcodec/srtenc.c:168:13: enter_function: entry to ‘srt_font_name_cb’
ffmpeg-7.1.2/libavcodec/srtenc.c:172:9: call_function: calling ‘srt_print’ from ‘srt_font_name_cb’
# 46| va_list vargs;
# 47| va_start(vargs, str);
# 48|-> av_vbprintf(&s->buffer, str, vargs);
# 49| va_end(vargs);
# 50| }
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/svq3.c:1216:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘h’
ffmpeg-7.1.2/libavcodec/svq3.c:1117:20: enter_function: entry to ‘svq3_decode_init’
ffmpeg-7.1.2/libavcodec/svq3.c:1134:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/svq3.c:1158:8: branch_true: following ‘true’ branch (when ‘extradata’ is non-NULL)...
ffmpeg-7.1.2/libavcodec/svq3.c:1158:8: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/svq3.c:1169:8: branch_true: following ‘true’ branch (when ‘marker_found != 0’)...
ffmpeg-7.1.2/libavcodec/svq3.c:1175:16: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/svq3.c:1176:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/svq3.c:1178:43: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/svq3.c:1178:9: call_function: calling ‘init_get_bits’ from ‘svq3_decode_init’
ffmpeg-7.1.2/libavcodec/svq3.c:1178:9: return_function: returning to ‘svq3_decode_init’ from ‘init_get_bits’
ffmpeg-7.1.2/libavcodec/svq3.c:1216:15: danger: use of uninitialized value ‘h’ here
# 1214| break;
# 1215| }
# 1216|-> ret = ff_set_dimensions(avctx, w, h);
# 1217| if (ret < 0)
# 1218| return ret;
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/svq3.c:1216:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘w’
ffmpeg-7.1.2/libavcodec/svq3.c:1117:20: enter_function: entry to ‘svq3_decode_init’
ffmpeg-7.1.2/libavcodec/svq3.c:1134:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/svq3.c:1158:8: branch_true: following ‘true’ branch (when ‘extradata’ is non-NULL)...
ffmpeg-7.1.2/libavcodec/svq3.c:1158:8: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/svq3.c:1169:8: branch_true: following ‘true’ branch (when ‘marker_found != 0’)...
ffmpeg-7.1.2/libavcodec/svq3.c:1175:16: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/svq3.c:1176:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/svq3.c:1178:43: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/svq3.c:1178:9: call_function: calling ‘init_get_bits’ from ‘svq3_decode_init’
ffmpeg-7.1.2/libavcodec/svq3.c:1178:9: return_function: returning to ‘svq3_decode_init’ from ‘init_get_bits’
ffmpeg-7.1.2/libavcodec/svq3.c:1216:15: danger: use of uninitialized value ‘w’ here
# 1214| break;
# 1215| }
# 1216|-> ret = ff_set_dimensions(avctx, w, h);
# 1217| if (ret < 0)
# 1218| return ret;
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/tiertexseqv.c:96:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*(long unsigned int *)&block[_3]’
ffmpeg-7.1.2/libavcodec/tiertexseqv.c:237:12: enter_function: entry to ‘seqvideo_decode_frame’
ffmpeg-7.1.2/libavcodec/tiertexseqv.c:246:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/tiertexseqv.c:249:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/tiertexseqv.c:249:9: call_function: calling ‘seqvideo_decode’ from ‘seqvideo_decode_frame’
# 94| src = seq_unpack_rle_block(src, src_end, block, sizeof(block));
# 95| for (b = 0; b < 8; b++) {
# 96|-> memcpy(dst, &block[b * 8], 8);
# 97| dst += seq->frame->linesize[0];
# 98| }
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/truemotion1.c:663:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘mb_change_byte’
ffmpeg-7.1.2/libavcodec/truemotion1.c:647:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/truemotion1.c:647:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/truemotion1.c:649:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/truemotion1.c:654:9: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/truemotion1.c:656:12: branch_false: following ‘false’ branch (when ‘keyframe != 0’)...
ffmpeg-7.1.2/libavcodec/truemotion1.c:659:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/truemotion1.c:661:16: branch_true: following ‘true’ branch (when ‘pixels_left > 0’)...
ffmpeg-7.1.2/libavcodec/truemotion1.c:663:16: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/truemotion1.c:663:16: branch_false: following ‘false’ branch (when ‘keyframe == 0’)...
ffmpeg-7.1.2/libavcodec/truemotion1.c:663:29: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/truemotion1.c:663:29: danger: use of uninitialized value ‘mb_change_byte’ here
# 661| while (pixels_left > 0) {
# 662|
# 663|-> if (keyframe || ((mb_change_byte & mb_change_byte_mask) == 0)) {
# 664|
# 665| switch (y & 3) {
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/v210_template.c:65:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘val’
ffmpeg-7.1.2/libavcodec/v210_template.c:25:13: enter_function: entry to ‘v210_enc_8’
ffmpeg-7.1.2/libavcodec/v210_template.c:39:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/v210_template.c:41:9: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/v210_template.c:49:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/v210_template.c:55:17: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/v210_template.c:55:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/v210_template.c:64:17: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/v210_template.c:64:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/v210_template.c:65:21: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/v210_template.c:65:21: call_function: inlined call to ‘av_clip_c’ from ‘v210_enc_8’
ffmpeg-7.1.2/libavcodec/v210_template.c:65:20: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/v210_template.c:65:57: call_function: inlined call to ‘av_clip_c’ from ‘v210_enc_8’
ffmpeg-7.1.2/libavcodec/v210_template.c:65:56: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/v210_template.c:65:17: danger: use of uninitialized value ‘val’ here
# 63| }
# 64| if (w < avctx->width - 3) {
# 65|-> val |= (CLIP(*u++, DEPTH) << (20-DEPTH)) | (CLIP(*y++, DEPTH) << (30-DEPTH));
# 66| AV_WL32(dst, val);
# 67| dst += 4;
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/libavcodec/v4l2_m2m.c:302:18: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/dev")’
ffmpeg-7.1.2/libavcodec/v4l2_m2m.c:298:12: acquire_memory: allocated here
ffmpeg-7.1.2/libavcodec/v4l2_m2m.c:299:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/v4l2_m2m.c:302:18: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/v4l2_m2m.c:302:18: throw: if ‘readdir’ throws an exception...
ffmpeg-7.1.2/libavcodec/v4l2_m2m.c:302:18: danger: ‘opendir("/dev")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 300| return AVERROR(errno);
# 301|
# 302|-> for (entry = readdir(dirp); entry; entry = readdir(dirp)) {
# 303|
# 304| if (strncmp(entry->d_name, "video", 5))
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/vaapi_decode.c:370:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘best_fourcc’
ffmpeg-7.1.2/libavcodec/vaapi_decode.c:314:5: branch_false: following ‘false’ branch (when ‘source_format != -1’)...
ffmpeg-7.1.2/libavcodec/vaapi_decode.c:316:11: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vaapi_decode.c:318:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vaapi_decode.c:324:12: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vaapi_decode.c:325:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vaapi_decode.c:328:11: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vaapi_decode.c:330:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vaapi_decode.c:330:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vaapi_decode.c:339:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/vaapi_decode.c:340:17: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/vaapi_decode.c:344:21: branch_true: following ‘true’ branch (when ‘j != 20’)...
ffmpeg-7.1.2/libavcodec/vaapi_decode.c:345:27: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/vaapi_decode.c:348:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vaapi_decode.c:353:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vaapi_decode.c:359:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vaapi_decode.c:339:30: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vaapi_decode.c:365:8: branch_false: following ‘false’ branch (when ‘best_format != -1’)...
ffmpeg-7.1.2/libavcodec/vaapi_decode.c:370:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vaapi_decode.c:370:5: danger: use of uninitialized value ‘best_fourcc’ here
# 368| }
# 369|
# 370|-> av_log(avctx, AV_LOG_DEBUG, "Picked %s (%#x) as best match for %s.\n",
# 371| av_get_pix_fmt_name(best_format), best_fourcc,
# 372| av_get_pix_fmt_name(source_format));
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:1035:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘profile’
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:951:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:963:32: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:964:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:969:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:982:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:986:33: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:987:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:994:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:994:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:994:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:995:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:1029:10: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:1029:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:1035:23: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:1035:23: danger: use of uninitialized value ‘profile’ here
# 1033| }
# 1034|
# 1035|-> avctx->profile = profile->av_profile;
# 1036| ctx->va_profile = profile->va_profile;
# 1037| av_log(avctx, AV_LOG_VERBOSE, "Using VAAPI profile %s (%d).\n",
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:1037:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘profile_string’
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:951:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:963:32: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:964:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:969:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:982:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:986:33: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:987:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:994:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:994:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:994:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:995:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:998:36: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:1029:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:1035:23: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vaapi_encode.c:1037:5: danger: use of uninitialized value ‘profile_string’ here
# 1035| avctx->profile = profile->av_profile;
# 1036| ctx->va_profile = profile->va_profile;
# 1037|-> av_log(avctx, AV_LOG_VERBOSE, "Using VAAPI profile %s (%d).\n",
# 1038| profile_string, ctx->va_profile);
# 1039|
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/vmdaudio.c:126:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘predictor[ch]’
ffmpeg-7.1.2/libavcodec/vmdaudio.c:135:12: enter_function: entry to ‘vmdaudio_decode_frame’
ffmpeg-7.1.2/libavcodec/vmdaudio.c:148:8: branch_false: following ‘false’ branch (when ‘buf_size > 15’)...
ffmpeg-7.1.2/libavcodec/vmdaudio.c:154:18: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vmdaudio.c:155:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vmdaudio.c:159:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vmdaudio.c:185:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vmdaudio.c:189:25: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vmdaudio.c:191:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vmdaudio.c:193:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vmdaudio.c:211:8: branch_true: following ‘true’ branch (when ‘audio_chunks > 0’)...
ffmpeg-7.1.2/libavcodec/vmdaudio.c:212:19: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/vmdaudio.c:213:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vmdaudio.c:213:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vmdaudio.c:214:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/vmdaudio.c:215:17: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/vmdaudio.c:215:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/vmdaudio.c:216:17: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/vmdaudio.c:216:17: call_function: calling ‘decode_audio_s16’ from ‘vmdaudio_decode_frame’
# 124| uint8_t b = *buf++;
# 125| if (b & 0x80)
# 126|-> predictor[ch] -= vmdaudio_table[b & 0x7F];
# 127| else
# 128| predictor[ch] += vmdaudio_table[b];
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/vmdaudio.c:128:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘predictor[ch]’
ffmpeg-7.1.2/libavcodec/vmdaudio.c:135:12: enter_function: entry to ‘vmdaudio_decode_frame’
ffmpeg-7.1.2/libavcodec/vmdaudio.c:148:8: branch_false: following ‘false’ branch (when ‘buf_size > 15’)...
ffmpeg-7.1.2/libavcodec/vmdaudio.c:154:18: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vmdaudio.c:155:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vmdaudio.c:159:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vmdaudio.c:185:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vmdaudio.c:189:25: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vmdaudio.c:191:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vmdaudio.c:193:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vmdaudio.c:211:8: branch_true: following ‘true’ branch (when ‘audio_chunks > 0’)...
ffmpeg-7.1.2/libavcodec/vmdaudio.c:212:19: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/vmdaudio.c:213:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vmdaudio.c:213:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vmdaudio.c:214:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/vmdaudio.c:215:17: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/vmdaudio.c:215:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/vmdaudio.c:216:17: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/vmdaudio.c:216:17: call_function: calling ‘decode_audio_s16’ from ‘vmdaudio_decode_frame’
# 126| predictor[ch] -= vmdaudio_table[b & 0x7F];
# 127| else
# 128|-> predictor[ch] += vmdaudio_table[b];
# 129| predictor[ch] = av_clip_int16(predictor[ch]);
# 130| *out++ = predictor[ch];
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/vorbisdec.c:412:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.1.2/libavcodec/vorbisdec.c:924:12: enter_function: entry to ‘vorbis_parse_setup_hdr’
ffmpeg-7.1.2/libavcodec/vorbisdec.c:929:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vorbisdec.c:929:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vorbisdec.c:931:10: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vorbisdec.c:929:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vorbisdec.c:931:38: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vorbisdec.c:929:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vorbisdec.c:936:16: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vorbisdec.c:936:16: call_function: calling ‘vorbis_parse_setup_hdr_codebooks’ from ‘vorbis_parse_setup_hdr’
# 410| for (k = 0; k < dim; ++k) {
# 411| unsigned multiplicand_offset = lookup_offset % codebook_lookup_values;
# 412|-> codebook_setup->codevectors[j * dim + k] = codebook_multiplicands[multiplicand_offset] * codebook_delta_value + codebook_minimum_value + last;
# 413| if (codebook_sequence_p)
# 414| last = codebook_setup->codevectors[j * dim + k];
Error: GCC_ANALYZER_WARNING (CWE-835):
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1452:35: warning[-Wanalyzer-infinite-loop]: infinite loop
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1596:16: call_function: inlined call to ‘vorbis_residue_decode_internal’ from ‘vorbis_residue_decode’
# 1450|
# 1451| voffset = vr->begin;
# 1452|-> for (partition_count = 0; partition_count < ptns_to_read;) { // SPEC error
# 1453| if (!pass) {
# 1454| int ret = setup_classifs(vc, vr, do_not_decode, ch_used, partition_count, ptns_to_read);
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1678:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘no_residue[<unknown>]’
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1625:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1630:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1648:15: branch_true: following ‘true’ branch (when ‘previous_window < 0’)...
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1651:45: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1657:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1677:14: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1677:43: branch_true: following ‘true’ branch (when ‘i != -1’)...
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1678:26: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1678:15: danger: use of uninitialized value ‘no_residue[<unknown>]’ here
# 1676|
# 1677| for (i = mapping->coupling_steps - 1; i >= 0; --i) {
# 1678|-> if (!(no_residue[mapping->magnitude[i]] & no_residue[mapping->angle[i]])) {
# 1679| no_residue[mapping->magnitude[i]] = 0;
# 1680| no_residue[mapping->angle[i]] = 0;
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1737:47: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘res_chan[j]’
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1625:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1630:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1648:15: branch_true: following ‘true’ branch (when ‘previous_window < 0’)...
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1651:45: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1657:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1677:14: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1677:43: branch_false: following ‘false’ branch (when ‘i == -1’)...
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1677:43: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1686:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1718:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1718:8: branch_false: following ‘false’ branch (when ‘ch_left == 0’)...
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1723:14: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1723:43: branch_false: following ‘false’ branch (when ‘i == -1’)...
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1733:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1736:35: branch_true: following ‘true’ branch (when ‘j != -1’)...
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1737:24: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1737:47: danger: use of uninitialized value ‘res_chan[j]’ here
# 1735|
# 1736| for (j = vc->audio_channels-1;j >= 0; j--) {
# 1737|-> ch_res_ptr = vc->channel_residues + res_chan[j] * blocksize / 2;
# 1738| vc->fdsp->vector_fmul(floor_ptr[j], floor_ptr[j], ch_res_ptr, blocksize / 2);
# 1739| mdct_fn(mdct, ch_res_ptr, floor_ptr[j], sizeof(float));
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1748:52: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘res_chan[j]’
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1625:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1630:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1648:15: branch_true: following ‘true’ branch (when ‘previous_window < 0’)...
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1651:45: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1657:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1660:13: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1668:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1672:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1657:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1677:14: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1677:43: branch_false: following ‘false’ branch (when ‘i == -1’)...
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1677:43: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1686:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1718:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1718:8: branch_false: following ‘false’ branch (when ‘ch_left == 0’)...
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1723:14: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1723:43: branch_false: following ‘false’ branch (when ‘i == -1’)...
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1733:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1736:35: branch_false: following ‘false’ branch (when ‘j == -1’)...
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1744:27: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1745:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1746:18: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/vorbisdec.c:1748:52: danger: use of uninitialized value ‘res_chan[j]’ here
# 1746| unsigned bs0 = vc->blocksize[0];
# 1747| unsigned bs1 = vc->blocksize[1];
# 1748|-> float *residue = vc->channel_residues + res_chan[j] * blocksize / 2;
# 1749| float *saved = vc->saved + j * bs1 / 4;
# 1750| float *ret = floor_ptr[j];
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/vorbisenc.c:788:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘averages[i]’
ffmpeg-7.1.2/libavcodec/vorbisenc.c:1097:12: enter_function: entry to ‘vorbis_encode_frame’
ffmpeg-7.1.2/libavcodec/vorbisenc.c:1116:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vorbisenc.c:1119:17: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vorbisenc.c:1121:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vorbisenc.c:1125:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vorbisenc.c:1145:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vorbisenc.c:1148:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vorbisenc.c:1148:5: call_function: inlined call to ‘init_put_bits’ from ‘vorbis_encode_frame’
ffmpeg-7.1.2/libavcodec/vorbisenc.c:1150:5: call_function: inlined call to ‘put_bits’ from ‘vorbis_encode_frame’
ffmpeg-7.1.2/libavcodec/vorbisenc.c:1150:5: call_function: inlined call to ‘put_bits’ from ‘vorbis_encode_frame’
ffmpeg-7.1.2/libavcodec/vorbisenc.c:1161:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/vorbisenc.c:1162:33: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/vorbisenc.c:1164:9: call_function: calling ‘floor_fit’ from ‘vorbis_encode_frame’
# 786| for (i = 0; i < fc->values; i++) {
# 787| int position = fc->list[fc->list[i].sort].x;
# 788|-> float average = averages[i];
# 789| int j;
# 790|
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavcodec/vorbisenc.c:815:35: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*posts’
ffmpeg-7.1.2/libavcodec/vorbisenc.c:1097:12: enter_function: entry to ‘vorbis_encode_frame’
ffmpeg-7.1.2/libavcodec/vorbisenc.c:1116:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vorbisenc.c:1119:17: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vorbisenc.c:1121:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vorbisenc.c:1125:8: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vorbisenc.c:1145:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vorbisenc.c:1148:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vorbisenc.c:1148:5: call_function: inlined call to ‘init_put_bits’ from ‘vorbis_encode_frame’
ffmpeg-7.1.2/libavcodec/vorbisenc.c:1150:5: call_function: inlined call to ‘put_bits’ from ‘vorbis_encode_frame’
ffmpeg-7.1.2/libavcodec/vorbisenc.c:1150:5: call_function: inlined call to ‘put_bits’ from ‘vorbis_encode_frame’
ffmpeg-7.1.2/libavcodec/vorbisenc.c:1161:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/vorbisenc.c:1162:33: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/vorbisenc.c:1165:13: call_function: calling ‘floor_encode’ from ‘vorbis_encode_frame’
# 813| return AVERROR(EINVAL);
# 814| put_bits(pb, 1, 1); // non zero
# 815|-> put_bits(pb, ilog(range - 1), posts[0]);
# 816| put_bits(pb, ilog(range - 1), posts[1]);
# 817| coded[0] = coded[1] = 1;
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavcodec/vp8.c: scope_hint: In function ‘filter_mb_row’
ffmpeg-7.1.2/libavcodec/vp8.c:2534:20: warning[-Wunused-but-set-variable=]: variable ‘mb’ set but not used
# 2534 | VP8Macroblock *mb;
# | ^~
# 2532| int mb_x, mb_y = atomic_load(&td->thread_mb_pos) >> 16, num_jobs = s->num_jobs;
# 2533| AVFrame *curframe = s->curframe->tf.f;
# 2534|-> VP8Macroblock *mb;
# 2535| VP8ThreadData *prev_td, *next_td;
# 2536| uint8_t *dst[3] = {
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/vulkan_decode.c:748:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.1.2/libavcodec/vulkan_decode.c:709:12: enter_function: entry to ‘vulkan_decode_get_profile’
ffmpeg-7.1.2/libavcodec/vulkan_decode.c:716:47: call_function: inlined call to ‘get_codecdesc’ from ‘vulkan_decode_get_profile’
ffmpeg-7.1.2/libavcodec/vulkan_decode.c:748:11: danger: dereference of NULL ‘<unknown>’
# 746| uint32_t nb_out_fmts = 0;
# 747|
# 748|-> if (!(vk_desc->decode_extension & ctx->s.extensions)) {
# 749| av_log(avctx, AV_LOG_ERROR, "Device does not support decoding %s!\n",
# 750| avcodec_get_name(avctx->codec_id));
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavcodec/vulkan_decode.c:1138:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.1.2/libavcodec/vulkan_decode.c:1081:5: enter_function: entry to ‘ff_vk_decode_init’
ffmpeg-7.1.2/libavcodec/vulkan_decode.c:1106:18: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vulkan_decode.c:1104:43: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vulkan_decode.c:1116:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vulkan_decode.c:1120:5: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vulkan_decode.c:1125:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vulkan_decode.c:1128:15: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/vulkan_decode.c:1128:15: call_function: calling ‘get_video_profile’ from ‘ff_vk_decode_init’
ffmpeg-7.1.2/libavcodec/vulkan_decode.c:1128:15: return_function: returning to ‘ff_vk_decode_init’ from ‘get_video_profile’
ffmpeg-7.1.2/libavcodec/vulkan_decode.c:1129:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/vulkan_decode.c:1135:15: call_function: inlined call to ‘get_codecdesc’ from ‘ff_vk_decode_init’
ffmpeg-7.1.2/libavcodec/vulkan_decode.c:1138:31: danger: dereference of NULL ‘<unknown>’
# 1136| err = ff_vk_video_qf_init(s, &ctx->qf,
# 1137| VK_QUEUE_VIDEO_DECODE_BIT_KHR,
# 1138|-> vk_desc->decode_op);
# 1139| if (err < 0) {
# 1140| av_log(avctx, AV_LOG_ERROR, "Decoding of %s is not supported by this device\n",
Error: GCC_ANALYZER_WARNING (CWE-404):
ffmpeg-7.1.2/libavcodec/webvttenc.c:45:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
ffmpeg-7.1.2/libavcodec/webvttenc.c:44:5: acquire_resource: ‘va_start’ called here
ffmpeg-7.1.2/libavcodec/webvttenc.c:45:5: throw: if ‘av_vbprintf’ throws an exception...
ffmpeg-7.1.2/libavcodec/webvttenc.c:45:5: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 43| va_list vargs;
# 44| va_start(vargs, str);
# 45|-> av_vbprintf(&s->buffer, str, vargs);
# 46| va_end(vargs);
# 47| }
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavdevice/kmsgrab.c:503:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘plane’
ffmpeg-7.1.2/libavdevice/kmsgrab.c:424:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavdevice/kmsgrab.c:428:40: branch_false: ...to here
ffmpeg-7.1.2/libavdevice/kmsgrab.c:438:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavdevice/kmsgrab.c:455:46: branch_false: ...to here
ffmpeg-7.1.2/libavdevice/kmsgrab.c:456:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavdevice/kmsgrab.c:456:12: branch_false: ...to here
ffmpeg-7.1.2/libavdevice/kmsgrab.c:492:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavdevice/kmsgrab.c:503:9: branch_false: ...to here
ffmpeg-7.1.2/libavdevice/kmsgrab.c:503:9: danger: dereference of NULL ‘plane’
# 501| }
# 502|
# 503|-> av_log(avctx, AV_LOG_INFO, "Using plane %"PRIu32" to "
# 504| "locate framebuffers.\n", plane->plane_id);
# 505| }
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavdevice/pulse_audio_dec.c:356:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dts’
ffmpeg-7.1.2/libavdevice/pulse_audio_dec.c:302:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavdevice/pulse_audio_dec.c:304:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavdevice/pulse_audio_dec.c:351:5: branch_false: ...to here
ffmpeg-7.1.2/libavdevice/pulse_audio_dec.c:355:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavdevice/pulse_audio_dec.c:356:62: branch_true: ...to here
ffmpeg-7.1.2/libavdevice/pulse_audio_dec.c:356:20: danger: use of uninitialized value ‘dts’ here
# 354|
# 355| if (pd->wallclock)
# 356|-> pkt->pts = ff_timefilter_update(pd->timefilter, dts, pd->last_period);
# 357| pd->last_period = pkt->size / pd->pa_frame_size;
# 358|
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/libavdevice/v4l2.c:1082:21: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/dev")’
ffmpeg-7.1.2/libavdevice/v4l2.c:1073:8: branch_false: following ‘false’ branch (when ‘device_list’ is non-NULL)...
ffmpeg-7.1.2/libavdevice/v4l2.c:1076:11: branch_false: ...to here
ffmpeg-7.1.2/libavdevice/v4l2.c:1076:11: acquire_memory: allocated here
ffmpeg-7.1.2/libavdevice/v4l2.c:1077:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavdevice/v4l2.c:1077:8: branch_false: ...to here
ffmpeg-7.1.2/libavdevice/v4l2.c:1082:21: throw: if ‘readdir’ throws an exception...
ffmpeg-7.1.2/libavdevice/v4l2.c:1082:21: danger: ‘opendir("/dev")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
# 1080| return ret;
# 1081| }
# 1082|-> while ((entry = readdir(dir))) {
# 1083| AVDeviceInfo *device = NULL;
# 1084| struct v4l2_capability cap;
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavdevice/xcbgrab.c:461:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
ffmpeg-7.1.2/libavdevice/xcbgrab.c:432:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavdevice/xcbgrab.c:447:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavdevice/xcbgrab.c:448:14: branch_true: ...to here
ffmpeg-7.1.2/libavdevice/xcbgrab.c:450:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavdevice/xcbgrab.c:456:17: branch_false: ...to here
ffmpeg-7.1.2/libavdevice/xcbgrab.c:461:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavdevice/xcbgrab.c:461:28: branch_true: ...to here
ffmpeg-7.1.2/libavdevice/xcbgrab.c:461:28: danger: dereference of NULL ‘p’
# 459| }
# 460|
# 461|-> if (c->follow_mouse && p->same_screen)
# 462| xcbgrab_reposition(s, p, geo);
# 463|
Error: GCC_ANALYZER_WARNING:
ffmpeg-7.1.2/libavfilter/af_adecorrelate.c:72:14: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
# 70| ap->len = delay_samples + 1;
# 71| ap->p = 0;
# 72|-> ap->mx = av_calloc(ap->len, sizeof(*ap->mx));
# 73| ap->my = av_calloc(ap->len, sizeof(*ap->my));
# 74| if (!ap->mx || !ap->my)
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/af_aecho.c:198:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘index’
ffmpeg-7.1.2/libavfilter/af_aecho.c:198:1: branch_false: following ‘false’ branch (when ‘chan >= channels’)...
ffmpeg-7.1.2/libavfilter/af_aecho.c:198:1: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/af_aecho.c:198:1: danger: use of uninitialized value ‘index’ here
# 196| }
# 197|
# 198|-> ECHO(dbl, double, -1.0, 1.0 )
# 199| ECHO(flt, float, -1.0, 1.0 )
# 200| ECHO(s16, int16_t, INT16_MIN, INT16_MAX)
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/af_aecho.c:199:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘index’
ffmpeg-7.1.2/libavfilter/af_aecho.c:199:1: branch_false: following ‘false’ branch (when ‘chan >= channels’)...
ffmpeg-7.1.2/libavfilter/af_aecho.c:199:1: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/af_aecho.c:199:1: danger: use of uninitialized value ‘index’ here
# 197|
# 198| ECHO(dbl, double, -1.0, 1.0 )
# 199|-> ECHO(flt, float, -1.0, 1.0 )
# 200| ECHO(s16, int16_t, INT16_MIN, INT16_MAX)
# 201| ECHO(s32, int32_t, INT32_MIN, INT32_MAX)
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/af_aecho.c:200:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘index’
ffmpeg-7.1.2/libavfilter/af_aecho.c:200:1: branch_false: following ‘false’ branch (when ‘chan >= channels’)...
ffmpeg-7.1.2/libavfilter/af_aecho.c:200:1: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/af_aecho.c:200:1: danger: use of uninitialized value ‘index’ here
# 198| ECHO(dbl, double, -1.0, 1.0 )
# 199| ECHO(flt, float, -1.0, 1.0 )
# 200|-> ECHO(s16, int16_t, INT16_MIN, INT16_MAX)
# 201| ECHO(s32, int32_t, INT32_MIN, INT32_MAX)
# 202|
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/af_aecho.c:201:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘index’
ffmpeg-7.1.2/libavfilter/af_aecho.c:201:1: branch_false: following ‘false’ branch (when ‘chan >= channels’)...
ffmpeg-7.1.2/libavfilter/af_aecho.c:201:1: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/af_aecho.c:201:1: danger: use of uninitialized value ‘index’ here
# 199| ECHO(flt, float, -1.0, 1.0 )
# 200| ECHO(s16, int16_t, INT16_MIN, INT16_MAX)
# 201|-> ECHO(s32, int32_t, INT32_MIN, INT32_MAX)
# 202|
# 203| static int config_output(AVFilterLink *outlink)
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/af_afftdn.c:385:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘mag’
ffmpeg-7.1.2/libavfilter/af_afftdn.c:1049:12: enter_function: entry to ‘filter_channel’
ffmpeg-7.1.2/libavfilter/af_afftdn.c:1058:26: branch_true: following ‘true’ branch (when ‘ch < end’)...
ffmpeg-7.1.2/libavfilter/af_afftdn.c:1059:33: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/af_afftdn.c:1085:9: call_function: calling ‘process_frame’ from ‘filter_channel’
# 383| }
# 384|
# 385|-> power = mag * mag;
# 386| mag_abs_var = power / abs_var[i];
# 387| new_mag_abs_var = ratio * prior[i] + rratio * fmax(mag_abs_var - 1.0, 0.0);
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/af_afftdn.c:981:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘mag2’
ffmpeg-7.1.2/libavfilter/af_afftdn.c:945:21: branch_true: following ‘true’ branch (when ‘n <= edgemax’)...
ffmpeg-7.1.2/libavfilter/af_afftdn.c:946:13: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/af_afftdn.c:981:16: danger: use of uninitialized value ‘mag2’ here
# 979| }
# 980|
# 981|-> mag2 = fmax(mag2, s->sample_floor);
# 982|
# 983| var += mag2;
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavfilter/af_afftfilt.c:297:9: warning[-Wstringop-overflow=]: ‘memmove’ specified bound between 18446744065119617024 and 18446744073709551608 exceeds maximum object size 9223372036854775807
# 295| s->itx_fn(s->ifft[ch], fft_out, fft_temp, sizeof(*fft_temp));
# 296|
# 297|-> memmove(buf, buf + s->hop_size, window_size * sizeof(float));
# 298| for (int i = 0; i < window_size; i++)
# 299| buf[i] += fft_out[i].re * window_lut[i] * f;
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/af_afir.c:238:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘tx_type’
ffmpeg-7.1.2/libavfilter/af_afir.c:204:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/af_afir.c:217:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/af_afir.c:237:22: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/af_afir.c:238:15: danger: use of uninitialized value ‘tx_type’ here
# 236|
# 237| for (int ch = 0; ch < ctx->inputs[0]->ch_layout.nb_channels && part_size >= 1; ch++) {
# 238|-> ret = av_tx_init(&seg->ctx[ch], &seg->ctx_fn, tx_type,
# 239| 0, 2 * part_size, &cscale, 0);
# 240| if (ret < 0)
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/af_afreqshift.c:103:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘I’
ffmpeg-7.1.2/libavfilter/af_afreqshift.c:103:1: branch_true: following ‘true’ branch (when ‘n < nb_samples’)...
ffmpeg-7.1.2/libavfilter/af_afreqshift.c:103:1: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/af_afreqshift.c:103:1: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/af_afreqshift.c:103:1: danger: use of uninitialized value ‘I’ here
# 101| }
# 102|
# 103|-> PFILTER(flt, float, sin, cos, cf)
# 104| PFILTER(dbl, double, sin, cos, cd)
# 105|
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/af_afreqshift.c:104:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘I’
ffmpeg-7.1.2/libavfilter/af_afreqshift.c:104:1: branch_true: following ‘true’ branch (when ‘n < nb_samples’)...
ffmpeg-7.1.2/libavfilter/af_afreqshift.c:104:1: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/af_afreqshift.c:104:1: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/af_afreqshift.c:104:1: danger: use of uninitialized value ‘I’ here
# 102|
# 103| PFILTER(flt, float, sin, cos, cf)
# 104|-> PFILTER(dbl, double, sin, cos, cd)
# 105|
# 106| #define FFILTER(name, type, sin, cos, fmod, cc) \
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/af_afreqshift.c:154:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘I’
ffmpeg-7.1.2/libavfilter/af_afreqshift.c:154:1: branch_true: following ‘true’ branch (when ‘n < nb_samples’)...
ffmpeg-7.1.2/libavfilter/af_afreqshift.c:154:1: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/af_afreqshift.c:154:1: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/af_afreqshift.c:154:1: danger: use of uninitialized value ‘I’ here
# 152| }
# 153|
# 154|-> FFILTER(flt, float, sinf, cosf, fmodf, cf)
# 155| FFILTER(dbl, double, sin, cos, fmod, cd)
# 156|
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/af_afreqshift.c:155:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘I’
ffmpeg-7.1.2/libavfilter/af_afreqshift.c:155:1: branch_true: following ‘true’ branch (when ‘n < nb_samples’)...
ffmpeg-7.1.2/libavfilter/af_afreqshift.c:155:1: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/af_afreqshift.c:155:1: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/af_afreqshift.c:155:1: danger: use of uninitialized value ‘I’ here
# 153|
# 154| FFILTER(flt, float, sinf, cosf, fmodf, cf)
# 155|-> FFILTER(dbl, double, sin, cos, fmod, cd)
# 156|
# 157| static void compute_transition_param(double *K, double *Q, double transition)
Error: GCC_ANALYZER_WARNING:
ffmpeg-7.1.2/libavfilter/af_alimiter.c:369:17: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
ffmpeg-7.1.2/libavfilter/af_alimiter.c:366:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/af_alimiter.c:369:17: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/af_alimiter.c:369:17: danger: operand ‘1.0e+3’ is of type ‘double’
# 367| return AVERROR(EINVAL);
# 368|
# 369|-> s->buffer = av_calloc(obuffer_size, sizeof(*s->buffer));
# 370| s->nextdelta = av_calloc(obuffer_size, sizeof(*s->nextdelta));
# 371| s->nextpos = av_malloc_array(obuffer_size, sizeof(*s->nextpos));
Error: GCC_ANALYZER_WARNING:
ffmpeg-7.1.2/libavfilter/af_alimiter.c:370:20: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
ffmpeg-7.1.2/libavfilter/af_alimiter.c:366:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/af_alimiter.c:369:17: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/af_alimiter.c:370:20: danger: operand ‘1.0e+3’ is of type ‘double’
# 368|
# 369| s->buffer = av_calloc(obuffer_size, sizeof(*s->buffer));
# 370|-> s->nextdelta = av_calloc(obuffer_size, sizeof(*s->nextdelta));
# 371| s->nextpos = av_malloc_array(obuffer_size, sizeof(*s->nextpos));
# 372| if (!s->buffer || !s->nextdelta || !s->nextpos)
Error: GCC_ANALYZER_WARNING:
ffmpeg-7.1.2/libavfilter/af_alimiter.c:371:18: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
ffmpeg-7.1.2/libavfilter/af_alimiter.c:366:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/af_alimiter.c:369:17: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/af_alimiter.c:371:18: danger: operand ‘1.0e+3’ is of type ‘double’
# 369| s->buffer = av_calloc(obuffer_size, sizeof(*s->buffer));
# 370| s->nextdelta = av_calloc(obuffer_size, sizeof(*s->nextdelta));
# 371|-> s->nextpos = av_malloc_array(obuffer_size, sizeof(*s->nextpos));
# 372| if (!s->buffer || !s->nextdelta || !s->nextpos)
# 373| return AVERROR(ENOMEM);
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/af_axcorrelate.c:145:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘used’
ffmpeg-7.1.2/libavfilter/af_axcorrelate.c:145:1: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/af_axcorrelate.c:145:1: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/af_axcorrelate.c:145:1: danger: use of uninitialized value ‘used’ here
# 143| }
# 144|
# 145|-> XCORRELATE_SLOW(f, float)
# 146| XCORRELATE_SLOW(d, double)
# 147|
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/af_axcorrelate.c:146:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘used’
ffmpeg-7.1.2/libavfilter/af_axcorrelate.c:146:1: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/af_axcorrelate.c:146:1: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/af_axcorrelate.c:146:1: danger: use of uninitialized value ‘used’ here
# 144|
# 145| XCORRELATE_SLOW(f, float)
# 146|-> XCORRELATE_SLOW(d, double)
# 147|
# 148| #define clipf(x) (av_clipf(x, -1.f, 1.f))
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/af_axcorrelate.c:198:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘used’
ffmpeg-7.1.2/libavfilter/af_axcorrelate.c:198:1: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/af_axcorrelate.c:198:1: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/af_axcorrelate.c:198:1: danger: use of uninitialized value ‘used’ here
# 196| }
# 197|
# 198|-> XCORRELATE_FAST(f, float, 0.f, 1e-6f, sqrtf, clipf)
# 199| XCORRELATE_FAST(d, double, 0.0, 1e-9, sqrt, clipd)
# 200|
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/af_axcorrelate.c:199:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘used’
ffmpeg-7.1.2/libavfilter/af_axcorrelate.c:199:1: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/af_axcorrelate.c:199:1: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/af_axcorrelate.c:199:1: danger: use of uninitialized value ‘used’ here
# 197|
# 198| XCORRELATE_FAST(f, float, 0.f, 1e-6f, sqrtf, clipf)
# 199|-> XCORRELATE_FAST(d, double, 0.0, 1e-9, sqrt, clipd)
# 200|
# 201| #define XCORRELATE_BEST(suffix, type, zero, small, sqrtfun, FMAX, CLIP) \
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/af_axcorrelate.c:259:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘used’
ffmpeg-7.1.2/libavfilter/af_axcorrelate.c:259:1: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/af_axcorrelate.c:259:1: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/af_axcorrelate.c:259:1: danger: use of uninitialized value ‘used’ here
# 257| }
# 258|
# 259|-> XCORRELATE_BEST(f, float, 0.f, 1e-6f, sqrtf, fmaxf, clipf)
# 260| XCORRELATE_BEST(d, double, 0.0, 1e-9, sqrt, fmax, clipd)
# 261|
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/af_axcorrelate.c:260:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘used’
ffmpeg-7.1.2/libavfilter/af_axcorrelate.c:260:1: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/af_axcorrelate.c:260:1: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/af_axcorrelate.c:260:1: danger: use of uninitialized value ‘used’ here
# 258|
# 259| XCORRELATE_BEST(f, float, 0.f, 1e-6f, sqrtf, fmaxf, clipf)
# 260|-> XCORRELATE_BEST(d, double, 0.0, 1e-9, sqrt, fmax, clipd)
# 261|
# 262| static int activate(AVFilterContext *ctx)
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/af_compand.c:251:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘count’
ffmpeg-7.1.2/libavfilter/af_compand.c:208:20: branch_false: following ‘false’ branch (when ‘chan >= channels’)...
ffmpeg-7.1.2/libavfilter/af_compand.c:251:5: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/af_compand.c:251:5: danger: use of uninitialized value ‘count’ here
# 249| }
# 250|
# 251|-> s->delay_count = count;
# 252| s->delay_index = dindex;
# 253|
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavfilter/af_firequalizer.c:559:5: warning[-Wstringop-overflow=]: ‘memset’ specified bound between 18446744069414584316 and 18446744073709551608 exceeds maximum object size 9223372036854775807
# 557| s->cepstrum_irdft_fn(s->cepstrum_irdft, s->cepstrum_buf, s->cepstrum_tbuf, sizeof(AVComplexFloat));
# 558|
# 559|-> memset(s->cepstrum_buf + cepstrum_len/2 + 1, 0, (cepstrum_len/2 - 1) * sizeof(*s->cepstrum_buf));
# 560| for (k = 1; k <= cepstrum_len/2; k++)
# 561| s->cepstrum_buf[k] *= 2;
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/af_haas.c:178:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘mid’
ffmpeg-7.1.2/libavfilter/af_haas.c:167:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/af_haas.c:171:17: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/af_haas.c:178:9: danger: use of uninitialized value ‘mid’ here
# 176| }
# 177|
# 178|-> mid *= level_in;
# 179|
# 180| buffer[s->write_ptr] = mid;
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/af_loudnorm.c:458:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘true_peak’
ffmpeg-7.1.2/libavfilter/af_loudnorm.c:678:12: enter_function: entry to ‘activate’
ffmpeg-7.1.2/libavfilter/af_loudnorm.c:687:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/af_loudnorm.c:689:9: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/af_loudnorm.c:703:8: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
ffmpeg-7.1.2/libavfilter/af_loudnorm.c:705:8: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/af_loudnorm.c:705:8: branch_true: following ‘true’ branch (when ‘ret != 0’)...
ffmpeg-7.1.2/libavfilter/af_loudnorm.c:706:13: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/af_loudnorm.c:716:15: call_function: calling ‘filter_frame’ from ‘activate’
# 456|
# 457| offset = pow(10., (s->target_i - global) / 20.);
# 458|-> offset_tp = true_peak * offset;
# 459| s->offset = offset_tp < s->target_tp ? offset : s->target_tp / true_peak;
# 460| s->frame_type = LINEAR_MODE;
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/af_loudnorm.c:874:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘tp_out’
ffmpeg-7.1.2/libavfilter/af_loudnorm.c:828:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/af_loudnorm.c:834:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/af_loudnorm.c:841:5: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/af_loudnorm.c:844:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/af_loudnorm.c:851:12: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/af_loudnorm.c:874:19: danger: use of uninitialized value ‘tp_out’ here
# 872| thresh_in,
# 873| i_out,
# 874|-> 20. * log10(tp_out),
# 875| lra_out,
# 876| thresh_out,
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/af_loudnorm.c:902:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘tp_out’
ffmpeg-7.1.2/libavfilter/af_loudnorm.c:828:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/af_loudnorm.c:834:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/af_loudnorm.c:841:5: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/af_loudnorm.c:844:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/af_loudnorm.c:851:12: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/af_loudnorm.c:902:19: danger: use of uninitialized value ‘tp_out’ here
# 900| thresh_in,
# 901| i_out,
# 902|-> 20. * log10(tp_out),
# 903| lra_out,
# 904| thresh_out,
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/avf_abitscope.c:245:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘outpicref’
ffmpeg-7.1.2/libavfilter/avf_abitscope.c:219:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_abitscope.c:232:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_abitscope.c:245:44: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_abitscope.c:245:5: danger: use of uninitialized value ‘outpicref’ here
# 243| }
# 244|
# 245|-> outpicref->pts = av_rescale_q(insamples->pts, inlink->time_base, outlink->time_base);
# 246| outpicref->duration = 1;
# 247| outpicref->sample_aspect_ratio = (AVRational){1,1};
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/avf_ahistogram.c:397:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yf’
ffmpeg-7.1.2/libavfilter/avf_ahistogram.c:233:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_ahistogram.c:238:9: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_ahistogram.c:316:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/avf_ahistogram.c:317:34: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/avf_ahistogram.c:321:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_ahistogram.c:329:9: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_ahistogram.c:393:33: branch_true: following ‘true’ branch (when ‘y < H’)...
ffmpeg-7.1.2/libavfilter/avf_ahistogram.c:394:29: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/avf_ahistogram.c:394:24: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_ahistogram.c:397:31: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_ahistogram.c:397:31: danger: use of uninitialized value ‘yf’ here
# 395| break;
# 396| old = dsty[n];
# 397|-> dsty[n] = av_clip_uint8(yf);
# 398| dstu[n] = av_clip_uint8(128.f+uf);
# 399| dstv[n] = av_clip_uint8(128.f+vf);
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/avf_ahistogram.c:408:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yf’
ffmpeg-7.1.2/libavfilter/avf_ahistogram.c:233:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_ahistogram.c:238:9: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_ahistogram.c:316:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/avf_ahistogram.c:317:34: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/avf_ahistogram.c:321:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_ahistogram.c:329:9: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_ahistogram.c:408:27: danger: use of uninitialized value ‘yf’ here
# 406| }
# 407|
# 408|-> out[0] += aa * yf;
# 409| out[1] += aa * uf;
# 410| out[2] += aa * vf;
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavfilter/avf_aphasemeter.c:333:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘outlink’
ffmpeg-7.1.2/libavfilter/avf_aphasemeter.c:243:29: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_aphasemeter.c:244:30: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_aphasemeter.c:259:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_aphasemeter.c:271:15: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_aphasemeter.c:271:15: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_aphasemeter.c:284:5: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_aphasemeter.c:284:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_aphasemeter.c:299:12: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_aphasemeter.c:302:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_aphasemeter.c:316:9: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_aphasemeter.c:320:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_aphasemeter.c:332:9: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_aphasemeter.c:332:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/avf_aphasemeter.c:333:34: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/avf_aphasemeter.c:333:19: danger: dereference of NULL ‘outlink’
# 331|
# 332| if (s->do_video)
# 333|-> new_pts = av_rescale_q(in->pts, inlink->time_base, outlink->time_base);
# 334| if (s->do_video && new_pts != s->last_pts) {
# 335| AVFrame *clone;
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:378:39: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src[0]’
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:319:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:323:46: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:360:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:363:17: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:378:39: danger: use of uninitialized value ‘src[0]’ here
# 376| switch (s->scale) {
# 377| case SQRT:
# 378|-> src[0] = FFSIGN(src[0]) * sqrtf(FFABS(src[0]));
# 379| src[1] = FFSIGN(src[1]) * sqrtf(FFABS(src[1]));
# 380| break;
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:382:39: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src[0]’
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:319:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:323:46: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:360:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:363:17: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:382:39: danger: use of uninitialized value ‘src[0]’ here
# 380| break;
# 381| case CBRT:
# 382|-> src[0] = FFSIGN(src[0]) * cbrtf(FFABS(src[0]));
# 383| src[1] = FFSIGN(src[1]) * cbrtf(FFABS(src[1]));
# 384| break;
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:386:48: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src[0]’
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:319:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:323:46: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:360:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:363:17: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:386:48: danger: use of uninitialized value ‘src[0]’ here
# 384| break;
# 385| case LOG:
# 386|-> src[0] = FFSIGN(src[0]) * logf(1 + FFABS(src[0])) / logf(2);
# 387| src[1] = FFSIGN(src[1]) * logf(1 + FFABS(src[1])) / logf(2);
# 388| break;
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:392:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src[0]’
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:319:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:323:46: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:360:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:363:17: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:391:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:392:22: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:392:22: danger: use of uninitialized value ‘src[0]’ here
# 390|
# 391| if (s->mirror & 1)
# 392|-> src[0] = -src[0];
# 393|
# 394| if (s->mirror & 2)
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:395:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src[1]’
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:438:12: enter_function: entry to ‘activate’
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:446:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:448:60: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:449:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:451:8: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:451:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:452:16: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:452:16: call_function: calling ‘filter_frame’ from ‘activate’
# 393|
# 394| if (s->mirror & 2)
# 395|-> src[1] = -src[1];
# 396|
# 397| if (s->swap)
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:401:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src[0]’
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:438:12: enter_function: entry to ‘activate’
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:446:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:448:60: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:449:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:451:8: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:451:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:452:16: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:452:16: call_function: calling ‘filter_frame’ from ‘activate’
# 399|
# 400| if (s->mode == LISSAJOUS) {
# 401|-> x = ((src[1] - src[0]) * zoom / 2 + 1) * hw;
# 402| y = (1.0 - (src[0] + src[1]) * zoom / 2) * hh;
# 403| } else if (s->mode == LISSAJOUS_XY) {
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:401:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src[1]’
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:438:12: enter_function: entry to ‘activate’
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:446:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:448:60: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:449:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:451:8: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:451:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:452:16: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:452:16: call_function: calling ‘filter_frame’ from ‘activate’
# 399|
# 400| if (s->mode == LISSAJOUS) {
# 401|-> x = ((src[1] - src[0]) * zoom / 2 + 1) * hw;
# 402| y = (1.0 - (src[0] + src[1]) * zoom / 2) * hh;
# 403| } else if (s->mode == LISSAJOUS_XY) {
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:404:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src[1]’
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:438:12: enter_function: entry to ‘activate’
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:446:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:448:60: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:449:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:451:8: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:451:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:452:16: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:452:16: call_function: calling ‘filter_frame’ from ‘activate’
# 402| y = (1.0 - (src[0] + src[1]) * zoom / 2) * hh;
# 403| } else if (s->mode == LISSAJOUS_XY) {
# 404|-> x = (src[1] * zoom + 1) * hw;
# 405| y = (src[0] * zoom + 1) * hh;
# 406| } else {
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:409:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src[1]’
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:438:12: enter_function: entry to ‘activate’
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:446:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:448:60: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:449:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:451:8: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:451:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:452:16: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:452:16: call_function: calling ‘filter_frame’ from ‘activate’
# 407| float sx, sy, cx, cy;
# 408|
# 409|-> sx = src[1] * zoom;
# 410| sy = src[0] * zoom;
# 411| cx = sx * sqrtf(1 - 0.5 * sy * sy);
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:428:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:438:12: enter_function: entry to ‘activate’
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:446:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:448:60: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:449:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:451:8: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:451:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:452:16: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/avf_avectorscope.c:452:16: call_function: calling ‘filter_frame’ from ‘activate’
# 426| }
# 427|
# 428|-> s->prev_x = x, s->prev_y = y;
# 429| av_frame_free(&insamples);
# 430|
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:589:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dstY’
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:474:25: branch_true: following ‘true’ branch (when ‘y < end’)...
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:475:62: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:523:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:531:1: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:588:20: branch_true: following ‘true’ branch (when ‘sono_size > 0’)...
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:589:45: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:589:21: danger: use of uninitialized value ‘dstY’ here
# 587|
# 588| if (sono_size > 0) {
# 589|-> dstY[0] = av_clip_uint8(lrintf(Y * 255.f));
# 590| dstU[0] = av_clip_uint8(lrintf(U * 255.f));
# 591| dstV[0] = av_clip_uint8(lrintf(V * 255.f));
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:608:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dstY’
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:449:12: enter_function: entry to ‘draw’
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:474:25: branch_true: following ‘true’ branch (when ‘y < end’)...
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:475:62: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:523:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:531:1: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:607:16: branch_true: following ‘true’ branch (when ‘sono_size > 0’)...
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:608:41: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:608:27: call_function: inlined call to ‘av_clip_uint8_c’ from ‘draw’
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:608:17: danger: use of uninitialized value ‘dstY’ here
# 606|
# 607| if (sono_size > 0) {
# 608|-> dstY[0] = av_clip_uint8(lrintf(Y * 255.f));
# 609| dstU[0] = av_clip_uint8(lrintf(U * 255.f));
# 610| dstV[0] = av_clip_uint8(lrintf(V * 255.f));
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:623:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dstY’
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:449:12: enter_function: entry to ‘draw’
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:474:25: branch_true: following ‘true’ branch (when ‘y < end’)...
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:475:62: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:523:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:531:1: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:622:16: branch_true: following ‘true’ branch (when ‘sono_size > 0’)...
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:623:41: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:623:27: call_function: inlined call to ‘av_clip_uint8_c’ from ‘draw’
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:623:17: danger: use of uninitialized value ‘dstY’ here
# 621|
# 622| if (sono_size > 0) {
# 623|-> dstY[0] = av_clip_uint8(lrintf(Y * 255.f));
# 624| if (dstA)
# 625| dstA[0] = dstY[0];
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:636:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dstY’
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:449:12: enter_function: entry to ‘draw’
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:474:25: branch_true: following ‘true’ branch (when ‘y < end’)...
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:475:62: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:523:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:531:1: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:635:16: branch_true: following ‘true’ branch (when ‘sono_size > 0’)...
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:636:41: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:636:27: call_function: inlined call to ‘av_clip_uint8_c’ from ‘draw’
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:636:17: danger: use of uninitialized value ‘dstY’ here
# 634|
# 635| if (sono_size > 0) {
# 636|-> dstY[0] = av_clip_uint8(lrintf(Y * 255.f));
# 637| if (dstA)
# 638| dstA[0] = dstY[0];
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/avfiltergraph.c:953:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘best_idx’
ffmpeg-7.1.2/libavfilter/avfiltergraph.c:958:13: enter_function: entry to ‘swap_samplerates’
ffmpeg-7.1.2/libavfilter/avfiltergraph.c:962:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/avfiltergraph.c:963:36: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/avfiltergraph.c:963:9: call_function: calling ‘swap_samplerates_on_filter’ from ‘swap_samplerates’
ffmpeg-7.1.2/libavfilter/avfiltergraph.c:963:9: return_function: returning to ‘swap_samplerates’ from ‘swap_samplerates_on_filter’
ffmpeg-7.1.2/libavfilter/avfiltergraph.c:962:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/avfiltergraph.c:963:36: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/avfiltergraph.c:963:9: call_function: calling ‘swap_samplerates_on_filter’ from ‘swap_samplerates’
# 951| }
# 952| }
# 953|-> FFSWAP(int, outlink->incfg.samplerates->formats[0],
# 954| outlink->incfg.samplerates->formats[best_idx]);
# 955| }
Error: GCC_ANALYZER_WARNING (CWE-674):
ffmpeg-7.1.2/libavfilter/avfiltergraph.c:1320:13: warning[-Wanalyzer-infinite-recursion]: infinite recursion
ffmpeg-7.1.2/libavfilter/avfiltergraph.c:1312:5: enter_function: entry to ‘avfilter_graph_send_command’
ffmpeg-7.1.2/libavfilter/avfiltergraph.c:1316:8: branch_false: following ‘false’ branch (when ‘graph’ is non-NULL)...
ffmpeg-7.1.2/libavfilter/avfiltergraph.c:1319:9: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/avfiltergraph.c:1319:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/avfiltergraph.c:1320:13: call_function: calling ‘avfilter_graph_send_command’ from ‘avfilter_graph_send_command’
# 1318|
# 1319| if ((flags & AVFILTER_CMD_FLAG_ONE) && !(flags & AVFILTER_CMD_FLAG_FAST)) {
# 1320|-> r = avfilter_graph_send_command(graph, target, cmd, arg, res, res_len, flags | AVFILTER_CMD_FLAG_FAST);
# 1321| if (r != AVERROR(ENOSYS))
# 1322| return r;
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/libavfilter/buffersink.c: scope_hint: In function ‘asink_query_formats’
ffmpeg-7.1.2/libavfilter/buffersink.c:294:30: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 294 | char *next = strchr(cur, '|');
# | ^~~~~~
# 292|
# 293| while (cur) {
# 294|-> char *next = strchr(cur, '|');
# 295| if (next)
# 296| *next++ = 0;
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/libavfilter/buffersink.c:294:30: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 292|
# 293| while (cur) {
# 294|-> char *next = strchr(cur, '|');
# 295| if (next)
# 296| *next++ = 0;
Error: GCC_ANALYZER_WARNING (CWE-404):
ffmpeg-7.1.2/libavfilter/f_metadata.c:192:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
ffmpeg-7.1.2/libavfilter/f_metadata.c:190:5: acquire_resource: ‘va_start’ called here
ffmpeg-7.1.2/libavfilter/f_metadata.c:191:8: branch_true: following ‘true’ branch (when ‘msg’ is non-NULL)...
ffmpeg-7.1.2/libavfilter/f_metadata.c:192:9: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/f_metadata.c:192:9: throw: if ‘av_vlog’ throws an exception...
ffmpeg-7.1.2/libavfilter/f_metadata.c:192:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 190| va_start(argument_list, msg);
# 191| if (msg)
# 192|-> av_vlog(ctx, AV_LOG_INFO, msg, argument_list);
# 193| va_end(argument_list);
# 194| }
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/libavfilter/graphparser.c: scope_hint: In function ‘parse_sws_flags’
ffmpeg-7.1.2/libavfilter/graphparser.c:117:15: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 117 | char *p = strchr(*buf, ';');
# | ^~~~~~
# 115| static int parse_sws_flags(const char **buf, char **dst, void *log_ctx)
# 116| {
# 117|-> char *p = strchr(*buf, ';');
# 118|
# 119| if (strncmp(*buf, "sws_flags=", 10))
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/libavfilter/graphparser.c:117:15: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 115| static int parse_sws_flags(const char **buf, char **dst, void *log_ctx)
# 116| {
# 117|-> char *p = strchr(*buf, ';');
# 118|
# 119| if (strncmp(*buf, "sws_flags=", 10))
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/vaf_spectrumsynth.c:411:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘start’
ffmpeg-7.1.2/libavfilter/vaf_spectrumsynth.c:456:12: enter_function: entry to ‘activate’
ffmpeg-7.1.2/libavfilter/vaf_spectrumsynth.c:463:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/vaf_spectrumsynth.c:463:5: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/vaf_spectrumsynth.c:465:17: branch_true: following ‘true’ branch (when ‘i != 2’)...
ffmpeg-7.1.2/libavfilter/vaf_spectrumsynth.c:466:14: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/vaf_spectrumsynth.c:469:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/vaf_spectrumsynth.c:471:12: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/vaf_spectrumsynth.c:471:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/vaf_spectrumsynth.c:472:13: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/vaf_spectrumsynth.c:473:20: call_function: calling ‘try_push_frames’ from ‘activate’
# 409| }
# 410|
# 411|-> s->start = start;
# 412| s->end = end;
# 413|
Error: GCC_ANALYZER_WARNING:
ffmpeg-7.1.2/libavfilter/vf_colorconstancy.c:118:23: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
ffmpeg-7.1.2/libavfilter/vf_colorconstancy.c:638:12: enter_function: entry to ‘config_props’
ffmpeg-7.1.2/libavfilter/vf_colorconstancy.c:653:13: call_function: calling ‘set_gauss’ from ‘config_props’
# 116|
# 117| for (i = 0; i <= difford; ++i) {
# 118|-> s->gauss[i] = av_calloc(filtersize, sizeof(*s->gauss[i]));
# 119| if (!s->gauss[i]) {
# 120| for (; i >= 0; --i) {
Error: GCC_ANALYZER_WARNING:
ffmpeg-7.1.2/libavfilter/vf_datascope.c:971:17: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
ffmpeg-7.1.2/libavfilter/vf_datascope.c:960:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/vf_datascope.c:960:8: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/vf_datascope.c:971:17: danger: at least one operand of the size argument is of a floating-point type
# 969| size = hypot(inlink->w, inlink->h);
# 970|
# 971|-> s->values = av_calloc(size, sizeof(*s->values));
# 972| if (!s->values)
# 973| return AVERROR(ENOMEM);
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/vf_deinterlace_vaapi.c:205:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘<unknown>’
ffmpeg-7.1.2/libavfilter/vf_deinterlace_vaapi.c:203:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/vf_deinterlace_vaapi.c:214:27: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/vf_deinterlace_vaapi.c:217:8: branch_false: following ‘false’ branch (when ‘input_frame’ is non-NULL)...
ffmpeg-7.1.2/libavfilter/vf_deinterlace_vaapi.c:220:45: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/vf_deinterlace_vaapi.c:239:21: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/vf_deinterlace_vaapi.c:323:21: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/vf_deinterlace_vaapi.c:205:20: danger: use of uninitialized value ‘<unknown>’ here
# 203| if (ctx->queue_count < ctx->queue_depth) {
# 204| // Need more reference surfaces before we can continue.
# 205|-> return 0;
# 206| }
# 207| } else {
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:321:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ddst’
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:303:21: branch_false: following ‘false’ branch (when ‘i >= rh’)...
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:303:21: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:319:22: branch_true: following ‘true’ branch (when ‘i < block’)...
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:319:22: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:320:25: branch_true: following ‘true’ branch (when ‘j < block’)...
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:321:29: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:321:29: danger: use of uninitialized value ‘ddst’ here
# 319| for (int i = rh; i < block; i++) {
# 320| for (int j = 0; j < block; j++) {
# 321|-> dst[j].re = ddst[j].re;
# 322| dst[j].im = ddst[j].im;
# 323| }
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:433:33: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘factor’
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:402:21: branch_true: following ‘true’ branch (when ‘i < block’)...
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:402:21: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:403:25: branch_true: following ‘true’ branch (when ‘j < block’)...
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:407:34: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:418:29: branch_true: following ‘true’ branch (when ‘z != 3’)...
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:419:29: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:433:33: danger: use of uninitialized value ‘factor’ here
# 431| }
# 432|
# 433|-> outbuffer[z].re *= factor;
# 434| outbuffer[z].im *= factor;
# 435| }
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:491:33: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘factor’
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:463:21: branch_true: following ‘true’ branch (when ‘i < block’)...
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:463:21: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:464:25: branch_true: following ‘true’ branch (when ‘j < block’)...
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:468:34: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:476:29: branch_true: following ‘true’ branch (when ‘z != 2’)...
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:477:29: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:491:33: danger: use of uninitialized value ‘factor’ here
# 489| }
# 490|
# 491|-> outbuffer[z].re *= factor;
# 492| outbuffer[z].im *= factor;
# 493| }
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:534:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘factor’
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:518:21: branch_true: following ‘true’ branch (when ‘i < block’)...
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:518:21: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:519:25: branch_true: following ‘true’ branch (when ‘j < block’)...
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:522:23: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/vf_fftdnoiz.c:534:29: danger: use of uninitialized value ‘factor’ here
# 532| }
# 533|
# 534|-> buff[j * 2 ] *= factor;
# 535| buff[j * 2 + 1] *= factor;
# 536| }
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavfilter/vf_find_rect.c:72:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘in’
ffmpeg-7.1.2/libavfilter/vf_find_rect.c:174:12: enter_function: entry to ‘filter_frame’
ffmpeg-7.1.2/libavfilter/vf_find_rect.c:185:15: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/vf_find_rect.c:186:64: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/vf_find_rect.c:185:15: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/vf_find_rect.c:186:64: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/vf_find_rect.c:186:34: call_function: calling ‘downscale’ from ‘filter_frame’
# 70| return NULL;
# 71|
# 72|-> frame->format = in->format;
# 73| frame->width = (in->width + 1) / 2;
# 74| frame->height = (in->height+ 1) / 2;
Error: GCC_ANALYZER_WARNING (CWE-674):
ffmpeg-7.1.2/libavfilter/vf_geq.c:215:29: warning[-Wanalyzer-infinite-recursion]: infinite recursion
ffmpeg-7.1.2/libavfilter/vf_geq.c:254:15: enter_function: entry to ‘alphasum’
ffmpeg-7.1.2/libavfilter/vf_geq.c:254:65: call_function: calling ‘getpix_integrate’ from ‘alphasum’
# 213| {
# 214| if (x > w - 1) {
# 215|-> double boundary = getpix_integrate_internal(geq, w - 1, y, plane, w, h);
# 216| return 2*boundary - getpix_integrate_internal(geq, 2*(w - 1) - x, y, plane, w, h);
# 217| } else if (y > h - 1) {
Error: GCC_ANALYZER_WARNING (CWE-674):
ffmpeg-7.1.2/libavfilter/vf_geq.c:218:29: warning[-Wanalyzer-infinite-recursion]: infinite recursion
ffmpeg-7.1.2/libavfilter/vf_geq.c:254:15: enter_function: entry to ‘alphasum’
ffmpeg-7.1.2/libavfilter/vf_geq.c:254:65: call_function: calling ‘getpix_integrate’ from ‘alphasum’
# 216| return 2*boundary - getpix_integrate_internal(geq, 2*(w - 1) - x, y, plane, w, h);
# 217| } else if (y > h - 1) {
# 218|-> double boundary = getpix_integrate_internal(geq, x, h - 1, plane, w, h);
# 219| return 2*boundary - getpix_integrate_internal(geq, x, 2*(h - 1) - y, plane, w, h);
# 220| } else if (x < 0) {
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/libavfilter/vf_libplacebo.c: scope_hint: In function ‘output_frame’
ffmpeg-7.1.2/libavfilter/vf_libplacebo.c:885:5: warning[-Wdeprecated-declarations]: ‘skip_target_clearing’ is deprecated
# 885 | opts->params.skip_target_clearing = false;
# | ^~~~
ffmpeg-7.1.2/libavfilter/vf_libplacebo.c:32: included_from: Included from here.
/usr/include/libplacebo/renderer.h:361:35: note: declared here
# 361 | PL_DEPRECATED_IN(v7.346) bool skip_target_clearing; // `border = PL_CLEAR_SKIP`
# | ^~~~~~~~~~~~~~~~~~~~
# 883|
# 884| /* Draw first frame opaque, others with blending */
# 885|-> opts->params.skip_target_clearing = false;
# 886| opts->params.blend_params = NULL;
# 887| for (int i = 0; i < s->nb_inputs; i++) {
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/libavfilter/vf_libplacebo.c:885:5: warning[-Wdeprecated-declarations]: ‘skip_target_clearing’ is deprecated
# 883|
# 884| /* Draw first frame opaque, others with blending */
# 885|-> opts->params.skip_target_clearing = false;
# 886| opts->params.blend_params = NULL;
# 887| for (int i = 0; i < s->nb_inputs; i++) {
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/libavfilter/vf_libplacebo.c:897:9: warning[-Wdeprecated-declarations]: ‘skip_target_clearing’ is deprecated
# 897 | opts->params.skip_target_clearing = true;
# | ^~~~
/usr/include/libplacebo/renderer.h:361:35: note: declared here
# 361 | PL_DEPRECATED_IN(v7.346) bool skip_target_clearing; // `border = PL_CLEAR_SKIP`
# | ^~~~~~~~~~~~~~~~~~~~
# 895| update_crops(ctx, in, &target, out->pts * av_q2d(outlink->time_base));
# 896| pl_render_image_mix(in->renderer, &in->mix, &target, &opts->params);
# 897|-> opts->params.skip_target_clearing = true;
# 898| opts->params.blend_params = &pl_alpha_overlay;
# 899| }
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/libavfilter/vf_libplacebo.c:897:9: warning[-Wdeprecated-declarations]: ‘skip_target_clearing’ is deprecated
# 895| update_crops(ctx, in, &target, out->pts * av_q2d(outlink->time_base));
# 896| pl_render_image_mix(in->renderer, &in->mix, &target, &opts->params);
# 897|-> opts->params.skip_target_clearing = true;
# 898| opts->params.blend_params = &pl_alpha_overlay;
# 899| }
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/vf_nnedi.c:373:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
ffmpeg-7.1.2/libavfilter/vf_nnedi.c:538:12: enter_function: entry to ‘filter_slice’
ffmpeg-7.1.2/libavfilter/vf_nnedi.c:551:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/vf_nnedi.c:552:19: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/vf_nnedi.c:634:25: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/vf_nnedi.c:635:17: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/vf_nnedi.c:640:13: call_function: calling ‘predictor’ from ‘filter_slice’
# 371| {
# 372| for (int i = 0; i < size; i++)
# 373|-> input[i] = softmax_exp(input[i]);
# 374| }
# 375|
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/vf_nnedi.c:382:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
ffmpeg-7.1.2/libavfilter/vf_nnedi.c:538:12: enter_function: entry to ‘filter_slice’
ffmpeg-7.1.2/libavfilter/vf_nnedi.c:551:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/vf_nnedi.c:552:19: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/vf_nnedi.c:634:25: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/vf_nnedi.c:635:17: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/vf_nnedi.c:640:13: call_function: calling ‘predictor’ from ‘filter_slice’
# 380|
# 381| for (int i = 0; i < n; i++) {
# 382|-> vsum += softmax[i] * elliott(el[i]);
# 383| wsum += softmax[i];
# 384| }
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavfilter/vf_pullup.c:512:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘f’
ffmpeg-7.1.2/libavfilter/vf_pullup.c:652:12: enter_function: entry to ‘filter_frame’
ffmpeg-7.1.2/libavfilter/vf_pullup.c:662:9: call_function: calling ‘pullup_get_buffer’ from ‘filter_frame’
ffmpeg-7.1.2/libavfilter/vf_pullup.c:662:9: return_function: returning to ‘filter_frame’ from ‘pullup_get_buffer’
ffmpeg-7.1.2/libavfilter/vf_pullup.c:663:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/vf_pullup.c:664:9: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/vf_pullup.c:666:9: call_function: calling ‘pullup_release_frame’ from ‘filter_frame’
# 510| int i;
# 511|
# 512|-> for (i = 0; i < f->length; i++)
# 513| pullup_release_buffer(f->ifields[i], f->parity ^ (i & 1));
# 514|
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/vf_scale.c:567:45: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘main_link’
ffmpeg-7.1.2/libavfilter/vf_scale.c:1062:12: enter_function: entry to ‘do_scale’
ffmpeg-7.1.2/libavfilter/vf_scale.c:1071:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/vf_scale.c:1074:9: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/vf_scale.c:1074:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/vf_scale.c:1080:9: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/vf_scale.c:1080:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/vf_scale.c:1117:23: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/vf_scale.c:1117:11: call_function: calling ‘scale_frame’ from ‘do_scale’
# 565|
# 566| if (scale2ref) {
# 567|-> scale->var_values[VAR_S2R_MAIN_W] = main_link->w;
# 568| scale->var_values[VAR_S2R_MAIN_H] = main_link->h;
# 569| scale->var_values[VAR_S2R_MAIN_A] = (double) main_link->w / main_link->h;
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/vf_scale_vulkan.c:148:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘sampler_mode’
ffmpeg-7.1.2/libavfilter/vf_scale_vulkan.c:141:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/vf_scale_vulkan.c:146:5: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/vf_scale_vulkan.c:147:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/vf_scale_vulkan.c:148:5: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/vf_scale_vulkan.c:148:5: danger: use of uninitialized value ‘sampler_mode’ here
# 146| ff_vk_qf_init(vkctx, &s->qf, VK_QUEUE_COMPUTE_BIT);
# 147| RET(ff_vk_exec_pool_init(vkctx, &s->qf, &s->e, s->qf.nb_queues*4, 0, 0, 0, NULL));
# 148|-> RET(ff_vk_init_sampler(vkctx, &s->sampler, 0, sampler_mode));
# 149| RET(ff_vk_shader_init(&s->pl, &s->shd, "scale_compute",
# 150| VK_SHADER_STAGE_COMPUTE_BIT, 0));
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/vf_signature.c:594:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘<unknown>’
ffmpeg-7.1.2/libavfilter/vf_signature.c:587:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/vf_signature.c:609:8: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/vf_signature.c:609:8: branch_true: following ‘true’ branch (when ‘lookup != 0’)...
ffmpeg-7.1.2/libavfilter/vf_signature.c:609:19: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/vf_signature.c:594:20: danger: use of uninitialized value ‘<unknown>’ here
# 592| /* return if unexpected error occurs in input stream */
# 593| if (ret < 0 && ret != AVERROR_EOF)
# 594|-> return ret;
# 595|
# 596| /* export signature at EOF */
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavfilter/vf_tpad.c:186:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.1.2/libavfilter/vf_tpad.c:94:14: release_memory: ‘frame’ is NULL
ffmpeg-7.1.2/libavfilter/vf_tpad.c:98:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/vf_tpad.c:100:10: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/vf_tpad.c:163:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/vf_tpad.c:164:14: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/vf_tpad.c:164:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/vf_tpad.c:168:13: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/vf_tpad.c:168:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/vf_tpad.c:175:19: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/vf_tpad.c:175:19: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavfilter/vf_tpad.c:175:19: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/vf_tpad.c:186:14: release_memory: ‘frame’ is NULL
ffmpeg-7.1.2/libavfilter/vf_tpad.c:186:9: danger: dereference of NULL ‘frame’
# 184| }
# 185| duration = av_rescale_q(1, av_inv_q(l->frame_rate), outlink->time_base);
# 186|-> frame->pts = s->pts;
# 187| frame->duration = duration;
# 188| s->pts += duration;
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavfilter/vf_unsharp.c:172:1: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘src2’
ffmpeg-7.1.2/libavfilter/vf_unsharp.c:172:1: branch_false: following ‘false’ branch (when ‘amount != 0’)...
ffmpeg-7.1.2/libavfilter/vf_unsharp.c:172:1: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/vf_unsharp.c:172:1: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/vf_unsharp.c:172:1: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/vf_unsharp.c:172:1: branch_false: following ‘false’ branch (when ‘y >= height’)...
ffmpeg-7.1.2/libavfilter/vf_unsharp.c:172:1: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/vf_unsharp.c:172:1: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/vf_unsharp.c:172:1: danger: dereference of NULL ‘src2’
# 170| return 0; \
# 171| }
# 172|-> DEF_UNSHARP_SLICE_FUNC(unsharp_slice, 16)
# 173| DEF_UNSHARP_SLICE_FUNC(unsharp_slice, 8)
# 174|
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavfilter/vf_unsharp.c:173:1: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘src2’
ffmpeg-7.1.2/libavfilter/vf_unsharp.c:173:1: branch_false: following ‘false’ branch (when ‘amount != 0’)...
ffmpeg-7.1.2/libavfilter/vf_unsharp.c:173:1: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/vf_unsharp.c:173:1: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/vf_unsharp.c:173:1: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/vf_unsharp.c:173:1: branch_false: following ‘false’ branch (when ‘y >= height’)...
ffmpeg-7.1.2/libavfilter/vf_unsharp.c:173:1: branch_false: ...to here
ffmpeg-7.1.2/libavfilter/vf_unsharp.c:173:1: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavfilter/vf_unsharp.c:173:1: danger: dereference of NULL ‘src2’
# 171| }
# 172| DEF_UNSHARP_SLICE_FUNC(unsharp_slice, 16)
# 173|-> DEF_UNSHARP_SLICE_FUNC(unsharp_slice, 8)
# 174|
# 175| static int apply_unsharp(AVFilterContext *ctx, AVFrame *in, AVFrame *out)
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavfilter/vf_vaguedenoiser.c:305:5: warning[-Wstringop-overflow=]: ‘memcpy’ specified bound between 18446744069414584320 and 18446744073709551604 exceeds maximum object size 9223372036854775807
# 303| }
# 304|
# 305|-> memcpy(temp + NPAD, input + NPAD + low_size, high_size * sizeof(float));
# 306|
# 307| left_ext = 2;
Error: GCC_ANALYZER_WARNING (CWE-404):
ffmpeg-7.1.2/libavfilter/vidstabutils.c:72:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
ffmpeg-7.1.2/libavfilter/vidstabutils.c:71:5: acquire_resource: ‘va_start’ called here
ffmpeg-7.1.2/libavfilter/vidstabutils.c:72:5: throw: if ‘av_vlog’ throws an exception...
ffmpeg-7.1.2/libavfilter/vidstabutils.c:72:5: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 70| ctx.class = &class;
# 71| va_start(ap, format);
# 72|-> av_vlog(&ctx, type, format, ap);
# 73| va_end(ap);
# 74| return VS_OK;
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/vsrc_gradients.c:248:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘od_s_q’
# 246|
# 247| // Normalize and clamp range.
# 248|-> return av_clipf(op_x_od / od_s_q, 0.f, 1.f);
# 249| }
# 250|
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavfilter/vsrc_gradients.c:248:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘op_x_od’
# 246|
# 247| // Normalize and clamp range.
# 248|-> return av_clipf(op_x_od / od_s_q, 0.f, 1.f);
# 249| }
# 250|
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavformat/asfdec_f.c: scope_hint: In function ‘get_tag’
ffmpeg-7.1.2/libavformat/asfdec_f.c:244:9: warning[-Wdeclaration-after-statement]: ISO C90 forbids mixed declarations and code
# 244 | int ret = ffio_read_size(s->pb, value, len);
# | ^~~
# 242| break;
# 243| case -1:; // ASCII
# 244|-> int ret = ffio_read_size(s->pb, value, len);
# 245| if (ret < 0)
# 246| goto finish;
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavformat/asfdec_f.c:946:52: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘d’
ffmpeg-7.1.2/libavformat/asfdec_f.c:891:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/asfdec_f.c:932:13: branch_false: ...to here
ffmpeg-7.1.2/libavformat/asfdec_f.c:933:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/asfdec_f.c:935:18: branch_true: ...to here
ffmpeg-7.1.2/libavformat/asfdec_f.c:935:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/asfdec_f.c:942:16: branch_false: ...to here
ffmpeg-7.1.2/libavformat/asfdec_f.c:945:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/asfdec_f.c:946:39: branch_true: ...to here
ffmpeg-7.1.2/libavformat/asfdec_f.c:946:52: danger: use of uninitialized value ‘d’ here
# 944|
# 945| if (!asf->uses_std_ecc)
# 946|-> asf->uses_std_ecc = (c == 0x82 && !d && !e) ? 1 : -1;
# 947|
# 948| c = avio_r8(pb);
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/libavformat/avformat.c: scope_hint: In function ‘match_stream_specifier’
ffmpeg-7.1.2/libavformat/avformat.c:638:21: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 638 | val = strchr(spec, ':');
# | ^
# 636| if (match) {
# 637| spec += 2;
# 638|-> val = strchr(spec, ':');
# 639|
# 640| key = val ? av_strndup(spec, val - spec) : av_strdup(spec);
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/libavformat/avformat.c:638:21: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 636| if (match) {
# 637| spec += 2;
# 638|-> val = strchr(spec, ':');
# 639|
# 640| key = val ? av_strndup(spec, val - spec) : av_strdup(spec);
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavformat/avidec.c: scope_hint: In function ‘read_gab2_sub’
ffmpeg-7.1.2/libavformat/avidec.c:1129:9: warning[-Wdeclaration-after-statement]: ISO C90 forbids mixed declarations and code
# 1129 | AVIOContext *pb = avio_alloc_context(pkt->data + 7,
# | ^~~~~~~~~~~
# 1127| return 0;
# 1128|
# 1129|-> AVIOContext *pb = avio_alloc_context(pkt->data + 7,
# 1130| pkt->size - 7,
# 1131| 0, NULL, NULL, NULL, NULL);
Error: CPPCHECK_WARNING (CWE-457):
ffmpeg-7.1.2/libavformat/concat.c:158: warning[uninitvar]: Uninitialized variable: result
# 156| }
# 157| data->current = i;
# 158|-> return total ? total : result;
# 159| }
# 160|
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavformat/crypto.c:317:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘res’
ffmpeg-7.1.2/libavformat/crypto.c:238:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/crypto.c:246:5: branch_false: ...to here
ffmpeg-7.1.2/libavformat/crypto.c:293:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/crypto.c:301:15: branch_false: ...to here
ffmpeg-7.1.2/libavformat/crypto.c:301:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/crypto.c:303:19: branch_true: ...to here
ffmpeg-7.1.2/libavformat/crypto.c:306:16: branch_false: following ‘false’ branch (when ‘len <= 0’)...
ffmpeg-7.1.2/libavformat/crypto.c:315:12: branch_false: ...to here
ffmpeg-7.1.2/libavformat/crypto.c:315:12: branch_true: following ‘true’ branch (when ‘len != 0’)...
ffmpeg-7.1.2/libavformat/crypto.c:316:18: branch_true: ...to here
ffmpeg-7.1.2/libavformat/crypto.c:317:13: danger: use of uninitialized value ‘res’ here
# 315| if (len != 0) {
# 316| char errbuf[100] = "unknown error";
# 317|-> av_strerror(res, errbuf, sizeof(errbuf));
# 318| av_log(h, AV_LOG_ERROR,
# 319| "Crypto: discard read did not get all the bytes (%d remain) - read returned (%d)-%s\n",
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavformat/dashenc.c: scope_hint: In function ‘write_hls_media_playlist’
ffmpeg-7.1.2/libavformat/dashenc.c:488:49: warning[-Wformat-truncation=]: ‘media_’ directive output may be truncated writing 6 bytes into a region of size between 1 and 1024
# 488 | snprintf(playlist_name, string_size, "%smedia_%d.m3u8", base_url, id);
# | ^~~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 13 and 1046 bytes into a destination of size 1024
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 486| const char *base_url, int id) {
# 487| if (base_url)
# 488|-> snprintf(playlist_name, string_size, "%smedia_%d.m3u8", base_url, id);
# 489| else
# 490| snprintf(playlist_name, string_size, "media_%d.m3u8", id);
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavformat/dashenc.c: scope_hint: In function ‘flush_init_segment’
ffmpeg-7.1.2/libavformat/dashenc.c:594:49: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size between 1 and 1024
# 594 | snprintf(filename, sizeof(filename), "%s%s", c->dirname, os->initfile);
# | ^~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 1 and 2047 bytes into a destination of size 1024
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 592| if (!c->single_file) {
# 593| char filename[1024];
# 594|-> snprintf(filename, sizeof(filename), "%s%s", c->dirname, os->initfile);
# 595| dashenc_io_close(s, &os->out, filename);
# 596| }
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavformat/dashenc.c: scope_hint: In function ‘dash_init’
ffmpeg-7.1.2/libavformat/dashenc.c:1577:65: warning[-Wformat-truncation=]: ‘-stream’ directive output may be truncated writing 7 bytes into a region of size between 1 and 1024
# 1577 | snprintf(os->initfile, sizeof(os->initfile), "%s-stream%d.%s", basename, i, os->format_name);
# | ^~~~~~~
ffmpeg-7.1.2/libavformat/dashenc.c:1577:62: note: directive argument in the range [0, 2147483647]
# 1577 | snprintf(os->initfile, sizeof(os->initfile), "%s-stream%d.%s", basename, i, os->format_name);
# | ^~~~~~~~~~~~~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output 10 or more bytes (assuming 1042) into a destination of size 1024
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 1575| ff_dash_fill_tmpl_params(os->initfile, sizeof(os->initfile), os->single_file_name, i, 0, os->bit_rate, 0);
# 1576| else
# 1577|-> snprintf(os->initfile, sizeof(os->initfile), "%s-stream%d.%s", basename, i, os->format_name);
# 1578| } else {
# 1579| ff_dash_fill_tmpl_params(os->initfile, sizeof(os->initfile), os->init_seg_name, i, 0, os->bit_rate, 0);
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavformat/dashenc.c: scope_hint: In function ‘dash_flush’
ffmpeg-7.1.2/libavformat/dashenc.c:1957:63: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size between 1 and 1024
# 1957 | snprintf(os->full_path, sizeof(os->full_path), "%s%s", c->dirname, os->initfile);
# | ^~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 1 and 2047 bytes into a destination of size 1024
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 1955|
# 1956| if (c->single_file)
# 1957|-> snprintf(os->full_path, sizeof(os->full_path), "%s%s", c->dirname, os->initfile);
# 1958|
# 1959| ret = flush_dynbuf(c, os, &range_length);
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavformat/dashenc.c: scope_hint: In function ‘dash_write_packet’
ffmpeg-7.1.2/libavformat/dashenc.c:2254:59: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size between 1 and 1024
# 2254 | snprintf(os->full_path, sizeof(os->full_path), "%s%s", c->dirname,
# | ^~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 1 and 2047 bytes into a destination of size 1024
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 2252| os->media_seg_name, pkt->stream_index,
# 2253| os->segment_index, os->bit_rate, os->start_pts);
# 2254|-> snprintf(os->full_path, sizeof(os->full_path), "%s%s", c->dirname,
# 2255| os->filename);
# 2256| snprintf(os->temp_path, sizeof(os->temp_path),
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavformat/demux.c:446:45: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pkt’
ffmpeg-7.1.2/libavformat/demux.c:1824:13: enter_function: entry to ‘estimate_timings_from_pts’
ffmpeg-7.1.2/libavformat/demux.c:1855:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/demux.c:1860:5: branch_false: ...to here
ffmpeg-7.1.2/libavformat/demux.c:1875:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/demux.c:1875:16: branch_false: ...to here
ffmpeg-7.1.2/libavformat/demux.c:1879:23: call_function: calling ‘ff_read_packet’ from ‘estimate_timings_from_pts’
# 444| || sti->probe_packets <= 0;
# 445|
# 446|-> if (end || av_log2(pd->buf_size) != av_log2(pd->buf_size - pkt->size)) {
# 447| int score = set_codec_from_probe_data(s, st, pd);
# 448| if ( (st->codecpar->codec_id != AV_CODEC_ID_NONE && score > AVPROBE_SCORE_STREAM_RETRY)
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavformat/dtshddec.c:138:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘data_start’
ffmpeg-7.1.2/libavformat/dtshddec.c:66:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/dtshddec.c:68:5: branch_false: ...to here
ffmpeg-7.1.2/libavformat/dtshddec.c:135:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/dtshddec.c:138:5: branch_false: ...to here
ffmpeg-7.1.2/libavformat/dtshddec.c:138:5: danger: use of uninitialized value ‘data_start’ here
# 136| return AVERROR_EOF;
# 137|
# 138|-> avio_seek(pb, data_start, SEEK_SET);
# 139|
# 140| break_loop:
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavformat/electronicarts.c:672:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘num_samples’
ffmpeg-7.1.2/libavformat/electronicarts.c:600:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/electronicarts.c:601:22: branch_true: ...to here
ffmpeg-7.1.2/libavformat/electronicarts.c:602:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/electronicarts.c:604:22: branch_false: ...to here
ffmpeg-7.1.2/libavformat/electronicarts.c:605:12: branch_false: following ‘false’ branch (when ‘chunk_size > 7’)...
ffmpeg-7.1.2/libavformat/electronicarts.c:607:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/electronicarts.c:621:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/electronicarts.c:624:24: branch_false: ...to here
ffmpeg-7.1.2/libavformat/electronicarts.c:624:23: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/electronicarts.c:631:23: branch_false: ...to here
ffmpeg-7.1.2/libavformat/electronicarts.c:638:16: branch_false: following ‘false’ branch (when ‘partial_packet == 0’)...
ffmpeg-7.1.2/libavformat/electronicarts.c:644:16: branch_false: ...to here
ffmpeg-7.1.2/libavformat/electronicarts.c:644:16: branch_false: following ‘false’ branch (when ‘chunk_size != 0’)...
ffmpeg-7.1.2/libavformat/electronicarts.c:647:19: branch_false: ...to here
ffmpeg-7.1.2/libavformat/electronicarts.c:648:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/electronicarts.c:650:33: branch_false: ...to here
ffmpeg-7.1.2/libavformat/electronicarts.c:672:17: danger: use of uninitialized value ‘num_samples’ here
# 670| case AV_CODEC_ID_PCM_S16LE_PLANAR:
# 671| case AV_CODEC_ID_MP3:
# 672|-> pkt->duration = num_samples;
# 673| break;
# 674| case AV_CODEC_ID_ADPCM_PSX:
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/libavformat/file.c:330:8: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(*h.filename)’
ffmpeg-7.1.2/libavformat/file.c:329:14: acquire_memory: allocated here
ffmpeg-7.1.2/libavformat/file.c:330:8: danger: ‘opendir(*h.filename)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 328|
# 329| c->dir = opendir(h->filename);
# 330|-> if (!c->dir)
# 331| return AVERROR(errno);
# 332|
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavformat/flacenc.c:243:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘par’
ffmpeg-7.1.2/libavformat/flacenc.c:210:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/flacenc.c:211:24: branch_true: ...to here
ffmpeg-7.1.2/libavformat/flacenc.c:212:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/flacenc.c:220:19: branch_false: ...to here
ffmpeg-7.1.2/libavformat/flacenc.c:220:19: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/flacenc.c:221:19: branch_true: ...to here
ffmpeg-7.1.2/libavformat/flacenc.c:237:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/flacenc.c:243:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/flacenc.c:243:9: danger: use of uninitialized value ‘par’ here
# 241|
# 242| /* add the channel layout tag */
# 243|-> if (par->ch_layout.order == AV_CHANNEL_ORDER_NATIVE &&
# 244| !(par->ch_layout.u.mask & ~0x3ffffULL) &&
# 245| !ff_flac_is_native_layout(par->ch_layout.u.mask)) {
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/libavformat/format.c: scope_hint: In function ‘av_probe_input_buffer2’
ffmpeg-7.1.2/libavformat/format.c:278:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 278 | semi = pd.mime_type ? strchr(pd.mime_type, ';') : NULL;
# | ^
# 276| av_opt_get(pb, "mime_type", AV_OPT_SEARCH_CHILDREN, &mime_type_opt);
# 277| pd.mime_type = (const char *)mime_type_opt;
# 278|-> semi = pd.mime_type ? strchr(pd.mime_type, ';') : NULL;
# 279| if (semi) {
# 280| *semi = '\0';
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/libavformat/format.c:278:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 276| av_opt_get(pb, "mime_type", AV_OPT_SEARCH_CHILDREN, &mime_type_opt);
# 277| pd.mime_type = (const char *)mime_type_opt;
# 278|-> semi = pd.mime_type ? strchr(pd.mime_type, ';') : NULL;
# 279| if (semi) {
# 280| *semi = '\0';
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/libavformat/http.c: scope_hint: In function ‘parse_cookie’
ffmpeg-7.1.2/libavformat/http.c:1043:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 1043 | if (!(eql = strchr(p, '='))) return AVERROR(EINVAL);
# | ^
# 1041|
# 1042| // duplicate the cookie name (dict will dupe the value)
# 1043|-> if (!(eql = strchr(p, '='))) return AVERROR(EINVAL);
# 1044| if (!(name = av_strndup(p, eql - p))) return AVERROR(ENOMEM);
# 1045|
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/libavformat/http.c:1043:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 1041|
# 1042| // duplicate the cookie name (dict will dupe the value)
# 1043|-> if (!(eql = strchr(p, '='))) return AVERROR(EINVAL);
# 1044| if (!(name = av_strndup(p, eql - p))) return AVERROR(ENOMEM);
# 1045|
Error: GCC_ANALYZER_WARNING (CWE-404):
ffmpeg-7.1.2/libavformat/httpauth.c:131:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
ffmpeg-7.1.2/libavformat/httpauth.c:126:5: acquire_resource: ‘va_start’ called here
ffmpeg-7.1.2/libavformat/httpauth.c:129:12: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
ffmpeg-7.1.2/libavformat/httpauth.c:131:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/httpauth.c:131:9: throw: if ‘av_md5_update’ throws an exception...
ffmpeg-7.1.2/libavformat/httpauth.c:131:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 129| if (!str)
# 130| break;
# 131|-> av_md5_update(md5ctx, str, strlen(str));
# 132| }
# 133| va_end(vl);
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavformat/iamf_writer.c:606:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘param_def’
ffmpeg-7.1.2/libavformat/iamf_writer.c:746:12: enter_function: entry to ‘iamf_write_mixing_presentation’
ffmpeg-7.1.2/libavformat/iamf_writer.c:759:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/iamf_writer.c:762:28: branch_false: ...to here
ffmpeg-7.1.2/libavformat/iamf_writer.c:771:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/iamf_writer.c:772:39: branch_true: ...to here
ffmpeg-7.1.2/libavformat/iamf_writer.c:776:25: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/iamf_writer.c:812:56: branch_false: ...to here
ffmpeg-7.1.2/libavformat/iamf_writer.c:813:15: call_function: calling ‘param_definition’ from ‘iamf_write_mixing_presentation’
# 604| AVIOContext *dyn_bc, void *log_ctx)
# 605| {
# 606|-> const AVIAMFParamDefinition *param = param_def->param;
# 607|
# 608| ffio_write_leb(dyn_bc, param->parameter_id);
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavformat/iff.c:888:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘data_size’
ffmpeg-7.1.2/libavformat/iff.c:848:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/iff.c:850:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/iff.c:853:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/iff.c:863:15: branch_false: ...to here
ffmpeg-7.1.2/libavformat/iff.c:863:15: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/iff.c:868:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/iff.c:888:15: branch_false: ...to here
ffmpeg-7.1.2/libavformat/iff.c:888:15: danger: use of uninitialized value ‘data_size’ here
# 886| }
# 887| }
# 888|-> ret = av_get_packet(pb, pkt, data_size);
# 889| pkt->pos = orig_pos;
# 890| pkt->duration = get_anim_duration(pkt->data, pkt->size);
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavformat/img2enc.c: scope_hint: In function ‘write_packet’
ffmpeg-7.1.2/libavformat/img2enc.c:183:55: warning[-Wformat-truncation=]: ‘.tmp’ directive output may be truncated writing 4 bytes into a region of size between 1 and 1024
# 183 | snprintf(img->tmp[i], sizeof(img->tmp[i]), "%s.tmp", filename);
# | ^~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 5 and 1028 bytes into a destination of size 1024
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 181| for (i = 0; i < 4; i++) {
# 182| av_dict_copy(&options, img->protocol_opts, 0);
# 183|-> snprintf(img->tmp[i], sizeof(img->tmp[i]), "%s.tmp", filename);
# 184| av_strlcpy(img->target[i], filename, sizeof(img->target[i]));
# 185| if (s->io_open(s, &pb[i], img->use_rename ? img->tmp[i] : filename, AVIO_FLAG_WRITE, &options) < 0) {
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavformat/ipmovie.c:145:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pkt’
ffmpeg-7.1.2/libavformat/ipmovie.c:606:12: enter_function: entry to ‘ipmovie_read_header’
ffmpeg-7.1.2/libavformat/ipmovie.c:617:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/ipmovie.c:617:8: branch_false: ...to here
ffmpeg-7.1.2/libavformat/ipmovie.c:629:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
ffmpeg-7.1.2/libavformat/ipmovie.c:630:9: branch_true: ...to here
ffmpeg-7.1.2/libavformat/ipmovie.c:633:9: call_function: calling ‘process_ipmovie_chunk’ from ‘ipmovie_read_header’
# 143| return CHUNK_EOF;
# 144|
# 145|-> pkt->stream_index = s->audio_stream_index;
# 146| pkt->pts = s->audio_frame_count;
# 147|
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavformat/ipmovie.c:184:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pkt’
ffmpeg-7.1.2/libavformat/ipmovie.c:606:12: enter_function: entry to ‘ipmovie_read_header’
ffmpeg-7.1.2/libavformat/ipmovie.c:617:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/ipmovie.c:617:8: branch_false: ...to here
ffmpeg-7.1.2/libavformat/ipmovie.c:629:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
ffmpeg-7.1.2/libavformat/ipmovie.c:630:9: branch_true: ...to here
ffmpeg-7.1.2/libavformat/ipmovie.c:633:9: call_function: calling ‘process_ipmovie_chunk’ from ‘ipmovie_read_header’
# 182| }
# 183|
# 184|-> AV_WL8(pkt->data, s->frame_format);
# 185| AV_WL8(pkt->data + 1, s->send_buffer);
# 186| AV_WL16(pkt->data + 2, s->video_chunk_size);
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavformat/libopenmpt.c: scope_hint: In function ‘read_packet_openmpt’
ffmpeg-7.1.2/libavformat/libopenmpt.c:175:5: warning[-Wdeclaration-after-statement]: ISO C90 forbids mixed declarations and code
# 175 | double pos = openmpt_module_get_position_seconds(openmpt->module);
# | ^~~~~~
# 173| return ret;
# 174|
# 175|-> double pos = openmpt_module_get_position_seconds(openmpt->module);
# 176|
# 177| switch (openmpt->ch_layout.nb_channels) {
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/libavformat/libsmbclient.c: scope_hint: In function ‘libsmbc_connect’
ffmpeg-7.1.2/libavformat/libsmbclient.c:72:5: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
# 72 | if (smbc_init(NULL, 0) < 0) {
# | ^~
ffmpeg-7.1.2/libavformat/libsmbclient.c:21: included_from: Included from here.
/usr/include/samba-4.0/libsmbclient.h:1301:5: note: declared here
# 1301 | int smbc_init(smbc_get_auth_data_fn fn, int debug);
# | ^~~~~~~~~
# 70| smbc_setWorkgroup(libsmbc->ctx, libsmbc->workgroup);
# 71|
# 72|-> if (smbc_init(NULL, 0) < 0) {
# 73| int ret = AVERROR(errno);
# 74| av_log(h, AV_LOG_ERROR, "Initialization failed: %s\n", strerror(errno));
Error: COMPILER_WARNING (CWE-477):
ffmpeg-7.1.2/libavformat/libsmbclient.c:72:5: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
# 70| smbc_setWorkgroup(libsmbc->ctx, libsmbc->workgroup);
# 71|
# 72|-> if (smbc_init(NULL, 0) < 0) {
# 73| int ret = AVERROR(errno);
# 74| av_log(h, AV_LOG_ERROR, "Initialization failed: %s\n", strerror(errno));
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavformat/lrcdec.c: scope_hint: In function ‘read_ts’
ffmpeg-7.1.2/libavformat/lrcdec.c:91:5: warning[-Wdeclaration-after-statement]: ISO C90 forbids mixed declarations and code
# 91 | int ret = sscanf(p, "%2[[-]%"SCNu32":%lf]", prefix, &mm, &ss);
# | ^~~
# 89| return 0;
# 90| }
# 91|-> int ret = sscanf(p, "%2[[-]%"SCNu32":%lf]", prefix, &mm, &ss);
# 92| if (ret != 3 || prefix[0] != '[' || ss < 0 || ss > 60) {
# 93| return 0;
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavformat/matroskaenc.c: scope_hint: In function ‘mkv_write_trailer’
ffmpeg-7.1.2/libavformat/matroskaenc.c:3341:79: warning[-Wformat-truncation=]: ‘%012.9f’ directive output may be truncated writing between 12 and 320 bytes into a region of size between 8 and 14
# 3341 | snprintf(duration_string, sizeof(duration_string), "%02d:%02d:%012.9f",
# | ^~~~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 19 and 333 bytes into a destination of size 20
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 3339| put_ebml_string(tags_bc, MATROSKA_ID_TAGNAME, "DURATION");
# 3340|
# 3341|-> snprintf(duration_string, sizeof(duration_string), "%02d:%02d:%012.9f",
# 3342| (int) duration_sec / 3600, ((int) duration_sec / 60) % 60,
# 3343| fmod(duration_sec, 60));
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavformat/moflex.c:232:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘codec_type’
ffmpeg-7.1.2/libavformat/moflex.c:156:12: enter_function: entry to ‘moflex_read_sync’
ffmpeg-7.1.2/libavformat/moflex.c:161:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/moflex.c:168:5: branch_false: ...to here
ffmpeg-7.1.2/libavformat/moflex.c:172:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/moflex.c:178:9: branch_true: ...to here
ffmpeg-7.1.2/libavformat/moflex.c:178:9: call_function: calling ‘read_var_byte’ from ‘moflex_read_sync’
ffmpeg-7.1.2/libavformat/moflex.c:178:9: return_function: returning to ‘moflex_read_sync’ from ‘read_var_byte’
ffmpeg-7.1.2/libavformat/moflex.c:179:9: call_function: calling ‘read_var_byte’ from ‘moflex_read_sync’
ffmpeg-7.1.2/libavformat/moflex.c:179:9: return_function: returning to ‘moflex_read_sync’ from ‘read_var_byte’
ffmpeg-7.1.2/libavformat/moflex.c:226:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/moflex.c:227:28: branch_true: ...to here
ffmpeg-7.1.2/libavformat/moflex.c:229:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/moflex.c:232:13: branch_false: ...to here
ffmpeg-7.1.2/libavformat/moflex.c:232:13: danger: use of uninitialized value ‘codec_type’ here
# 230| return AVERROR(ENOMEM);
# 231|
# 232|-> st->codecpar->codec_type = codec_type;
# 233| st->codecpar->codec_id = codec_id;
# 234| st->codecpar->width = width;
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavformat/mov.c:1693:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘frag_time’
ffmpeg-7.1.2/libavformat/mov.c:10790:12: enter_function: entry to ‘mov_seek_fragment’
ffmpeg-7.1.2/libavformat/mov.c:10795:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mov.c:10798:13: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:10798:13: call_function: calling ‘search_frag_timestamp’ from ‘mov_seek_fragment’
# 1691| m++;
# 1692|
# 1693|-> if (m < b && frag_time <= timestamp)
# 1694| a = m;
# 1695| else
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavformat/mov.c:5900:43: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dts’
ffmpeg-7.1.2/libavformat/mov.c:5650:12: enter_function: entry to ‘mov_read_trun’
ffmpeg-7.1.2/libavformat/mov.c:5669:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mov.c:5669:8: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:5674:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/mov.c:5675:14: branch_true: ...to here
ffmpeg-7.1.2/libavformat/mov.c:5682:8: branch_false: following ‘false’ branch (when ‘st’ is non-NULL)...
ffmpeg-7.1.2/libavformat/mov.c:5686:5: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:5705:5: branch_false: following ‘false’ branch (when ‘index_entry_pos <= index_entry_pos’)...
ffmpeg-7.1.2/libavformat/mov.c:5707:5: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:5712:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mov.c:5712:8: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:5717:24: call_function: calling ‘get_current_frag_stream_info’ from ‘mov_read_trun’
ffmpeg-7.1.2/libavformat/mov.c:5717:24: return_function: returning to ‘mov_read_trun’ from ‘get_current_frag_stream_info’
ffmpeg-7.1.2/libavformat/mov.c:5718:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/mov.c:5719:13: branch_true: ...to here
ffmpeg-7.1.2/libavformat/mov.c:5719:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mov.c:5721:20: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:5721:19: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/mov.c:5722:13: branch_true: ...to here
ffmpeg-7.1.2/libavformat/mov.c:5721:20: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/mov.c:5724:20: branch_true: ...to here
ffmpeg-7.1.2/libavformat/mov.c:5774:8: branch_false: following ‘false’ branch (when ‘entries != 0’)...
ffmpeg-7.1.2/libavformat/mov.c:5777:23: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:5781:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mov.c:5783:5: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:5789:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mov.c:5791:5: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:5899:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/mov.c:5900:49: branch_true: ...to here
ffmpeg-7.1.2/libavformat/mov.c:5900:43: danger: use of uninitialized value ‘dts’ here
# 5898| }
# 5899| if (frag_stream_info)
# 5900|-> frag_stream_info->next_trun_dts = dts + sc->time_offset;
# 5901| if (i < entries) {
# 5902| // EOF found before reading all entries. Fix the hole this would
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavformat/mov.c:7233:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘st’
ffmpeg-7.1.2/libavformat/mov.c:7216:12: enter_function: entry to ‘get_current_encryption_info’
ffmpeg-7.1.2/libavformat/mov.c:7222:24: call_function: calling ‘get_current_frag_stream_info’ from ‘get_current_encryption_info’
ffmpeg-7.1.2/libavformat/mov.c:7222:24: return_function: returning to ‘get_current_encryption_info’ from ‘get_current_frag_stream_info’
ffmpeg-7.1.2/libavformat/mov.c:7223:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/mov.c:7223:8: branch_true: ...to here
ffmpeg-7.1.2/libavformat/mov.c:7231:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mov.c:7233:15: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:7233:15: danger: use of uninitialized value ‘st’ here
# 7231| if (i == c->fc->nb_streams)
# 7232| return 0;
# 7233|-> *sc = st->priv_data;
# 7234|
# 7235| if (!frag_stream_info->encryption_index) {
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavformat/mov.c:7286:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*sample’
ffmpeg-7.1.2/libavformat/mov.c:7273:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mov.c:7278:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mov.c:7278:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mov.c:7283:9: release_memory: ‘*sample’ is NULL
ffmpeg-7.1.2/libavformat/mov.c:7285:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/mov.c:7286:20: branch_true: ...to here
ffmpeg-7.1.2/libavformat/mov.c:7286:39: release_memory: ‘*sample’ is NULL
ffmpeg-7.1.2/libavformat/mov.c:7286:39: danger: dereference of NULL ‘*sample’
# 7284|
# 7285| if (sc->cenc.per_sample_iv_size != 0) {
# 7286|-> if ((ret = ffio_read_size(pb, (*sample)->iv, sc->cenc.per_sample_iv_size)) < 0) {
# 7287| av_log(c->fc, AV_LOG_ERROR, "failed to read the initialization vector\n");
# 7288| av_encryption_info_free(*sample);
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/libavformat/mpegts.c:736:13: warning[-Wanalyzer-malloc-leak]: leak of ‘cd’
ffmpeg-7.1.2/libavformat/mpegts.c:2684:13: enter_function: entry to ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2698:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mpegts.c:2700:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mpegts.c:2700:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mpegts.c:2702:10: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mpegts.c:2702:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mpegts.c:2704:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mpegts.c:2704:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mpegts.c:2706:9: call_function: inlined call to ‘skip_identical’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2709:12: call_function: inlined call to ‘get16’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2712:11: call_function: inlined call to ‘get8’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2716:15: call_function: inlined call to ‘get16’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2719:15: call_function: inlined call to ‘get8’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2722:25: call_function: inlined call to ‘get16’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2727:12: branch_false: following ‘false’ branch (when ‘p_end >= desc_list_end’)...
ffmpeg-7.1.2/libavformat/mpegts.c:2727:12: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mpegts.c:2746:33: call_function: calling ‘getstr8’ from ‘sdt_cb’
# 734| }
# 735| if (cd == (iconv_t)-1)
# 736|-> goto no_iconv;
# 737| str = out = av_malloc(outlen);
# 738| if (!str) {
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/libavformat/mpegts.c:737:21: warning[-Wanalyzer-malloc-leak]: leak of ‘cd’
ffmpeg-7.1.2/libavformat/mpegts.c:2684:13: enter_function: entry to ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2698:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mpegts.c:2700:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mpegts.c:2700:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mpegts.c:2702:10: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mpegts.c:2702:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mpegts.c:2704:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mpegts.c:2704:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mpegts.c:2706:9: call_function: inlined call to ‘skip_identical’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2709:12: call_function: inlined call to ‘get16’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2712:11: call_function: inlined call to ‘get8’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2716:15: call_function: inlined call to ‘get16’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2719:15: call_function: inlined call to ‘get8’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2722:25: call_function: inlined call to ‘get16’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2727:12: branch_false: following ‘false’ branch (when ‘p_end >= desc_list_end’)...
ffmpeg-7.1.2/libavformat/mpegts.c:2727:12: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mpegts.c:2746:33: call_function: calling ‘getstr8’ from ‘sdt_cb’
# 735| if (cd == (iconv_t)-1)
# 736| goto no_iconv;
# 737|-> str = out = av_malloc(outlen);
# 738| if (!str) {
# 739| iconv_close(cd);
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/libavformat/mpegts.c:739:13: warning[-Wanalyzer-malloc-leak]: leak of ‘cd’
ffmpeg-7.1.2/libavformat/mpegts.c:2684:13: enter_function: entry to ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2698:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mpegts.c:2700:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mpegts.c:2700:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mpegts.c:2702:10: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mpegts.c:2702:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mpegts.c:2704:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mpegts.c:2704:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mpegts.c:2706:9: call_function: inlined call to ‘skip_identical’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2709:12: call_function: inlined call to ‘get16’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2712:11: call_function: inlined call to ‘get8’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2716:15: call_function: inlined call to ‘get16’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2719:15: call_function: inlined call to ‘get8’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2722:25: call_function: inlined call to ‘get16’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2727:12: branch_false: following ‘false’ branch (when ‘p_end >= desc_list_end’)...
ffmpeg-7.1.2/libavformat/mpegts.c:2727:12: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mpegts.c:2746:33: call_function: calling ‘getstr8’ from ‘sdt_cb’
# 737| str = out = av_malloc(outlen);
# 738| if (!str) {
# 739|-> iconv_close(cd);
# 740| return NULL;
# 741| }
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/libavformat/mpegts.c:742:13: warning[-Wanalyzer-malloc-leak]: leak of ‘cd’
ffmpeg-7.1.2/libavformat/mpegts.c:2684:13: enter_function: entry to ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2698:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mpegts.c:2700:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mpegts.c:2700:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mpegts.c:2702:10: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mpegts.c:2702:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mpegts.c:2704:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mpegts.c:2704:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mpegts.c:2706:9: call_function: inlined call to ‘skip_identical’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2709:12: call_function: inlined call to ‘get16’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2712:11: call_function: inlined call to ‘get8’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2716:15: call_function: inlined call to ‘get16’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2719:15: call_function: inlined call to ‘get8’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2722:25: call_function: inlined call to ‘get16’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2727:12: branch_false: following ‘false’ branch (when ‘p_end >= desc_list_end’)...
ffmpeg-7.1.2/libavformat/mpegts.c:2727:12: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mpegts.c:2746:33: call_function: calling ‘getstr8’ from ‘sdt_cb’
# 740| return NULL;
# 741| }
# 742|-> if (iconv(cd, &in, &inlen, &out, &outlen) == -1) {
# 743| iconv_close(cd);
# 744| av_freep(&str);
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/libavformat/mpegts.c:754:11: warning[-Wanalyzer-malloc-leak]: leak of ‘cd’
ffmpeg-7.1.2/libavformat/mpegts.c:2684:13: enter_function: entry to ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2698:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mpegts.c:2700:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mpegts.c:2700:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mpegts.c:2702:10: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mpegts.c:2702:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mpegts.c:2704:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mpegts.c:2704:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mpegts.c:2706:9: call_function: inlined call to ‘skip_identical’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2709:12: call_function: inlined call to ‘get16’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2712:11: call_function: inlined call to ‘get8’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2716:15: call_function: inlined call to ‘get16’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2719:15: call_function: inlined call to ‘get8’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2722:25: call_function: inlined call to ‘get16’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2727:12: branch_false: following ‘false’ branch (when ‘p_end >= desc_list_end’)...
ffmpeg-7.1.2/libavformat/mpegts.c:2727:12: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mpegts.c:2746:33: call_function: calling ‘getstr8’ from ‘sdt_cb’
# 752| no_iconv:
# 753| #endif
# 754|-> str = av_malloc(len + 1);
# 755| if (!str)
# 756| return NULL;
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/libavformat/mpegts.c:761:12: warning[-Wanalyzer-malloc-leak]: leak of ‘cd’
ffmpeg-7.1.2/libavformat/mpegts.c:2684:13: enter_function: entry to ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2698:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mpegts.c:2700:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mpegts.c:2700:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mpegts.c:2702:10: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mpegts.c:2702:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mpegts.c:2704:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mpegts.c:2704:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/mpegts.c:2706:9: call_function: inlined call to ‘skip_identical’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2709:12: call_function: inlined call to ‘get16’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2712:11: call_function: inlined call to ‘get8’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2716:15: call_function: inlined call to ‘get16’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2719:15: call_function: inlined call to ‘get8’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2722:25: call_function: inlined call to ‘get16’ from ‘sdt_cb’
ffmpeg-7.1.2/libavformat/mpegts.c:2727:12: branch_false: following ‘false’ branch (when ‘p_end >= desc_list_end’)...
ffmpeg-7.1.2/libavformat/mpegts.c:2727:12: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mpegts.c:2746:33: call_function: calling ‘getstr8’ from ‘sdt_cb’
# 759| p += len;
# 760| *pp = p;
# 761|-> return str;
# 762| }
# 763|
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavformat/mpegtsenc.c:229:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘buf’
ffmpeg-7.1.2/libavformat/mpegtsenc.c:2259:12: enter_function: entry to ‘mpegts_write_packet’
ffmpeg-7.1.2/libavformat/mpegtsenc.c:2261:8: branch_false: following ‘false’ branch (when ‘pkt’ is non-NULL)...
ffmpeg-7.1.2/libavformat/mpegtsenc.c:2265:16: branch_false: ...to here
ffmpeg-7.1.2/libavformat/mpegtsenc.c:2265:16: call_function: calling ‘mpegts_write_packet_internal’ from ‘mpegts_write_packet’
# 227| *q++ = sec_num;
# 228| *q++ = last_sec_num;
# 229|-> memcpy(q, buf, len);
# 230|
# 231| mpegts_write_section(s, section, tot_len);
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavformat/nal.c:97:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘list’
ffmpeg-7.1.2/libavformat/nal.c:130:5: enter_function: entry to ‘ff_nal_parse_units_buf’
ffmpeg-7.1.2/libavformat/nal.c:134:7: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/nal.c:137:5: branch_false: ...to here
ffmpeg-7.1.2/libavformat/nal.c:137:5: call_function: calling ‘ff_nal_parse_units’ from ‘ff_nal_parse_units_buf’
# 95| } else {
# 96| NALU *tmp = av_fast_realloc(list->nalus, &list->nalus_array_size,
# 97|-> (list->nb_nalus + 1) * sizeof(*list->nalus));
# 98| if (!tmp)
# 99| return AVERROR(ENOMEM);
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/libavformat/network.c:200:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ffmpeg-7.1.2/libavformat/network.c:197:14: acquire_resource: socket created here
ffmpeg-7.1.2/libavformat/network.c:199:12: branch_true: following ‘true’ branch (when ‘fd != -1’)...
ffmpeg-7.1.2/libavformat/network.c:200:17: branch_true: ...to here
ffmpeg-7.1.2/libavformat/network.c:200:17: throw: if ‘fcntl’ throws an exception...
ffmpeg-7.1.2/libavformat/network.c:200:17: danger: ‘fd’ leaks here
# 198| #if HAVE_FCNTL
# 199| if (fd != -1) {
# 200|-> if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)
# 201| av_log(logctx, AV_LOG_DEBUG, "Failed to set close on exec\n");
# 202| }
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/libavformat/network.c:372:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘attempts[nb_attempts].fd’
ffmpeg-7.1.2/libavformat/network.c:412:5: enter_function: entry to ‘ff_connect_parallel’
ffmpeg-7.1.2/libavformat/network.c:432:5: call_function: calling ‘print_address_list’ from ‘ff_connect_parallel’
ffmpeg-7.1.2/libavformat/network.c:432:5: return_function: returning to ‘ff_connect_parallel’ from ‘print_address_list’
ffmpeg-7.1.2/libavformat/network.c:434:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/network.c:436:13: branch_true: ...to here
ffmpeg-7.1.2/libavformat/network.c:436:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/network.c:437:13: branch_true: ...to here
ffmpeg-7.1.2/libavformat/network.c:442:24: call_function: calling ‘start_connect_attempt’ from ‘ff_connect_parallel’
# 370| if (attempt->fd < 0)
# 371| return ff_neterrno();
# 372|-> attempt->deadline_us = av_gettime_relative() + timeout_ms * 1000;
# 373| attempt->addr = ai;
# 374|
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/libavformat/network.c:375:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘attempts[nb_attempts].fd’
ffmpeg-7.1.2/libavformat/network.c:412:5: enter_function: entry to ‘ff_connect_parallel’
ffmpeg-7.1.2/libavformat/network.c:432:5: call_function: calling ‘print_address_list’ from ‘ff_connect_parallel’
ffmpeg-7.1.2/libavformat/network.c:432:5: return_function: returning to ‘ff_connect_parallel’ from ‘print_address_list’
ffmpeg-7.1.2/libavformat/network.c:434:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/network.c:436:13: branch_true: ...to here
ffmpeg-7.1.2/libavformat/network.c:436:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/network.c:437:13: branch_true: ...to here
ffmpeg-7.1.2/libavformat/network.c:442:24: call_function: calling ‘start_connect_attempt’ from ‘ff_connect_parallel’
# 373| attempt->addr = ai;
# 374|
# 375|-> ff_socket_nonblock(attempt->fd, 1);
# 376|
# 377| if (customize_fd) {
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavformat/rawvideodec.c:82:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pix_fmt’
ffmpeg-7.1.2/libavformat/rawvideodec.c:51:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/rawvideodec.c:54:5: branch_false: ...to here
ffmpeg-7.1.2/libavformat/rawvideodec.c:70:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/rawvideodec.c:73:5: branch_false: ...to here
ffmpeg-7.1.2/libavformat/rawvideodec.c:76:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/rawvideodec.c:82:16: branch_true: ...to here
ffmpeg-7.1.2/libavformat/rawvideodec.c:82:16: danger: use of uninitialized value ‘pix_fmt’ here
# 80| int tag;
# 81|
# 82|-> desc = av_pix_fmt_desc_get(pix_fmt);
# 83| st->codecpar->bits_per_coded_sample = av_get_bits_per_pixel(desc);
# 84| if (pix_fmt == AV_PIX_FMT_YUV422P10) {
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavformat/rawvideodec.c:107:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pix_fmt’
ffmpeg-7.1.2/libavformat/rawvideodec.c:51:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/rawvideodec.c:54:5: branch_false: ...to here
ffmpeg-7.1.2/libavformat/rawvideodec.c:70:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/rawvideodec.c:73:5: branch_false: ...to here
ffmpeg-7.1.2/libavformat/rawvideodec.c:76:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/rawvideodec.c:100:15: branch_false: ...to here
ffmpeg-7.1.2/libavformat/rawvideodec.c:100:15: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/rawvideodec.c:107:23: danger: use of uninitialized value ‘pix_fmt’ here
# 105| packet_size = GET_PACKET_SIZE(s->width, s->height);
# 106| } else {
# 107|-> packet_size = av_image_get_buffer_size(pix_fmt, s->width, s->height, 1);
# 108| if (packet_size < 0)
# 109| return packet_size;
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavformat/rdt.c:202:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
ffmpeg-7.1.2/libavformat/rdt.c:339:1: enter_function: entry to ‘ff_rdt_parse_packet’
ffmpeg-7.1.2/libavformat/rdt.c:342:20: branch_false: following ‘false’ branch (when ‘bufptr’ is NULL)...
ffmpeg-7.1.2/libavformat/rdt.c:347:10: branch_false: ...to here
ffmpeg-7.1.2/libavformat/rdt.c:347:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/rdt.c:350:8: branch_false: ...to here
ffmpeg-7.1.2/libavformat/rdt.c:350:8: branch_true: following ‘true’ branch (when ‘buf’ is NULL)...
ffmpeg-7.1.2/libavformat/rdt.c:350:17: branch_true: ...to here
ffmpeg-7.1.2/libavformat/rdt.c:350:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/rdt.c:359:8: branch_false: ...to here
ffmpeg-7.1.2/libavformat/rdt.c:359:8: branch_false: following ‘false’ branch (when ‘len > 11’)...
ffmpeg-7.1.2/libavformat/rdt.c:361:10: branch_false: ...to here
ffmpeg-7.1.2/libavformat/rdt.c:361:10: call_function: calling ‘ff_rdt_parse_header’ from ‘ff_rdt_parse_packet’
# 200|
# 201| /* skip status packets */
# 202|-> while (len >= 5 && buf[1] == 0xFF /* status packet */) {
# 203| int pkt_len;
# 204|
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavformat/rtmpproto.c: scope_hint: In function ‘send_invoke_response’
ffmpeg-7.1.2/libavformat/rtmpproto.c:2001:51: warning[-Wformat-truncation=]: ‘ is now published’ directive output may be truncated writing 17 bytes into a region of size between 1 and 128
# 2001 | snprintf(statusmsg, sizeof(statusmsg), "%s is now published", filename);
# | ^~~~~~~~~~~~~~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 18 and 145 bytes into a destination of size 128
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 1999| } else if (!strcmp(command, "publish")) {
# 2000| char statusmsg[128];
# 2001|-> snprintf(statusmsg, sizeof(statusmsg), "%s is now published", filename);
# 2002| ret = write_begin(s);
# 2003| if (ret < 0)
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavformat/rtpdec.c:888:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
ffmpeg-7.1.2/libavformat/rtpdec.c:945:5: enter_function: entry to ‘ff_rtp_parse_packet’
ffmpeg-7.1.2/libavformat/rtpdec.c:951:10: call_function: calling ‘rtp_parse_one_packet’ from ‘ff_rtp_parse_packet’
# 886| return -1;
# 887|
# 888|-> if ((buf[0] & 0xc0) != (RTP_VERSION << 6))
# 889| return -1;
# 890| if (RTP_PT_IS_RTCP(buf[1])) {
Error: GCC_ANALYZER_WARNING:
ffmpeg-7.1.2/libavformat/rtpdec_qcelp.c:102:13: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
ffmpeg-7.1.2/libavformat/rtpdec_qcelp.c:201:12: enter_function: entry to ‘qcelp_parse_packet’
ffmpeg-7.1.2/libavformat/rtpdec_qcelp.c:209:16: call_function: calling ‘return_stored_frame’ from ‘qcelp_parse_packet’
# 100| if (len > sizeof(data->next_data))
# 101| return AVERROR_INVALIDDATA;
# 102|-> memcpy(data->next_data, buf, len);
# 103| data->next_size = len;
# 104| data->next_timestamp = *timestamp;
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavformat/rtpdec_qdm2.c:231:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘csum_pos’
ffmpeg-7.1.2/libavformat/rtpdec_qdm2.c:193:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/rtpdec_qdm2.c:193:5: branch_false: ...to here
ffmpeg-7.1.2/libavformat/rtpdec_qdm2.c:194:17: branch_true: following ‘true’ branch (when ‘n != 128’)...
ffmpeg-7.1.2/libavformat/rtpdec_qdm2.c:195:13: branch_true: ...to here
ffmpeg-7.1.2/libavformat/rtpdec_qdm2.c:197:5: branch_false: following ‘false’ branch (when ‘n != 128’)...
ffmpeg-7.1.2/libavformat/rtpdec_qdm2.c:199:16: branch_false: ...to here
ffmpeg-7.1.2/libavformat/rtpdec_qdm2.c:199:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/rtpdec_qdm2.c:201:26: branch_false: ...to here
ffmpeg-7.1.2/libavformat/rtpdec_qdm2.c:214:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/rtpdec_qdm2.c:220:15: branch_false: ...to here
ffmpeg-7.1.2/libavformat/rtpdec_qdm2.c:225:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/rtpdec_qdm2.c:229:14: branch_true: ...to here
ffmpeg-7.1.2/libavformat/rtpdec_qdm2.c:229:29: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/rtpdec_qdm2.c:231:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/rtpdec_qdm2.c:231:9: danger: dereference of NULL ‘csum_pos’
# 229| for (q = pkt->data; q < &pkt->data[qdm->block_size]; q++)
# 230| total += *q;
# 231|-> AV_WB16(csum_pos, (uint16_t) total);
# 232| }
# 233|
Error: GCC_ANALYZER_WARNING (CWE-404):
ffmpeg-7.1.2/libavformat/rtpproto.c:166:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
ffmpeg-7.1.2/libavformat/rtpproto.c:164:5: acquire_resource: ‘va_start’ called here
ffmpeg-7.1.2/libavformat/rtpproto.c:165:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/rtpproto.c:166:9: branch_true: ...to here
ffmpeg-7.1.2/libavformat/rtpproto.c:166:9: throw: if ‘av_strlcat’ throws an exception...
ffmpeg-7.1.2/libavformat/rtpproto.c:166:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 164| va_start(ap, fmt);
# 165| if (strchr(buf, '?'))
# 166|-> av_strlcat(buf, "&", buf_size);
# 167| else
# 168| av_strlcat(buf, "?", buf_size);
Error: GCC_ANALYZER_WARNING (CWE-404):
ffmpeg-7.1.2/libavformat/rtpproto.c:168:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
ffmpeg-7.1.2/libavformat/rtpproto.c:164:5: acquire_resource: ‘va_start’ called here
ffmpeg-7.1.2/libavformat/rtpproto.c:165:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/rtpproto.c:168:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/rtpproto.c:168:9: throw: if ‘av_strlcat’ throws an exception...
ffmpeg-7.1.2/libavformat/rtpproto.c:168:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
# 166| av_strlcat(buf, "&", buf_size);
# 167| else
# 168|-> av_strlcat(buf, "?", buf_size);
# 169| vsnprintf(buf1, sizeof(buf1), fmt, ap);
# 170| av_strlcat(buf, buf1, buf_size);
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavformat/rtsp.c:630:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘start’
ffmpeg-7.1.2/libavformat/rtsp.c:2397:12: enter_function: entry to ‘sdp_read_header’
ffmpeg-7.1.2/libavformat/rtsp.c:2405:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/rtsp.c:2408:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/rtsp.c:2416:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/rtsp.c:2421:27: branch_false: ...to here
ffmpeg-7.1.2/libavformat/rtsp.c:2421:11: call_function: calling ‘ff_sdp_parse’ from ‘sdp_read_header’
# 628| // this is so that seeking on a streamed file can work.
# 629| rtsp_parse_range_npt(p, &start, &end);
# 630|-> s->start_time = start;
# 631| /* AV_NOPTS_VALUE means live broadcast (and can't seek) */
# 632| s->duration = (end == AV_NOPTS_VALUE) ?
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavformat/rtsp.c: scope_hint: In function ‘ff_rtsp_make_setup_request’
ffmpeg-7.1.2/libavformat/rtsp.c:1592:30: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size 4085
# 1592 | "Transport: %s\r\n",
# | ^~
# 1593 | transport);
# | ~~~~~~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 14 and 4109 bytes into a destination of size 4096
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 1590| av_strlcat(transport, ";mode=play", sizeof(transport));
# 1591| snprintf(cmd, sizeof(cmd),
# 1592|-> "Transport: %s\r\n",
# 1593| transport);
# 1594| if (rt->accept_dynamic_rate)
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavformat/rtsp.c:2188:24: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*rtsp_st’
ffmpeg-7.1.2/libavformat/rtsp.c:2209:5: enter_function: entry to ‘ff_rtsp_fetch_packet’
ffmpeg-7.1.2/libavformat/rtsp.c:2216:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/rtsp.c:2220:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/rtsp.c:2267:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/rtsp.c:2268:23: branch_true: ...to here
ffmpeg-7.1.2/libavformat/rtsp.c:2269:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/rtsp.c:2273:11: branch_false: ...to here
ffmpeg-7.1.2/libavformat/rtsp.c:2273:11: call_function: calling ‘read_packet’ from ‘ff_rtsp_fetch_packet’
# 2186| case RTSP_LOWER_TRANSPORT_UDP_MULTICAST:
# 2187| len = udp_read_packet(s, rtsp_st, rt->recvbuf, RECVBUF_SIZE, wait_end);
# 2188|-> if (len > 0 && (*rtsp_st)->transport_priv && rt->transport == RTSP_TRANSPORT_RTP)
# 2189| ff_rtp_check_and_send_back_rr((*rtsp_st)->transport_priv, (*rtsp_st)->rtp_handle, NULL, len);
# 2190| break;
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavformat/smoothstreamingenc.c: scope_hint: In function ‘ism_flush’
ffmpeg-7.1.2/libavformat/smoothstreamingenc.c:512:49: warning[-Wformat-truncation=]: ‘/temp’ directive output may be truncated writing 5 bytes into a region of size between 1 and 1024
# 512 | snprintf(filename, sizeof(filename), "%s/temp", os->dirname);
# | ^~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 6 and 1029 bytes into a destination of size 1024
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 510| continue;
# 511|
# 512|-> snprintf(filename, sizeof(filename), "%s/temp", os->dirname);
# 513| ret = ffurl_open_whitelist(&os->out, filename, AVIO_FLAG_WRITE, &s->interrupt_callback, NULL, s->protocol_whitelist, s->protocol_blacklist, NULL);
# 514| if (ret < 0)
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavformat/smoothstreamingenc.c: scope_hint: In function ‘ism_flush’
ffmpeg-7.1.2/libavformat/smoothstreamingenc.c:540:53: warning[-Wformat-truncation=]: ‘/temp’ directive output may be truncated writing 5 bytes into a region of size between 1 and 1024
# 540 | snprintf(filename, sizeof(filename), "%s/temp", os->dirname);
# | ^~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 6 and 1029 bytes into a destination of size 1024
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 538| memcpy(curr_dirname, os->dirname, sizeof(os->dirname));
# 539| snprintf(os->dirname, sizeof(os->dirname), "%s/QualityLevels(%"PRId64")", s->url, s->streams[i]->codecpar->bit_rate);
# 540|-> snprintf(filename, sizeof(filename), "%s/temp", os->dirname);
# 541|
# 542| // rename the tmp folder back to the correct name since we now have the bitrate
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavformat/smoothstreamingenc.c: scope_hint: In function ‘ism_flush’
ffmpeg-7.1.2/libavformat/smoothstreamingenc.c:547:63: warning[-Wformat-truncation=]: ‘/FragmentInfo(’ directive output may be truncated writing 14 bytes into a region of size between 1 and 1024
# 547 | snprintf(header_filename, sizeof(header_filename), "%s/FragmentInfo(%s=%"PRIu64")", os->dirname, os->stream_type_tag, start_ts);
# | ^~~~~~~~~~~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output 18 or more bytes (assuming 1041) into a destination of size 1024
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 545| }
# 546|
# 547|-> snprintf(header_filename, sizeof(header_filename), "%s/FragmentInfo(%s=%"PRIu64")", os->dirname, os->stream_type_tag, start_ts);
# 548| snprintf(target_filename, sizeof(target_filename), "%s/Fragments(%s=%"PRIu64")", os->dirname, os->stream_type_tag, start_ts);
# 549| copy_moof(s, filename, header_filename, moof_size);
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavformat/smoothstreamingenc.c: scope_hint: In function ‘ism_flush’
ffmpeg-7.1.2/libavformat/smoothstreamingenc.c:548:63: warning[-Wformat-truncation=]: ‘/Fragments(’ directive output may be truncated writing 11 bytes into a region of size between 1 and 1024
# 548 | snprintf(target_filename, sizeof(target_filename), "%s/Fragments(%s=%"PRIu64")", os->dirname, os->stream_type_tag, start_ts);
# | ^~~~~~~~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output 15 or more bytes (assuming 1038) into a destination of size 1024
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 546|
# 547| snprintf(header_filename, sizeof(header_filename), "%s/FragmentInfo(%s=%"PRIu64")", os->dirname, os->stream_type_tag, start_ts);
# 548|-> snprintf(target_filename, sizeof(target_filename), "%s/Fragments(%s=%"PRIu64")", os->dirname, os->stream_type_tag, start_ts);
# 549| copy_moof(s, filename, header_filename, moof_size);
# 550| ret = ff_rename(filename, target_filename, s);
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavformat/smush.c:167:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘palette[i]’
ffmpeg-7.1.2/libavformat/smush.c:60:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/smush.c:80:15: branch_false: ...to here
ffmpeg-7.1.2/libavformat/smush.c:80:15: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/smush.c:81:13: branch_true: ...to here
ffmpeg-7.1.2/libavformat/smush.c:81:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/smush.c:84:16: branch_false: ...to here
ffmpeg-7.1.2/libavformat/smush.c:85:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/smush.c:88:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/smush.c:91:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/smush.c:94:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/smush.c:100:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/smush.c:103:16: branch_false: ...to here
ffmpeg-7.1.2/libavformat/smush.c:104:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/smush.c:107:17: branch_true: ...to here
ffmpeg-7.1.2/libavformat/smush.c:107:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/smush.c:110:26: branch_false: ...to here
ffmpeg-7.1.2/libavformat/smush.c:117:20: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/smush.c:120:28: branch_false: ...to here
ffmpeg-7.1.2/libavformat/smush.c:121:20: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/smush.c:124:31: branch_false: ...to here
ffmpeg-7.1.2/libavformat/smush.c:144:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/smush.c:147:33: branch_false: ...to here
ffmpeg-7.1.2/libavformat/smush.c:161:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/smush.c:162:20: branch_true: ...to here
ffmpeg-7.1.2/libavformat/smush.c:162:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/smush.c:165:9: branch_false: ...to here
ffmpeg-7.1.2/libavformat/smush.c:166:21: branch_true: following ‘true’ branch (when ‘i != 256’)...
ffmpeg-7.1.2/libavformat/smush.c:167:13: branch_true: ...to here
ffmpeg-7.1.2/libavformat/smush.c:167:13: danger: use of uninitialized value ‘palette[i]’ here
# 165| AV_WL16(vst->codecpar->extradata, subversion);
# 166| for (i = 0; i < 256; i++)
# 167|-> AV_WL32(vst->codecpar->extradata + 2 + i * 4, palette[i]);
# 168| }
# 169|
Error: GCC_ANALYZER_WARNING (CWE-835):
ffmpeg-7.1.2/libavformat/subviewerdec.c:144:28: warning[-Wanalyzer-infinite-loop]: infinite loop
ffmpeg-7.1.2/libavformat/subviewerdec.c:144:28: danger: infinite loop here
ffmpeg-7.1.2/libavformat/subviewerdec.c:144:28: branch_true: if it ever follows ‘true’ branch, it will always do so...
ffmpeg-7.1.2/libavformat/subviewerdec.c:145:25: branch_true: ...to here
# 142| if (line[i] == ']')
# 143| i++;
# 144|-> while (line[i] == ' ')
# 145| i++;
# 146| while (j < sizeof(value) - 1 && line[i] && line[i] != ']')
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavformat/swfdec.c:419:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘st’
ffmpeg-7.1.2/libavformat/swfdec.c:228:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/swfdec.c:230:13: branch_false: ...to here
ffmpeg-7.1.2/libavformat/swfdec.c:230:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/swfdec.c:230:12: branch_false: ...to here
ffmpeg-7.1.2/libavformat/swfdec.c:328:19: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/swfdec.c:331:22: branch_true: ...to here
ffmpeg-7.1.2/libavformat/swfdec.c:364:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/swfdec.c:365:29: branch_false: ...to here
ffmpeg-7.1.2/libavformat/swfdec.c:364:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/swfdec.c:366:17: branch_false: ...to here
ffmpeg-7.1.2/libavformat/swfdec.c:364:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/swfdec.c:371:23: branch_false: ...to here
ffmpeg-7.1.2/libavformat/swfdec.c:376:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/swfdec.c:379:20: branch_false: ...to here
ffmpeg-7.1.2/libavformat/swfdec.c:380:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/swfdec.c:385:19: branch_false: ...to here
ffmpeg-7.1.2/libavformat/swfdec.c:386:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/swfdec.c:389:20: branch_false: ...to here
ffmpeg-7.1.2/libavformat/swfdec.c:390:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/swfdec.c:394:24: branch_false: ...to here
ffmpeg-7.1.2/libavformat/swfdec.c:394:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/swfdec.c:394:16: branch_false: ...to here
ffmpeg-7.1.2/libavformat/swfdec.c:399:25: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/swfdec.c:404:16: branch_false: ...to here
ffmpeg-7.1.2/libavformat/swfdec.c:404:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/swfdec.c:417:43: branch_false: ...to here
ffmpeg-7.1.2/libavformat/swfdec.c:417:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/swfdec.c:419:18: branch_false: ...to here
ffmpeg-7.1.2/libavformat/swfdec.c:419:18: danger: dereference of NULL ‘st’
# 417| if ((res = av_new_packet(pkt, out_len - colormapsize * colormapbpp)) < 0)
# 418| goto bitmap_end;
# 419|-> if (!st->codecpar->width && !st->codecpar->height) {
# 420| st->codecpar->width = width;
# 421| st->codecpar->height = height;
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavformat/swfdec.c:541:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘st’
ffmpeg-7.1.2/libavformat/swfdec.c:228:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/swfdec.c:230:13: branch_false: ...to here
ffmpeg-7.1.2/libavformat/swfdec.c:230:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/swfdec.c:230:12: branch_false: ...to here
ffmpeg-7.1.2/libavformat/swfdec.c:328:19: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/swfdec.c:474:19: branch_false: ...to here
ffmpeg-7.1.2/libavformat/swfdec.c:474:19: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/swfdec.c:496:19: branch_false: ...to here
ffmpeg-7.1.2/libavformat/swfdec.c:496:19: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavformat/swfdec.c:496:19: branch_true: ...to here
ffmpeg-7.1.2/libavformat/swfdec.c:497:23: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/swfdec.c:502:16: branch_false: ...to here
ffmpeg-7.1.2/libavformat/swfdec.c:502:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/swfdec.c:512:13: branch_false: ...to here
ffmpeg-7.1.2/libavformat/swfdec.c:514:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/swfdec.c:516:24: branch_false: ...to here
ffmpeg-7.1.2/libavformat/swfdec.c:516:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/swfdec.c:518:31: branch_false: ...to here
ffmpeg-7.1.2/libavformat/swfdec.c:518:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/swfdec.c:521:17: branch_false: ...to here
ffmpeg-7.1.2/libavformat/swfdec.c:541:33: danger: dereference of NULL ‘st’
# 539|
# 540| pkt->pos = pos;
# 541|-> pkt->stream_index = st->index;
# 542| return pkt->size;
# 543| } else {
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavformat/vorbiscomment.c: scope_hint: In function ‘ff_vorbiscomment_write’
ffmpeg-7.1.2/libavformat/vorbiscomment.c:103:63: warning[-Wformat-truncation=]: ‘%03d’ directive output may be truncated writing between 3 and 10 bytes into a region of size 4
# 103 | snprintf(chapter_number, sizeof(chapter_number), "%03d", i);
# | ^~~~
ffmpeg-7.1.2/libavformat/vorbiscomment.c:103:62: note: directive argument in the range [0, 2147483647]
# 103 | snprintf(chapter_number, sizeof(chapter_number), "%03d", i);
# | ^~~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 4 and 11 bytes into a destination of size 4
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 101| ms = av_rescale_q(chp->start, chp->time_base, av_make_q( 1, 1000)) % 1000;
# 102| s = s % 60;
# 103|-> snprintf(chapter_number, sizeof(chapter_number), "%03d", i);
# 104| snprintf(chapter_time, sizeof(chapter_time), "%02d:%02d:%02d.%03d", h, m, s, ms);
# 105| avio_wl32(pb, 10 + 1 + 12);
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavformat/vorbiscomment.c: scope_hint: In function ‘ff_vorbiscomment_write’
ffmpeg-7.1.2/libavformat/vorbiscomment.c:104:69: warning[-Wformat-truncation=]: ‘%02d’ directive output may be truncated writing between 2 and 3 bytes into a region of size between 1 and 7
# 104 | snprintf(chapter_time, sizeof(chapter_time), "%02d:%02d:%02d.%03d", h, m, s, ms);
# | ^~~~
ffmpeg-7.1.2/libavformat/vorbiscomment.c:104:58: note: directive argument in the range [-59, 59]
# 104 | snprintf(chapter_time, sizeof(chapter_time), "%02d:%02d:%02d.%03d", h, m, s, ms);
# | ^~~~~~~~~~~~~~~~~~~~~
ffmpeg-7.1.2/libavformat/vorbiscomment.c:104:58: note: directive argument in the range [-999, 999]
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 13 and 21 bytes into a destination of size 13
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 102| s = s % 60;
# 103| snprintf(chapter_number, sizeof(chapter_number), "%03d", i);
# 104|-> snprintf(chapter_time, sizeof(chapter_time), "%02d:%02d:%02d.%03d", h, m, s, ms);
# 105| avio_wl32(pb, 10 + 1 + 12);
# 106| avio_write(pb, "CHAPTER", 7);
Error: GCC_ANALYZER_WARNING (CWE-465):
ffmpeg-7.1.2/libavformat/webvttdec.c:111:12: warning[-Wanalyzer-deref-before-check]: check of ‘identifier’ for NULL after already dereferencing it
ffmpeg-7.1.2/libavformat/webvttdec.c:68:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/webvttdec.c:70:5: branch_false: ...to here
ffmpeg-7.1.2/libavformat/webvttdec.c:86:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/webvttdec.c:89:14: branch_false: ...to here
ffmpeg-7.1.2/libavformat/webvttdec.c:89:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavformat/webvttdec.c:92:13: branch_false: ...to here
ffmpeg-7.1.2/libavformat/webvttdec.c:111:12: danger: pointer ‘identifier’ is checked for NULL here but it was already dereferenced at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
# 109| }
# 110| }
# 111|-> if (!identifier)
# 112| identifier_len = 0;
# 113| else {
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/libavutil/avstring.c: scope_hint: In function ‘av_basename’
ffmpeg-7.1.2/libavutil/avstring.c:262:7: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 262 | p = strrchr(path, '/');
# | ^
# 260| return ".";
# 261|
# 262|-> p = strrchr(path, '/');
# 263| #if HAVE_DOS_PATHS
# 264| q = strrchr(path, '\\');
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/libavutil/avstring.c:262:7: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 260| return ".";
# 261|
# 262|-> p = strrchr(path, '/');
# 263| #if HAVE_DOS_PATHS
# 264| q = strrchr(path, '\\');
Error: CPPCHECK_WARNING (CWE-457):
ffmpeg-7.1.2/libavutil/base64.c:100: error[legacyUninitvar]: Uninitialized variable: v
# 98| BASE64_DEC_STEP(3);
# 99| // Using AV_WB32 directly confuses compiler
# 100|-> v = av_be2ne32(v << 8);
# 101| AV_WN32(dst, v);
# 102| dst += 3;
Error: GCC_ANALYZER_WARNING (CWE-835):
ffmpeg-7.1.2/libavutil/base64.c:119:9: warning[-Wanalyzer-infinite-loop]: infinite loop
ffmpeg-7.1.2/libavutil/base64.c:119:9: danger: infinite loop here
ffmpeg-7.1.2/libavutil/base64.c:119:9: branch_false: if it ever follows ‘false’ branch, it will always do so...
ffmpeg-7.1.2/libavutil/base64.c:121:9: branch_false: ...to here
ffmpeg-7.1.2/libavutil/base64.c:121:9: branch_false: if it ever follows ‘false’ branch, it will always do so...
ffmpeg-7.1.2/libavutil/base64.c:123:9: branch_false: ...to here
ffmpeg-7.1.2/libavutil/base64.c:123:9: branch_false: if it ever follows ‘false’ branch, it will always do so...
ffmpeg-7.1.2/libavutil/base64.c:125:9: branch_false: ...to here
ffmpeg-7.1.2/libavutil/base64.c:125:9: branch_false: if it ever follows ‘false’ branch, it will always do so...
ffmpeg-7.1.2/libavutil/base64.c:126:9: branch_false: ...to here
# 117| validity_check:
# 118| while (1) {
# 119|-> BASE64_DEC_STEP(0);
# 120| in++;
# 121| BASE64_DEC_STEP(0);
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/libavutil/channel_layout.c: scope_hint: In function ‘av_channel_layout_from_string’
ffmpeg-7.1.2/libavutil/channel_layout.c:399:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 399 | end = strchr(str, ')');
# | ^
# 397|
# 398| if (ret >= 0) {
# 399|-> end = strchr(str, ')');
# 400| if (matches == 2 && (nb_channels != channel_layout->nb_channels || !end || *++end)) {
# 401| av_channel_layout_uninit(channel_layout);
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/libavutil/channel_layout.c:399:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 397|
# 398| if (ret >= 0) {
# 399|-> end = strchr(str, ')');
# 400| if (matches == 2 && (nb_channels != channel_layout->nb_channels || !end || *++end)) {
# 401| av_channel_layout_uninit(channel_layout);
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/libavutil/channel_layout.c: scope_hint: In function ‘av_channel_layout_index_from_string’
ffmpeg-7.1.2/libavutil/channel_layout.c:750:16: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 750 | chname = strstr(str, "@");
# | ^
# 748| switch (channel_layout->order) {
# 749| case AV_CHANNEL_ORDER_CUSTOM:
# 750|-> chname = strstr(str, "@");
# 751| if (chname) {
# 752| char buf[16];
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/libavutil/channel_layout.c:750:16: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 748| switch (channel_layout->order) {
# 749| case AV_CHANNEL_ORDER_CUSTOM:
# 750|-> chname = strstr(str, "@");
# 751| if (chname) {
# 752| char buf[16];
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavutil/common.h:183:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘cpl_start’
ffmpeg-7.1.2/libavcodec/ac3enc.c:2370:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavcodec/ac3enc.c:2383:9: branch_false: ...to here
ffmpeg-7.1.2/libavcodec/ac3enc.c:2383:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavcodec/ac3enc.c:2385:18: branch_true: ...to here
ffmpeg-7.1.2/libavcodec/ac3enc.c:2388:26: call_function: inlined call to ‘av_clip_c’ from ‘set_bandwidth’
# 181| if (amin > amax) abort();
# 182| #endif
# 183|-> if (a < amin) return amin;
# 184| else if (a > amax) return amax;
# 185| else return a;
Error: CPPCHECK_WARNING (CWE-758):
ffmpeg-7.1.2/libavutil/common.h:212: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 210| static av_always_inline av_const uint8_t av_clip_uint8_c(int a)
# 211| {
# 212|-> if (a&(~0xFF)) return (~a)>>31;
# 213| else return a;
# 214| }
Error: CPPCHECK_WARNING (CWE-758):
ffmpeg-7.1.2/libavutil/common.h:223: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 221| static av_always_inline av_const int8_t av_clip_int8_c(int a)
# 222| {
# 223|-> if ((a+0x80U) & ~0xFF) return (a>>31) ^ 0x7F;
# 224| else return a;
# 225| }
Error: CPPCHECK_WARNING (CWE-758):
ffmpeg-7.1.2/libavutil/common.h:234: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 232| static av_always_inline av_const uint16_t av_clip_uint16_c(int a)
# 233| {
# 234|-> if (a&(~0xFFFF)) return (~a)>>31;
# 235| else return a;
# 236| }
Error: CPPCHECK_WARNING (CWE-758):
ffmpeg-7.1.2/libavutil/common.h:245: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 243| static av_always_inline av_const int16_t av_clip_int16_c(int a)
# 244| {
# 245|-> if ((a+0x8000U) & ~0xFFFF) return (a>>31) ^ 0x7FFF;
# 246| else return a;
# 247| }
Error: CPPCHECK_WARNING (CWE-758):
ffmpeg-7.1.2/libavutil/common.h:256: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 254| static av_always_inline av_const int32_t av_clipl_int32_c(int64_t a)
# 255| {
# 256|-> if ((a+UINT64_C(0x80000000)) & ~UINT64_C(0xFFFFFFFF)) return (int32_t)((a>>63) ^ 0x7FFFFFFF);
# 257| else return (int32_t)a;
# 258| }
Error: CPPCHECK_WARNING (CWE-758):
ffmpeg-7.1.2/libavutil/common.h:269: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 267| {
# 268| if (((unsigned)a + (1U << p)) & ~((2U << p) - 1))
# 269|-> return (a >> 31) ^ ((1 << p) - 1);
# 270| else
# 271| return a;
Error: CPPCHECK_WARNING (CWE-758):
ffmpeg-7.1.2/libavutil/common.h:282: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 280| static av_always_inline av_const unsigned av_clip_uintp2_c(int a, int p)
# 281| {
# 282|-> if (a & ~((1U<<p) - 1)) return (~a) >> 31 & ((1U<<p) - 1);
# 283| else return a;
# 284| }
Error: CPPCHECK_WARNING (CWE-758):
ffmpeg-7.1.2/libavutil/common.h:373: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 371| int64_t s = a+(uint64_t)b;
# 372| if ((int64_t)(a^b | ~s^b) >= 0)
# 373|-> return INT64_MAX ^ (b >> 63);
# 374| return s;
# 375| #endif
Error: CPPCHECK_WARNING (CWE-758):
ffmpeg-7.1.2/libavutil/crc.c:358: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 356| } else {
# 357| for (c = i << 24, j = 0; j < 8; j++)
# 358|-> c = (c << 1) ^ ((poly << (32 - bits)) & (((int32_t) c) >> 31));
# 359| ctx[i] = av_bswap32(c);
# 360| }
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/libavutil/error.h:114:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/ffeval.c:55:5: enter_function: entry to ‘main’
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffeval.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:97:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:101:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/ffeval.c:103:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffeval.c:110:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:119:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:120:12: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:120:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:123:16: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:124:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:125:27: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:130:20: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:131:74: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:131:31: call_function: inlined call to ‘av_make_error_string’ from ‘main’
# 112| static inline char *av_make_error_string(char *errbuf, size_t errbuf_size, int errnum)
# 113| {
# 114|-> av_strerror(errnum, errbuf, errbuf_size);
# 115| return errbuf;
# 116| }
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/libavutil/error.h:114:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘outfile’
ffmpeg-7.1.2/tools/ffeval.c:55:5: enter_function: entry to ‘main’
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffeval.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:97:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
ffmpeg-7.1.2/tools/ffeval.c:99:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:103:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:112:19: acquire_resource: opened here
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:119:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:120:12: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:120:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:123:16: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:124:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:125:27: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:130:20: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:131:74: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:131:31: call_function: inlined call to ‘av_make_error_string’ from ‘main’
# 112| static inline char *av_make_error_string(char *errbuf, size_t errbuf_size, int errnum)
# 113| {
# 114|-> av_strerror(errnum, errbuf, errbuf_size);
# 115| return errbuf;
# 116| }
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/libavutil/error.h:114:5: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/ffeval.c:55:5: enter_function: entry to ‘main’
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffeval.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:97:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:101:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/ffeval.c:103:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffeval.c:110:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:119:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:120:12: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:120:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:123:16: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:124:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:125:27: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:130:20: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:131:74: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:131:31: call_function: inlined call to ‘av_make_error_string’ from ‘main’
# 112| static inline char *av_make_error_string(char *errbuf, size_t errbuf_size, int errnum)
# 113| {
# 114|-> av_strerror(errnum, errbuf, errbuf_size);
# 115| return errbuf;
# 116| }
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/libavutil/error.h:114:5: warning[-Wanalyzer-malloc-leak]: leak of ‘outfile’
ffmpeg-7.1.2/tools/ffeval.c:55:5: enter_function: entry to ‘main’
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffeval.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:97:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
ffmpeg-7.1.2/tools/ffeval.c:99:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:103:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:112:19: acquire_memory: allocated here
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:119:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:120:12: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:120:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:123:16: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:124:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:125:27: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:130:20: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:131:74: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:131:31: call_function: inlined call to ‘av_make_error_string’ from ‘main’
# 112| static inline char *av_make_error_string(char *errbuf, size_t errbuf_size, int errnum)
# 113| {
# 114|-> av_strerror(errnum, errbuf, errbuf_size);
# 115| return errbuf;
# 116| }
Error: GCC_ANALYZER_WARNING (CWE-688):
ffmpeg-7.1.2/libavutil/fifo.c:171:13: warning[-Wanalyzer-null-argument]: use of NULL ‘buf’ where non-null expected
ffmpeg-7.1.2/libavutil/fifo.c:193:5: enter_function: entry to ‘av_fifo_write_from_cb’
ffmpeg-7.1.2/libavutil/fifo.c:196:12: call_function: calling ‘fifo_write_common’ from ‘av_fifo_write_from_cb’
# 169| break;
# 170| } else {
# 171|-> memcpy(wptr, buf, len * f->elem_size);
# 172| buf += len * f->elem_size;
# 173| }
Error: GCC_ANALYZER_WARNING (CWE-688):
ffmpeg-7.1.2/libavutil/fifo.c:226:13: warning[-Wanalyzer-null-argument]: use of NULL ‘buf’ where non-null expected
ffmpeg-7.1.2/libavutil/fifo.c:260:5: enter_function: entry to ‘av_fifo_peek_to_cb’
ffmpeg-7.1.2/libavutil/fifo.c:263:12: call_function: calling ‘fifo_peek_common’ from ‘av_fifo_peek_to_cb’
# 224| break;
# 225| } else {
# 226|-> memcpy(buf, rptr, len * f->elem_size);
# 227| buf += len * f->elem_size;
# 228| }
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1776:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 2)’
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1703:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1706:5: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1738:12: branch_false: following ‘false’ branch (when ‘device’ is NULL)...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1752:29: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1755:25: branch_true: following ‘true’ branch (when ‘n != 8’)...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1756:17: branch_true: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1758:32: acquire_resource: opened here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1776:24: danger: ‘open(&path, 2)’ leaks here; was opened at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
# 1774| }
# 1775| #if CONFIG_LIBDRM
# 1776|-> info = drmGetVersion(priv->drm_fd);
# 1777| if (!info) {
# 1778| av_log(ctx, AV_LOG_VERBOSE,
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1846:19: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*<unknown>.drm_fd’
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1703:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1706:5: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1738:12: branch_true: following ‘true’ branch (when ‘device’ is non-NULL)...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1739:28: branch_true: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1739:28: acquire_resource: opened here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1740:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1846:19: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1846:19: danger: ‘*<unknown>.drm_fd’ leaks here; was opened at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
# 1844| }
# 1845|
# 1846|-> display = vaGetDisplayDRM(priv->drm_fd);
# 1847| if (!display) {
# 1848| av_log(ctx, AV_LOG_VERBOSE, "Cannot open a VA display "
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2012:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(drmGetRenderDeviceNameFromFd(*src_hwctx.fd), 2)’
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1974:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1975:29: branch_true: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1980:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1988:29: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1990:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1995:16: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1995:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1998:31: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1999:20: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2005:26: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2005:26: acquire_resource: opened here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2006:24: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2012:25: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2012:25: throw: if ‘av_log’ throws an exception...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2012:25: danger: ‘open(drmGetRenderDeviceNameFromFd(*src_hwctx.fd), 2)’ leaks here; was opened at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
# 2010| fd = src_hwctx->fd;
# 2011| } else {
# 2012|-> av_log(ctx, AV_LOG_VERBOSE, "Using render node %s "
# 2013| "in place of non-render DRM device.\n",
# 2014| render_node);
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2024:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1974:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1975:29: branch_true: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1980:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1988:29: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1990:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1995:16: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1995:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1998:31: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1999:20: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2005:26: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2005:26: acquire_resource: opened here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2006:24: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2012:25: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2024:16: throw: if ‘av_mallocz’ throws an exception...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2024:16: danger: ‘fd’ leaks here; was opened at [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
# 2022| #endif
# 2023|
# 2024|-> priv = av_mallocz(sizeof(*priv));
# 2025| if (!priv) {
# 2026| if (fd != src_hwctx->fd) {
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2028:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1974:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1975:29: branch_true: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1980:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1988:29: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1990:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1995:16: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1995:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1998:31: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1999:20: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2005:26: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2005:26: acquire_resource: opened here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2006:24: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2012:25: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2025:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2026:23: branch_true: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2026:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2028:17: branch_true: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2028:17: throw: if ‘close’ throws an exception...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2028:17: danger: ‘fd’ leaks here; was opened at [(11)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/10)
# 2026| if (fd != src_hwctx->fd) {
# 2027| // The fd was opened in this function.
# 2028|-> close(fd);
# 2029| }
# 2030| return AVERROR(ENOMEM);
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2044:19: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1974:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1975:29: branch_true: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1980:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1988:29: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1990:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1995:16: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1995:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1998:31: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1999:20: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2005:26: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2005:26: acquire_resource: opened here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2006:24: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2012:25: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2025:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2033:19: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2033:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2033:12: branch_true: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2044:19: throw: if ‘vaGetDisplayDRM’ throws an exception...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2044:19: danger: ‘fd’ leaks here; was opened at [(11)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/10)
# 2042| ctx->free = &vaapi_device_free;
# 2043|
# 2044|-> display = vaGetDisplayDRM(fd);
# 2045| if (!display) {
# 2046| av_log(ctx, AV_LOG_ERROR, "Failed to open a VA display from "
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2055:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1974:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1975:29: branch_true: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1980:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1988:29: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1990:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1995:16: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1995:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1998:31: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:1999:20: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2005:26: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2005:26: acquire_resource: opened here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2006:24: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2012:25: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2025:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2026:23: branch_true: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2026:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2026:16: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vaapi.c:2055:1: danger: ‘fd’ leaks here; was opened at [(11)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/10)
# 2053| #endif
# 2054| return AVERROR(ENOSYS);
# 2055|-> }
# 2056|
# 2057| const HWContextType ff_hwcontext_type_vaapi = {
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2078:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘f’
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2847:12: enter_function: entry to ‘vulkan_map_from_drm_frame_desc’
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2870:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2871:9: branch_true: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:3112:5: call_function: calling ‘vulkan_frame_free’ from ‘vulkan_map_from_drm_frame_desc’
# 2076| static void vulkan_free_internal(AVVkFrame *f)
# 2077| {
# 2078|-> av_unused AVVkFrameInternal *internal = f->internal;
# 2079|
# 2080| #if CONFIG_CUDA
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2299:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘new_access’
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2263:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2299:5: danger: use of uninitialized value ‘new_access’ here
# 2297| }
# 2298|
# 2299|-> ff_vk_frame_barrier(&p->vkctx, exec, &tmp_frame, img_bar, &nb_img_bar,
# 2300| src_stage,
# 2301| VK_PIPELINE_STAGE_2_ALL_COMMANDS_BIT,
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2486:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2446:13: enter_function: entry to ‘try_export_flags’
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2481:18: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2481:18: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2485:19: branch_true: following ‘true’ branch (when ‘exp != 0’)...
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2483:38: branch_true: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2486:56: call_function: calling ‘av_vkfmt_from_pixfmt’ from ‘try_export_flags’
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2486:56: return_function: returning to ‘try_export_flags’ from ‘av_vkfmt_from_pixfmt’
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2486:19: danger: dereference of NULL ‘av_vkfmt_from_pixfmt(*hwfc.sw_format)’
# 2484| .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2,
# 2485| .pNext = !exp ? NULL : &enext,
# 2486|-> .format = av_vkfmt_from_pixfmt(hwfc->sw_format)[0],
# 2487| .type = VK_IMAGE_TYPE_2D,
# 2488| .tiling = hwctx->tiling,
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:3045:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘idesc.fd’
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2847:12: enter_function: entry to ‘vulkan_map_from_drm_frame_desc’
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2863:13: call_function: inlined call to ‘drm_to_vulkan_fmt’ from ‘vulkan_map_from_drm_frame_desc’
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2863:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2862:42: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2870:15: call_function: calling ‘av_vk_frame_alloc’ from ‘vulkan_map_from_drm_frame_desc’
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2870:15: return_function: returning to ‘vulkan_map_from_drm_frame_desc’ from ‘av_vk_frame_alloc’
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2870:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2876:5: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2878:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2879:19: branch_true: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2909:38: call_function: inlined call to ‘drm_to_vulkan_fmt’ from ‘vulkan_map_from_drm_frame_desc’
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2966:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2975:51: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2989:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2996:15: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:2998:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:3005:9: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:3011:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:3013:40: branch_true: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:3035:27: acquire_resource: opened here
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:3045:15: throw: if the called function throws an exception...
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:3045:15: danger: ‘idesc.fd’ leaks here; was opened at [(31)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/30)
# 3043|
# 3044| /* Get object properties */
# 3045|-> ret = vk->GetMemoryFdPropertiesKHR(hwctx->act_dev,
# 3046| VK_EXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT,
# 3047| idesc.fd, &fdmp);
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:3698:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:3625:12: enter_function: entry to ‘vulkan_map_to_drm’
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:3647:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:3650:11: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:3650:11: call_function: calling ‘prepare_frame’ from ‘vulkan_map_to_drm’
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:3650:11: return_function: returning to ‘vulkan_map_to_drm’ from ‘prepare_frame’
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:3651:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:3655:29: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:3661:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:3664:11: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:3666:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:3666:8: branch_false: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:3693:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:3695:28: branch_true: ...to here
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:3698:32: call_function: calling ‘av_vkfmt_from_pixfmt’ from ‘vulkan_map_to_drm’
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:3698:32: return_function: returning to ‘vulkan_map_to_drm’ from ‘av_vkfmt_from_pixfmt’
ffmpeg-7.1.2/libavutil/hwcontext_vulkan.c:3698:18: danger: dereference of NULL ‘av_vkfmt_from_pixfmt(*hwfc.sw_format) + (long unsigned int)i * 4’
# 3696| .aspectMask = VK_IMAGE_ASPECT_MEMORY_PLANE_0_BIT_EXT,
# 3697| };
# 3698|-> VkFormat plane_vkfmt = av_vkfmt_from_pixfmt(hwfc->sw_format)[i];
# 3699|
# 3700| drm_desc->layers[i].format = vulkan_fmt_to_drm(plane_vkfmt);
Error: GCC_ANALYZER_WARNING (CWE-404):
ffmpeg-7.1.2/libavutil/log.c:439:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
ffmpeg-7.1.2/libavutil/log.c:414:6: enter_function: entry to ‘av_log’
ffmpeg-7.1.2/libavutil/log.c:417:5: acquire_resource: ‘va_start’ called here
ffmpeg-7.1.2/libavutil/log.c:418:5: call_function: calling ‘av_vlog’ from ‘av_log’
# 437| level += *(int *) (((uint8_t *) avcl) + avc->log_level_offset_offset);
# 438| if (log_callback)
# 439|-> log_callback(avcl, level, fmt, vl);
# 440| }
# 441|
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/libavutil/mem.c:252:5: warning[-Wanalyzer-malloc-leak]: leak of ‘*((void **)arg)’
ffmpeg-7.1.2/libavutil/mem.c:343:7: enter_function: entry to ‘av_dynarray2_add’
ffmpeg-7.1.2/libavutil/mem.c:348:5: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavutil/mem.c:348:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/mem.c:348:5: branch_false: ...to here
ffmpeg-7.1.2/libavutil/mem.c:348:5: call_function: calling ‘av_realloc’ from ‘av_dynarray2_add’
ffmpeg-7.1.2/libavutil/mem.c:348:5: return_function: returning to ‘av_dynarray2_add’ from ‘av_realloc’
ffmpeg-7.1.2/libavutil/mem.c:348:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/mem.c:348:5: call_function: calling ‘av_freep’ from ‘av_dynarray2_add’
# 250|
# 251| memcpy(&val, arg, sizeof(val));
# 252|-> memcpy(arg, &(void *){ NULL }, sizeof(val));
# 253| av_free(val);
# 254| }
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/libavutil/mem.c: scope_hint: In function ‘av_strndup’
ffmpeg-7.1.2/libavutil/mem.c:291:9: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 291 | end = memchr(s, 0, len);
# | ^
# 289| return NULL;
# 290|
# 291|-> end = memchr(s, 0, len);
# 292| if (end)
# 293| len = end - s;
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/libavutil/mem.c:291:9: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 289| return NULL;
# 290|
# 291|-> end = memchr(s, 0, len);
# 292| if (end)
# 293| len = end - s;
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/libavutil/mem.c:327:1: warning[-Wanalyzer-malloc-leak]: leak of ‘tab’
ffmpeg-7.1.2/libavutil/mem.c:315:5: enter_function: entry to ‘av_dynarray_add_nofree’
ffmpeg-7.1.2/libavutil/mem.c:320:5: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavutil/mem.c:320:5: branch_false: following ‘false’ branch (when ‘av_size_new <= 268435455’)...
ffmpeg-7.1.2/libavutil/mem.c:320:5: branch_false: ...to here
ffmpeg-7.1.2/libavutil/mem.c:320:5: call_function: calling ‘av_realloc’ from ‘av_dynarray_add_nofree’
ffmpeg-7.1.2/libavutil/mem.c:320:5: return_function: returning to ‘av_dynarray_add_nofree’ from ‘av_realloc’
ffmpeg-7.1.2/libavutil/mem.c:320:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/mem.c:327:1: danger: ‘tab’ leaks here; was allocated at [(10)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/9)
# 325| });
# 326| return 0;
# 327|-> }
# 328|
# 329| void av_dynarray_add(void *tab_ptr, int *nb_ptr, void *elem)
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/libavutil/mem.c:341:1: warning[-Wanalyzer-malloc-leak]: leak of ‘tab’
ffmpeg-7.1.2/libavutil/mem.c:329:6: enter_function: entry to ‘av_dynarray_add’
ffmpeg-7.1.2/libavutil/mem.c:334:5: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/libavutil/mem.c:334:5: branch_false: following ‘false’ branch (when ‘av_size_new <= 268435455’)...
ffmpeg-7.1.2/libavutil/mem.c:334:5: branch_false: ...to here
ffmpeg-7.1.2/libavutil/mem.c:334:5: call_function: calling ‘av_realloc’ from ‘av_dynarray_add’
ffmpeg-7.1.2/libavutil/mem.c:334:5: return_function: returning to ‘av_dynarray_add’ from ‘av_realloc’
ffmpeg-7.1.2/libavutil/mem.c:334:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/mem.c:341:1: danger: ‘tab’ leaks here; was allocated at [(10)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/9)
# 339| av_freep(tab_ptr);
# 340| });
# 341|-> }
# 342|
# 343| void *av_dynarray2_add(void **tab_ptr, int *nb_ptr, size_t elem_size,
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavutil/opt.c:180:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘num’
ffmpeg-7.1.2/libavutil/opt.c:2734:5: enter_function: entry to ‘av_opt_serialize’
ffmpeg-7.1.2/libavutil/opt.c:2740:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/opt.c:2740:9: branch_false: following ‘false’ branch (when ‘key_val_sep != 92’)...
ffmpeg-7.1.2/libavutil/opt.c:2746:9: branch_false: ...to here
ffmpeg-7.1.2/libavutil/opt.c:2746:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/opt.c:2749:5: branch_false: ...to here
ffmpeg-7.1.2/libavutil/opt.c:2752:11: call_function: calling ‘opt_serialize’ from ‘av_opt_serialize’
# 178| return 0;
# 179| case AV_OPT_TYPE_FLOAT:
# 180|-> *num = *(float *)dst;
# 181| return 0;
# 182| case AV_OPT_TYPE_DOUBLE:
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavutil/opt.c:183:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘num’
ffmpeg-7.1.2/libavutil/opt.c:2734:5: enter_function: entry to ‘av_opt_serialize’
ffmpeg-7.1.2/libavutil/opt.c:2740:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/opt.c:2740:9: branch_false: following ‘false’ branch (when ‘key_val_sep != 92’)...
ffmpeg-7.1.2/libavutil/opt.c:2746:9: branch_false: ...to here
ffmpeg-7.1.2/libavutil/opt.c:2746:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/opt.c:2749:5: branch_false: ...to here
ffmpeg-7.1.2/libavutil/opt.c:2752:11: call_function: calling ‘opt_serialize’ from ‘av_opt_serialize’
# 181| return 0;
# 182| case AV_OPT_TYPE_DOUBLE:
# 183|-> *num = *(double *)dst;
# 184| return 0;
# 185| case AV_OPT_TYPE_RATIONAL:
Error: GCC_ANALYZER_WARNING (CWE-476):
ffmpeg-7.1.2/libavutil/opt.c:187:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘den’
ffmpeg-7.1.2/libavutil/opt.c:2734:5: enter_function: entry to ‘av_opt_serialize’
ffmpeg-7.1.2/libavutil/opt.c:2740:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/opt.c:2740:9: branch_false: following ‘false’ branch (when ‘key_val_sep != 92’)...
ffmpeg-7.1.2/libavutil/opt.c:2746:9: branch_false: ...to here
ffmpeg-7.1.2/libavutil/opt.c:2746:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/libavutil/opt.c:2749:5: branch_false: ...to here
ffmpeg-7.1.2/libavutil/opt.c:2752:11: call_function: calling ‘opt_serialize’ from ‘av_opt_serialize’
# 185| case AV_OPT_TYPE_RATIONAL:
# 186| *intnum = ((AVRational *)dst)->num;
# 187|-> *den = ((AVRational *)dst)->den;
# 188| return 0;
# 189| case AV_OPT_TYPE_CONST:
Error: CPPCHECK_WARNING (CWE-758):
ffmpeg-7.1.2/libavutil/rational.h:92: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 90| const int64_t tmp= a.num * (int64_t)b.den - b.num * (int64_t)a.den;
# 91|
# 92|-> if(tmp) return (int)((tmp ^ a.den ^ b.den)>>63)|1;
# 93| else if(b.den && a.den) return 0;
# 94| else if(a.num && b.num) return (a.num>>31) - (b.num>>31);
Error: CPPCHECK_WARNING (CWE-758):
ffmpeg-7.1.2/libavutil/rational.h:94: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 92| if(tmp) return (int)((tmp ^ a.den ^ b.den)>>63)|1;
# 93| else if(b.den && a.den) return 0;
# 94|-> else if(a.num && b.num) return (a.num>>31) - (b.num>>31);
# 95| else return INT_MIN;
# 96| }
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libavutil/timecode.c: scope_hint: In function ‘av_timecode_make_string’
ffmpeg-7.1.2/libavutil/timecode.c:124:60: warning[-Wformat-truncation=]: ‘%0*d’ directive output may be truncated writing between 1 and 10 bytes into a region of size between 3 and 14
# 124 | snprintf(buf, AV_TIMECODE_STR_SIZE, "%s%02d:%02d:%02d%c%0*d",
# | ^~~~
ffmpeg-7.1.2/libavutil/timecode.c:124:41: note: directive argument in the range [0, 2147483647]
# 124 | snprintf(buf, AV_TIMECODE_STR_SIZE, "%s%02d:%02d:%02d%c%0*d",
# | ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 11 and 31 bytes into a destination of size 23
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 122| hh = hh % 24;
# 123| ff_len = fps > 10000 ? 5 : fps > 1000 ? 4 : fps > 100 ? 3 : fps > 10 ? 2 : 1;
# 124|-> snprintf(buf, AV_TIMECODE_STR_SIZE, "%s%02d:%02d:%02d%c%0*d",
# 125| neg ? "-" : "",
# 126| hh, mm, ss, drop ? ';' : ':', ff_len, ff);
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavutil/utils.c:104:6: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘state’
# 102| #if HAVE_MMX_INLINE
# 103| uint16_t state[14];
# 104|-> __asm__ volatile (
# 105| "fstenv %0 \n\t"
# 106| : "+m" (state)
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libavutil/x86/intmath.h:141:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ret’
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:449:12: enter_function: entry to ‘draw’
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:474:25: branch_true: following ‘true’ branch (when ‘y < end’)...
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:475:62: branch_true: ...to here
ffmpeg-7.1.2/libavfilter/avf_showcwt.c:602:17: call_function: calling ‘remap_log’ from ‘draw’
# 139| if (amin > amax) abort();
# 140| #endif
# 141|-> __asm__ ("maxss %1, %0 \n\t"
# 142| "minss %2, %0 \n\t"
# 143| : "+&x"(a) : "xm"(amin), "xm"(amax));
Error: COMPILER_WARNING:
ffmpeg-7.1.2/libpostproc/postprocess_internal.h:33: included_from: Included from here.
ffmpeg-7.1.2/libpostproc/postprocess.c:89: included_from: Included from here.
ffmpeg-7.1.2/libpostproc/postprocess_template.c: scope_hint: In function ‘dering_SSE2’
ffmpeg-7.1.2/libpostproc/postprocess_template.c:839:24: warning[-Wdeclaration-after-statement]: ISO C90 forbids mixed declarations and code
# 839 | DECLARE_ALIGNED(8, uint64_t, tmp)[3];
# | ^~~~~~~~
ffmpeg-7.1.2/libavutil/mem_internal.h:85:41: note: in definition of macro ‘DECLARE_ALIGNED_T’
# 85 | #define DECLARE_ALIGNED_T(n,t,v) t __attribute__ ((aligned (n))) v
# | ^
ffmpeg-7.1.2/libavutil/mem_internal.h:113:34: note: in expansion of macro ‘DECLARE_ALIGNED_8’
# 113 | #define DECLARE_ALIGNED_V(n,t,v) DECLARE_ALIGNED_##n(t,v)
# | ^~~~~~~~~~~~~~~~
ffmpeg-7.1.2/libavutil/mem_internal.h:109:32: note: in expansion of macro ‘DECLARE_ALIGNED_V’
# 109 | #define DECLARE_ALIGNED(n,t,v) DECLARE_ALIGNED_V(n,t,v)
# | ^~~~~~~~~~~~~~~~~
ffmpeg-7.1.2/libpostproc/postprocess_template.c:839:5: note: in expansion of macro ‘DECLARE_ALIGNED’
# 839 | DECLARE_ALIGNED(8, uint64_t, tmp)[3];
# | ^~~~~~~~~~~~~~~
# 837| if (topborder)
# 838| return;
# 839|-> DECLARE_ALIGNED(8, uint64_t, tmp)[3];
# 840| __asm__ volatile(
# 841| "pxor %%mm6, %%mm6 \n\t"
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libswscale/x86/hscale_fast_bilinear_simd.c:209:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘retsave’
# 207| #endif
# 208|
# 209|-> __asm__ volatile(
# 210| #if ARCH_X86_64
# 211| "mov -8(%%rsp), %%"FF_REG_a" \n\t"
Error: GCC_ANALYZER_WARNING (CWE-457):
ffmpeg-7.1.2/libswscale/x86/hscale_fast_bilinear_simd.c:298:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘retsave’
# 296| #endif
# 297| #endif
# 298|-> __asm__ volatile(
# 299| #if ARCH_X86_64
# 300| "mov -8(%%rsp), %%"FF_REG_a" \n\t"
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/cws2fws.c:47:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(argv[1], 0)’
ffmpeg-7.1.2/tools/cws2fws.c:36:8: branch_false: following ‘false’ branch (when ‘argc > 2’)...
ffmpeg-7.1.2/tools/cws2fws.c:41:13: branch_false: ...to here
ffmpeg-7.1.2/tools/cws2fws.c:41:13: acquire_resource: opened here
ffmpeg-7.1.2/tools/cws2fws.c:42:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/cws2fws.c:47:14: branch_false: ...to here
ffmpeg-7.1.2/tools/cws2fws.c:47:14: throw: if ‘open’ throws an exception...
ffmpeg-7.1.2/tools/cws2fws.c:47:14: danger: ‘open(argv[1], 0)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
# 45| }
# 46|
# 47|-> fd_out = open(argv[2], O_WRONLY | O_CREAT, 00644);
# 48| if (fd_out < 0) {
# 49| perror("Error opening output file");
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/ffescape.c:155:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/ffescape.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffescape.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:141:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/ffescape.c:143:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffescape.c:150:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:154:8: branch_true: following ‘true’ branch (when ‘outfile’ is NULL)...
ffmpeg-7.1.2/tools/ffescape.c:155:103: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:155:9: throw: if ‘av_log’ throws an exception...
ffmpeg-7.1.2/tools/ffescape.c:155:9: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
# 153| }
# 154| if (!outfile) {
# 155|-> av_log(NULL, AV_LOG_ERROR, "Impossible to open output file '%s': %s\n", outfilename, strerror(errno));
# 156| return 1;
# 157| }
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/ffescape.c:155:9: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/ffescape.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffescape.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:141:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/ffescape.c:143:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffescape.c:150:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:154:8: branch_true: following ‘true’ branch (when ‘outfile’ is NULL)...
ffmpeg-7.1.2/tools/ffescape.c:155:103: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:155:9: throw: if ‘av_log’ throws an exception...
ffmpeg-7.1.2/tools/ffescape.c:155:9: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
# 153| }
# 154| if (!outfile) {
# 155|-> av_log(NULL, AV_LOG_ERROR, "Impossible to open output file '%s': %s\n", outfilename, strerror(errno));
# 156| return 1;
# 157| }
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/ffescape.c:160:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/ffescape.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffescape.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:141:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/ffescape.c:143:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffescape.c:150:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:154:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:160:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:160:5: throw: if ‘av_bprint_init’ throws an exception...
ffmpeg-7.1.2/tools/ffescape.c:160:5: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
# 158|
# 159| /* grab the input and store it in src */
# 160|-> av_bprint_init(&src, 1, AV_BPRINT_SIZE_UNLIMITED);
# 161| while ((c = fgetc(infile)) != EOF)
# 162| av_bprint_chars(&src, c, 1);
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/ffescape.c:160:5: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/ffescape.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffescape.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:141:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/ffescape.c:143:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffescape.c:150:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:154:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:160:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:160:5: throw: if ‘av_bprint_init’ throws an exception...
ffmpeg-7.1.2/tools/ffescape.c:160:5: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
# 158|
# 159| /* grab the input and store it in src */
# 160|-> av_bprint_init(&src, 1, AV_BPRINT_SIZE_UNLIMITED);
# 161| while ((c = fgetc(infile)) != EOF)
# 162| av_bprint_chars(&src, c, 1);
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/ffescape.c:161:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/ffescape.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffescape.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:141:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/ffescape.c:143:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffescape.c:150:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:154:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:160:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:161:17: throw: if ‘fgetc’ throws an exception...
ffmpeg-7.1.2/tools/ffescape.c:161:17: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
# 159| /* grab the input and store it in src */
# 160| av_bprint_init(&src, 1, AV_BPRINT_SIZE_UNLIMITED);
# 161|-> while ((c = fgetc(infile)) != EOF)
# 162| av_bprint_chars(&src, c, 1);
# 163| av_bprint_chars(&src, 0, 1);
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/ffescape.c:161:17: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/ffescape.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffescape.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:141:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/ffescape.c:143:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffescape.c:150:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:154:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:160:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:161:17: throw: if ‘fgetc’ throws an exception...
ffmpeg-7.1.2/tools/ffescape.c:161:17: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
# 159| /* grab the input and store it in src */
# 160| av_bprint_init(&src, 1, AV_BPRINT_SIZE_UNLIMITED);
# 161|-> while ((c = fgetc(infile)) != EOF)
# 162| av_bprint_chars(&src, c, 1);
# 163| av_bprint_chars(&src, 0, 1);
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/ffescape.c:162:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/ffescape.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffescape.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:141:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/ffescape.c:143:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffescape.c:150:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:154:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:160:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:161:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffescape.c:162:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:162:9: throw: if ‘av_bprint_chars’ throws an exception...
ffmpeg-7.1.2/tools/ffescape.c:162:9: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
# 160| av_bprint_init(&src, 1, AV_BPRINT_SIZE_UNLIMITED);
# 161| while ((c = fgetc(infile)) != EOF)
# 162|-> av_bprint_chars(&src, c, 1);
# 163| av_bprint_chars(&src, 0, 1);
# 164|
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/ffescape.c:162:9: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/ffescape.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffescape.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:141:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/ffescape.c:143:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffescape.c:150:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:154:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:160:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:161:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffescape.c:162:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:162:9: throw: if ‘av_bprint_chars’ throws an exception...
ffmpeg-7.1.2/tools/ffescape.c:162:9: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
# 160| av_bprint_init(&src, 1, AV_BPRINT_SIZE_UNLIMITED);
# 161| while ((c = fgetc(infile)) != EOF)
# 162|-> av_bprint_chars(&src, c, 1);
# 163| av_bprint_chars(&src, 0, 1);
# 164|
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/ffescape.c:163:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/ffescape.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffescape.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:141:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/ffescape.c:143:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffescape.c:150:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:154:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:160:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:161:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:163:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:163:5: throw: if ‘av_bprint_chars’ throws an exception...
ffmpeg-7.1.2/tools/ffescape.c:163:5: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
# 161| while ((c = fgetc(infile)) != EOF)
# 162| av_bprint_chars(&src, c, 1);
# 163|-> av_bprint_chars(&src, 0, 1);
# 164|
# 165| if (!av_bprint_is_complete(&src)) {
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/ffescape.c:163:5: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/ffescape.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffescape.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:141:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/ffescape.c:143:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffescape.c:150:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:154:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:160:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:161:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:163:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:163:5: throw: if ‘av_bprint_chars’ throws an exception...
ffmpeg-7.1.2/tools/ffescape.c:163:5: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
# 161| while ((c = fgetc(infile)) != EOF)
# 162| av_bprint_chars(&src, c, 1);
# 163|-> av_bprint_chars(&src, 0, 1);
# 164|
# 165| if (!av_bprint_is_complete(&src)) {
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/ffescape.c:166:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/ffescape.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffescape.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:141:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/ffescape.c:143:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffescape.c:150:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:154:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:160:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:161:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:163:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:165:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffescape.c:166:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:166:9: throw: if ‘av_log’ throws an exception...
ffmpeg-7.1.2/tools/ffescape.c:166:9: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
# 164|
# 165| if (!av_bprint_is_complete(&src)) {
# 166|-> av_log(NULL, AV_LOG_ERROR, "Could not allocate a buffer for the source string\n");
# 167| av_bprint_finalize(&src, NULL);
# 168| return 1;
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/ffescape.c:166:9: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/ffescape.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffescape.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:141:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/ffescape.c:143:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffescape.c:150:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:154:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:160:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:161:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:163:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:165:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffescape.c:166:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:166:9: throw: if ‘av_log’ throws an exception...
ffmpeg-7.1.2/tools/ffescape.c:166:9: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
# 164|
# 165| if (!av_bprint_is_complete(&src)) {
# 166|-> av_log(NULL, AV_LOG_ERROR, "Could not allocate a buffer for the source string\n");
# 167| av_bprint_finalize(&src, NULL);
# 168| return 1;
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/ffescape.c:167:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/ffescape.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffescape.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:141:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/ffescape.c:143:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffescape.c:150:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:154:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:160:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:161:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:163:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:165:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffescape.c:166:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:167:9: throw: if ‘av_bprint_finalize’ throws an exception...
ffmpeg-7.1.2/tools/ffescape.c:167:9: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
# 165| if (!av_bprint_is_complete(&src)) {
# 166| av_log(NULL, AV_LOG_ERROR, "Could not allocate a buffer for the source string\n");
# 167|-> av_bprint_finalize(&src, NULL);
# 168| return 1;
# 169| }
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/ffescape.c:167:9: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/ffescape.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffescape.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:141:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/ffescape.c:143:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffescape.c:150:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:154:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:160:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:161:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:163:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:165:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffescape.c:166:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:167:9: throw: if ‘av_bprint_finalize’ throws an exception...
ffmpeg-7.1.2/tools/ffescape.c:167:9: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
# 165| if (!av_bprint_is_complete(&src)) {
# 166| av_log(NULL, AV_LOG_ERROR, "Could not allocate a buffer for the source string\n");
# 167|-> av_bprint_finalize(&src, NULL);
# 168| return 1;
# 169| }
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/ffescape.c:170:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/ffescape.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffescape.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:141:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/ffescape.c:143:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffescape.c:150:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:154:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:160:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:161:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:163:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:165:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:170:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:170:5: throw: if ‘av_bprint_finalize’ throws an exception...
ffmpeg-7.1.2/tools/ffescape.c:170:5: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
# 168| return 1;
# 169| }
# 170|-> av_bprint_finalize(&src, &src_buf);
# 171|
# 172| if (echo)
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/ffescape.c:170:5: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/ffescape.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffescape.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:141:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/ffescape.c:143:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffescape.c:150:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:154:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:160:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:161:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:163:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:165:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:170:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:170:5: throw: if ‘av_bprint_finalize’ throws an exception...
ffmpeg-7.1.2/tools/ffescape.c:170:5: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
# 168| return 1;
# 169| }
# 170|-> av_bprint_finalize(&src, &src_buf);
# 171|
# 172| if (echo)
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/ffescape.c:178:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/ffescape.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffescape.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:141:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/ffescape.c:143:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffescape.c:150:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:154:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:160:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:161:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:163:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:165:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:170:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:172:8: branch_false: following ‘false’ branch (when ‘echo == 0’)...
ffmpeg-7.1.2/tools/ffescape.c:176:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:177:12: branch_true: following ‘true’ branch (when ‘level != 0’)...
ffmpeg-7.1.2/tools/ffescape.c:178:13: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:178:13: throw: if ‘av_escape’ throws an exception...
ffmpeg-7.1.2/tools/ffescape.c:178:13: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/4)
# 176| dst_buf = src_buf;
# 177| while (level--) {
# 178|-> if (av_escape(&dst_buf, src_buf, special_chars, escape_mode, escape_flags) < 0) {
# 179| av_log(NULL, AV_LOG_ERROR, "Could not escape string\n");
# 180| return 1;
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/ffescape.c:178:13: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/ffescape.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffescape.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:141:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/ffescape.c:143:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffescape.c:150:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:154:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:160:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:161:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:163:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:165:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:170:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:172:8: branch_false: following ‘false’ branch (when ‘echo == 0’)...
ffmpeg-7.1.2/tools/ffescape.c:176:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:177:12: branch_true: following ‘true’ branch (when ‘level != 0’)...
ffmpeg-7.1.2/tools/ffescape.c:178:13: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:178:13: throw: if ‘av_escape’ throws an exception...
ffmpeg-7.1.2/tools/ffescape.c:178:13: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/4)
# 176| dst_buf = src_buf;
# 177| while (level--) {
# 178|-> if (av_escape(&dst_buf, src_buf, special_chars, escape_mode, escape_flags) < 0) {
# 179| av_log(NULL, AV_LOG_ERROR, "Could not escape string\n");
# 180| return 1;
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/ffescape.c:179:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/ffescape.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffescape.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:141:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/ffescape.c:143:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffescape.c:150:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:154:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:160:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:161:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:163:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:165:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:170:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:172:8: branch_false: following ‘false’ branch (when ‘echo == 0’)...
ffmpeg-7.1.2/tools/ffescape.c:176:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:177:12: branch_true: following ‘true’ branch (when ‘level != 0’)...
ffmpeg-7.1.2/tools/ffescape.c:178:13: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:178:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffescape.c:179:13: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:179:13: throw: if ‘av_log’ throws an exception...
ffmpeg-7.1.2/tools/ffescape.c:179:13: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4)
# 177| while (level--) {
# 178| if (av_escape(&dst_buf, src_buf, special_chars, escape_mode, escape_flags) < 0) {
# 179|-> av_log(NULL, AV_LOG_ERROR, "Could not escape string\n");
# 180| return 1;
# 181| }
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/ffescape.c:179:13: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/ffescape.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffescape.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:141:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/ffescape.c:143:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffescape.c:150:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:154:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:160:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:161:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:163:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:165:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:170:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:172:8: branch_false: following ‘false’ branch (when ‘echo == 0’)...
ffmpeg-7.1.2/tools/ffescape.c:176:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:177:12: branch_true: following ‘true’ branch (when ‘level != 0’)...
ffmpeg-7.1.2/tools/ffescape.c:178:13: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:178:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffescape.c:179:13: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:179:13: throw: if ‘av_log’ throws an exception...
ffmpeg-7.1.2/tools/ffescape.c:179:13: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
# 177| while (level--) {
# 178| if (av_escape(&dst_buf, src_buf, special_chars, escape_mode, escape_flags) < 0) {
# 179|-> av_log(NULL, AV_LOG_ERROR, "Could not escape string\n");
# 180| return 1;
# 181| }
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/ffescape.c:182:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/ffescape.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffescape.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:141:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/ffescape.c:143:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffescape.c:150:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:154:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:160:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:161:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:163:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:165:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:170:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:172:8: branch_false: following ‘false’ branch (when ‘echo == 0’)...
ffmpeg-7.1.2/tools/ffescape.c:176:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:177:12: branch_true: following ‘true’ branch (when ‘level != 0’)...
ffmpeg-7.1.2/tools/ffescape.c:178:13: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:178:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:182:9: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:182:9: throw: if ‘av_free’ throws an exception...
ffmpeg-7.1.2/tools/ffescape.c:182:9: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/4)
# 180| return 1;
# 181| }
# 182|-> av_free(src_buf);
# 183| src_buf = dst_buf;
# 184| }
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/ffescape.c:182:9: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/ffescape.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffescape.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:141:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/ffescape.c:143:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffescape.c:150:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:154:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:160:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:161:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:163:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:165:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:170:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:172:8: branch_false: following ‘false’ branch (when ‘echo == 0’)...
ffmpeg-7.1.2/tools/ffescape.c:176:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:177:12: branch_true: following ‘true’ branch (when ‘level != 0’)...
ffmpeg-7.1.2/tools/ffescape.c:178:13: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:178:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:182:9: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:182:9: throw: if ‘av_free’ throws an exception...
ffmpeg-7.1.2/tools/ffescape.c:182:9: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/4)
# 180| return 1;
# 181| }
# 182|-> av_free(src_buf);
# 183| src_buf = dst_buf;
# 184| }
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/ffescape.c:187:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/ffescape.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffescape.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:141:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/ffescape.c:143:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffescape.c:150:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:154:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:160:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:161:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:163:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:165:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:170:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:172:8: branch_false: following ‘false’ branch (when ‘echo == 0’)...
ffmpeg-7.1.2/tools/ffescape.c:176:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:177:12: branch_true: following ‘true’ branch (when ‘level != 0’)...
ffmpeg-7.1.2/tools/ffescape.c:178:13: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:178:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:182:9: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:177:12: branch_false: following ‘false’ branch (when ‘level == 0’)...
ffmpeg-7.1.2/tools/ffescape.c:186:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:187:5: throw: if ‘av_free’ throws an exception...
ffmpeg-7.1.2/tools/ffescape.c:187:5: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/4)
# 185|
# 186| fprintf(outfile, "%s%s", prompt, dst_buf);
# 187|-> av_free(dst_buf);
# 188| return 0;
# 189| }
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/ffescape.c:187:5: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/ffescape.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffescape.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:141:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/ffescape.c:143:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:148:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffescape.c:150:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:154:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffescape.c:160:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:161:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:163:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:165:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:170:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:172:8: branch_false: following ‘false’ branch (when ‘echo == 0’)...
ffmpeg-7.1.2/tools/ffescape.c:176:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:177:12: branch_true: following ‘true’ branch (when ‘level != 0’)...
ffmpeg-7.1.2/tools/ffescape.c:178:13: branch_true: ...to here
ffmpeg-7.1.2/tools/ffescape.c:178:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffescape.c:182:9: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:177:12: branch_false: following ‘false’ branch (when ‘level == 0’)...
ffmpeg-7.1.2/tools/ffescape.c:186:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffescape.c:187:5: throw: if ‘av_free’ throws an exception...
ffmpeg-7.1.2/tools/ffescape.c:187:5: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/4)
# 185|
# 186| fprintf(outfile, "%s%s", prompt, dst_buf);
# 187|-> av_free(dst_buf);
# 188| return 0;
# 189| }
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/ffeval.c:119:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffeval.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:97:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:101:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/ffeval.c:103:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffeval.c:110:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:119:17: throw: if ‘fgetc’ throws an exception...
ffmpeg-7.1.2/tools/ffeval.c:119:17: danger: ‘infile’ leaks here; was opened at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
# 117| }
# 118|
# 119|-> while ((c = fgetc(infile)) != EOF) {
# 120| if (c == '\n') {
# 121| double d;
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/ffeval.c:119:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘outfile’
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffeval.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:97:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
ffmpeg-7.1.2/tools/ffeval.c:99:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:103:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:112:19: acquire_resource: opened here
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:119:17: throw: if ‘fgetc’ throws an exception...
ffmpeg-7.1.2/tools/ffeval.c:119:17: danger: ‘outfile’ leaks here; was opened at [(11)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/10)
# 117| }
# 118|
# 119|-> while ((c = fgetc(infile)) != EOF) {
# 120| if (c == '\n') {
# 121| double d;
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/ffeval.c:119:17: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffeval.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:97:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:101:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/ffeval.c:103:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffeval.c:110:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:119:17: throw: if ‘fgetc’ throws an exception...
ffmpeg-7.1.2/tools/ffeval.c:119:17: danger: ‘infile’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
# 117| }
# 118|
# 119|-> while ((c = fgetc(infile)) != EOF) {
# 120| if (c == '\n') {
# 121| double d;
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/ffeval.c:119:17: warning[-Wanalyzer-malloc-leak]: leak of ‘outfile’
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffeval.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:97:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
ffmpeg-7.1.2/tools/ffeval.c:99:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:103:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:112:19: acquire_memory: allocated here
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:119:17: throw: if ‘fgetc’ throws an exception...
ffmpeg-7.1.2/tools/ffeval.c:119:17: danger: ‘outfile’ leaks here; was allocated at [(11)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/10)
# 117| }
# 118|
# 119|-> while ((c = fgetc(infile)) != EOF) {
# 120| if (c == '\n') {
# 121| double d;
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/ffeval.c:125:27: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffeval.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:97:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:101:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/ffeval.c:103:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffeval.c:110:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:119:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:120:12: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:120:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:123:16: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:124:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:125:27: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:125:27: throw: if ‘av_expr_parse_and_eval’ throws an exception...
ffmpeg-7.1.2/tools/ffeval.c:125:27: danger: ‘infile’ leaks here; was opened at [(7)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/6)
# 123| buf[count] = 0;
# 124| if (buf[0] != '#') {
# 125|-> int ret = av_expr_parse_and_eval(&d, buf,
# 126| NULL, NULL,
# 127| NULL, NULL, NULL, NULL, NULL, 0, NULL);
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/ffeval.c:125:27: warning[-Wanalyzer-file-leak]: leak of FILE ‘outfile’
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffeval.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:97:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
ffmpeg-7.1.2/tools/ffeval.c:99:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:103:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:112:19: acquire_resource: opened here
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:119:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:120:12: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:120:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:123:16: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:124:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:125:27: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:125:27: throw: if ‘av_expr_parse_and_eval’ throws an exception...
ffmpeg-7.1.2/tools/ffeval.c:125:27: danger: ‘outfile’ leaks here; was opened at [(11)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/10)
# 123| buf[count] = 0;
# 124| if (buf[0] != '#') {
# 125|-> int ret = av_expr_parse_and_eval(&d, buf,
# 126| NULL, NULL,
# 127| NULL, NULL, NULL, NULL, NULL, 0, NULL);
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/ffeval.c:125:27: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffeval.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:97:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:101:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/ffeval.c:103:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffeval.c:110:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:119:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:120:12: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:120:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:123:16: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:124:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:125:27: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:125:27: throw: if ‘av_expr_parse_and_eval’ throws an exception...
ffmpeg-7.1.2/tools/ffeval.c:125:27: danger: ‘infile’ leaks here; was allocated at [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6)
# 123| buf[count] = 0;
# 124| if (buf[0] != '#') {
# 125|-> int ret = av_expr_parse_and_eval(&d, buf,
# 126| NULL, NULL,
# 127| NULL, NULL, NULL, NULL, NULL, 0, NULL);
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/ffeval.c:125:27: warning[-Wanalyzer-malloc-leak]: leak of ‘outfile’
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffeval.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:97:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
ffmpeg-7.1.2/tools/ffeval.c:99:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:103:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:112:19: acquire_memory: allocated here
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:119:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:120:12: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:120:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:123:16: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:124:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:125:27: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:125:27: throw: if ‘av_expr_parse_and_eval’ throws an exception...
ffmpeg-7.1.2/tools/ffeval.c:125:27: danger: ‘outfile’ leaks here; was allocated at [(11)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/10)
# 123| buf[count] = 0;
# 124| if (buf[0] != '#') {
# 125|-> int ret = av_expr_parse_and_eval(&d, buf,
# 126| NULL, NULL,
# 127| NULL, NULL, NULL, NULL, NULL, 0, NULL);
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/ffeval.c:136:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffeval.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:97:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:101:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/ffeval.c:103:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffeval.c:110:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:119:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:120:12: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:120:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:135:26: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:135:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:136:17: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:136:17: throw: if ‘av_dynarray2_add’ throws an exception...
ffmpeg-7.1.2/tools/ffeval.c:136:17: danger: ‘infile’ leaks here; was opened at [(7)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/6)
# 134| } else {
# 135| if (count >= buf_size-1)
# 136|-> GROW_ARRAY();
# 137| buf[count++] = c;
# 138| }
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/ffeval.c:136:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘outfile’
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffeval.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:97:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
ffmpeg-7.1.2/tools/ffeval.c:99:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:103:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:112:19: acquire_resource: opened here
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:119:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:120:12: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:120:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:135:26: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:135:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:136:17: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:136:17: throw: if ‘av_dynarray2_add’ throws an exception...
ffmpeg-7.1.2/tools/ffeval.c:136:17: danger: ‘outfile’ leaks here; was opened at [(11)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/10)
# 134| } else {
# 135| if (count >= buf_size-1)
# 136|-> GROW_ARRAY();
# 137| buf[count++] = c;
# 138| }
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/ffeval.c:136:17: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffeval.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:97:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:101:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/ffeval.c:103:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/ffeval.c:110:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:119:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:120:12: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:120:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:135:26: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:135:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:136:17: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:136:17: throw: if ‘av_dynarray2_add’ throws an exception...
ffmpeg-7.1.2/tools/ffeval.c:136:17: danger: ‘infile’ leaks here; was allocated at [(7)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/6)
# 134| } else {
# 135| if (count >= buf_size-1)
# 136|-> GROW_ARRAY();
# 137| buf[count++] = c;
# 138| }
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/ffeval.c:136:17: warning[-Wanalyzer-malloc-leak]: leak of ‘outfile’
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:74:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:75:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/ffeval.c:76:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:97:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
ffmpeg-7.1.2/tools/ffeval.c:99:9: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:103:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:108:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:112:19: acquire_memory: allocated here
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: following ‘false’ branch (when ‘outfile’ is non-NULL)...
ffmpeg-7.1.2/tools/ffeval.c:114:8: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:119:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:120:12: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:120:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffeval.c:135:26: branch_false: ...to here
ffmpeg-7.1.2/tools/ffeval.c:135:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/ffeval.c:136:17: branch_true: ...to here
ffmpeg-7.1.2/tools/ffeval.c:136:17: throw: if ‘av_dynarray2_add’ throws an exception...
ffmpeg-7.1.2/tools/ffeval.c:136:17: danger: ‘outfile’ leaks here; was allocated at [(11)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/10)
# 134| } else {
# 135| if (count >= buf_size-1)
# 136|-> GROW_ARRAY();
# 137| buf[count++] = c;
# 138| }
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/ffhash.c:93:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ffmpeg-7.1.2/tools/ffhash.c:85:8: branch_true: following ‘true’ branch (when ‘file’ is non-NULL)...
ffmpeg-7.1.2/tools/ffhash.c:85:20: branch_true: ...to here
ffmpeg-7.1.2/tools/ffhash.c:85:20: acquire_resource: opened here
ffmpeg-7.1.2/tools/ffhash.c:87:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffhash.c:93:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffhash.c:93:5: throw: if ‘av_hash_init’ throws an exception...
ffmpeg-7.1.2/tools/ffhash.c:93:5: danger: ‘fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
# 91| }
# 92|
# 93|-> av_hash_init(hash);
# 94| for (;;) {
# 95| int size = read(fd, buffer, SIZE);
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/ffhash.c:98:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ffmpeg-7.1.2/tools/ffhash.c:85:8: branch_true: following ‘true’ branch (when ‘file’ is non-NULL)...
ffmpeg-7.1.2/tools/ffhash.c:85:20: branch_true: ...to here
ffmpeg-7.1.2/tools/ffhash.c:85:20: acquire_resource: opened here
ffmpeg-7.1.2/tools/ffhash.c:87:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffhash.c:93:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffhash.c:98:13: throw: if ‘close’ throws an exception...
ffmpeg-7.1.2/tools/ffhash.c:98:13: danger: ‘fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
# 96| if (size < 0) {
# 97| int err = errno;
# 98|-> close(fd);
# 99| finish();
# 100| printf("+READ-FAILED: %s", strerror(err));
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/ffhash.c:105:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ffmpeg-7.1.2/tools/ffhash.c:85:8: branch_true: following ‘true’ branch (when ‘file’ is non-NULL)...
ffmpeg-7.1.2/tools/ffhash.c:85:20: branch_true: ...to here
ffmpeg-7.1.2/tools/ffhash.c:85:20: acquire_resource: opened here
ffmpeg-7.1.2/tools/ffhash.c:87:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffhash.c:93:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffhash.c:96:12: branch_false: following ‘false’ branch (when ‘size >= 0’)...
ffmpeg-7.1.2/tools/ffhash.c:103:18: branch_false: ...to here
ffmpeg-7.1.2/tools/ffhash.c:103:18: branch_false: following ‘false’ branch (when ‘size != 0’)...
ffmpeg-7.1.2/tools/ffhash.c:105:9: branch_false: ...to here
ffmpeg-7.1.2/tools/ffhash.c:105:9: throw: if ‘av_hash_update’ throws an exception...
ffmpeg-7.1.2/tools/ffhash.c:105:9: danger: ‘fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
# 103| } else if(!size)
# 104| break;
# 105|-> av_hash_update(hash, buffer, size);
# 106| }
# 107| close(fd);
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/ffhash.c:107:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ffmpeg-7.1.2/tools/ffhash.c:85:8: branch_true: following ‘true’ branch (when ‘file’ is non-NULL)...
ffmpeg-7.1.2/tools/ffhash.c:85:20: branch_true: ...to here
ffmpeg-7.1.2/tools/ffhash.c:85:20: acquire_resource: opened here
ffmpeg-7.1.2/tools/ffhash.c:87:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/ffhash.c:93:5: branch_false: ...to here
ffmpeg-7.1.2/tools/ffhash.c:96:12: branch_false: following ‘false’ branch (when ‘size >= 0’)...
ffmpeg-7.1.2/tools/ffhash.c:103:18: branch_false: ...to here
ffmpeg-7.1.2/tools/ffhash.c:107:5: throw: if ‘close’ throws an exception...
ffmpeg-7.1.2/tools/ffhash.c:107:5: danger: ‘fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
# 105| av_hash_update(hash, buffer, size);
# 106| }
# 107|-> close(fd);
# 108|
# 109| finish();
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/graph2dot.c:148:8: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(infilename, "r")’
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:138:14: acquire_resource: opened here
ffmpeg-7.1.2/tools/graph2dot.c:139:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:148:8: danger: ‘fopen(infilename, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
# 146| outfilename = "/dev/stdout";
# 147| outfile = fopen(outfilename, "w");
# 148|-> if (!outfile) {
# 149| fprintf(stderr, "Failed to open output file '%s': %s\n",
# 150| outfilename, strerror(errno));
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/graph2dot.c:148:8: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(infilename, "r")’
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:138:14: acquire_memory: allocated here
ffmpeg-7.1.2/tools/graph2dot.c:139:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:148:8: danger: ‘fopen(infilename, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
# 146| outfilename = "/dev/stdout";
# 147| outfile = fopen(outfilename, "w");
# 148|-> if (!outfile) {
# 149| fprintf(stderr, "Failed to open output file '%s': %s\n",
# 150| outfilename, strerror(errno));
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/graph2dot.c:159:34: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(infilename, "r")’
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:138:14: acquire_resource: opened here
ffmpeg-7.1.2/tools/graph2dot.c:139:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:148:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:159:34: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:159:34: throw: if ‘av_malloc’ throws an exception...
ffmpeg-7.1.2/tools/graph2dot.c:159:34: danger: ‘fopen(infilename, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
# 157| struct line *line, *last_line, *first_line;
# 158| char *p;
# 159|-> last_line = first_line = av_malloc(sizeof(struct line));
# 160| if (!last_line) {
# 161| fprintf(stderr, "Memory allocation failure\n");
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/graph2dot.c:159:34: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(outfilename, "w")’
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:139:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:147:15: acquire_resource: opened here
ffmpeg-7.1.2/tools/graph2dot.c:148:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:159:34: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:159:34: throw: if ‘av_malloc’ throws an exception...
ffmpeg-7.1.2/tools/graph2dot.c:159:34: danger: ‘fopen(outfilename, "w")’ leaks here; was opened at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
# 157| struct line *line, *last_line, *first_line;
# 158| char *p;
# 159|-> last_line = first_line = av_malloc(sizeof(struct line));
# 160| if (!last_line) {
# 161| fprintf(stderr, "Memory allocation failure\n");
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/graph2dot.c:159:34: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(infilename, "r")’
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:138:14: acquire_memory: allocated here
ffmpeg-7.1.2/tools/graph2dot.c:139:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:148:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:159:34: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:159:34: throw: if ‘av_malloc’ throws an exception...
ffmpeg-7.1.2/tools/graph2dot.c:159:34: danger: ‘fopen(infilename, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
# 157| struct line *line, *last_line, *first_line;
# 158| char *p;
# 159|-> last_line = first_line = av_malloc(sizeof(struct line));
# 160| if (!last_line) {
# 161| fprintf(stderr, "Memory allocation failure\n");
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/graph2dot.c:159:34: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(outfilename, "w")’
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:139:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:147:15: acquire_memory: allocated here
ffmpeg-7.1.2/tools/graph2dot.c:148:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:159:34: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:159:34: throw: if ‘av_malloc’ throws an exception...
ffmpeg-7.1.2/tools/graph2dot.c:159:34: danger: ‘fopen(outfilename, "w")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
# 157| struct line *line, *last_line, *first_line;
# 158| char *p;
# 159|-> last_line = first_line = av_malloc(sizeof(struct line));
# 160| if (!last_line) {
# 161| fprintf(stderr, "Memory allocation failure\n");
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/graph2dot.c:160:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(infilename, "r")’
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:138:14: acquire_resource: opened here
ffmpeg-7.1.2/tools/graph2dot.c:139:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:148:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:159:34: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:160:12: danger: ‘fopen(infilename, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
# 158| char *p;
# 159| last_line = first_line = av_malloc(sizeof(struct line));
# 160|-> if (!last_line) {
# 161| fprintf(stderr, "Memory allocation failure\n");
# 162| return 1;
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/graph2dot.c:160:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(outfilename, "w")’
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:139:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:147:15: acquire_resource: opened here
ffmpeg-7.1.2/tools/graph2dot.c:148:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:159:34: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:160:12: danger: ‘fopen(outfilename, "w")’ leaks here; was opened at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
# 158| char *p;
# 159| last_line = first_line = av_malloc(sizeof(struct line));
# 160|-> if (!last_line) {
# 161| fprintf(stderr, "Memory allocation failure\n");
# 162| return 1;
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/graph2dot.c:160:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(infilename, "r")’
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:138:14: acquire_memory: allocated here
ffmpeg-7.1.2/tools/graph2dot.c:139:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:148:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:159:34: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:160:12: danger: ‘fopen(infilename, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
# 158| char *p;
# 159| last_line = first_line = av_malloc(sizeof(struct line));
# 160|-> if (!last_line) {
# 161| fprintf(stderr, "Memory allocation failure\n");
# 162| return 1;
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/graph2dot.c:160:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(outfilename, "w")’
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:139:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:147:15: acquire_memory: allocated here
ffmpeg-7.1.2/tools/graph2dot.c:148:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:159:34: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:160:12: danger: ‘fopen(outfilename, "w")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
# 158| char *p;
# 159| last_line = first_line = av_malloc(sizeof(struct line));
# 160|-> if (!last_line) {
# 161| fprintf(stderr, "Memory allocation failure\n");
# 162| return 1;
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/graph2dot.c:165:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(infilename, "r")’
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:138:14: acquire_resource: opened here
ffmpeg-7.1.2/tools/graph2dot.c:139:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:148:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:159:34: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:160:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:160:12: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:165:22: danger: ‘fopen(infilename, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
# 163| }
# 164|
# 165|-> while (fgets(last_line->data, sizeof(last_line->data), infile)) {
# 166| struct line *new_line = av_malloc(sizeof(struct line));
# 167| if (!new_line) {
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/graph2dot.c:165:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(outfilename, "w")’
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:139:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:147:15: acquire_resource: opened here
ffmpeg-7.1.2/tools/graph2dot.c:148:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:159:34: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:160:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:160:12: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:165:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:166:37: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:166:37: throw: if ‘av_malloc’ throws an exception...
ffmpeg-7.1.2/tools/graph2dot.c:165:22: danger: ‘fopen(outfilename, "w")’ leaks here; was opened at [(7)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/6)
# 163| }
# 164|
# 165|-> while (fgets(last_line->data, sizeof(last_line->data), infile)) {
# 166| struct line *new_line = av_malloc(sizeof(struct line));
# 167| if (!new_line) {
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/graph2dot.c:165:22: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(infilename, "r")’
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:138:14: acquire_memory: allocated here
ffmpeg-7.1.2/tools/graph2dot.c:139:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:148:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:159:34: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:160:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:160:12: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:165:22: danger: ‘fopen(infilename, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
# 163| }
# 164|
# 165|-> while (fgets(last_line->data, sizeof(last_line->data), infile)) {
# 166| struct line *new_line = av_malloc(sizeof(struct line));
# 167| if (!new_line) {
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/graph2dot.c:165:22: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(outfilename, "w")’
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:136:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:139:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
ffmpeg-7.1.2/tools/graph2dot.c:145:8: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:147:15: acquire_memory: allocated here
ffmpeg-7.1.2/tools/graph2dot.c:148:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:159:34: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:160:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:160:12: branch_false: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:165:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/graph2dot.c:166:37: branch_true: ...to here
ffmpeg-7.1.2/tools/graph2dot.c:166:37: throw: if ‘av_malloc’ throws an exception...
ffmpeg-7.1.2/tools/graph2dot.c:165:22: danger: ‘fopen(outfilename, "w")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/6)
# 163| }
# 164|
# 165|-> while (fgets(last_line->data, sizeof(last_line->data), infile)) {
# 166| struct line *new_line = av_malloc(sizeof(struct line));
# 167| if (!new_line) {
Error: COMPILER_WARNING:
ffmpeg-7.1.2/tools/ismindex.c: scope_hint: In function ‘main’
ffmpeg-7.1.2/tools/ismindex.c:185:49: warning[-Wformat-truncation=]: ‘.ismf’ directive output may be truncated writing 5 bytes into a region of size between 1 and 2048
# 185 | snprintf(idxname, sizeof(idxname), "%s%s.ismf", output_prefix, basename);
# | ^~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output 6 or more bytes (assuming 2053) into a destination of size 2048
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 183|
# 184| if (ismf) {
# 185|-> snprintf(idxname, sizeof(idxname), "%s%s.ismf", output_prefix, basename);
# 186| out = fopen(idxname, "w");
# 187| if (!out) {
Error: COMPILER_WARNING:
ffmpeg-7.1.2/tools/ismindex.c: scope_hint: In function ‘main’
ffmpeg-7.1.2/tools/ismindex.c:196:47: warning[-Wformat-truncation=]: ‘QualityLevels(’ directive output may be truncated writing 14 bytes into a region of size between 1 and 2048
# 196 | snprintf(dirname, sizeof(dirname), "%sQualityLevels(%d)", output_prefix, track->bitrate);
# | ^~~~~~~~~~~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 17 and 2074 bytes into a destination of size 2048
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 194| struct Track *track = tracks->tracks[i];
# 195| const char *type = track->is_video ? "video" : "audio";
# 196|-> snprintf(dirname, sizeof(dirname), "%sQualityLevels(%d)", output_prefix, track->bitrate);
# 197| if (split) {
# 198| if (mkdir(dirname, 0777) == -1 && errno != EEXIST) {
Error: COMPILER_WARNING:
ffmpeg-7.1.2/tools/ismindex.c: scope_hint: In function ‘main’
ffmpeg-7.1.2/tools/ismindex.c:205:53: warning[-Wformat-truncation=]: ‘/Fragments(’ directive output may be truncated writing 11 bytes into a region of size between 1 and 2048
# 205 | snprintf(filename, sizeof(filename), "%s/Fragments(%s=%"PRId64")",
# | ^~~~~~~~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 20 and 2086 bytes into a destination of size 2048
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 203| }
# 204| for (j = 0; j < track->chunks; j++) {
# 205|-> snprintf(filename, sizeof(filename), "%s/Fragments(%s=%"PRId64")",
# 206| dirname, type, track->offsets[j].time);
# 207| avio_seek(in, track->offsets[j].offset, SEEK_SET);
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/tools/ismindex.c: scope_hint: In function ‘handle_file’
ffmpeg-7.1.2/tools/ismindex.c:552:18: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 552 | if ((ptr = strrchr(file, '/')))
# | ^
# 550|
# 551| track->name = file;
# 552|-> if ((ptr = strrchr(file, '/')))
# 553| track->name = ptr + 1;
# 554|
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/tools/ismindex.c:552:18: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 550|
# 551| track->name = file;
# 552|-> if ((ptr = strrchr(file, '/')))
# 553| track->name = ptr + 1;
# 554|
Error: COMPILER_WARNING:
ffmpeg-7.1.2/tools/ismindex.c: scope_hint: In function ‘main’
ffmpeg-7.1.2/tools/ismindex.c:627:43: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 2047 bytes into a region of size 1000
# 627 | snprintf(filename, sizeof(filename), "%s%s.ism", output_prefix, basename);
# | ^~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output 5 or more bytes (assuming 2052) into a destination of size 1000
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 625| int i;
# 626|
# 627|-> snprintf(filename, sizeof(filename), "%s%s.ism", output_prefix, basename);
# 628| out = fopen(filename, "w");
# 629| if (!out) {
Error: COMPILER_WARNING:
ffmpeg-7.1.2/tools/ismindex.c: scope_hint: In function ‘main’
ffmpeg-7.1.2/tools/ismindex.c:699:47: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 2047 bytes into a region of size 1000
# 699 | snprintf(filename, sizeof(filename), "%sManifest", output_prefix);
# | ^~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 9 and 2056 bytes into a destination of size 1000
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 697|
# 698| if (split)
# 699|-> snprintf(filename, sizeof(filename), "%sManifest", output_prefix);
# 700| else
# 701| snprintf(filename, sizeof(filename), "%s%s.ismc", output_prefix, basename);
Error: COMPILER_WARNING:
ffmpeg-7.1.2/tools/ismindex.c: scope_hint: In function ‘main’
ffmpeg-7.1.2/tools/ismindex.c:701:47: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 2047 bytes into a region of size 1000
# 701 | snprintf(filename, sizeof(filename), "%s%s.ismc", output_prefix, basename);
# | ^~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output 6 or more bytes (assuming 2053) into a destination of size 1000
# 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 69 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 699| snprintf(filename, sizeof(filename), "%sManifest", output_prefix);
# 700| else
# 701|-> snprintf(filename, sizeof(filename), "%s%s.ismc", output_prefix, basename);
# 702| out = fopen(filename, "w");
# 703| if (!out) {
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/qt-faststart.c:472:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(argv[1], "rb")’
ffmpeg-7.1.2/tools/qt-faststart.c:449:8: branch_false: following ‘false’ branch (when ‘argc == 3’)...
ffmpeg-7.1.2/tools/qt-faststart.c:455:10: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:455:8: branch_false: following ‘false’ branch (when the strings are non-equal)...
ffmpeg-7.1.2/tools/qt-faststart.c:460:14: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:460:14: acquire_resource: opened here
ffmpeg-7.1.2/tools/qt-faststart.c:461:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:461:8: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:468:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:469:13: branch_true: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:469:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:472:21: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:476:12: branch_false: following ‘false’ branch (when ‘atom_type != 1718909296’)...
ffmpeg-7.1.2/tools/qt-faststart.c:499:16: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:499:16: branch_false: following ‘false’ branch (when ‘atom_size != 1’)...
ffmpeg-7.1.2/tools/qt-faststart.c:506:38: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:506:23: throw: if ‘fseeko’ throws an exception...
ffmpeg-7.1.2/tools/qt-faststart.c:472:21: danger: ‘fopen(argv[1], "rb")’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
# 470| break;
# 471| }
# 472|-> atom_size = BE_32(&atom_bytes[0]);
# 473| atom_type = BE_32(&atom_bytes[4]);
# 474|
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/qt-faststart.c:472:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(argv[1], "rb")’
ffmpeg-7.1.2/tools/qt-faststart.c:449:8: branch_false: following ‘false’ branch (when ‘argc == 3’)...
ffmpeg-7.1.2/tools/qt-faststart.c:455:10: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:455:8: branch_false: following ‘false’ branch (when the strings are non-equal)...
ffmpeg-7.1.2/tools/qt-faststart.c:460:14: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:460:14: acquire_memory: allocated here
ffmpeg-7.1.2/tools/qt-faststart.c:461:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:461:8: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:468:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:469:13: branch_true: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:469:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:472:21: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:476:12: branch_false: following ‘false’ branch (when ‘atom_type != 1718909296’)...
ffmpeg-7.1.2/tools/qt-faststart.c:499:16: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:499:16: branch_false: following ‘false’ branch (when ‘atom_size != 1’)...
ffmpeg-7.1.2/tools/qt-faststart.c:506:38: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:506:23: throw: if ‘fseeko’ throws an exception...
ffmpeg-7.1.2/tools/qt-faststart.c:472:21: danger: ‘fopen(argv[1], "rb")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
# 470| break;
# 471| }
# 472|-> atom_size = BE_32(&atom_bytes[0]);
# 473| atom_type = BE_32(&atom_bytes[4]);
# 474|
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/qt-faststart.c:490:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ftyp_atom’
ffmpeg-7.1.2/tools/qt-faststart.c:449:8: branch_false: following ‘false’ branch (when ‘argc == 3’)...
ffmpeg-7.1.2/tools/qt-faststart.c:455:10: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:455:8: branch_false: following ‘false’ branch (when the strings are non-equal)...
ffmpeg-7.1.2/tools/qt-faststart.c:460:14: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:461:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:461:8: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:468:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:469:13: branch_true: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:469:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:472:21: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:476:12: branch_true: following ‘true’ branch (when ‘atom_type == 1718909296’)...
ffmpeg-7.1.2/tools/qt-faststart.c:477:16: branch_true: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:477:16: branch_false: following ‘false’ branch (when ‘atom_size <= 1048576’)...
ffmpeg-7.1.2/tools/qt-faststart.c:483:13: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:484:25: acquire_memory: allocated here
ffmpeg-7.1.2/tools/qt-faststart.c:485:16: branch_false: following ‘false’ branch (when ‘ftyp_atom’ is non-NULL)...
ffmpeg-7.1.2/tools/qt-faststart.c:490:17: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:490:17: throw: if ‘fseeko’ throws an exception...
ffmpeg-7.1.2/tools/qt-faststart.c:490:17: danger: ‘ftyp_atom’ leaks here; was allocated at [(15)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/14)
# 488| goto error_out;
# 489| }
# 490|-> if (fseeko(infile, -ATOM_PREAMBLE_SIZE, SEEK_CUR) ||
# 491| fread(ftyp_atom, atom_size, 1, infile) != 1 ||
# 492| (start_offset = ftello(infile)) < 0) {
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/qt-faststart.c:492:33: warning[-Wanalyzer-malloc-leak]: leak of ‘ftyp_atom’
ffmpeg-7.1.2/tools/qt-faststart.c:449:8: branch_false: following ‘false’ branch (when ‘argc == 3’)...
ffmpeg-7.1.2/tools/qt-faststart.c:455:10: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:455:8: branch_false: following ‘false’ branch (when the strings are non-equal)...
ffmpeg-7.1.2/tools/qt-faststart.c:460:14: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:461:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:461:8: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:468:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:469:13: branch_true: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:469:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:472:21: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:476:12: branch_true: following ‘true’ branch (when ‘atom_type == 1718909296’)...
ffmpeg-7.1.2/tools/qt-faststart.c:477:16: branch_true: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:477:16: branch_false: following ‘false’ branch (when ‘atom_size <= 1048576’)...
ffmpeg-7.1.2/tools/qt-faststart.c:483:13: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:484:25: acquire_memory: allocated here
ffmpeg-7.1.2/tools/qt-faststart.c:485:16: branch_false: following ‘false’ branch (when ‘ftyp_atom’ is non-NULL)...
ffmpeg-7.1.2/tools/qt-faststart.c:490:17: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:490:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:491:17: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:490:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:492:33: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:492:33: throw: if ‘ftello’ throws an exception...
ffmpeg-7.1.2/tools/qt-faststart.c:492:33: danger: ‘ftyp_atom’ leaks here; was allocated at [(15)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/14)
# 490| if (fseeko(infile, -ATOM_PREAMBLE_SIZE, SEEK_CUR) ||
# 491| fread(ftyp_atom, atom_size, 1, infile) != 1 ||
# 492|-> (start_offset = ftello(infile)) < 0) {
# 493| perror(argv[1]);
# 494| goto error_out;
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/qt-faststart.c:493:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ftyp_atom’
ffmpeg-7.1.2/tools/qt-faststart.c:449:8: branch_false: following ‘false’ branch (when ‘argc == 3’)...
ffmpeg-7.1.2/tools/qt-faststart.c:455:10: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:455:8: branch_false: following ‘false’ branch (when the strings are non-equal)...
ffmpeg-7.1.2/tools/qt-faststart.c:460:14: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:461:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:461:8: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:468:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:469:13: branch_true: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:469:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:472:21: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:477:16: branch_false: following ‘false’ branch (when ‘atom_size <= 1048576’)...
ffmpeg-7.1.2/tools/qt-faststart.c:483:13: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:484:25: acquire_memory: allocated here
ffmpeg-7.1.2/tools/qt-faststart.c:485:16: branch_false: following ‘false’ branch (when ‘ftyp_atom’ is non-NULL)...
ffmpeg-7.1.2/tools/qt-faststart.c:490:17: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:490:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:493:17: branch_true: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:493:17: throw: if ‘perror’ throws an exception...
ffmpeg-7.1.2/tools/qt-faststart.c:493:17: danger: ‘ftyp_atom’ leaks here; was allocated at [(13)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/12)
# 491| fread(ftyp_atom, atom_size, 1, infile) != 1 ||
# 492| (start_offset = ftello(infile)) < 0) {
# 493|-> perror(argv[1]);
# 494| goto error_out;
# 495| }
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/qt-faststart.c:581:9: warning[-Wanalyzer-malloc-leak]: leak of ‘moov_atom’
ffmpeg-7.1.2/tools/qt-faststart.c:449:8: branch_false: following ‘false’ branch (when ‘argc == 3’)...
ffmpeg-7.1.2/tools/qt-faststart.c:455:10: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:455:8: branch_false: following ‘false’ branch (when the strings are non-equal)...
ffmpeg-7.1.2/tools/qt-faststart.c:460:14: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:461:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:461:8: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:468:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:469:13: branch_true: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:469:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:472:21: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:476:12: branch_false: following ‘false’ branch (when ‘atom_type != 1718909296’)...
ffmpeg-7.1.2/tools/qt-faststart.c:499:16: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:508:16: branch_false: following ‘false’ branch (when ‘ret == 0’)...
ffmpeg-7.1.2/tools/qt-faststart.c:513:9: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:538:12: branch_false: following ‘false’ branch (when ‘atom_size > 7’)...
ffmpeg-7.1.2/tools/qt-faststart.c:541:12: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:541:12: branch_true: following ‘true’ branch (when ‘atom_type == 1836019574’)...
ffmpeg-7.1.2/tools/qt-faststart.c:541:12: branch_true: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:544:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:544:12: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:468:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:469:13: branch_true: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:469:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:551:8: branch_true: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:551:8: branch_false: following ‘false’ branch (when ‘atom_type == 1836019574’)...
ffmpeg-7.1.2/tools/qt-faststart.c:558:8: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:558:8: branch_false: following ‘false’ branch (when ‘atom_size > 15’)...
ffmpeg-7.1.2/tools/qt-faststart.c:565:25: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:565:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:569:22: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:570:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:574:5: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:575:22: acquire_memory: allocated here
ffmpeg-7.1.2/tools/qt-faststart.c:576:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:580:9: branch_false: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:580:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/qt-faststart.c:581:9: branch_true: ...to here
ffmpeg-7.1.2/tools/qt-faststart.c:581:9: throw: if ‘perror’ throws an exception...
ffmpeg-7.1.2/tools/qt-faststart.c:581:9: danger: ‘moov_atom’ leaks here; was allocated at [(33)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/32)
# 579| }
# 580| if (fread(moov_atom, atom_size, 1, infile) != 1) {
# 581|-> perror(argv[1]);
# 582| goto error_out;
# 583| }
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/tools/sidxindex.c: scope_hint: In function ‘handle_file’
ffmpeg-7.1.2/tools/sidxindex.c:172:18: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 172 | if ((ptr = strrchr(file, '/')))
# | ^
# 170|
# 171| track->name = file;
# 172|-> if ((ptr = strrchr(file, '/')))
# 173| track->name = ptr + 1;
# 174|
Error: COMPILER_WARNING (CWE-704):
ffmpeg-7.1.2/tools/sidxindex.c:172:18: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 170|
# 171| track->name = file;
# 172|-> if ((ptr = strrchr(file, '/')))
# 173| track->name = ptr + 1;
# 174|
Error: GCC_ANALYZER_WARNING (CWE-688):
ffmpeg-7.1.2/tools/sofa2wavs.c:70:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&filename, "w+")’ where non-null expected
ffmpeg-7.1.2/tools/sofa2wavs.c:33:8: branch_false: following ‘false’ branch (when ‘argc > 2’)...
ffmpeg-7.1.2/tools/sofa2wavs.c:38:12: branch_false: ...to here
ffmpeg-7.1.2/tools/sofa2wavs.c:39:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/sofa2wavs.c:44:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/sofa2wavs.c:46:19: branch_false: ...to here
ffmpeg-7.1.2/tools/sofa2wavs.c:49:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/sofa2wavs.c:52:11: branch_false: ...to here
ffmpeg-7.1.2/tools/sofa2wavs.c:53:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/sofa2wavs.c:53:8: branch_false: ...to here
ffmpeg-7.1.2/tools/sofa2wavs.c:56:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/sofa2wavs.c:58:13: branch_true: ...to here
ffmpeg-7.1.2/tools/sofa2wavs.c:69:16: acquire_memory: this call could return NULL
ffmpeg-7.1.2/tools/sofa2wavs.c:70:9: danger: argument 4 (‘fopen(&filename, "w+")’) from [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12) could be NULL where non-null expected
# 68| snprintf(filename, sizeof(filename), "azi_%d_ele_%d_dis_%d.wav", azi, ele, dis);
# 69| file = fopen(filename, "w+");
# 70|-> fwrite("RIFF", 4, 1, file);
# 71| fwrite("\xFF\xFF\xFF\xFF", 4, 1, file);
# 72| fwrite("WAVE", 4, 1, file);
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/trasher.c:57:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(argv[1], "rb+")’
ffmpeg-7.1.2/tools/trasher.c:42:5: enter_function: entry to ‘main’
ffmpeg-7.1.2/tools/trasher.c:47:8: branch_false: following ‘false’ branch (when ‘argc > 4’)...
ffmpeg-7.1.2/tools/trasher.c:52:9: branch_false: ...to here
ffmpeg-7.1.2/tools/trasher.c:52:9: acquire_resource: opened here
ffmpeg-7.1.2/tools/trasher.c:53:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/trasher.c:57:16: branch_false: ...to here
ffmpeg-7.1.2/tools/trasher.c:61:5: call_function: calling ‘checked_seek’ from ‘main’
# 55| return 2;
# 56| }
# 57|-> count = atoi(argv[2]);
# 58| maxburst = atoi(argv[3]);
# 59| state = atoi(argv[4]);
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/trasher.c:57:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(argv[1], "rb+")’
ffmpeg-7.1.2/tools/trasher.c:42:5: enter_function: entry to ‘main’
ffmpeg-7.1.2/tools/trasher.c:47:8: branch_false: following ‘false’ branch (when ‘argc > 4’)...
ffmpeg-7.1.2/tools/trasher.c:52:9: branch_false: ...to here
ffmpeg-7.1.2/tools/trasher.c:52:9: acquire_memory: allocated here
ffmpeg-7.1.2/tools/trasher.c:53:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/trasher.c:57:16: branch_false: ...to here
ffmpeg-7.1.2/tools/trasher.c:61:5: call_function: calling ‘checked_seek’ from ‘main’
# 55| return 2;
# 56| }
# 57|-> count = atoi(argv[2]);
# 58| maxburst = atoi(argv[3]);
# 59| state = atoi(argv[4]);
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:95:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:95:15: throw: if ‘zmq_ctx_new’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
# 93| }
# 94|
# 95|-> zmq_ctx = zmq_ctx_new();
# 96| if (!zmq_ctx) {
# 97| av_log(NULL, AV_LOG_ERROR,
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:95:15: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:95:15: throw: if ‘zmq_ctx_new’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
# 93| }
# 94|
# 95|-> zmq_ctx = zmq_ctx_new();
# 96| if (!zmq_ctx) {
# 97| av_log(NULL, AV_LOG_ERROR,
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:97:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:98:67: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:97:9: throw: if ‘zmq_strerror’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:97:9: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
# 95| zmq_ctx = zmq_ctx_new();
# 96| if (!zmq_ctx) {
# 97|-> av_log(NULL, AV_LOG_ERROR,
# 98| "Could not create ZMQ context: %s\n", zmq_strerror(errno));
# 99| return 1;
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:97:9: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:98:67: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:97:9: throw: if ‘zmq_strerror’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:97:9: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
# 95| zmq_ctx = zmq_ctx_new();
# 96| if (!zmq_ctx) {
# 97|-> av_log(NULL, AV_LOG_ERROR,
# 98| "Could not create ZMQ context: %s\n", zmq_strerror(errno));
# 99| return 1;
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:102:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:102:14: throw: if ‘zmq_socket’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
# 100| }
# 101|
# 102|-> socket = zmq_socket(zmq_ctx, ZMQ_REQ);
# 103| if (!socket) {
# 104| av_log(NULL, AV_LOG_ERROR,
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:102:14: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:102:14: throw: if ‘zmq_socket’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
# 100| }
# 101|
# 102|-> socket = zmq_socket(zmq_ctx, ZMQ_REQ);
# 103| if (!socket) {
# 104| av_log(NULL, AV_LOG_ERROR,
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:104:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:105:66: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:104:9: throw: if ‘zmq_strerror’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:104:9: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
# 102| socket = zmq_socket(zmq_ctx, ZMQ_REQ);
# 103| if (!socket) {
# 104|-> av_log(NULL, AV_LOG_ERROR,
# 105| "Could not create ZMQ socket: %s\n", zmq_strerror(errno));
# 106| ret = 1;
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:104:9: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:105:66: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:104:9: throw: if ‘zmq_strerror’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:104:9: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
# 102| socket = zmq_socket(zmq_ctx, ZMQ_REQ);
# 103| if (!socket) {
# 104|-> av_log(NULL, AV_LOG_ERROR,
# 105| "Could not create ZMQ socket: %s\n", zmq_strerror(errno));
# 106| ret = 1;
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:110:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:9: throw: if ‘zmq_connect’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
# 108| }
# 109|
# 110|-> if (zmq_connect(socket, bind_address) == -1) {
# 111| av_log(NULL, AV_LOG_ERROR, "Could not bind ZMQ responder to address '%s': %s\n",
# 112| bind_address, zmq_strerror(errno));
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:110:9: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:9: throw: if ‘zmq_connect’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
# 108| }
# 109|
# 110|-> if (zmq_connect(socket, bind_address) == -1) {
# 111| av_log(NULL, AV_LOG_ERROR, "Could not bind ZMQ responder to address '%s': %s\n",
# 112| bind_address, zmq_strerror(errno));
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:111:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:112:43: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:111:9: throw: if ‘zmq_strerror’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:111:9: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
# 109|
# 110| if (zmq_connect(socket, bind_address) == -1) {
# 111|-> av_log(NULL, AV_LOG_ERROR, "Could not bind ZMQ responder to address '%s': %s\n",
# 112| bind_address, zmq_strerror(errno));
# 113| ret = 1;
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:111:9: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:112:43: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:111:9: throw: if ‘zmq_strerror’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:111:9: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
# 109|
# 110| if (zmq_connect(socket, bind_address) == -1) {
# 111|-> av_log(NULL, AV_LOG_ERROR, "Could not bind ZMQ responder to address '%s': %s\n",
# 112| bind_address, zmq_strerror(errno));
# 113| ret = 1;
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:118:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:118:5: throw: if ‘av_bprint_init’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4)
# 116|
# 117| /* grab the input and store it in src */
# 118|-> av_bprint_init(&src, 1, AV_BPRINT_SIZE_UNLIMITED);
# 119| while ((c = fgetc(infile)) != EOF)
# 120| av_bprint_chars(&src, c, 1);
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:118:5: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:118:5: throw: if ‘av_bprint_init’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
# 116|
# 117| /* grab the input and store it in src */
# 118|-> av_bprint_init(&src, 1, AV_BPRINT_SIZE_UNLIMITED);
# 119| while ((c = fgetc(infile)) != EOF)
# 120| av_bprint_chars(&src, c, 1);
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:119:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:119:17: throw: if ‘fgetc’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:119:17: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/4)
# 117| /* grab the input and store it in src */
# 118| av_bprint_init(&src, 1, AV_BPRINT_SIZE_UNLIMITED);
# 119|-> while ((c = fgetc(infile)) != EOF)
# 120| av_bprint_chars(&src, c, 1);
# 121| av_bprint_chars(&src, 0, 1);
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:119:17: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:119:17: throw: if ‘fgetc’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:119:17: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/4)
# 117| /* grab the input and store it in src */
# 118| av_bprint_init(&src, 1, AV_BPRINT_SIZE_UNLIMITED);
# 119|-> while ((c = fgetc(infile)) != EOF)
# 120| av_bprint_chars(&src, c, 1);
# 121| av_bprint_chars(&src, 0, 1);
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:120:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:119:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:120:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:120:9: throw: if ‘av_bprint_chars’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:120:9: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/4)
# 118| av_bprint_init(&src, 1, AV_BPRINT_SIZE_UNLIMITED);
# 119| while ((c = fgetc(infile)) != EOF)
# 120|-> av_bprint_chars(&src, c, 1);
# 121| av_bprint_chars(&src, 0, 1);
# 122|
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:120:9: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:119:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:120:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:120:9: throw: if ‘av_bprint_chars’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:120:9: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/4)
# 118| av_bprint_init(&src, 1, AV_BPRINT_SIZE_UNLIMITED);
# 119| while ((c = fgetc(infile)) != EOF)
# 120|-> av_bprint_chars(&src, c, 1);
# 121| av_bprint_chars(&src, 0, 1);
# 122|
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:121:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:121:5: throw: if ‘av_bprint_chars’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:121:5: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/4)
# 119| while ((c = fgetc(infile)) != EOF)
# 120| av_bprint_chars(&src, c, 1);
# 121|-> av_bprint_chars(&src, 0, 1);
# 122|
# 123| if (!av_bprint_is_complete(&src)) {
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:121:5: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:121:5: throw: if ‘av_bprint_chars’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:121:5: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/4)
# 119| while ((c = fgetc(infile)) != EOF)
# 120| av_bprint_chars(&src, c, 1);
# 121|-> av_bprint_chars(&src, 0, 1);
# 122|
# 123| if (!av_bprint_is_complete(&src)) {
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:124:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:124:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:124:9: throw: if ‘av_log’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:124:9: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/4)
# 122|
# 123| if (!av_bprint_is_complete(&src)) {
# 124|-> av_log(NULL, AV_LOG_ERROR, "Could not allocate a buffer for the source string\n");
# 125| av_bprint_finalize(&src, NULL);
# 126| ret = 1;
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:124:9: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:124:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:124:9: throw: if ‘av_log’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:124:9: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/4)
# 122|
# 123| if (!av_bprint_is_complete(&src)) {
# 124|-> av_log(NULL, AV_LOG_ERROR, "Could not allocate a buffer for the source string\n");
# 125| av_bprint_finalize(&src, NULL);
# 126| ret = 1;
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:125:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:124:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:125:9: throw: if ‘av_bprint_finalize’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:125:9: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/4)
# 123| if (!av_bprint_is_complete(&src)) {
# 124| av_log(NULL, AV_LOG_ERROR, "Could not allocate a buffer for the source string\n");
# 125|-> av_bprint_finalize(&src, NULL);
# 126| ret = 1;
# 127| goto end;
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:125:9: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:124:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:125:9: throw: if ‘av_bprint_finalize’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:125:9: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/4)
# 123| if (!av_bprint_is_complete(&src)) {
# 124| av_log(NULL, AV_LOG_ERROR, "Could not allocate a buffer for the source string\n");
# 125|-> av_bprint_finalize(&src, NULL);
# 126| ret = 1;
# 127| goto end;
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:129:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:129:5: throw: if ‘av_bprint_finalize’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/4)
# 127| goto end;
# 128| }
# 129|-> av_bprint_finalize(&src, &src_buf);
# 130|
# 131| if (zmq_send(socket, src_buf, strlen(src_buf), 0) == -1) {
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:129:5: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:129:5: throw: if ‘av_bprint_finalize’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/4)
# 127| goto end;
# 128| }
# 129|-> av_bprint_finalize(&src, &src_buf);
# 130|
# 131| if (zmq_send(socket, src_buf, strlen(src_buf), 0) == -1) {
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:131:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:9: throw: if ‘zmq_send’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:131:9: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/4)
# 129| av_bprint_finalize(&src, &src_buf);
# 130|
# 131|-> if (zmq_send(socket, src_buf, strlen(src_buf), 0) == -1) {
# 132| av_log(NULL, AV_LOG_ERROR, "Could not send message: %s\n", zmq_strerror(errno));
# 133| ret = 1;
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:131:9: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:9: throw: if ‘zmq_send’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:131:9: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/4)
# 129| av_bprint_finalize(&src, &src_buf);
# 130|
# 131|-> if (zmq_send(socket, src_buf, strlen(src_buf), 0) == -1) {
# 132| av_log(NULL, AV_LOG_ERROR, "Could not send message: %s\n", zmq_strerror(errno));
# 133| ret = 1;
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:132:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:132:81: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:132:9: throw: if ‘zmq_strerror’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:132:9: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/4)
# 130|
# 131| if (zmq_send(socket, src_buf, strlen(src_buf), 0) == -1) {
# 132|-> av_log(NULL, AV_LOG_ERROR, "Could not send message: %s\n", zmq_strerror(errno));
# 133| ret = 1;
# 134| goto end;
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:132:9: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:132:81: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:132:9: throw: if ‘zmq_strerror’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:132:9: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/4)
# 130|
# 131| if (zmq_send(socket, src_buf, strlen(src_buf), 0) == -1) {
# 132|-> av_log(NULL, AV_LOG_ERROR, "Could not send message: %s\n", zmq_strerror(errno));
# 133| ret = 1;
# 134| goto end;
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:137:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:137:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:137:9: throw: if ‘zmq_msg_init’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:137:9: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/4)
# 135| }
# 136|
# 137|-> if (zmq_msg_init(&msg) == -1) {
# 138| av_log(NULL, AV_LOG_ERROR,
# 139| "Could not initialize receiving message: %s\n", zmq_strerror(errno));
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:137:9: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:137:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:137:9: throw: if ‘zmq_msg_init’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:137:9: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/4)
# 135| }
# 136|
# 137|-> if (zmq_msg_init(&msg) == -1) {
# 138| av_log(NULL, AV_LOG_ERROR,
# 139| "Could not initialize receiving message: %s\n", zmq_strerror(errno));
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:138:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:137:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:137:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:139:77: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:138:9: throw: if ‘zmq_strerror’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:138:9: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/4)
# 136|
# 137| if (zmq_msg_init(&msg) == -1) {
# 138|-> av_log(NULL, AV_LOG_ERROR,
# 139| "Could not initialize receiving message: %s\n", zmq_strerror(errno));
# 140| ret = 1;
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:138:9: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:137:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:137:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:139:77: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:138:9: throw: if ‘zmq_strerror’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:138:9: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/4)
# 136|
# 137| if (zmq_msg_init(&msg) == -1) {
# 138|-> av_log(NULL, AV_LOG_ERROR,
# 139| "Could not initialize receiving message: %s\n", zmq_strerror(errno));
# 140| ret = 1;
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:144:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:137:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:144:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:144:9: throw: if ‘zmq_msg_recv’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:144:9: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/4)
# 142| }
# 143|
# 144|-> if (zmq_msg_recv(&msg, socket, 0) == -1) {
# 145| av_log(NULL, AV_LOG_ERROR,
# 146| "Could not receive message: %s\n", zmq_strerror(errno));
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:144:9: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:137:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:144:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:144:9: throw: if ‘zmq_msg_recv’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:144:9: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/4)
# 142| }
# 143|
# 144|-> if (zmq_msg_recv(&msg, socket, 0) == -1) {
# 145| av_log(NULL, AV_LOG_ERROR,
# 146| "Could not receive message: %s\n", zmq_strerror(errno));
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:145:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:137:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:144:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:144:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:146:64: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:145:9: throw: if ‘zmq_strerror’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:145:9: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/4)
# 143|
# 144| if (zmq_msg_recv(&msg, socket, 0) == -1) {
# 145|-> av_log(NULL, AV_LOG_ERROR,
# 146| "Could not receive message: %s\n", zmq_strerror(errno));
# 147| zmq_msg_close(&msg);
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:145:9: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:137:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:144:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:144:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:146:64: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:145:9: throw: if ‘zmq_strerror’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:145:9: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/4)
# 143|
# 144| if (zmq_msg_recv(&msg, socket, 0) == -1) {
# 145|-> av_log(NULL, AV_LOG_ERROR,
# 146| "Could not receive message: %s\n", zmq_strerror(errno));
# 147| zmq_msg_close(&msg);
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:147:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:137:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:144:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:144:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:146:64: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:147:9: throw: if ‘zmq_msg_close’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:147:9: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/4)
# 145| av_log(NULL, AV_LOG_ERROR,
# 146| "Could not receive message: %s\n", zmq_strerror(errno));
# 147|-> zmq_msg_close(&msg);
# 148| ret = 1;
# 149| goto end;
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:147:9: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:137:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:144:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:144:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:146:64: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:147:9: throw: if ‘zmq_msg_close’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:147:9: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/4)
# 145| av_log(NULL, AV_LOG_ERROR,
# 146| "Could not receive message: %s\n", zmq_strerror(errno));
# 147|-> zmq_msg_close(&msg);
# 148| ret = 1;
# 149| goto end;
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:152:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:137:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:144:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:144:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:152:21: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:152:21: throw: if ‘zmq_msg_size’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:152:21: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/4)
# 150| }
# 151|
# 152|-> recv_buf_size = zmq_msg_size(&msg) + 1;
# 153| recv_buf = av_malloc(recv_buf_size);
# 154| if (!recv_buf) {
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:152:21: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:137:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:144:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:144:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:152:21: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:152:21: throw: if ‘zmq_msg_size’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:152:21: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/4)
# 150| }
# 151|
# 152|-> recv_buf_size = zmq_msg_size(&msg) + 1;
# 153| recv_buf = av_malloc(recv_buf_size);
# 154| if (!recv_buf) {
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:153:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:137:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:144:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:144:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:152:21: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:153:16: throw: if ‘av_malloc’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:153:16: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/4)
# 151|
# 152| recv_buf_size = zmq_msg_size(&msg) + 1;
# 153|-> recv_buf = av_malloc(recv_buf_size);
# 154| if (!recv_buf) {
# 155| av_log(NULL, AV_LOG_ERROR,
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:153:16: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:137:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:144:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:144:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:152:21: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:153:16: throw: if ‘av_malloc’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:153:16: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/4)
# 151|
# 152| recv_buf_size = zmq_msg_size(&msg) + 1;
# 153|-> recv_buf = av_malloc(recv_buf_size);
# 154| if (!recv_buf) {
# 155| av_log(NULL, AV_LOG_ERROR,
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:155:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:137:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:144:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:144:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:152:21: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:154:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:155:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:155:9: throw: if ‘av_log’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:155:9: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/4)
# 153| recv_buf = av_malloc(recv_buf_size);
# 154| if (!recv_buf) {
# 155|-> av_log(NULL, AV_LOG_ERROR,
# 156| "Could not allocate receiving message buffer\n");
# 157| zmq_msg_close(&msg);
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:155:9: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:137:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:144:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:144:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:152:21: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:154:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:155:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:155:9: throw: if ‘av_log’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:155:9: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/4)
# 153| recv_buf = av_malloc(recv_buf_size);
# 154| if (!recv_buf) {
# 155|-> av_log(NULL, AV_LOG_ERROR,
# 156| "Could not allocate receiving message buffer\n");
# 157| zmq_msg_close(&msg);
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:157:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:137:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:144:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:144:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:152:21: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:154:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:155:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:157:9: throw: if ‘zmq_msg_close’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:157:9: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/4)
# 155| av_log(NULL, AV_LOG_ERROR,
# 156| "Could not allocate receiving message buffer\n");
# 157|-> zmq_msg_close(&msg);
# 158| ret = 1;
# 159| goto end;
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:157:9: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:137:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:144:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:144:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:152:21: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:154:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:155:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:157:9: throw: if ‘zmq_msg_close’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:157:9: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/4)
# 155| av_log(NULL, AV_LOG_ERROR,
# 156| "Could not allocate receiving message buffer\n");
# 157|-> zmq_msg_close(&msg);
# 158| ret = 1;
# 159| goto end;
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:161:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:137:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:144:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:144:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:152:21: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:154:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:161:42: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:161:22: throw: if ‘zmq_msg_data’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:161:22: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/4)
# 159| goto end;
# 160| }
# 161|-> memcpy(recv_buf, zmq_msg_data(&msg), recv_buf_size - 1);
# 162| recv_buf[recv_buf_size-1] = 0;
# 163| printf("%s\n", recv_buf);
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:161:22: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:137:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:144:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:144:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:152:21: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:154:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:161:42: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:161:22: throw: if ‘zmq_msg_data’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:161:22: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/4)
# 159| goto end;
# 160| }
# 161|-> memcpy(recv_buf, zmq_msg_data(&msg), recv_buf_size - 1);
# 162| recv_buf[recv_buf_size-1] = 0;
# 163| printf("%s\n", recv_buf);
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:164:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:137:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:144:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:144:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:152:21: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:154:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:161:42: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:164:5: throw: if ‘zmq_msg_close’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:164:5: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/62/codeFlows/0/threadFlows/0/locations/4)
# 162| recv_buf[recv_buf_size-1] = 0;
# 163| printf("%s\n", recv_buf);
# 164|-> zmq_msg_close(&msg);
# 165| av_free(recv_buf);
# 166|
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:164:5: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:137:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:144:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:144:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:152:21: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:154:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:161:42: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:164:5: throw: if ‘zmq_msg_close’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:164:5: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/63/codeFlows/0/threadFlows/0/locations/4)
# 162| recv_buf[recv_buf_size-1] = 0;
# 163| printf("%s\n", recv_buf);
# 164|-> zmq_msg_close(&msg);
# 165| av_free(recv_buf);
# 166|
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:165:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:137:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:144:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:144:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:152:21: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:154:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:161:42: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:165:5: throw: if ‘av_free’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:165:5: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/64/codeFlows/0/threadFlows/0/locations/4)
# 163| printf("%s\n", recv_buf);
# 164| zmq_msg_close(&msg);
# 165|-> av_free(recv_buf);
# 166|
# 167| end:
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:165:5: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:103:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:110:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:110:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:118:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:123:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:129:5: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:131:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:137:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:137:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:144:9: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:144:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:152:21: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:154:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:161:42: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:165:5: throw: if ‘av_free’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:165:5: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/65/codeFlows/0/threadFlows/0/locations/4)
# 163| printf("%s\n", recv_buf);
# 164| zmq_msg_close(&msg);
# 165|-> av_free(recv_buf);
# 166|
# 167| end:
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:168:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:168:5: throw: if ‘zmq_close’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:168:5: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/4)
# 166|
# 167| end:
# 168|-> zmq_close(socket);
# 169| zmq_ctx_destroy(zmq_ctx);
# 170| return ret;
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:168:5: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:168:5: throw: if ‘zmq_close’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:168:5: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/67/codeFlows/0/threadFlows/0/locations/4)
# 166|
# 167| end:
# 168|-> zmq_close(socket);
# 169| zmq_ctx_destroy(zmq_ctx);
# 170| return ret;
Error: GCC_ANALYZER_WARNING (CWE-775):
ffmpeg-7.1.2/tools/zmqsend.c:169:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_resource: opened here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:169:5: throw: if ‘zmq_ctx_destroy’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:169:5: danger: ‘infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/68/codeFlows/0/threadFlows/0/locations/4)
# 167| end:
# 168| zmq_close(socket);
# 169|-> zmq_ctx_destroy(zmq_ctx);
# 170| return ret;
# 171| }
Error: GCC_ANALYZER_WARNING (CWE-401):
ffmpeg-7.1.2/tools/zmqsend.c:169:5: warning[-Wanalyzer-malloc-leak]: leak of ‘infile’
ffmpeg-7.1.2/tools/zmqsend.c:67:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
ffmpeg-7.1.2/tools/zmqsend.c:68:9: branch_true: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:83:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:87:18: acquire_memory: allocated here
ffmpeg-7.1.2/tools/zmqsend.c:89:8: branch_false: following ‘false’ branch (when ‘infile’ is non-NULL)...
ffmpeg-7.1.2/tools/zmqsend.c:95:15: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:96:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.2/tools/zmqsend.c:102:14: branch_false: ...to here
ffmpeg-7.1.2/tools/zmqsend.c:169:5: throw: if ‘zmq_ctx_destroy’ throws an exception...
ffmpeg-7.1.2/tools/zmqsend.c:169:5: danger: ‘infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/69/codeFlows/0/threadFlows/0/locations/4)
# 167| end:
# 168| zmq_close(socket);
# 169|-> zmq_ctx_destroy(zmq_ctx);
# 170| return ret;
# 171| }