kexec-tools-2.0.32-1.fc44
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:732:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/sys/kernel/crash_notes", "r")’
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:727:14: acquire_resource: opened here
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:728:12: branch_true: following ‘true’ branch...
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:729:21: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:729:20: branch_true: following ‘true’ branch...
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:730:33: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:731:28: branch_true: following ‘true’ branch (when ‘count != 1’)...
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:733:58: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:732:33: throw: if ‘die’ throws an exception...
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:732:33: danger: ‘fopen("/sys/kernel/crash_notes", "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:732:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/sys/kernel/crash_notes", "r")’
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:727:14: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:728:12: branch_true: following ‘true’ branch...
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:729:21: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:729:20: branch_true: following ‘true’ branch...
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:730:33: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:731:28: branch_true: following ‘true’ branch (when ‘count != 1’)...
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:733:58: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:732:33: throw: if ‘die’ throws an exception...
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:732:33: danger: ‘fopen("/sys/kernel/crash_notes", "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:773:9: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/sys/firmware/efi/runtime-map")’
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:769:15: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:770:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:773:9: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:773:9: danger: ‘opendir("/sys/firmware/efi/runtime-map")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def4]
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:870:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘mem_range’
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:860:12: branch_true: following ‘true’ branch...
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:870:9: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/i386/crashdump-x86.c:870:9: danger: use of uninitialized value ‘mem_range’ here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
kexec-tools-2.0.32/kexec/arch/i386/kexec-bzImage.c:461:31: warning[-Wanalyzer-malloc-leak]: leak of ‘command_line’
kexec-tools-2.0.32/kexec/arch/i386/kexec-bzImage.c:424:15: branch_true: following ‘true’ branch (when ‘opt != -1’)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-bzImage.c:425:17: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-bzImage.c:449:12: branch_false: following ‘false’ branch (when ‘tmp_cmdline’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-bzImage.c:453:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-bzImage.c:453:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-bzImage.c:456:28: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-bzImage.c:456:28: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/arch/i386/kexec-bzImage.c:460:12: branch_true: following ‘true’ branch (when ‘ramdisk’ is non-NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-bzImage.c:461:31: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-bzImage.c:461:31: throw: if ‘slurp_file’ throws an exception...
kexec-tools-2.0.32/kexec/arch/i386/kexec-bzImage.c:461:31: danger: ‘command_line’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
kexec-tools-2.0.32/kexec/arch/i386/kexec-bzImage.c:465:27: warning[-Wanalyzer-malloc-leak]: leak of ‘command_line’
kexec-tools-2.0.32/kexec/arch/i386/kexec-bzImage.c:424:15: branch_true: following ‘true’ branch (when ‘opt != -1’)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-bzImage.c:425:17: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-bzImage.c:449:12: branch_false: following ‘false’ branch (when ‘tmp_cmdline’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-bzImage.c:453:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-bzImage.c:453:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-bzImage.c:456:28: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-bzImage.c:456:28: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/arch/i386/kexec-bzImage.c:460:12: branch_false: following ‘false’ branch (when ‘ramdisk’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-bzImage.c:464:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-bzImage.c:464:12: branch_true: following ‘true’ branch (when ‘dtb’ is non-NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-bzImage.c:465:27: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-bzImage.c:465:27: throw: if ‘slurp_file’ throws an exception...
kexec-tools-2.0.32/kexec/arch/i386/kexec-bzImage.c:465:27: danger: ‘command_line’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:204:36: warning[-Wanalyzer-malloc-leak]: leak of ‘command_line’
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:189:12: branch_false: following ‘false’ branch (when ‘tmp_cmdline’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:203:12: branch_true: following ‘true’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:204:36: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:204:36: throw: if ‘xmalloc’ throws an exception...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:204:36: danger: ‘command_line’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-126): [#def8]
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:207:25: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:189:12: branch_false: following ‘false’ branch (when ‘tmp_cmdline’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:203:12: branch_true: following ‘true’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:204:36: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:206:20: branch_true: following ‘true’ branch (when ‘command_line’ is non-NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:207:25: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:207:25: danger: out-of-bounds read from byte 1 till byte 2047 but region ends at byte 1
Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:214:9: warning[-Wanalyzer-malloc-leak]: leak of ‘command_line’
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:189:12: branch_false: following ‘false’ branch (when ‘tmp_cmdline’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:203:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:214:9: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:214:9: throw: if ‘elf_exec_build_load’ throws an exception...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:214:9: danger: ‘command_line’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:217:20: warning[-Wanalyzer-malloc-leak]: leak of ‘command_line’
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:189:12: branch_false: following ‘false’ branch (when ‘tmp_cmdline’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:203:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:214:9: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:217:20: throw: if ‘elf_max_addr’ throws an exception...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:217:20: danger: ‘command_line’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:222:17: warning[-Wanalyzer-malloc-leak]: leak of ‘command_line’
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:189:12: branch_false: following ‘false’ branch (when ‘tmp_cmdline’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:203:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:214:9: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:222:17: throw: if ‘elf_rel_build_load’ throws an exception...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:222:17: danger: ‘command_line’ leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:235:29: warning[-Wanalyzer-malloc-leak]: leak of ‘command_line’
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:189:12: branch_false: following ‘false’ branch (when ‘tmp_cmdline’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:203:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:214:9: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:229:17: branch_true: following ‘true’ branch (when ‘arg_style == 0’)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:235:29: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:235:29: throw: if ‘elf_boot_notes’ throws an exception...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:235:29: danger: ‘command_line’ leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:241:17: warning[-Wanalyzer-malloc-leak]: leak of ‘command_line’
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:189:12: branch_false: following ‘false’ branch (when ‘tmp_cmdline’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:203:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:214:9: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:229:17: branch_true: following ‘true’ branch (when ‘arg_style == 0’)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:235:29: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:241:17: throw: if ‘elf_rel_set_symbol’ throws an exception...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:241:17: danger: ‘command_line’ leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:242:17: warning[-Wanalyzer-malloc-leak]: leak of ‘command_line’
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:189:12: branch_false: following ‘false’ branch (when ‘tmp_cmdline’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:203:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:214:9: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:229:17: branch_true: following ‘true’ branch (when ‘arg_style == 0’)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:235:29: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:242:17: throw: if ‘elf_rel_set_symbol’ throws an exception...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:242:17: danger: ‘command_line’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:245:17: warning[-Wanalyzer-malloc-leak]: leak of ‘command_line’
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:189:12: branch_false: following ‘false’ branch (when ‘tmp_cmdline’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:203:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:214:9: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:229:17: branch_true: following ‘true’ branch (when ‘arg_style == 0’)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:235:29: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:245:17: throw: if ‘elf_rel_get_symbol’ throws an exception...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:245:17: danger: ‘command_line’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:247:28: warning[-Wanalyzer-malloc-leak]: leak of ‘command_line’
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:189:12: branch_false: following ‘false’ branch (when ‘tmp_cmdline’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:203:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:214:9: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:229:17: branch_true: following ‘true’ branch (when ‘arg_style == 0’)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:235:29: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:247:28: throw: if ‘elf_rel_get_addr’ throws an exception...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:247:28: danger: ‘command_line’ leaks here; was allocated at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:248:17: warning[-Wanalyzer-malloc-leak]: leak of ‘command_line’
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:189:12: branch_false: following ‘false’ branch (when ‘tmp_cmdline’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:203:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:214:9: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:229:17: branch_true: following ‘true’ branch (when ‘arg_style == 0’)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:235:29: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:248:17: throw: if ‘elf_rel_set_symbol’ throws an exception...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:248:17: danger: ‘command_line’ leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:264:23: warning[-Wanalyzer-malloc-leak]: leak of ‘command_line’
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:189:12: branch_false: following ‘false’ branch (when ‘tmp_cmdline’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:203:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:214:9: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:229:17: branch_false: following ‘false’ branch (when ‘arg_style != 0’)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:264:23: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:264:23: throw: if ‘xmalloc’ throws an exception...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:264:23: danger: ‘command_line’ leaks here; was allocated at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:274:30: warning[-Wanalyzer-malloc-leak]: leak of ‘command_line’
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:189:12: branch_false: following ‘false’ branch (when ‘tmp_cmdline’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:203:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:214:9: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:229:17: branch_false: following ‘false’ branch (when ‘arg_style != 0’)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:264:23: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:274:30: throw: if ‘add_buffer’ throws an exception...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:274:30: danger: ‘command_line’ leaks here; was allocated at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:279:17: warning[-Wanalyzer-malloc-leak]: leak of ‘command_line’
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:189:12: branch_false: following ‘false’ branch (when ‘tmp_cmdline’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:203:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:214:9: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:229:17: branch_false: following ‘false’ branch (when ‘arg_style != 0’)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:264:23: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:279:17: throw: if ‘init_linux_parameters’ throws an exception...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:279:17: danger: ‘command_line’ leaks here; was allocated at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:291:30: warning[-Wanalyzer-malloc-leak]: leak of ‘command_line’
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:189:12: branch_false: following ‘false’ branch (when ‘tmp_cmdline’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:203:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:214:9: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:229:17: branch_false: following ‘false’ branch (when ‘arg_style != 0’)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:264:23: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:284:20: branch_false: following ‘false’ branch (when ‘ramdisk’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:290:21: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:290:20: branch_true: following ‘true’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:291:30: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:291:30: throw: if ‘load_crashdump_segments’ throws an exception...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:291:30: danger: ‘command_line’ leaks here; was allocated at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def22]
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:300:44: warning[-Wanalyzer-null-argument]: use of NULL ‘modified_cmdline’ where non-null expected
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:189:12: branch_false: following ‘false’ branch (when ‘tmp_cmdline’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:203:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:214:9: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:229:17: branch_false: following ‘false’ branch (when ‘arg_style != 0’)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:264:23: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:284:20: branch_false: following ‘false’ branch (when ‘ramdisk’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:290:21: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:290:20: branch_true: following ‘true’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:291:30: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:293:28: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:298:25: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:300:44: danger: argument 1 (‘modified_cmdline’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:311:17: warning[-Wanalyzer-malloc-leak]: leak of ‘command_line’
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:189:12: branch_false: following ‘false’ branch (when ‘tmp_cmdline’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:203:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:214:9: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:229:17: branch_false: following ‘false’ branch (when ‘arg_style != 0’)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:264:23: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:284:20: branch_false: following ‘false’ branch (when ‘ramdisk’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:290:21: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:290:20: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:305:17: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:311:17: throw: if ‘setup_linux_system_parameters’ throws an exception...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:311:17: danger: ‘command_line’ leaks here; was allocated at [(5)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:314:17: warning[-Wanalyzer-malloc-leak]: leak of ‘command_line’
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:189:12: branch_false: following ‘false’ branch (when ‘tmp_cmdline’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:203:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:214:9: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:229:17: branch_false: following ‘false’ branch (when ‘arg_style != 0’)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:264:23: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:284:20: branch_false: following ‘false’ branch (when ‘ramdisk’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:290:21: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:290:20: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:305:17: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:314:17: throw: if ‘elf_rel_get_symbol’ throws an exception...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:314:17: danger: ‘command_line’ leaks here; was allocated at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:318:28: warning[-Wanalyzer-malloc-leak]: leak of ‘command_line’
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:189:12: branch_false: following ‘false’ branch (when ‘tmp_cmdline’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:203:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:214:9: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:229:17: branch_false: following ‘false’ branch (when ‘arg_style != 0’)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:264:23: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:284:20: branch_false: following ‘false’ branch (when ‘ramdisk’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:290:21: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:290:20: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:305:17: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:318:28: throw: if ‘elf_rel_get_addr’ throws an exception...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:318:28: danger: ‘command_line’ leaks here; was allocated at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:319:17: warning[-Wanalyzer-malloc-leak]: leak of ‘command_line’
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:189:12: branch_false: following ‘false’ branch (when ‘tmp_cmdline’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:203:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:214:9: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:229:17: branch_false: following ‘false’ branch (when ‘arg_style != 0’)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:264:23: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:284:20: branch_false: following ‘false’ branch (when ‘ramdisk’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:290:21: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:290:20: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:305:17: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:319:17: throw: if ‘elf_rel_set_symbol’ throws an exception...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:319:17: danger: ‘command_line’ leaks here; was allocated at [(5)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/4)
Error: COMPILER_WARNING: [#def27]
kexec-tools-2.0.32/kexec/arch/i386/kexec-mb2-x86.c: scope_hint: In function ‘multiboot2_x86_load’
kexec-tools-2.0.32/kexec/arch/i386/kexec-mb2-x86.c:562:21: warning[-Wunused-but-set-variable=]: variable ‘i’ set but not used
Error: COMPILER_WARNING (CWE-252): [#def28]
kexec-tools-2.0.32/kexec/arch/i386/kexec-x86-common.c: scope_hint: In function ‘efi_map_added’
kexec-tools-2.0.32/kexec/arch/i386/kexec-x86-common.c:320:17: warning[-Wunused-result]: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
kexec-tools-2.0.32/kexec/arch/i386/x86-linux-setup.c:403:16: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/sys/firmware/edd")’
kexec-tools-2.0.32/kexec/arch/i386/x86-linux-setup.c:891:6: enter_function: entry to ‘setup_linux_system_parameters’
kexec-tools-2.0.32/kexec/arch/i386/x86-linux-setup.c:897:9: call_function: inlined call to ‘setup_subarch’ from ‘setup_linux_system_parameters’
kexec-tools-2.0.32/kexec/arch/i386/x86-linux-setup.c:897:9: call_function: inlined call to ‘setup_subarch’ from ‘setup_linux_system_parameters’
kexec-tools-2.0.32/kexec/arch/i386/x86-linux-setup.c:913:15: call_function: calling ‘setup_linux_vesafb’ from ‘setup_linux_system_parameters’
kexec-tools-2.0.32/kexec/arch/i386/x86-linux-setup.c:913:15: return_function: returning to ‘setup_linux_system_parameters’ from ‘setup_linux_vesafb’
kexec-tools-2.0.32/kexec/arch/i386/x86-linux-setup.c:914:12: branch_true: following ‘true’ branch...
kexec-tools-2.0.32/kexec/arch/i386/x86-linux-setup.c:918:17: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/i386/x86-linux-setup.c:921:23: call_function: calling ‘get_bootparam’ from ‘setup_linux_system_parameters’
kexec-tools-2.0.32/kexec/arch/i386/x86-linux-setup.c:921:23: return_function: returning to ‘setup_linux_system_parameters’ from ‘get_bootparam’
kexec-tools-2.0.32/kexec/arch/i386/x86-linux-setup.c:922:20: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/x86-linux-setup.c:928:9: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/x86-linux-setup.c:950:9: call_function: calling ‘setup_e820’ from ‘setup_linux_system_parameters’
kexec-tools-2.0.32/kexec/arch/i386/x86-linux-setup.c:950:9: return_function: returning to ‘setup_linux_system_parameters’ from ‘setup_e820’
kexec-tools-2.0.32/kexec/arch/i386/x86-linux-setup.c:956:9: call_function: calling ‘setup_edd_info’ from ‘setup_linux_system_parameters’
Error: COMPILER_WARNING (CWE-252): [#def30]
kexec-tools-2.0.32/kexec/arch/i386/x86-linux-setup.c: scope_hint: In function ‘get_bootparam’
kexec-tools-2.0.32/kexec/arch/i386/x86-linux-setup.c:514:9: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
kexec-tools-2.0.32/kexec/arch/i386/x86-linux-setup.h:17:9: warning[-Wanalyzer-malloc-leak]: leak of ‘command_line’
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:117:5: enter_function: entry to ‘elf_x86_load’
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:189:12: branch_false: following ‘false’ branch (when ‘tmp_cmdline’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:193:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:196:28: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:203:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:214:9: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:229:17: branch_false: following ‘false’ branch (when ‘arg_style != 0’)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:264:23: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:284:20: branch_false: following ‘false’ branch (when ‘ramdisk’ is NULL)...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:290:21: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:290:20: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:305:17: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/i386/kexec-elf-x86.c:305:17: call_function: inlined call to ‘setup_linux_bootloader_parameters’ from ‘elf_x86_load’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:311:35: warning[-Wanalyzer-malloc-leak]: leak of ‘command_line’
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:269:16: branch_true: following ‘true’ branch (when ‘opt != -1’)...
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:270:17: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:293:12: branch_false: following ‘false’ branch (when ‘tmp_cmdline’ is NULL)...
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:296:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:296:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:299:32: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:299:32: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:303:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:310:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:310:12: branch_true: following ‘true’ branch (when ‘ramdisk’ is non-NULL)...
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:311:35: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:311:35: throw: if ‘open’ throws an exception...
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:311:35: danger: ‘command_line’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:393:31: warning[-Wanalyzer-malloc-leak]: leak of ‘command_line’
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:341:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:341:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:358:16: branch_true: following ‘true’ branch (when ‘opt != -1’)...
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:359:17: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:382:12: branch_false: following ‘false’ branch (when ‘tmp_cmdline’ is NULL)...
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:385:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:385:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:388:32: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:388:32: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:392:12: branch_true: following ‘true’ branch (when ‘ramdisk’ is non-NULL)...
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:393:31: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:393:31: throw: if ‘slurp_file’ throws an exception...
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-bzImage64.c:393:31: danger: ‘command_line’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def34]
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:226:44: warning[-Wanalyzer-null-argument]: use of NULL ‘modified_cmdline’ where non-null expected
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:135:12: branch_false: following ‘false’ branch (when ‘tmp_cmdline’ is NULL)...
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:138:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:145:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:156:9: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:162:12: branch_true: following ‘true’ branch (when ‘arg_style != 2’)...
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:164:17: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:171:17: branch_false: following ‘false’ branch (when ‘arg_style != 0’)...
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:199:23: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:210:20: branch_false: following ‘false’ branch (when ‘ramdisk’ is NULL)...
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:216:21: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:216:20: branch_true: following ‘true’ branch...
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:217:30: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:219:28: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:224:25: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:226:44: danger: argument 1 (‘modified_cmdline’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-415): [#def35]
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:253:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘modified_cmdline’
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:135:12: branch_false: following ‘false’ branch (when ‘tmp_cmdline’ is NULL)...
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:138:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:145:12: branch_true: following ‘true’ branch...
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:146:36: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:148:20: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:156:9: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:162:12: branch_true: following ‘true’ branch (when ‘arg_style != 2’)...
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:164:17: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:171:17: branch_false: following ‘false’ branch (when ‘arg_style != 0’)...
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:199:23: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:210:20: branch_false: following ‘false’ branch (when ‘ramdisk’ is NULL)...
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:216:21: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:216:20: branch_true: following ‘true’ branch...
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:217:30: branch_true: ...to here
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:219:28: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:224:25: branch_false: ...to here
kexec-tools-2.0.32/kexec/arch/x86_64/kexec-elf-x86_64.c:253:9: danger: second ‘free’ here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def36]
kexec-tools-2.0.32/kexec/crashdump.c:100:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&crash_notes, "r")’
kexec-tools-2.0.32/kexec/crashdump.c:81:14: acquire_resource: opened here
kexec-tools-2.0.32/kexec/crashdump.c:82:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/crashdump.c:99:14: branch_false: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:99:12: branch_true: following ‘true’ branch...
kexec-tools-2.0.32/kexec/crashdump.c:100:68: branch_true: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:100:17: throw: if ‘die’ throws an exception...
kexec-tools-2.0.32/kexec/crashdump.c:100:17: danger: ‘fopen(&crash_notes, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
kexec-tools-2.0.32/kexec/crashdump.c:100:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&crash_notes, "r")’
kexec-tools-2.0.32/kexec/crashdump.c:81:14: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/crashdump.c:82:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/crashdump.c:99:14: branch_false: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:99:12: branch_true: following ‘true’ branch...
kexec-tools-2.0.32/kexec/crashdump.c:100:68: branch_true: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:100:17: throw: if ‘die’ throws an exception...
kexec-tools-2.0.32/kexec/crashdump.c:100:17: danger: ‘fopen(&crash_notes, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def38]
kexec-tools-2.0.32/kexec/crashdump.c:103:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&crash_notes, "r")’
kexec-tools-2.0.32/kexec/crashdump.c:81:14: acquire_resource: opened here
kexec-tools-2.0.32/kexec/crashdump.c:82:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/crashdump.c:99:14: branch_false: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:102:12: branch_true: following ‘true’ branch (when ‘count != 1’)...
kexec-tools-2.0.32/kexec/crashdump.c:103:68: branch_true: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:103:17: throw: if ‘die’ throws an exception...
kexec-tools-2.0.32/kexec/crashdump.c:103:17: danger: ‘fopen(&crash_notes, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
kexec-tools-2.0.32/kexec/crashdump.c:103:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&crash_notes, "r")’
kexec-tools-2.0.32/kexec/crashdump.c:81:14: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/crashdump.c:82:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/crashdump.c:99:14: branch_false: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:102:12: branch_true: following ‘true’ branch (when ‘count != 1’)...
kexec-tools-2.0.32/kexec/crashdump.c:103:68: branch_true: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:103:17: throw: if ‘die’ throws an exception...
kexec-tools-2.0.32/kexec/crashdump.c:103:17: danger: ‘fopen(&crash_notes, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def40]
kexec-tools-2.0.32/kexec/crashdump.c:113:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&crash_notes_size, "r")’
kexec-tools-2.0.32/kexec/crashdump.c:82:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/crashdump.c:99:14: branch_false: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:110:14: acquire_resource: opened here
kexec-tools-2.0.32/kexec/crashdump.c:111:12: branch_true: following ‘true’ branch...
kexec-tools-2.0.32/kexec/crashdump.c:112:22: branch_true: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:112:20: branch_true: following ‘true’ branch...
kexec-tools-2.0.32/kexec/crashdump.c:114:56: branch_true: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:113:25: throw: if ‘die’ throws an exception...
kexec-tools-2.0.32/kexec/crashdump.c:113:25: danger: ‘fopen(&crash_notes_size, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
kexec-tools-2.0.32/kexec/crashdump.c:113:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&crash_notes_size, "r")’
kexec-tools-2.0.32/kexec/crashdump.c:82:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/crashdump.c:99:14: branch_false: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:110:14: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/crashdump.c:111:12: branch_true: following ‘true’ branch...
kexec-tools-2.0.32/kexec/crashdump.c:112:22: branch_true: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:112:20: branch_true: following ‘true’ branch...
kexec-tools-2.0.32/kexec/crashdump.c:114:56: branch_true: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:113:25: throw: if ‘die’ throws an exception...
kexec-tools-2.0.32/kexec/crashdump.c:113:25: danger: ‘fopen(&crash_notes_size, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def42]
kexec-tools-2.0.32/kexec/crashdump.c:117:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&crash_notes_size, "r")’
kexec-tools-2.0.32/kexec/crashdump.c:82:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/crashdump.c:99:14: branch_false: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:110:14: acquire_resource: opened here
kexec-tools-2.0.32/kexec/crashdump.c:111:12: branch_true: following ‘true’ branch...
kexec-tools-2.0.32/kexec/crashdump.c:112:22: branch_true: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:116:20: branch_true: following ‘true’ branch (when ‘count != 1’)...
kexec-tools-2.0.32/kexec/crashdump.c:118:56: branch_true: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:117:25: throw: if ‘die’ throws an exception...
kexec-tools-2.0.32/kexec/crashdump.c:117:25: danger: ‘fopen(&crash_notes_size, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
kexec-tools-2.0.32/kexec/crashdump.c:117:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&crash_notes_size, "r")’
kexec-tools-2.0.32/kexec/crashdump.c:82:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/crashdump.c:99:14: branch_false: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:110:14: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/crashdump.c:111:12: branch_true: following ‘true’ branch...
kexec-tools-2.0.32/kexec/crashdump.c:112:22: branch_true: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:116:20: branch_true: following ‘true’ branch (when ‘count != 1’)...
kexec-tools-2.0.32/kexec/crashdump.c:118:56: branch_true: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:117:25: throw: if ‘die’ throws an exception...
kexec-tools-2.0.32/kexec/crashdump.c:117:25: danger: ‘fopen(&crash_notes_size, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def44]
kexec-tools-2.0.32/kexec/crashdump.c:143:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(kdump_info, "r")’
kexec-tools-2.0.32/kexec/crashdump.c:139:20: acquire_resource: opened here
kexec-tools-2.0.32/kexec/crashdump.c:139:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/crashdump.c:142:14: branch_false: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:142:12: branch_true: following ‘true’ branch...
kexec-tools-2.0.32/kexec/crashdump.c:143:67: branch_true: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:143:17: throw: if ‘die’ throws an exception...
kexec-tools-2.0.32/kexec/crashdump.c:143:17: danger: ‘fopen(kdump_info, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
kexec-tools-2.0.32/kexec/crashdump.c:143:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(kdump_info, "r")’
kexec-tools-2.0.32/kexec/crashdump.c:139:20: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/crashdump.c:139:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/crashdump.c:142:14: branch_false: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:142:12: branch_true: following ‘true’ branch...
kexec-tools-2.0.32/kexec/crashdump.c:143:67: branch_true: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:143:17: throw: if ‘die’ throws an exception...
kexec-tools-2.0.32/kexec/crashdump.c:143:17: danger: ‘fopen(kdump_info, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def46]
kexec-tools-2.0.32/kexec/crashdump.c:146:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(kdump_info, "r")’
kexec-tools-2.0.32/kexec/crashdump.c:139:20: acquire_resource: opened here
kexec-tools-2.0.32/kexec/crashdump.c:139:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/crashdump.c:142:14: branch_false: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:145:12: branch_true: following ‘true’ branch (when ‘count != 2’)...
kexec-tools-2.0.32/kexec/crashdump.c:146:67: branch_true: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:146:17: throw: if ‘die’ throws an exception...
kexec-tools-2.0.32/kexec/crashdump.c:146:17: danger: ‘fopen(kdump_info, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
kexec-tools-2.0.32/kexec/crashdump.c:146:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(kdump_info, "r")’
kexec-tools-2.0.32/kexec/crashdump.c:139:20: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/crashdump.c:139:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/crashdump.c:142:14: branch_false: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:145:12: branch_true: following ‘true’ branch (when ‘count != 2’)...
kexec-tools-2.0.32/kexec/crashdump.c:146:67: branch_true: ...to here
kexec-tools-2.0.32/kexec/crashdump.c:146:17: throw: if ‘die’ throws an exception...
kexec-tools-2.0.32/kexec/crashdump.c:146:17: danger: ‘fopen(kdump_info, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
kexec-tools-2.0.32/kexec/firmware_memmap.c:257:26: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/sys/firmware/memmap")’
kexec-tools-2.0.32/kexec/firmware_memmap.c:244:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/firmware_memmap.c:250:31: branch_false: ...to here
kexec-tools-2.0.32/kexec/firmware_memmap.c:250:31: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/firmware_memmap.c:251:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/firmware_memmap.c:251:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/firmware_memmap.c:257:26: throw: if ‘readdir’ throws an exception...
kexec-tools-2.0.32/kexec/firmware_memmap.c:257:26: danger: ‘opendir("/sys/firmware/memmap")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def49]
kexec-tools-2.0.32/kexec/ifdown.c:42:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
kexec-tools-2.0.32/kexec/ifdown.c:34:19: acquire_resource: datagram socket created here
kexec-tools-2.0.32/kexec/ifdown.c:34:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
kexec-tools-2.0.32/kexec/ifdown.c:40:20: branch_false: ...to here
kexec-tools-2.0.32/kexec/ifdown.c:40:12: branch_true: following ‘true’ branch (when ‘ifa’ is NULL)...
kexec-tools-2.0.32/kexec/ifdown.c:41:17: branch_true: ...to here
kexec-tools-2.0.32/kexec/ifdown.c:42:17: throw: if ‘perror’ throws an exception...
kexec-tools-2.0.32/kexec/ifdown.c:42:17: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def50]
kexec-tools-2.0.32/kexec/ifdown.c:73:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
kexec-tools-2.0.32/kexec/ifdown.c:34:19: acquire_resource: datagram socket created here
kexec-tools-2.0.32/kexec/ifdown.c:34:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
kexec-tools-2.0.32/kexec/ifdown.c:40:20: branch_false: ...to here
kexec-tools-2.0.32/kexec/ifdown.c:40:12: branch_false: following ‘false’ branch (when ‘ifa’ is non-NULL)...
kexec-tools-2.0.32/kexec/ifdown.c:40:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/ifdown.c:46:26: branch_true: following ‘true’ branch (when ‘shaper != -1’)...
kexec-tools-2.0.32/kexec/ifdown.c:46:26: branch_true: ...to here
kexec-tools-2.0.32/kexec/ifdown.c:73:9: throw: if ‘close’ throws an exception...
kexec-tools-2.0.32/kexec/ifdown.c:73:9: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def51]
kexec-tools-2.0.32/kexec/ifdown.c:77:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
kexec-tools-2.0.32/kexec/ifdown.c:34:19: acquire_resource: datagram socket created here
kexec-tools-2.0.32/kexec/ifdown.c:34:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
kexec-tools-2.0.32/kexec/ifdown.c:40:20: branch_false: ...to here
kexec-tools-2.0.32/kexec/ifdown.c:40:12: branch_true: following ‘true’ branch (when ‘ifa’ is NULL)...
kexec-tools-2.0.32/kexec/ifdown.c:41:17: branch_true: ...to here
kexec-tools-2.0.32/kexec/ifdown.c:77:9: throw: if ‘close’ throws an exception...
kexec-tools-2.0.32/kexec/ifdown.c:77:9: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-688): [#def52]
kexec-tools-2.0.32/kexec/kexec-iomem.c:52:15: warning[-Wanalyzer-null-argument]: use of NULL ‘fopen(proc_iomem(), "r")’ where non-null expected
kexec-tools-2.0.32/kexec/kexec-iomem.c:45:12: branch_false: following ‘false’ branch (when ‘callback’ is non-NULL)...
kexec-tools-2.0.32/kexec/kexec-iomem.c:48:14: branch_false: ...to here
kexec-tools-2.0.32/kexec/kexec-iomem.c:48:14: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/kexec-iomem.c:49:12: release_memory: assuming ‘fopen(proc_iomem(), "r")’ is NULL
kexec-tools-2.0.32/kexec/kexec-iomem.c:49:12: branch_true: following ‘true’ branch...
kexec-tools-2.0.32/kexec/kexec-iomem.c:50:17: branch_true: ...to here
kexec-tools-2.0.32/kexec/kexec-iomem.c:52:15: danger: argument 3 (‘fopen(proc_iomem(), "r")’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
kexec-tools-2.0.32/kexec/kexec-pe-zboot.c:82:19: warning[-Wanalyzer-malloc-leak]: leak of ‘fname’
kexec-tools-2.0.32/kexec/kexec-pe-zboot.c:56:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/kexec-pe-zboot.c:65:20: branch_false: ...to here
kexec-tools-2.0.32/kexec/kexec-pe-zboot.c:72:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/kexec-pe-zboot.c:77:23: branch_false: ...to here
kexec-tools-2.0.32/kexec/kexec-pe-zboot.c:77:23: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/kexec-pe-zboot.c:77:12: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
kexec-tools-2.0.32/kexec/kexec-pe-zboot.c:82:19: branch_false: ...to here
kexec-tools-2.0.32/kexec/kexec-pe-zboot.c:82:19: throw: if ‘mkstemp’ throws an exception...
kexec-tools-2.0.32/kexec/kexec-pe-zboot.c:82:19: danger: ‘fname’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: COMPILER_WARNING (CWE-252): [#def54]
kexec-tools-2.0.32/kexec/kexec-pe-zboot.c: scope_hint: In function ‘pez_prepare’
kexec-tools-2.0.32/kexec/kexec-pe-zboot.c:115:25: warning[-Wunused-result]: ignoring return value of ‘ftruncate’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
kexec-tools-2.0.32/kexec/kexec-uki.c:33:19: warning[-Wanalyzer-malloc-leak]: leak of ‘fname’
kexec-tools-2.0.32/kexec/kexec-uki.c:28:23: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/kexec-uki.c:28:12: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
kexec-tools-2.0.32/kexec/kexec-uki.c:33:19: branch_false: ...to here
kexec-tools-2.0.32/kexec/kexec-uki.c:33:19: throw: if ‘mkstemp’ throws an exception...
kexec-tools-2.0.32/kexec/kexec-uki.c:33:19: danger: ‘fname’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def56]
kexec-tools-2.0.32/kexec/kexec.c:507:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(filename, 0)’
kexec-tools-2.0.32/kexec/kexec.c:1476:5: enter_function: entry to ‘main’
kexec-tools-2.0.32/kexec/kexec.c:1507:16: branch_true: following ‘true’ branch (when ‘opt != -1’)...
kexec-tools-2.0.32/kexec/kexec.c:1509:17: branch_true: ...to here
kexec-tools-2.0.32/kexec/kexec.c:1574:28: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/kexec.c:1574:28: branch_false: ...to here
kexec-tools-2.0.32/kexec/kexec.c:1654:12: branch_false: following ‘false’ branch (when ‘skip_ifdown == 0’)...
kexec-tools-2.0.32/kexec/kexec.c:1656:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/kexec.c:1656:12: branch_false: following ‘false’ branch (when ‘skip_sync == 0’)...
kexec-tools-2.0.32/kexec/kexec.c:1659:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/kexec.c:1659:12: branch_false: following ‘false’ branch (when ‘do_status == 0’)...
kexec-tools-2.0.32/kexec/kexec.c:1673:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/kexec.c:1673:12: branch_true: following ‘true’ branch (when ‘do_load != 0’)...
kexec-tools-2.0.32/kexec/kexec.c:1674:14: branch_true: ...to here
kexec-tools-2.0.32/kexec/kexec.c:1673:13: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/kexec.c:1675:14: branch_false: ...to here
kexec-tools-2.0.32/kexec/kexec.c:1674:13: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/kexec.c:1683:12: branch_false: ...to here
kexec-tools-2.0.32/kexec/kexec.c:1683:12: branch_true: following ‘true’ branch (when ‘do_load != 0’)...
kexec-tools-2.0.32/kexec/kexec.c:1683:24: branch_true: ...to here
kexec-tools-2.0.32/kexec/kexec.c:1683:13: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/kexec.c:1690:24: branch_false: ...to here
kexec-tools-2.0.32/kexec/kexec.c:1690:13: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/kexec.c:1695:13: branch_false: ...to here
kexec-tools-2.0.32/kexec/kexec.c:1695:12: branch_true: following ‘true’ branch...
kexec-tools-2.0.32/kexec/kexec.c:1697:29: branch_true: ...to here
kexec-tools-2.0.32/kexec/kexec.c:1699:23: call_function: calling ‘slurp_file_len’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
kexec-tools-2.0.32/kexec/kexec.c:525:18: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc((long unsigned int)size)’
kexec-tools-2.0.32/kexec/kexec.c:637:7: enter_function: entry to ‘slurp_decompress_file’
kexec-tools-2.0.32/kexec/kexec.c:647:40: call_function: inlined call to ‘slurp_file’ from ‘slurp_decompress_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
kexec-tools-2.0.32/kexec/kexec.c:526:12: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc((long unsigned int)size)’
kexec-tools-2.0.32/kexec/kexec.c:637:7: enter_function: entry to ‘slurp_decompress_file’
kexec-tools-2.0.32/kexec/kexec.c:647:40: call_function: inlined call to ‘slurp_file’ from ‘slurp_decompress_file’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def59]
kexec-tools-2.0.32/kexec/zstd.c:29:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
kexec-tools-2.0.32/kexec/zstd.c:76:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
kexec-tools-2.0.32/kexec/zstd.c:79:13: branch_false: ...to here
kexec-tools-2.0.32/kexec/zstd.c:79:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/zstd.c:83:13: branch_false: ...to here
kexec-tools-2.0.32/kexec/zstd.c:83:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/zstd.c:87:9: branch_false: ...to here
kexec-tools-2.0.32/kexec/zstd.c:89:14: acquire_resource: opened here
kexec-tools-2.0.32/kexec/zstd.c:90:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/zstd.c:95:13: branch_false: ...to here
kexec-tools-2.0.32/kexec/zstd.c:95:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/zstd.c:100:14: branch_false: ...to here
kexec-tools-2.0.32/kexec/zstd.c:100:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/zstd.c:105:17: branch_false: ...to here
kexec-tools-2.0.32/kexec/zstd.c:105:17: throw: if ‘xmalloc’ throws an exception...
kexec-tools-2.0.32/kexec/zstd.c:29:14: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
kexec-tools-2.0.32/kexec/zstd.c:29:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
kexec-tools-2.0.32/kexec/zstd.c:76:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
kexec-tools-2.0.32/kexec/zstd.c:79:13: branch_false: ...to here
kexec-tools-2.0.32/kexec/zstd.c:79:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/zstd.c:83:13: branch_false: ...to here
kexec-tools-2.0.32/kexec/zstd.c:83:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/zstd.c:87:9: branch_false: ...to here
kexec-tools-2.0.32/kexec/zstd.c:89:14: acquire_memory: allocated here
kexec-tools-2.0.32/kexec/zstd.c:90:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/zstd.c:95:13: branch_false: ...to here
kexec-tools-2.0.32/kexec/zstd.c:95:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/zstd.c:100:14: branch_false: ...to here
kexec-tools-2.0.32/kexec/zstd.c:100:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/kexec/zstd.c:105:17: branch_false: ...to here
kexec-tools-2.0.32/kexec/zstd.c:105:17: throw: if ‘xmalloc’ throws an exception...
kexec-tools-2.0.32/kexec/zstd.c:29:14: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
kexec-tools-2.0.32/util_lib/elf_info.c:1129:15: warning[-Wanalyzer-malloc-leak]: leak of ‘m.prb’
kexec-tools-2.0.32/util_lib/elf_info.c:1213:6: enter_function: entry to ‘dump_dmesg’
kexec-tools-2.0.32/util_lib/elf_info.c:1215:12: branch_true: following ‘true’ branch...
kexec-tools-2.0.32/util_lib/elf_info.c:1216:17: branch_true: ...to here
kexec-tools-2.0.32/util_lib/elf_info.c:1216:17: call_function: calling ‘dump_dmesg_lockless’ from ‘dump_dmesg’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def62]
kexec-tools-2.0.32/vmcore-dmesg/vmcore-dmesg.c:34:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(argv[1], 0)’
kexec-tools-2.0.32/vmcore-dmesg/vmcore-dmesg.c:46:5: enter_function: entry to ‘main’
kexec-tools-2.0.32/vmcore-dmesg/vmcore-dmesg.c:51:12: branch_false: following ‘false’ branch (when ‘argc == 2’)...
kexec-tools-2.0.32/vmcore-dmesg/vmcore-dmesg.c:55:9: branch_false: ...to here
kexec-tools-2.0.32/vmcore-dmesg/vmcore-dmesg.c:57:14: acquire_resource: opened here
kexec-tools-2.0.32/vmcore-dmesg/vmcore-dmesg.c:58:12: branch_false: following ‘false’ branch...
kexec-tools-2.0.32/vmcore-dmesg/vmcore-dmesg.c:64:15: branch_false: ...to here
kexec-tools-2.0.32/vmcore-dmesg/vmcore-dmesg.c:64:15: call_function: calling ‘read_vmcore_dmesg’ from ‘main’
Scan Properties
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-194.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | kexec-tools-2.0.32-1.fc44 |
| store-results-to | /tmp/tmpkdw_4vef/kexec-tools-2.0.32-1.fc44.tar.xz |
| time-created | 2026-01-08 17:29:37 |
| time-finished | 2026-01-08 17:30:58 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpkdw_4vef/kexec-tools-2.0.32-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpkdw_4vef/kexec-tools-2.0.32-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |