Task #90566 - fixed.err
back to task #90566download
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/confeval.c:228:17: warning[-Wanalyzer-malloc-leak]: leak of 'm'
alsa-lib-1.2.14/src/confeval.c:261:5: enter_function: entry to 'snd_config_evaluate_string'
alsa-lib-1.2.14/src/confeval.c:264:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/confeval.c:267:13: branch_true: ...to here
alsa-lib-1.2.14/src/confeval.c:267:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/confeval.c:269:13: branch_false: ...to here
alsa-lib-1.2.14/src/confeval.c:269:12: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/confeval.c:270:23: branch_true: ...to here
alsa-lib-1.2.14/src/confeval.c:270:23: call_function: calling '_snd_eval_string' from 'snd_config_evaluate_string'
# 226| }
# 227| if (pos != OP && pos != END) {
# 228|-> SNDERR("incomplete expression '%s'", save);
# 229| return -EINVAL;
# 230| }
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/confmisc.c:436:33: warning[-Wanalyzer-malloc-leak]: leak of 'res'
alsa-lib-1.2.14/src/confmisc.c:416:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/confmisc.c:420:15: branch_false: ...to here
alsa-lib-1.2.14/src/confmisc.c:421:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/confmisc.c:421:12: branch_false: ...to here
alsa-lib-1.2.14/src/confmisc.c:427:17: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/confmisc.c:428:43: branch_true: ...to here
alsa-lib-1.2.14/src/confmisc.c:435:28: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/confmisc.c:440:29: branch_false: ...to here
alsa-lib-1.2.14/src/confmisc.c:443:36: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/confmisc.c:448:40: branch_false: ...to here
alsa-lib-1.2.14/src/confmisc.c:450:36: branch_false: following 'false' branch (when 'tmp' is non-NULL)...
alsa-lib-1.2.14/src/confmisc.c:455:33: branch_false: ...to here
alsa-lib-1.2.14/src/confmisc.c:427:17: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/confmisc.c:428:43: branch_true: ...to here
alsa-lib-1.2.14/src/confmisc.c:432:28: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/confmisc.c:434:31: branch_false: ...to here
alsa-lib-1.2.14/src/confmisc.c:435:28: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/confmisc.c:436:33: branch_true: ...to here
alsa-lib-1.2.14/src/confmisc.c:436:33: throw: if the called function throws an exception...
alsa-lib-1.2.14/src/confmisc.c:436:33: danger: 'res' leaks here; was allocated at [(11)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/10)
# 434| err = safe_strtol(id, &i);
# 435| if (err < 0) {
# 436|-> SNDERR("id of field %s is not an integer", id);
# 437| err = -EINVAL;
# 438| goto __error;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/confmisc.c:444:41: warning[-Wanalyzer-malloc-leak]: leak of 'res'
alsa-lib-1.2.14/src/confmisc.c:416:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/confmisc.c:420:15: branch_false: ...to here
alsa-lib-1.2.14/src/confmisc.c:421:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/confmisc.c:421:12: branch_false: ...to here
alsa-lib-1.2.14/src/confmisc.c:427:17: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/confmisc.c:428:43: branch_true: ...to here
alsa-lib-1.2.14/src/confmisc.c:435:28: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/confmisc.c:440:29: branch_false: ...to here
alsa-lib-1.2.14/src/confmisc.c:443:36: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/confmisc.c:448:40: branch_false: ...to here
alsa-lib-1.2.14/src/confmisc.c:450:36: branch_false: following 'false' branch (when 'tmp' is non-NULL)...
alsa-lib-1.2.14/src/confmisc.c:455:33: branch_false: ...to here
alsa-lib-1.2.14/src/confmisc.c:427:17: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/confmisc.c:428:43: branch_true: ...to here
alsa-lib-1.2.14/src/confmisc.c:432:28: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/confmisc.c:434:31: branch_false: ...to here
alsa-lib-1.2.14/src/confmisc.c:435:28: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/confmisc.c:440:29: branch_false: ...to here
alsa-lib-1.2.14/src/confmisc.c:440:28: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/confmisc.c:441:33: branch_true: ...to here
alsa-lib-1.2.14/src/confmisc.c:443:36: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/confmisc.c:444:41: branch_true: ...to here
alsa-lib-1.2.14/src/confmisc.c:444:41: throw: if the called function throws an exception...
alsa-lib-1.2.14/src/confmisc.c:444:41: danger: 'res' leaks here; was allocated at [(11)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/10)
# 442| err = snd_config_get_ascii(n, &ptr);
# 443| if (err < 0) {
# 444|-> SNDERR("invalid ascii string for id %s", id);
# 445| err = -EINVAL;
# 446| goto __error;
Error: GCC_ANALYZER_WARNING (CWE-775):
alsa-lib-1.2.14/src/control/control_shm.c:522:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'sock'
alsa-lib-1.2.14/src/control/control_shm.c:434:5: enter_function: entry to 'snd_ctl_shm_open'
alsa-lib-1.2.14/src/control/control_shm.c:446:12: branch_false: following 'false' branch (when 'snamelen <= 255')...
alsa-lib-1.2.14/src/control/control_shm.c:449:18: branch_false: ...to here
alsa-lib-1.2.14/src/control/control_shm.c:449:18: call_function: calling 'make_local_socket' from 'snd_ctl_shm_open'
alsa-lib-1.2.14/src/control/control_shm.c:449:18: return_function: returning to 'snd_ctl_shm_open' from 'make_local_socket'
alsa-lib-1.2.14/src/control/control_shm.c:450:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/control_shm.c:456:9: branch_false: ...to here
alsa-lib-1.2.14/src/control/control_shm.c:522:9: throw: if 'close' throws an exception...
alsa-lib-1.2.14/src/control/control_shm.c:522:9: danger: 'sock' leaks here
# 520|
# 521| _err:
# 522|-> close(sock);
# 523| if (ctrl)
# 524| shmdt(ctrl);
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/control/namehint.c:269:14: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.14/src/control/namehint.c:583:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.14/src/control/namehint.c:593:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.14/src/control/namehint.c:595:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:596:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:598:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:599:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:601:9: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:625:12: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:626:23: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:627:20: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:628:31: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:628:31: call_function: calling 'add_card' from 'snd_device_name_hint'
# 267| else
# 268| strcpy(buf, name);
# 269|-> eh = snd_lib_error_set_local(&zero_handler);
# 270| err = snd_config_search_definition(config, base, buf, &res);
# 271| snd_lib_error_set_local(eh);
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/control/namehint.c:271:9: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.14/src/control/namehint.c:583:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.14/src/control/namehint.c:593:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.14/src/control/namehint.c:595:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:596:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:598:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:599:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:601:9: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:625:12: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:626:23: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:627:20: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:628:31: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:628:31: call_function: calling 'add_card' from 'snd_device_name_hint'
# 269| eh = snd_lib_error_set_local(&zero_handler);
# 270| err = snd_config_search_definition(config, base, buf, &res);
# 271|-> snd_lib_error_set_local(eh);
# 272| if (err < 0)
# 273| goto __skip_add;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/control/namehint.c:301:33: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.14/src/control/namehint.c:583:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.14/src/control/namehint.c:593:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.14/src/control/namehint.c:595:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:596:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:598:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:599:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:601:9: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:625:12: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:626:23: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:627:20: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:628:31: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:628:31: call_function: calling 'add_card' from 'snd_device_name_hint'
# 299| if (snd_config_search(cfg1, "device", &cfg) >= 0) {
# 300| if (snd_config_get_integer(cfg, &dev) < 0) {
# 301|-> SNDERR("(%s) device must be an integer", buf);
# 302| err = -EINVAL;
# 303| goto __cleanup;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/control/namehint.c:301:33: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.14/src/control/namehint.c:583:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.14/src/control/namehint.c:593:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.14/src/control/namehint.c:595:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:596:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:598:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:599:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:601:9: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:625:12: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:626:23: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:627:20: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:628:31: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:628:31: call_function: calling 'add_card' from 'snd_device_name_hint'
# 299| if (snd_config_search(cfg1, "device", &cfg) >= 0) {
# 300| if (snd_config_get_integer(cfg, &dev) < 0) {
# 301|-> SNDERR("(%s) device must be an integer", buf);
# 302| err = -EINVAL;
# 303| goto __cleanup;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/control/namehint.c:310:25: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.14/src/control/namehint.c:583:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.14/src/control/namehint.c:593:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.14/src/control/namehint.c:595:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:596:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:598:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:599:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:601:9: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:625:12: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:626:23: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:627:20: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:628:31: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:628:31: call_function: calling 'add_card' from 'snd_device_name_hint'
# 308| if (snd_config_search(cfg1, "hint", &cfg) >= 0) {
# 309| if (snd_config_get_type(cfg) != SND_CONFIG_TYPE_COMPOUND) {
# 310|-> SNDERR("hint (%s) must be a compound", buf);
# 311| err = -EINVAL;
# 312| goto __cleanup;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/control/namehint.c:310:25: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.14/src/control/namehint.c:583:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.14/src/control/namehint.c:593:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.14/src/control/namehint.c:595:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:596:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:598:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:599:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:601:9: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:625:12: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:626:23: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:627:20: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:628:31: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:628:31: call_function: calling 'add_card' from 'snd_device_name_hint'
# 308| if (snd_config_search(cfg1, "hint", &cfg) >= 0) {
# 309| if (snd_config_get_type(cfg) != SND_CONFIG_TYPE_COMPOUND) {
# 310|-> SNDERR("hint (%s) must be a compound", buf);
# 311| err = -EINVAL;
# 312| goto __cleanup;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/control/namehint.c:333:33: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.14/src/control/namehint.c:583:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.14/src/control/namehint.c:593:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.14/src/control/namehint.c:595:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:596:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:598:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:599:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:601:9: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:625:12: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:626:23: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:627:20: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:628:31: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:628:31: call_function: calling 'add_card' from 'snd_device_name_hint'
# 331| if (snd_config_search(cfg, "device", &n) >= 0) {
# 332| if (snd_config_get_integer(n, &dev) < 0) {
# 333|-> SNDERR("(%s) device must be an integer", buf);
# 334| err = -EINVAL;
# 335| goto __cleanup;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/control/namehint.c:333:33: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.14/src/control/namehint.c:583:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.14/src/control/namehint.c:593:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.14/src/control/namehint.c:595:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:596:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:598:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:599:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:601:9: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:625:12: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:626:23: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:627:20: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:628:31: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:628:31: call_function: calling 'add_card' from 'snd_device_name_hint'
# 331| if (snd_config_search(cfg, "device", &n) >= 0) {
# 332| if (snd_config_get_integer(n, &dev) < 0) {
# 333|-> SNDERR("(%s) device must be an integer", buf);
# 334| err = -EINVAL;
# 335| goto __cleanup;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/control/namehint.c:342:33: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.14/src/control/namehint.c:583:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.14/src/control/namehint.c:593:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.14/src/control/namehint.c:595:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:596:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:598:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:599:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:601:9: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:625:12: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:626:23: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:627:20: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:628:31: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:628:31: call_function: calling 'add_card' from 'snd_device_name_hint'
# 340| if (snd_config_search(cfg, "device_input", &n) >= 0) {
# 341| if (snd_config_get_integer(n, &list->device_input) < 0) {
# 342|-> SNDERR("(%s) device_input must be an integer", buf);
# 343| err = -EINVAL;
# 344| goto __cleanup;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/control/namehint.c:342:33: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.14/src/control/namehint.c:583:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.14/src/control/namehint.c:593:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.14/src/control/namehint.c:595:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:596:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:598:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:599:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:601:9: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:625:12: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:626:23: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:627:20: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:628:31: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:628:31: call_function: calling 'add_card' from 'snd_device_name_hint'
# 340| if (snd_config_search(cfg, "device_input", &n) >= 0) {
# 341| if (snd_config_get_integer(n, &list->device_input) < 0) {
# 342|-> SNDERR("(%s) device_input must be an integer", buf);
# 343| err = -EINVAL;
# 344| goto __cleanup;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/control/namehint.c:352:33: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.14/src/control/namehint.c:583:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.14/src/control/namehint.c:593:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.14/src/control/namehint.c:595:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:596:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:598:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:599:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:601:9: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:625:12: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:626:23: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:627:20: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:628:31: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:628:31: call_function: calling 'add_card' from 'snd_device_name_hint'
# 350| if (snd_config_search(cfg, "device_output", &n) >= 0) {
# 351| if (snd_config_get_integer(n, &list->device_output) < 0) {
# 352|-> SNDERR("(%s) device_output must be an integer", buf);
# 353| err = -EINVAL;
# 354| goto __cleanup;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/control/namehint.c:352:33: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.14/src/control/namehint.c:583:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.14/src/control/namehint.c:593:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.14/src/control/namehint.c:595:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:596:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:598:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:599:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:601:9: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:625:12: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:626:23: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:627:20: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:628:31: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:628:31: call_function: calling 'add_card' from 'snd_device_name_hint'
# 350| if (snd_config_search(cfg, "device_output", &n) >= 0) {
# 351| if (snd_config_get_integer(n, &list->device_output) < 0) {
# 352|-> SNDERR("(%s) device_output must be an integer", buf);
# 353| err = -EINVAL;
# 354| goto __cleanup;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/control/namehint.c:372:14: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.14/src/control/namehint.c:583:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.14/src/control/namehint.c:593:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.14/src/control/namehint.c:595:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:596:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:598:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:599:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:601:9: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:625:12: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:626:23: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:627:20: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:628:31: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:628:31: call_function: calling 'add_card' from 'snd_device_name_hint'
# 370| /* find, if all parameters have a default, */
# 371| /* otherwise filter this definition */
# 372|-> eh = snd_lib_error_set_local(&zero_handler);
# 373| err = snd_config_search_alias_hooks(config, base, buf, &res);
# 374| snd_lib_error_set_local(eh);
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/control/namehint.c:372:14: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.14/src/control/namehint.c:583:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.14/src/control/namehint.c:593:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.14/src/control/namehint.c:595:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:596:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:598:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:599:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:601:9: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:625:12: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:626:23: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:627:20: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:628:31: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:628:31: call_function: calling 'add_card' from 'snd_device_name_hint'
# 370| /* find, if all parameters have a default, */
# 371| /* otherwise filter this definition */
# 372|-> eh = snd_lib_error_set_local(&zero_handler);
# 373| err = snd_config_search_alias_hooks(config, base, buf, &res);
# 374| snd_lib_error_set_local(eh);
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/control/namehint.c:374:9: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.14/src/control/namehint.c:583:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.14/src/control/namehint.c:593:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.14/src/control/namehint.c:595:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:596:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:598:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:599:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:601:9: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:625:12: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:626:23: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:627:20: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:628:31: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:628:31: call_function: calling 'add_card' from 'snd_device_name_hint'
# 372| eh = snd_lib_error_set_local(&zero_handler);
# 373| err = snd_config_search_alias_hooks(config, base, buf, &res);
# 374|-> snd_lib_error_set_local(eh);
# 375| if (err < 0)
# 376| goto __cleanup;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/control/namehint.c:374:9: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.14/src/control/namehint.c:583:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.14/src/control/namehint.c:593:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.14/src/control/namehint.c:595:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:596:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:598:15: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:599:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/control/namehint.c:601:9: branch_false: ...to here
alsa-lib-1.2.14/src/control/namehint.c:625:12: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:626:23: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:627:20: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/control/namehint.c:628:31: branch_true: ...to here
alsa-lib-1.2.14/src/control/namehint.c:628:31: call_function: calling 'add_card' from 'snd_device_name_hint'
# 372| eh = snd_lib_error_set_local(&zero_handler);
# 373| err = snd_config_search_alias_hooks(config, base, buf, &res);
# 374|-> snd_lib_error_set_local(eh);
# 375| if (err < 0)
# 376| goto __cleanup;
Error: GCC_ANALYZER_WARNING (CWE-404):
alsa-lib-1.2.14/src/error.c:103:17: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
alsa-lib-1.2.14/src/error.c:101:9: acquire_resource: 'va_start' called here
alsa-lib-1.2.14/src/error.c:102:12: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/error.c:103:17: branch_true: ...to here
alsa-lib-1.2.14/src/error.c:103:17: throw: if the called function throws an exception...
alsa-lib-1.2.14/src/error.c:103:17: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 101| va_start(arg, fmt);
# 102| if (local_error) {
# 103|-> local_error(file, line, function, err, fmt, arg);
# 104| va_end(arg);
# 105| return;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/mixer/simple_abst.c:132:17: warning[-Wanalyzer-malloc-leak]: leak of 'xlib'
alsa-lib-1.2.14/src/mixer/simple_abst.c:123:16: acquire_memory: allocated here
alsa-lib-1.2.14/src/mixer/simple_abst.c:124:12: branch_false: following 'false' branch (when 'xlib' is non-NULL)...
alsa-lib-1.2.14/src/mixer/simple_abst.c:126:9: branch_false: ...to here
alsa-lib-1.2.14/src/mixer/simple_abst.c:131:12: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/mixer/simple_abst.c:132:17: branch_true: ...to here
alsa-lib-1.2.14/src/mixer/simple_abst.c:132:17: throw: if the called function throws an exception...
alsa-lib-1.2.14/src/mixer/simple_abst.c:132:17: danger: 'xlib' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
# 130| h = INTERNAL(snd_dlopen)(xlib, RTLD_NOW|RTLD_GLOBAL, errbuf, sizeof(errbuf));
# 131| if (h == NULL) {
# 132|-> SNDERR("Unable to open library '%s'", xlib);
# 133| free(xlib);
# 134| return -ENXIO;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/mixer/simple_abst.c:139:17: warning[-Wanalyzer-malloc-leak]: leak of 'xlib'
alsa-lib-1.2.14/src/mixer/simple_abst.c:123:16: acquire_memory: allocated here
alsa-lib-1.2.14/src/mixer/simple_abst.c:124:12: branch_false: following 'false' branch (when 'xlib' is non-NULL)...
alsa-lib-1.2.14/src/mixer/simple_abst.c:126:9: branch_false: ...to here
alsa-lib-1.2.14/src/mixer/simple_abst.c:131:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/mixer/simple_abst.c:136:9: branch_false: ...to here
alsa-lib-1.2.14/src/mixer/simple_abst.c:138:12: branch_true: following 'true' branch (when 'event_func' is NULL)...
alsa-lib-1.2.14/src/mixer/simple_abst.c:139:17: branch_true: ...to here
alsa-lib-1.2.14/src/mixer/simple_abst.c:139:17: throw: if the called function throws an exception...
alsa-lib-1.2.14/src/mixer/simple_abst.c:139:17: danger: 'xlib' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 137| event_func = snd_dlsym(h, "alsa_mixer_simple_event", NULL);
# 138| if (event_func == NULL) {
# 139|-> SNDERR("Symbol 'alsa_mixer_simple_event' was not found in '%s'", xlib);
# 140| err = -ENXIO;
# 141| }
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/mixer/simple_abst.c:145:25: warning[-Wanalyzer-malloc-leak]: leak of 'xlib'
alsa-lib-1.2.14/src/mixer/simple_abst.c:123:16: acquire_memory: allocated here
alsa-lib-1.2.14/src/mixer/simple_abst.c:124:12: branch_false: following 'false' branch (when 'xlib' is non-NULL)...
alsa-lib-1.2.14/src/mixer/simple_abst.c:126:9: branch_false: ...to here
alsa-lib-1.2.14/src/mixer/simple_abst.c:131:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/mixer/simple_abst.c:136:9: branch_false: ...to here
alsa-lib-1.2.14/src/mixer/simple_abst.c:138:12: branch_false: following 'false' branch (when 'event_func' is non-NULL)...
alsa-lib-1.2.14/src/mixer/simple_abst.c:143:29: branch_false: ...to here
alsa-lib-1.2.14/src/mixer/simple_abst.c:144:20: branch_true: following 'true' branch (when 'init_func' is NULL)...
alsa-lib-1.2.14/src/mixer/simple_abst.c:145:25: branch_true: ...to here
alsa-lib-1.2.14/src/mixer/simple_abst.c:145:25: throw: if the called function throws an exception...
alsa-lib-1.2.14/src/mixer/simple_abst.c:145:25: danger: 'xlib' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
# 143| init_func = snd_dlsym(h, "alsa_mixer_simple_finit", NULL);
# 144| if (init_func == NULL) {
# 145|-> SNDERR("Symbol 'alsa_mixer_simple_finit' was not found in '%s'", xlib);
# 146| err = -ENXIO;
# 147| }
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1732:17: warning[-Wanalyzer-malloc-leak]: leak of 'dmix'
alsa-lib-1.2.14/src/pcm/pcm_direct.c:2144:5: enter_function: entry to '_snd_pcm_direct_new'
alsa-lib-1.2.14/src/pcm/pcm_direct.c:2152:16: acquire_memory: allocated here
alsa-lib-1.2.14/src/pcm/pcm_direct.c:2153:12: branch_false: following 'false' branch (when 'dmix' is non-NULL)...
alsa-lib-1.2.14/src/pcm/pcm_direct.c:2156:15: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_direct.c:2156:15: call_function: calling 'snd1_pcm_direct_parse_bindings' from '_snd_pcm_direct_new'
# 1730| return 0;
# 1731| if (snd_config_get_type(cfg) != SND_CONFIG_TYPE_COMPOUND) {
# 1732|-> SNDERR("invalid type for bindings");
# 1733| return -EINVAL;
# 1734| }
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1768:25: warning[-Wanalyzer-malloc-leak]: leak of 'bindings'
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1742:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1749:12: branch_false: following 'false' branch (when 'count != 0')...
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1751:12: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1751:12: branch_false: following 'false' branch (when 'count <= 1024')...
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1755:20: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1755:20: acquire_memory: allocated here
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1756:12: branch_false: following 'false' branch (when 'bindings' is non-NULL)...
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1756:12: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1760:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1761:35: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1768:25: throw: if the called function throws an exception...
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1768:25: danger: 'bindings' leaks here; was allocated at [(7)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/6)
# 1766| safe_strtol(id, &cchannel);
# 1767| if (snd_config_get_integer(n, &schannel) < 0) {
# 1768|-> SNDERR("unable to get slave channel (should be integer type) in binding: %s", id);
# 1769| free(bindings);
# 1770| return -EINVAL;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1773:25: warning[-Wanalyzer-malloc-leak]: leak of 'bindings'
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1742:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1749:12: branch_false: following 'false' branch (when 'count != 0')...
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1751:12: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1751:12: branch_false: following 'false' branch (when 'count <= 1024')...
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1755:20: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1755:20: acquire_memory: allocated here
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1756:12: branch_false: following 'false' branch (when 'bindings' is non-NULL)...
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1756:12: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1760:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1761:35: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1767:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1772:21: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1773:25: throw: if the called function throws an exception...
alsa-lib-1.2.14/src/pcm/pcm_direct.c:1773:25: danger: 'bindings' leaks here; was allocated at [(7)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/6)
# 1771| }
# 1772| if (schannel < 0 || schannel >= params->channels) {
# 1773|-> SNDERR("invalid slave channel number %ld in binding to %ld",
# 1774| schannel, cchannel);
# 1775| free(bindings);
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/pcm/pcm_file.c:935:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.14/src/pcm/pcm_file.c:910:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.14/src/pcm/pcm_file.c:911:12: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_file.c:921:12: branch_false: following 'false' branch (when 'file' is non-NULL)...
alsa-lib-1.2.14/src/pcm/pcm_file.c:927:12: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_file.c:927:12: branch_true: following 'true' branch (when 'fname' is non-NULL)...
alsa-lib-1.2.14/src/pcm/pcm_file.c:928:31: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_file.c:928:31: acquire_memory: allocated here
alsa-lib-1.2.14/src/pcm/pcm_file.c:932:12: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/pcm/pcm_file.c:933:23: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_file.c:934:20: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/pcm/pcm_file.c:935:25: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_file.c:935:25: throw: if the called function throws an exception...
alsa-lib-1.2.14/src/pcm/pcm_file.c:935:25: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
# 933| ifd = open(ifname, O_RDONLY); /* TODO: mind blocking mode */
# 934| if (ifd < 0) {
# 935|-> SYSERR("open %s for reading failed", ifname);
# 936| free(file->fname);
# 937| free(file);
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/pcm/pcm_file.c:935:25: warning[-Wanalyzer-malloc-leak]: leak of 'file'
alsa-lib-1.2.14/src/pcm/pcm_file.c:910:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.14/src/pcm/pcm_file.c:911:12: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_file.c:920:16: acquire_memory: allocated here
alsa-lib-1.2.14/src/pcm/pcm_file.c:921:12: branch_false: following 'false' branch (when 'file' is non-NULL)...
alsa-lib-1.2.14/src/pcm/pcm_file.c:927:12: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_file.c:927:12: branch_false: following 'false' branch (when 'fname' is NULL)...
alsa-lib-1.2.14/src/pcm/pcm_file.c:929:9: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_file.c:932:12: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/pcm/pcm_file.c:933:23: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_file.c:934:20: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/pcm/pcm_file.c:935:25: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_file.c:935:25: throw: if the called function throws an exception...
alsa-lib-1.2.14/src/pcm/pcm_file.c:935:25: danger: 'file' leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
# 933| ifd = open(ifname, O_RDONLY); /* TODO: mind blocking mode */
# 934| if (ifd < 0) {
# 935|-> SYSERR("open %s for reading failed", ifname);
# 936| free(file->fname);
# 937| free(file);
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/pcm/pcm_meter.c:464:63: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(buf_size_bytes)'
alsa-lib-1.2.14/src/pcm/pcm_meter.c:453:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/pcm/pcm_meter.c:456:27: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_meter.c:460:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/pcm/pcm_meter.c:461:22: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_meter.c:461:22: acquire_memory: allocated here
alsa-lib-1.2.14/src/pcm/pcm_meter.c:462:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/pcm/pcm_meter.c:464:63: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_meter.c:464:63: danger: 'malloc(buf_size_bytes)' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
# 462| if (!meter->buf)
# 463| return -ENOMEM;
# 464|-> meter->buf_areas = malloc(sizeof(*meter->buf_areas) * slave->channels);
# 465| if (!meter->buf_areas) {
# 466| free(meter->buf);
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1564:25: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1509:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1510:12: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1513:16: acquire_memory: allocated here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1514:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1517:9: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1527:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1534:12: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1534:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1543:21: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1543:19: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1545:18: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1545:17: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1555:20: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1555:19: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1557:17: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1557:17: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1558:43: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1564:25: throw: if 'snd_config_get_string' throws an exception...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1564:25: danger: 'rate' leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
# 1562| if (strcmp(id, "name") != 0)
# 1563| continue;
# 1564|-> snd_config_get_string(n, &type);
# 1565| break;
# 1566| }
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1568:25: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1509:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1510:12: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1513:16: acquire_memory: allocated here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1514:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1517:9: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1527:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1534:12: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1534:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1543:21: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1543:19: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1545:18: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1545:17: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1555:20: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1555:19: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1557:17: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1567:20: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1568:25: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1568:25: throw: if the called function throws an exception...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1568:25: danger: 'rate' leaks here; was allocated at [(3)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/2)
# 1566| }
# 1567| if (!type) {
# 1568|-> SNDERR("No name given for rate converter");
# 1569| snd_pcm_free(pcm);
# 1570| free(rate);
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1575:17: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1509:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1510:12: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1513:16: acquire_memory: allocated here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1514:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1517:9: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1527:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1534:12: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1534:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1543:21: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1543:19: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1545:18: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1545:17: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1555:20: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1555:19: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1575:17: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1575:17: throw: if the called function throws an exception...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1575:17: danger: 'rate' leaks here; was allocated at [(3)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/2)
# 1573| err = rate_open_func(rate, type, converter, 1);
# 1574| } else {
# 1575|-> SNDERR("Invalid type for rate converter");
# 1576| snd_pcm_free(pcm);
# 1577| free(rate);
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1581:17: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1509:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1510:12: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1513:16: acquire_memory: allocated here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1514:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1517:9: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1527:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1534:12: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1534:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1543:21: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1543:19: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1545:18: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1545:17: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1547:17: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1580:12: branch_true: following 'true' branch (when 'err < 0')...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1581:17: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1581:17: throw: if the called function throws an exception...
alsa-lib-1.2.14/src/pcm/pcm_rate.c:1581:17: danger: 'rate' leaks here; was allocated at [(3)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/2)
# 1579| }
# 1580| if (err < 0) {
# 1581|-> SNDERR("Cannot find rate converter");
# 1582| snd_pcm_free(pcm);
# 1583| free(rate);
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/pcm/pcm_route.c:813:33: warning[-Wanalyzer-malloc-leak]: leak of 'chmap'
alsa-lib-1.2.14/src/pcm/pcm_route.c:777:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/pcm/pcm_route.c:778:17: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_route.c:778:17: acquire_memory: allocated here
alsa-lib-1.2.14/src/pcm/pcm_route.c:782:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/pcm/pcm_route.c:785:36: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_route.c:789:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/pcm/pcm_route.c:791:17: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_route.c:800:28: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/pcm/pcm_route.c:800:28: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_route.c:804:37: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/pcm/pcm_route.c:809:28: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_route.c:809:28: branch_false: following 'false' branch (when 'found == 0')...
alsa-lib-1.2.14/src/pcm/pcm_route.c:812:28: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_route.c:812:28: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/pcm/pcm_route.c:816:36: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_route.c:800:28: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/pcm/pcm_route.c:800:28: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_route.c:812:28: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/pcm/pcm_route.c:813:33: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_route.c:813:33: throw: if the called function throws an exception...
alsa-lib-1.2.14/src/pcm/pcm_route.c:813:33: danger: 'chmap' leaks here; was allocated at [(3)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/2)
# 811|
# 812| if (chmap->channels >= MAX_CHMAP_CHANNELS) {
# 813|-> SNDERR("Too many channels in ttable chmap");
# 814| goto err;
# 815| }
Error: COMPILER_WARNING (CWE-252):
alsa-lib-1.2.14/src/pcm/pcm_share.c: scope_hint: In function 'snd_pcm_share_thread'
alsa-lib-1.2.14/src/pcm/pcm_share.c:417:33: warning[-Wunused-result]: ignoring return value of 'read' declared with attribute 'warn_unused_result'
# 417 | read(pfd[0].fd, buf, 1);
# | ^~~~~~~~~~~~~~~~~~~~~~~
# 415| if (pfd[0].revents & POLLIN) {
# 416| char buf[1];
# 417|-> read(pfd[0].fd, buf, 1);
# 418| }
# 419| } else {
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/pcm/pcm_share.c:1519:41: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.14/src/pcm/pcm_share.c:1397:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.14/src/pcm/pcm_share.c:1398:9: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_share.c:1398:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/pcm/pcm_share.c:1414:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.14/src/pcm/pcm_share.c:1417:9: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_share.c:1418:33: acquire_memory: allocated here
alsa-lib-1.2.14/src/pcm/pcm_share.c:1419:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/pcm/pcm_share.c:1423:53: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_share.c:1426:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/pcm/pcm_share.c:1431:15: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_share.c:1432:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.14/src/pcm/pcm_share.c:1439:12: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_share.c:1455:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.14/src/pcm/pcm_share.c:1465:9: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_share.c:1466:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/pcm/pcm_share.c:1467:40: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_share.c:1473:12: branch_false: following 'false' branch (when 'slave' is non-NULL)...
alsa-lib-1.2.14/src/pcm/pcm_share.c:1513:17: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_share.c:1515:17: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/pcm/pcm_share.c:1515:17: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_share.c:1519:41: throw: if the called function throws an exception...
alsa-lib-1.2.14/src/pcm/pcm_share.c:1519:41: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/6)
# 1517| for (k = 0; k < sh->channels; ++k) {
# 1518| if (slave_map[sh->slave_channels[k]]) {
# 1519|-> SNDERR("Slave channel %d is already in use", sh->slave_channels[k]);
# 1520| Pthread_mutex_unlock(&slave->mutex);
# 1521| close(sd[0]);
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/pcm/pcm_share.c:1519:41: warning[-Wanalyzer-malloc-leak]: leak of 'share'
alsa-lib-1.2.14/src/pcm/pcm_share.c:1397:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.14/src/pcm/pcm_share.c:1398:9: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_share.c:1398:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/pcm/pcm_share.c:1413:17: acquire_memory: allocated here
alsa-lib-1.2.14/src/pcm/pcm_share.c:1414:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.14/src/pcm/pcm_share.c:1417:9: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_share.c:1419:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/pcm/pcm_share.c:1423:53: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_share.c:1426:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/pcm/pcm_share.c:1431:15: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_share.c:1432:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.14/src/pcm/pcm_share.c:1439:12: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_share.c:1455:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.14/src/pcm/pcm_share.c:1465:9: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_share.c:1466:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/pcm/pcm_share.c:1467:40: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_share.c:1473:12: branch_false: following 'false' branch (when 'slave' is non-NULL)...
alsa-lib-1.2.14/src/pcm/pcm_share.c:1513:17: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_share.c:1515:17: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/pcm/pcm_share.c:1515:17: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_share.c:1519:41: throw: if the called function throws an exception...
alsa-lib-1.2.14/src/pcm/pcm_share.c:1519:41: danger: 'share' leaks here; was allocated at [(5)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/4)
# 1517| for (k = 0; k < sh->channels; ++k) {
# 1518| if (slave_map[sh->slave_channels[k]]) {
# 1519|-> SNDERR("Slave channel %d is already in use", sh->slave_channels[k]);
# 1520| Pthread_mutex_unlock(&slave->mutex);
# 1521| close(sd[0]);
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/pcm/pcm_softvol.c:775:25: warning[-Wanalyzer-malloc-leak]: leak of 'svol'
alsa-lib-1.2.14/src/pcm/pcm_softvol.c:914:5: enter_function: entry to 'snd_pcm_softvol_open'
alsa-lib-1.2.14/src/pcm/pcm_softvol.c:924:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/pcm/pcm_softvol.c:925:13: branch_true: ...to here
alsa-lib-1.2.14/src/pcm/pcm_softvol.c:933:16: acquire_memory: allocated here
alsa-lib-1.2.14/src/pcm/pcm_softvol.c:934:12: branch_false: following 'false' branch (when 'svol' is non-NULL)...
alsa-lib-1.2.14/src/pcm/pcm_softvol.c:936:15: branch_false: ...to here
alsa-lib-1.2.14/src/pcm/pcm_softvol.c:936:15: call_function: calling 'softvol_load_control' from 'snd_pcm_softvol_open'
# 773| ctl_card = snd_pcm_info_get_card(&info);
# 774| if (ctl_card < 0) {
# 775|-> SNDERR("No card defined for softvol control");
# 776| return -EINVAL;
# 777| }
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/seq/seq_hw.c:80:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.14/src/seq/seq_hw.c:502:5: enter_function: entry to 'snd_seq_hw_open'
alsa-lib-1.2.14/src/seq/seq_hw.c:511:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/seq/seq_hw.c:511:9: branch_true: ...to here
alsa-lib-1.2.14/src/seq/seq_hw.c:539:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/seq/seq_hw.c:543:13: branch_false: ...to here
alsa-lib-1.2.14/src/seq/seq_hw.c:543:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/seq/seq_hw.c:549:13: branch_false: ...to here
alsa-lib-1.2.14/src/seq/seq_hw.c:549:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/seq/seq_hw.c:559:12: branch_false: following 'false' branch (when 'hw' is non-NULL)...
alsa-lib-1.2.14/src/seq/seq_hw.c:564:15: branch_false: ...to here
alsa-lib-1.2.14/src/seq/seq_hw.c:565:12: branch_false: following 'false' branch (when 'seq' is non-NULL)...
alsa-lib-1.2.14/src/seq/seq_hw.c:570:9: branch_false: ...to here
alsa-lib-1.2.14/src/seq/seq_hw.c:572:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/seq/seq_hw.c:581:13: branch_false: ...to here
alsa-lib-1.2.14/src/seq/seq_hw.c:581:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/seq/seq_hw.c:591:12: branch_false: ...to here
alsa-lib-1.2.14/src/seq/seq_hw.c:591:12: branch_true: following 'true' branch (when 'name' is non-NULL)...
alsa-lib-1.2.14/src/seq/seq_hw.c:592:29: branch_true: ...to here
alsa-lib-1.2.14/src/seq/seq_hw.c:592:29: acquire_memory: allocated here
alsa-lib-1.2.14/src/seq/seq_hw.c:604:18: call_function: calling 'snd_seq_hw_client_id' from 'snd_seq_hw_open'
# 78| int client;
# 79| if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_CLIENT_ID, &client) < 0) {
# 80|-> SYSERR("SNDRV_SEQ_IOCTL_CLIENT_ID failed");
# 81| return -errno;
# 82| }
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/seq/seq_hw.c:80:17: warning[-Wanalyzer-malloc-leak]: leak of 'hw'
alsa-lib-1.2.14/src/seq/seq_hw.c:502:5: enter_function: entry to 'snd_seq_hw_open'
alsa-lib-1.2.14/src/seq/seq_hw.c:511:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/seq/seq_hw.c:511:9: branch_true: ...to here
alsa-lib-1.2.14/src/seq/seq_hw.c:539:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/seq/seq_hw.c:543:13: branch_false: ...to here
alsa-lib-1.2.14/src/seq/seq_hw.c:543:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/seq/seq_hw.c:549:13: branch_false: ...to here
alsa-lib-1.2.14/src/seq/seq_hw.c:549:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/seq/seq_hw.c:558:14: acquire_memory: allocated here
alsa-lib-1.2.14/src/seq/seq_hw.c:559:12: branch_false: following 'false' branch (when 'hw' is non-NULL)...
alsa-lib-1.2.14/src/seq/seq_hw.c:564:15: branch_false: ...to here
alsa-lib-1.2.14/src/seq/seq_hw.c:565:12: branch_false: following 'false' branch (when 'seq' is non-NULL)...
alsa-lib-1.2.14/src/seq/seq_hw.c:570:9: branch_false: ...to here
alsa-lib-1.2.14/src/seq/seq_hw.c:572:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/seq/seq_hw.c:581:13: branch_false: ...to here
alsa-lib-1.2.14/src/seq/seq_hw.c:581:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/seq/seq_hw.c:591:12: branch_false: ...to here
alsa-lib-1.2.14/src/seq/seq_hw.c:591:12: branch_false: following 'false' branch (when 'name' is NULL)...
alsa-lib-1.2.14/src/seq/seq_hw.c:593:9: branch_false: ...to here
alsa-lib-1.2.14/src/seq/seq_hw.c:604:18: call_function: calling 'snd_seq_hw_client_id' from 'snd_seq_hw_open'
# 78| int client;
# 79| if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_CLIENT_ID, &client) < 0) {
# 80|-> SYSERR("SNDRV_SEQ_IOCTL_CLIENT_ID failed");
# 81| return -errno;
# 82| }
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/seq/seq_hw.c:80:17: warning[-Wanalyzer-malloc-leak]: leak of 'seq'
alsa-lib-1.2.14/src/seq/seq_hw.c:502:5: enter_function: entry to 'snd_seq_hw_open'
alsa-lib-1.2.14/src/seq/seq_hw.c:511:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/seq/seq_hw.c:511:9: branch_true: ...to here
alsa-lib-1.2.14/src/seq/seq_hw.c:539:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/seq/seq_hw.c:543:13: branch_false: ...to here
alsa-lib-1.2.14/src/seq/seq_hw.c:543:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/seq/seq_hw.c:549:13: branch_false: ...to here
alsa-lib-1.2.14/src/seq/seq_hw.c:549:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/seq/seq_hw.c:559:12: branch_false: following 'false' branch (when 'hw' is non-NULL)...
alsa-lib-1.2.14/src/seq/seq_hw.c:564:15: branch_false: ...to here
alsa-lib-1.2.14/src/seq/seq_hw.c:564:15: acquire_memory: allocated here
alsa-lib-1.2.14/src/seq/seq_hw.c:565:12: branch_false: following 'false' branch (when 'seq' is non-NULL)...
alsa-lib-1.2.14/src/seq/seq_hw.c:570:9: branch_false: ...to here
alsa-lib-1.2.14/src/seq/seq_hw.c:572:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/seq/seq_hw.c:581:13: branch_false: ...to here
alsa-lib-1.2.14/src/seq/seq_hw.c:581:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/seq/seq_hw.c:591:12: branch_false: ...to here
alsa-lib-1.2.14/src/seq/seq_hw.c:591:12: branch_false: following 'false' branch (when 'name' is NULL)...
alsa-lib-1.2.14/src/seq/seq_hw.c:593:9: branch_false: ...to here
alsa-lib-1.2.14/src/seq/seq_hw.c:604:18: call_function: calling 'snd_seq_hw_client_id' from 'snd_seq_hw_open'
# 78| int client;
# 79| if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_CLIENT_ID, &client) < 0) {
# 80|-> SYSERR("SNDRV_SEQ_IOCTL_CLIENT_ID failed");
# 81| return -errno;
# 82| }
Error: GCC_ANALYZER_WARNING (CWE-775):
alsa-lib-1.2.14/src/topology/data.c:194:17: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(&filename, "r")'
alsa-lib-1.2.14/src/topology/data.c:1344:5: enter_function: entry to 'tplg_parse_data'
alsa-lib-1.2.14/src/topology/data.c:1354:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/topology/data.c:1357:9: branch_false: ...to here
alsa-lib-1.2.14/src/topology/data.c:1357:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/topology/data.c:1359:21: branch_true: ...to here
alsa-lib-1.2.14/src/topology/data.c:1364:20: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.14/src/topology/data.c:1365:31: branch_true: ...to here
alsa-lib-1.2.14/src/topology/data.c:1365:31: call_function: calling 'tplg_parse_data_file' from 'tplg_parse_data'
# 192| fseek(fp, 0L, SEEK_SET);
# 193| if (size <= 0) {
# 194|-> SNDERR("invalid data file size %zu", size);
# 195| ret = -EINVAL;
# 196| goto err;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/topology/data.c:194:17: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(&filename, "r")'
alsa-lib-1.2.14/src/topology/data.c:1344:5: enter_function: entry to 'tplg_parse_data'
alsa-lib-1.2.14/src/topology/data.c:1354:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/topology/data.c:1357:9: branch_false: ...to here
alsa-lib-1.2.14/src/topology/data.c:1357:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/topology/data.c:1359:21: branch_true: ...to here
alsa-lib-1.2.14/src/topology/data.c:1364:20: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.14/src/topology/data.c:1365:31: branch_true: ...to here
alsa-lib-1.2.14/src/topology/data.c:1365:31: call_function: calling 'tplg_parse_data_file' from 'tplg_parse_data'
# 192| fseek(fp, 0L, SEEK_SET);
# 193| if (size <= 0) {
# 194|-> SNDERR("invalid data file size %zu", size);
# 195| ret = -EINVAL;
# 196| goto err;
Error: GCC_ANALYZER_WARNING (CWE-775):
alsa-lib-1.2.14/src/topology/data.c:199:17: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(&filename, "r")'
alsa-lib-1.2.14/src/topology/data.c:1344:5: enter_function: entry to 'tplg_parse_data'
alsa-lib-1.2.14/src/topology/data.c:1354:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/topology/data.c:1357:9: branch_false: ...to here
alsa-lib-1.2.14/src/topology/data.c:1357:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/topology/data.c:1359:21: branch_true: ...to here
alsa-lib-1.2.14/src/topology/data.c:1364:20: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.14/src/topology/data.c:1365:31: branch_true: ...to here
alsa-lib-1.2.14/src/topology/data.c:1365:31: call_function: calling 'tplg_parse_data_file' from 'tplg_parse_data'
# 197| }
# 198| if (size > TPLG_MAX_PRIV_SIZE) {
# 199|-> SNDERR("data file too big %zu", size);
# 200| ret = -EINVAL;
# 201| goto err;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/topology/data.c:199:17: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(&filename, "r")'
alsa-lib-1.2.14/src/topology/data.c:1344:5: enter_function: entry to 'tplg_parse_data'
alsa-lib-1.2.14/src/topology/data.c:1354:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/topology/data.c:1357:9: branch_false: ...to here
alsa-lib-1.2.14/src/topology/data.c:1357:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/topology/data.c:1359:21: branch_true: ...to here
alsa-lib-1.2.14/src/topology/data.c:1364:20: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.14/src/topology/data.c:1365:31: branch_true: ...to here
alsa-lib-1.2.14/src/topology/data.c:1365:31: call_function: calling 'tplg_parse_data_file' from 'tplg_parse_data'
# 197| }
# 198| if (size > TPLG_MAX_PRIV_SIZE) {
# 199|-> SNDERR("data file too big %zu", size);
# 200| ret = -EINVAL;
# 201| goto err;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/topology/data.c:362:25: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
alsa-lib-1.2.14/src/topology/data.c:1112:5: enter_function: entry to 'tplg_parse_tuples'
alsa-lib-1.2.14/src/topology/data.c:1123:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/topology/data.c:1128:18: branch_false: ...to here
alsa-lib-1.2.14/src/topology/data.c:1129:12: branch_false: following 'false' branch (when 'tuples' is non-NULL)...
alsa-lib-1.2.14/src/topology/data.c:1131:9: branch_false: ...to here
alsa-lib-1.2.14/src/topology/data.c:1133:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/topology/data.c:1135:21: branch_true: ...to here
alsa-lib-1.2.14/src/topology/data.c:1139:20: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.14/src/topology/data.c:1146:21: branch_false: ...to here
alsa-lib-1.2.14/src/topology/data.c:1147:31: call_function: calling 'parse_tuple_sets' from 'tplg_parse_tuples'
# 360| || (errno != 0 && val == 0)
# 361| || (val > UCHAR_MAX)) {
# 362|-> SNDERR("invalid value for uuid");
# 363| ret = -EINVAL;
# 364| goto out;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/topology/data.c:386:25: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
alsa-lib-1.2.14/src/topology/data.c:1112:5: enter_function: entry to 'tplg_parse_tuples'
alsa-lib-1.2.14/src/topology/data.c:1123:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/topology/data.c:1128:18: branch_false: ...to here
alsa-lib-1.2.14/src/topology/data.c:1129:12: branch_false: following 'false' branch (when 'tuples' is non-NULL)...
alsa-lib-1.2.14/src/topology/data.c:1131:9: branch_false: ...to here
alsa-lib-1.2.14/src/topology/data.c:1133:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/topology/data.c:1135:21: branch_true: ...to here
alsa-lib-1.2.14/src/topology/data.c:1139:20: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.14/src/topology/data.c:1146:21: branch_false: ...to here
alsa-lib-1.2.14/src/topology/data.c:1147:31: call_function: calling 'parse_tuple_sets' from 'tplg_parse_tuples'
# 384| || (errno != 0 && val == 0)
# 385| || (val > UCHAR_MAX)) {
# 386|-> SNDERR("invalid value for uuid");
# 387| ret = -EINVAL;
# 388| goto out;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/topology/data.c:401:17: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
alsa-lib-1.2.14/src/topology/data.c:1112:5: enter_function: entry to 'tplg_parse_tuples'
alsa-lib-1.2.14/src/topology/data.c:1123:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/topology/data.c:1128:18: branch_false: ...to here
alsa-lib-1.2.14/src/topology/data.c:1129:12: branch_false: following 'false' branch (when 'tuples' is non-NULL)...
alsa-lib-1.2.14/src/topology/data.c:1131:9: branch_false: ...to here
alsa-lib-1.2.14/src/topology/data.c:1133:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/topology/data.c:1135:21: branch_true: ...to here
alsa-lib-1.2.14/src/topology/data.c:1139:20: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.14/src/topology/data.c:1146:21: branch_false: ...to here
alsa-lib-1.2.14/src/topology/data.c:1147:31: call_function: calling 'parse_tuple_sets' from 'tplg_parse_tuples'
# 399|
# 400| if (values < 16) {
# 401|-> SNDERR("less than 16 integers for uuid");
# 402| ret = -EINVAL;
# 403| }
Error: GCC_ANALYZER_WARNING (CWE-457):
alsa-lib-1.2.14/src/topology/data.c:997:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'id'
alsa-lib-1.2.14/src/topology/data.c:1112:5: enter_function: entry to 'tplg_parse_tuples'
alsa-lib-1.2.14/src/topology/data.c:1123:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/topology/data.c:1128:18: branch_false: ...to here
alsa-lib-1.2.14/src/topology/data.c:1129:12: branch_false: following 'false' branch (when 'tuples' is non-NULL)...
alsa-lib-1.2.14/src/topology/data.c:1131:9: branch_false: ...to here
alsa-lib-1.2.14/src/topology/data.c:1133:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/topology/data.c:1135:21: branch_true: ...to here
alsa-lib-1.2.14/src/topology/data.c:1139:20: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.14/src/topology/data.c:1146:21: branch_false: ...to here
alsa-lib-1.2.14/src/topology/data.c:1147:31: call_function: calling 'parse_tuple_sets' from 'tplg_parse_tuples'
# 995| n = snd_config_iterator_entry(i);
# 996| if (snd_config_get_type(n) != SND_CONFIG_TYPE_COMPOUND) {
# 997|-> SNDERR("compound type expected for %s, is %d",
# 998| id, snd_config_get_type(n));
# 999| return -EINVAL;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/topology/pcm.c:323:25: warning[-Wanalyzer-malloc-leak]: leak of 's'
alsa-lib-1.2.14/src/topology/pcm.c:397:5: enter_function: entry to 'tplg_parse_stream_caps'
alsa-lib-1.2.14/src/topology/pcm.c:410:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/topology/pcm.c:413:9: branch_false: ...to here
alsa-lib-1.2.14/src/topology/pcm.c:419:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/topology/pcm.c:420:21: branch_true: ...to here
alsa-lib-1.2.14/src/topology/pcm.c:425:20: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.14/src/topology/pcm.c:427:21: branch_false: ...to here
alsa-lib-1.2.14/src/topology/pcm.c:427:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/topology/pcm.c:430:21: branch_false: ...to here
alsa-lib-1.2.14/src/topology/pcm.c:430:20: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.14/src/topology/pcm.c:431:29: branch_true: ...to here
alsa-lib-1.2.14/src/topology/pcm.c:431:28: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/topology/pcm.c:434:29: branch_false: ...to here
alsa-lib-1.2.14/src/topology/pcm.c:434:29: acquire_memory: allocated here
alsa-lib-1.2.14/src/topology/pcm.c:435:28: branch_false: following 'false' branch (when 's' is non-NULL)...
alsa-lib-1.2.14/src/topology/pcm.c:438:31: branch_false: ...to here
alsa-lib-1.2.14/src/topology/pcm.c:438:31: call_function: calling 'split_format' from 'tplg_parse_stream_caps'
# 321| format = snd_pcm_format_value(s);
# 322| if (format == SND_PCM_FORMAT_UNKNOWN) {
# 323|-> SNDERR("unsupported stream format %s", s);
# 324| return -EINVAL;
# 325| }
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/topology/pcm.c:366:25: warning[-Wanalyzer-malloc-leak]: leak of 's'
alsa-lib-1.2.14/src/topology/pcm.c:397:5: enter_function: entry to 'tplg_parse_stream_caps'
alsa-lib-1.2.14/src/topology/pcm.c:410:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/topology/pcm.c:413:9: branch_false: ...to here
alsa-lib-1.2.14/src/topology/pcm.c:419:9: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/topology/pcm.c:420:21: branch_true: ...to here
alsa-lib-1.2.14/src/topology/pcm.c:425:20: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.14/src/topology/pcm.c:427:21: branch_false: ...to here
alsa-lib-1.2.14/src/topology/pcm.c:427:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/topology/pcm.c:430:21: branch_false: ...to here
alsa-lib-1.2.14/src/topology/pcm.c:430:20: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.14/src/topology/pcm.c:448:21: branch_false: ...to here
alsa-lib-1.2.14/src/topology/pcm.c:448:20: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.14/src/topology/pcm.c:449:29: branch_true: ...to here
alsa-lib-1.2.14/src/topology/pcm.c:449:28: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/topology/pcm.c:452:29: branch_false: ...to here
alsa-lib-1.2.14/src/topology/pcm.c:452:29: acquire_memory: allocated here
alsa-lib-1.2.14/src/topology/pcm.c:453:28: branch_false: following 'false' branch (when 's' is non-NULL)...
alsa-lib-1.2.14/src/topology/pcm.c:456:31: branch_false: ...to here
alsa-lib-1.2.14/src/topology/pcm.c:456:31: call_function: calling 'split_rate' from 'tplg_parse_stream_caps'
# 364|
# 365| if (rate == SND_PCM_RATE_UNKNOWN) {
# 366|-> SNDERR("unsupported stream rate %s", s);
# 367| return -EINVAL;
# 368| }
Error: CPPCHECK_WARNING (CWE-476):
alsa-lib-1.2.14/src/ucm/main.c:203: warning[nullPointer]: Possible null pointer dereference: tlv
# 201| /* Check if the tlv file specifies valid size. */
# 202| tlv = (struct snd_ctl_tlv *)(*res);
# 203|-> if (tlv->length + 2 * sizeof(unsigned int) != sz) {
# 204| uc_error("Invalid tlv size: %d", tlv->length);
# 205| err = -EINVAL;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/ucm/main.c:612:25: warning[-Wanalyzer-malloc-leak]: leak of 'file'
alsa-lib-1.2.14/src/ucm/main.c:2691:5: enter_function: entry to 'snd_use_case_set'
alsa-lib-1.2.14/src/ucm/main.c:2699:12: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.14/src/ucm/main.c:2700:23: branch_true: ...to here
alsa-lib-1.2.14/src/ucm/main.c:2700:23: call_function: calling 'set_fixedboot_user' from 'snd_use_case_set'
# 610| err = snd_config_search(config, root, &config);
# 611| if (err < 0) {
# 612|-> uc_error("Unable to find subtree '%s'", root);
# 613| goto _err;
# 614| }
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/ucm/main.c:619:17: warning[-Wanalyzer-malloc-leak]: leak of 'file'
alsa-lib-1.2.14/src/ucm/main.c:2691:5: enter_function: entry to 'snd_use_case_set'
alsa-lib-1.2.14/src/ucm/main.c:2699:12: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.14/src/ucm/main.c:2700:23: branch_true: ...to here
alsa-lib-1.2.14/src/ucm/main.c:2700:23: call_function: calling 'set_fixedboot_user' from 'snd_use_case_set'
# 617| err = snd_output_stdio_open(&out, file, "w+");
# 618| if (err < 0) {
# 619|-> uc_error("unable to open file '%s': %s", file, snd_strerror(err));
# 620| goto _err;
# 621| }
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/ucm/main.c:634:17: warning[-Wanalyzer-malloc-leak]: leak of 'file'
alsa-lib-1.2.14/src/ucm/main.c:2691:5: enter_function: entry to 'snd_use_case_set'
alsa-lib-1.2.14/src/ucm/main.c:2699:12: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.14/src/ucm/main.c:2700:23: branch_true: ...to here
alsa-lib-1.2.14/src/ucm/main.c:2700:23: call_function: calling 'set_fixedboot_user' from 'snd_use_case_set'
# 632| snd_output_close(out);
# 633| if (err < 0) {
# 634|-> uc_error("unable to save configuration: %s", snd_strerror(err));
# 635| goto _err;
# 636| }
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/ucm/main.c:821:41: warning[-Wanalyzer-malloc-leak]: leak of 'cdev'
alsa-lib-1.2.14/src/ucm/main.c:2691:5: enter_function: entry to 'snd_use_case_set'
alsa-lib-1.2.14/src/ucm/main.c:2699:12: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.14/src/ucm/main.c:2700:23: branch_true: ...to here
alsa-lib-1.2.14/src/ucm/main.c:2700:23: call_function: calling 'set_fixedboot_user' from 'snd_use_case_set'
# 819| err = uc_mgr_open_ctl(uc_mgr, &ctl_list, cdev, 1);
# 820| if (err < 0) {
# 821|-> uc_error("unable to open ctl device '%s'", cdev);
# 822| goto __fail;
# 823| }
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/ucm/parser.c:190:17: warning[-Wanalyzer-malloc-leak]: leak of 'name'
alsa-lib-1.2.14/src/ucm/parser.c:1768:12: enter_function: entry to 'parse_modifier_name'
alsa-lib-1.2.14/src/ucm/parser.c:1773:16: call_function: calling 'parse_compound_check_legacy' from 'parse_modifier_name'
# 188| {
# 189| if (strchr(name, '.')) {
# 190|-> uc_error("char '.' not allowed in '%s'", name);
# 191| return 0;
# 192| }
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/ucm/parser.c:190:17: warning[-Wanalyzer-malloc-leak]: leak of 'use_case_name'
alsa-lib-1.2.14/src/ucm/parser.c:2173:12: enter_function: entry to 'parse_master_section'
alsa-lib-1.2.14/src/ucm/parser.c:2183:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2188:15: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2188:15: call_function: calling 'parse_get_safe_name' from 'parse_master_section'
# 188| {
# 189| if (strchr(name, '.')) {
# 190|-> uc_error("char '.' not allowed in '%s'", name);
# 191| return 0;
# 192| }
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/ucm/parser.c:297:17: warning[-Wanalyzer-malloc-leak]: leak of 'use_case_name'
alsa-lib-1.2.14/src/ucm/parser.c:2173:12: enter_function: entry to 'parse_master_section'
alsa-lib-1.2.14/src/ucm/parser.c:2183:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2188:15: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2188:15: call_function: calling 'parse_get_safe_name' from 'parse_master_section'
alsa-lib-1.2.14/src/ucm/parser.c:2188:15: return_function: returning to 'parse_master_section' from 'parse_get_safe_name'
alsa-lib-1.2.14/src/ucm/parser.c:2189:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2195:9: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2196:15: call_function: calling 'uc_mgr_evaluate_inplace' from 'parse_master_section'
# 295|
# 296| if (snd_config_get_type(d) != SND_CONFIG_TYPE_COMPOUND) {
# 297|-> uc_error("compound type expected for DefineRegex");
# 298| return -EINVAL;
# 299| }
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/ucm/parser.c:302:17: warning[-Wanalyzer-malloc-leak]: leak of 'use_case_name'
alsa-lib-1.2.14/src/ucm/parser.c:2173:12: enter_function: entry to 'parse_master_section'
alsa-lib-1.2.14/src/ucm/parser.c:2183:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2188:15: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2188:15: call_function: calling 'parse_get_safe_name' from 'parse_master_section'
alsa-lib-1.2.14/src/ucm/parser.c:2188:15: return_function: returning to 'parse_master_section' from 'parse_get_safe_name'
alsa-lib-1.2.14/src/ucm/parser.c:2189:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2195:9: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2196:15: call_function: calling 'uc_mgr_evaluate_inplace' from 'parse_master_section'
# 300|
# 301| if (uc_mgr->conf_format < 3) {
# 302|-> uc_error("DefineRegex is supported in v3+ syntax");
# 303| return -EINVAL;
# 304| }
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/ucm/parser.c:1034:17: warning[-Wanalyzer-malloc-leak]: leak of 'val'
alsa-lib-1.2.14/src/ucm/parser.c:2342:12: enter_function: entry to 'parse_controls'
alsa-lib-1.2.14/src/ucm/parser.c:2346:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2350:15: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2350:15: call_function: calling 'parse_sequence' from 'parse_controls'
# 1032| cmpt_seq->device = find_component_dev(uc_mgr, val);
# 1033| if (!cmpt_seq->device) {
# 1034|-> uc_error("error: Cannot find component device %s", val);
# 1035| free(val);
# 1036| return -EINVAL;
Error: CPPCHECK_WARNING (CWE-401):
alsa-lib-1.2.14/src/ucm/parser.c:1556: error[memleak]: Memory leak: device
# 1554| err = uc_mgr_evaluate_inplace(uc_mgr, cfg);
# 1555| if (err < 0)
# 1556|-> return err;
# 1557|
# 1558| snd_config_for_each(i, next, cfg) {
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/ucm/parser.c:2978:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.14/src/ucm/parser.c:2917:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2919:21: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2937:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2945:9: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2961:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.14/src/ucm/parser.c:2966:9: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2967:16: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2968:23: branch_true: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2969:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2971:21: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2971:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2973:17: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2977:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2981:23: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2988:27: acquire_memory: allocated here
alsa-lib-1.2.14/src/ucm/parser.c:2989:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2989:20: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2967:16: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2968:23: branch_true: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2969:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2971:21: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2971:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2973:17: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2977:20: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2978:25: branch_true: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2978:25: throw: if 'snd_strerror' throws an exception...
alsa-lib-1.2.14/src/ucm/parser.c:2978:25: danger: '<unknown>' leaks here; was allocated at [(15)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/14)
# 2976| continue;
# 2977| if (err < 0) {
# 2978|-> uc_error("Unable to open '%s': %s", fn, snd_strerror(err));
# 2979| goto __err;
# 2980| }
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/ucm/parser.c:2978:25: warning[-Wanalyzer-malloc-leak]: leak of 'list'
alsa-lib-1.2.14/src/ucm/parser.c:2917:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2919:21: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2937:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2945:9: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2960:16: acquire_memory: allocated here
alsa-lib-1.2.14/src/ucm/parser.c:2961:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.14/src/ucm/parser.c:2966:9: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2967:16: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2968:23: branch_true: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2969:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2971:21: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2971:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2973:17: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2977:20: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2978:25: branch_true: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2978:25: throw: if 'snd_strerror' throws an exception...
alsa-lib-1.2.14/src/ucm/parser.c:2978:25: danger: 'list' leaks here; was allocated at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
# 2976| continue;
# 2977| if (err < 0) {
# 2978|-> uc_error("Unable to open '%s': %s", fn, snd_strerror(err));
# 2979| goto __err;
# 2980| }
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/ucm/parser.c:3016:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.14/src/ucm/parser.c:2900:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.14/src/ucm/parser.c:2917:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2919:21: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2937:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2945:9: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2961:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.14/src/ucm/parser.c:2966:9: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2967:16: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2968:23: branch_true: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2969:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2971:21: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2971:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2973:17: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2977:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2981:23: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2988:27: acquire_memory: allocated here
alsa-lib-1.2.14/src/ucm/parser.c:2989:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2989:20: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2969:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2971:21: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2998:21: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3000:34: branch_true: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3003:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.14/src/ucm/parser.c:3003:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.14/src/ucm/parser.c:3005:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3011:23: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3012:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3014:23: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3015:20: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3016:25: branch_true: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3016:25: throw: if the called function throws an exception...
alsa-lib-1.2.14/src/ucm/parser.c:3016:25: danger: '<unknown>' leaks here; was allocated at [(16)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/15)
# 3014| err = snd_config_search(cfg, "Syntax", &c);
# 3015| if (err < 0) {
# 3016|-> uc_error("Syntax field not found in %s", d_name);
# 3017| snd_config_delete(cfg);
# 3018| continue;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/ucm/parser.c:3016:25: warning[-Wanalyzer-malloc-leak]: leak of 'list'
alsa-lib-1.2.14/src/ucm/parser.c:2900:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.14/src/ucm/parser.c:2917:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2919:21: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2937:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2945:9: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2960:16: acquire_memory: allocated here
alsa-lib-1.2.14/src/ucm/parser.c:2961:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.14/src/ucm/parser.c:2966:9: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2969:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2971:21: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2998:21: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3000:34: branch_true: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3003:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.14/src/ucm/parser.c:3003:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.14/src/ucm/parser.c:3005:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3011:23: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3012:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3014:23: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3015:20: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3016:25: branch_true: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3016:25: throw: if the called function throws an exception...
alsa-lib-1.2.14/src/ucm/parser.c:3016:25: danger: 'list' leaks here; was allocated at [(6)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/5)
# 3014| err = snd_config_search(cfg, "Syntax", &c);
# 3015| if (err < 0) {
# 3016|-> uc_error("Syntax field not found in %s", d_name);
# 3017| snd_config_delete(cfg);
# 3018| continue;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/ucm/parser.c:3022:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.14/src/ucm/parser.c:2900:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.14/src/ucm/parser.c:2917:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2919:21: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2937:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2945:9: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2961:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.14/src/ucm/parser.c:2966:9: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2967:16: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2968:23: branch_true: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2969:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2971:21: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2971:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2973:17: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2977:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2981:23: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2988:27: acquire_memory: allocated here
alsa-lib-1.2.14/src/ucm/parser.c:2989:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2989:20: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2969:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2971:21: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2998:21: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3000:34: branch_true: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3003:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.14/src/ucm/parser.c:3003:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.14/src/ucm/parser.c:3005:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3011:23: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3012:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3014:23: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3015:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3020:23: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3021:20: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3022:25: branch_true: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3022:25: throw: if the called function throws an exception...
alsa-lib-1.2.14/src/ucm/parser.c:3022:25: danger: '<unknown>' leaks here; was allocated at [(16)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/15)
# 3020| err = snd_config_get_integer(c, &l);
# 3021| if (err < 0) {
# 3022|-> uc_error("Syntax field is invalid in %s", d_name);
# 3023| snd_config_delete(cfg);
# 3024| goto __err;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/ucm/parser.c:3022:25: warning[-Wanalyzer-malloc-leak]: leak of 'list'
alsa-lib-1.2.14/src/ucm/parser.c:2900:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.14/src/ucm/parser.c:2917:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2919:21: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2937:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2945:9: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2960:16: acquire_memory: allocated here
alsa-lib-1.2.14/src/ucm/parser.c:2961:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.14/src/ucm/parser.c:2966:9: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2969:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2971:21: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2998:21: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3000:34: branch_true: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3003:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.14/src/ucm/parser.c:3003:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.14/src/ucm/parser.c:3005:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3011:23: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3012:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3014:23: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3015:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3020:23: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3021:20: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3022:25: branch_true: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3022:25: throw: if the called function throws an exception...
alsa-lib-1.2.14/src/ucm/parser.c:3022:25: danger: 'list' leaks here; was allocated at [(6)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/5)
# 3020| err = snd_config_get_integer(c, &l);
# 3021| if (err < 0) {
# 3022|-> uc_error("Syntax field is invalid in %s", d_name);
# 3023| snd_config_delete(cfg);
# 3024| goto __err;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/ucm/parser.c:3027:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.14/src/ucm/parser.c:2900:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.14/src/ucm/parser.c:2917:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2919:21: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2937:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2945:9: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2961:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.14/src/ucm/parser.c:2966:9: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2967:16: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2968:23: branch_true: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2969:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2971:21: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2971:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2973:17: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2977:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2981:23: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2988:27: acquire_memory: allocated here
alsa-lib-1.2.14/src/ucm/parser.c:2989:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2989:20: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2969:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2971:21: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2998:21: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3000:34: branch_true: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3003:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.14/src/ucm/parser.c:3003:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.14/src/ucm/parser.c:3005:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3011:23: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3012:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3014:23: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3015:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3020:23: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3021:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3026:21: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3026:20: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3027:25: branch_true: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3027:25: throw: if the called function throws an exception...
alsa-lib-1.2.14/src/ucm/parser.c:3027:25: danger: '<unknown>' leaks here; was allocated at [(16)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/15)
# 3025| }
# 3026| if (l < 2 || l > SYNTAX_VERSION_MAX) {
# 3027|-> uc_error("Incompatible syntax %d in %s", l, d_name);
# 3028| snd_config_delete(cfg);
# 3029| goto __err;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/ucm/parser.c:3027:25: warning[-Wanalyzer-malloc-leak]: leak of 'list'
alsa-lib-1.2.14/src/ucm/parser.c:2900:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.14/src/ucm/parser.c:2917:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2919:21: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2937:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2945:9: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2960:16: acquire_memory: allocated here
alsa-lib-1.2.14/src/ucm/parser.c:2961:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.14/src/ucm/parser.c:2966:9: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2969:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:2971:21: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:2998:21: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3000:34: branch_true: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3003:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.14/src/ucm/parser.c:3003:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.14/src/ucm/parser.c:3005:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3011:23: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3012:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3014:23: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3015:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3020:23: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3021:20: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3026:21: branch_false: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3026:20: branch_true: following 'true' branch...
alsa-lib-1.2.14/src/ucm/parser.c:3027:25: branch_true: ...to here
alsa-lib-1.2.14/src/ucm/parser.c:3027:25: throw: if the called function throws an exception...
alsa-lib-1.2.14/src/ucm/parser.c:3027:25: danger: 'list' leaks here; was allocated at [(6)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/5)
# 3025| }
# 3026| if (l < 2 || l > SYNTAX_VERSION_MAX) {
# 3027|-> uc_error("Incompatible syntax %d in %s", l, d_name);
# 3028| snd_config_delete(cfg);
# 3029| goto __err;
Error: GCC_ANALYZER_WARNING (CWE-401):
alsa-lib-1.2.14/src/ucm/ucm_local.h:320:26: warning[-Wanalyzer-malloc-leak]: leak of 'cdev'
alsa-lib-1.2.14/src/ucm/main.c:2691:5: enter_function: entry to 'snd_use_case_set'
alsa-lib-1.2.14/src/ucm/main.c:2699:12: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.14/src/ucm/main.c:2700:23: branch_true: ...to here
alsa-lib-1.2.14/src/ucm/main.c:2700:23: call_function: calling 'set_fixedboot_user' from 'snd_use_case_set'
# 318| static inline int uc_mgr_has_local_config(snd_use_case_mgr_t *uc_mgr)
# 319| {
# 320|-> return uc_mgr && snd_config_iterator_first(uc_mgr->local_config) !=
# 321| snd_config_iterator_end(uc_mgr->local_config);
# 322| }