parted-3.6-7.fc42
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
parted-3.6-build/parted-3.6/lib/ialloc.h:51:37: warning[-Wanalyzer-malloc-leak]: leak of 'ximalloc(s + 1)'
parted-3.6-build/parted-3.6/lib/xmalloc.c: scope_hint: In function 'ximalloc'
parted-3.6-build/parted-3.6/lib/xmalloc.c: scope_hint: In function 'ximalloc'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
parted-3.6-build/parted-3.6/lib/ialloc.h:51:37: warning[-Wanalyzer-malloc-leak]: leak of 'ximalloc(s)'
parted-3.6-build/parted-3.6/lib/xmalloc.c: scope_hint: In function 'ximalloc'
parted-3.6-build/parted-3.6/lib/xmalloc.c: scope_hint: In function 'ximalloc'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
parted-3.6-build/parted-3.6/lib/ialloc.h:81:10: warning[-Wanalyzer-malloc-leak]: leak of 'xicalloc(s, 1)'
parted-3.6-build/parted-3.6/lib/xmalloc.c: scope_hint: In function 'xicalloc'
parted-3.6-build/parted-3.6/lib/xmalloc.c: scope_hint: In function 'xicalloc'
Error: CPPCHECK_WARNING (CWE-664): [#def4]
parted-3.6-build/parted-3.6/lib/long-options.c:76: error[va_end_missing]: va_list 'authors' was opened but not closed by va_end().
Error: CPPCHECK_WARNING (CWE-664): [#def5]
parted-3.6-build/parted-3.6/lib/long-options.c:129: error[va_end_missing]: va_list 'authors' was opened but not closed by va_end().
Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
parted-3.6-build/parted-3.6/lib/xmalloc.c: scope_hint: In function 'xmalloc'
parted-3.6-build/parted-3.6/lib/xmalloc.c:45:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(n)'
parted-3.6-build/parted-3.6/lib/xmalloc.c:22: included_from: Included from here.
parted-3.6-build/parted-3.6/lib/xmalloc.c:57:10: note: in expansion of macro 'XNMALLOC'
parted-3.6-build/parted-3.6/lib/xmalloc.c:57:10: note: in expansion of macro 'XNMALLOC'
parted-3.6-build/parted-3.6/lib/xmalloc.c: scope_hint: In function 'xmalloc'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
parted-3.6-build/parted-3.6/lib/xmalloc.c:45:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(s)'
parted-3.6-build/parted-3.6/lib/xmalloc.c: scope_hint: In function 'xmalloc'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
parted-3.6-build/parted-3.6/lib/xmalloc.c: scope_hint: In function 'xcalloc'
parted-3.6-build/parted-3.6/lib/xmalloc.c:298:10: warning[-Wanalyzer-malloc-leak]: leak of 'xcalloc(s, 1)'
parted-3.6-build/parted-3.6/lib/xmalloc.c: scope_hint: In function 'xcalloc'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
parted-3.6-build/parted-3.6/lib/xmalloc.c: scope_hint: In function 'xmemdup'
parted-3.6-build/parted-3.6/lib/xmalloc.c:314:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmemdup(string, strlen(string) + 1)'
parted-3.6-build/parted-3.6/lib/xmalloc.c: scope_hint: In function 'xmemdup'
Error: CPPCHECK_WARNING (CWE-758): [#def10]
parted-3.6-build/parted-3.6/lib/xstrtol.c:54: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: GCC_ANALYZER_WARNING (CWE-688): [#def11]
parted-3.6-build/parted-3.6/libparted/arch/linux.c: scope_hint: In function '_dm_remove_partition'
parted-3.6-build/parted-3.6/libparted/arch/linux.c:2845:18: warning[-Wanalyzer-null-argument]: use of NULL 'vol_uuid' where non-null expected
parted-3.6-build/parted-3.6/lib/fcntl.h:67: included_from: Included from here.
parted-3.6-build/parted-3.6/libparted/arch/linux.c:31: included_from: Included from here.
/usr/include/fcntl.h:209:12: note: argument 1 of 'open' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def12]
parted-3.6-build/parted-3.6/libparted/arch/linux.c:2845:18: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/fcntl.h:209:12: note: argument 1 of 'open' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def13]
parted-3.6-build/parted-3.6/libparted/disk.c: scope_hint: In function '_disk_raw_remove'
parted-3.6-build/parted-3.6/libparted/disk.c:1876:33: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
parted-3.6-build/parted-3.6/libparted/disk.c:38: included_from: Included from here.
parted-3.6-build/parted-3.6/libparted/disk.c:1713:9: note: in expansion of macro 'PED_ASSERT'
parted-3.6-build/parted-3.6/libparted/disk.c:1713:9: note: in expansion of macro 'PED_ASSERT'
parted-3.6-build/parted-3.6/libparted/disk.c:1866:9: note: in expansion of macro 'PED_ASSERT'
parted-3.6-build/parted-3.6/libparted/disk.c:1867:9: note: in expansion of macro 'PED_ASSERT'
parted-3.6-build/parted-3.6/libparted/disk.c:1867:9: note: in expansion of macro 'PED_ASSERT'
parted-3.6-build/parted-3.6/libparted/disk.c:1692:9: note: in expansion of macro 'PED_ASSERT'
Error: CPPCHECK_WARNING (CWE-457): [#def14]
parted-3.6-build/parted-3.6/libparted/fs/hfs/probe.c:122: error[uninitvar]: Uninitialized variable: mdb->old_new.embedded.signature
Error: COMPILER_WARNING (CWE-681): [#def15]
parted-3.6-build/parted-3.6/libparted/fs/r/fat/bootsector.c: scope_hint: In function 'fat_boot_sector_set_boot_code'
parted-3.6-build/parted-3.6/libparted/fs/r/fat/bootsector.c:282:28: warning[-Wpointer-sign]: pointer targets in passing argument 1 of 'strcpy' differ in signedness
/usr/include/features.h:511: included_from: Included from here.
/usr/include/assert.h:35: included_from: Included from here.
parted-3.6-build/parted-3.6/lib/config.h:2435: included_from: Included from here.
parted-3.6-build/parted-3.6/libparted/fs/r/fat/bootsector.c:20: included_from: Included from here.
/usr/include/bits/string_fortified.h:77:16: note: expected 'char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'}
Error: CPPCHECK_WARNING (CWE-457): [#def16]
parted-3.6-build/parted-3.6/libparted/fs/r/hfs/advfs.c:205: error[uninitvar]: Uninitialized variable: ret_key->file_ID
Error: CPPCHECK_WARNING (CWE-457): [#def17]
parted-3.6-build/parted-3.6/libparted/fs/r/hfs/advfs_plus.c:212: error[uninitvar]: Uninitialized variable: ret_key->file_ID
Error: CPPCHECK_WARNING (CWE-457): [#def18]
parted-3.6-build/parted-3.6/libparted/fs/r/hfs/file.c:91: error[uninitvar]: Uninitialized variable: ret_key->file_ID
Error: CPPCHECK_WARNING (CWE-457): [#def19]
parted-3.6-build/parted-3.6/libparted/fs/r/hfs/file_plus.c:94: error[uninitvar]: Uninitialized variable: ret_key->file_ID
Error: CPPCHECK_WARNING (CWE-457): [#def20]
parted-3.6-build/parted-3.6/libparted/fs/r/hfs/probe.c:79: error[uninitvar]: Uninitialized variable: mdb->signature
Error: COMPILER_WARNING (CWE-681): [#def21]
parted-3.6-build/parted-3.6/libparted/labels/atari.c: scope_hint: In function 'atari_probe'
parted-3.6-build/parted-3.6/libparted/labels/atari.c:261:62: warning[-Wpointer-sign]: pointer targets in passing argument 1 of 'atr_pid_known' differ in signedness
parted-3.6-build/parted-3.6/libparted/labels/atari.c:423:23: note: in expansion of macro 'atr_part_known'
parted-3.6-build/parted-3.6/libparted/labels/atari.c:233:28: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'}
Error: COMPILER_WARNING (CWE-681): [#def22]
parted-3.6-build/parted-3.6/libparted/labels/atari.c: scope_hint: In function 'atr_parse_add_rawpart'
parted-3.6-build/parted-3.6/libparted/labels/atari.c:555:39: warning[-Wpointer-sign]: pointer targets in passing argument 2 of 'atr_part_sysraw' differ in signedness
parted-3.6-build/parted-3.6/libparted/labels/atari.c:512:50: note: expected 'const char *' but argument is of type 'const uint8_t *' {aka 'const unsigned char *'}
Error: CPPCHECK_WARNING (CWE-457): [#def23]
parted-3.6-build/parted-3.6/libparted/labels/atari.c:1419: error[uninitvar]: Uninitialized variables: (disk=part->disk)->dev.dev, (disk=part->disk)->dev.type, (disk=part->disk)->dev.block_sizes, (disk=part->disk)->dev.part_list, (disk=part->disk)->dev.disk_specific, (disk=part->disk)->dev.needs_clobber, (disk=part->disk)->dev.update_mode
Error: CPPCHECK_WARNING (CWE-457): [#def24]
parted-3.6-build/parted-3.6/libparted/labels/atari.c:1502: error[uninitvar]: Uninitialized variables: (disk=part->disk)->dev.dev, (disk=part->disk)->dev.type, (disk=part->disk)->dev.block_sizes, (disk=part->disk)->dev.part_list, (disk=part->disk)->dev.disk_specific, (disk=part->disk)->dev.needs_clobber, (disk=part->disk)->dev.update_mode
Error: CPPCHECK_WARNING (CWE-457): [#def25]
parted-3.6-build/parted-3.6/libparted/labels/dos.c:981: error[legacyUninitvar]: Uninitialized variable: head_size
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
parted-3.6-build/parted-3.6/libparted/labels/gpt.c: scope_hint: In function 'gpt_partition_set_name'
parted-3.6-build/parted-3.6/libparted/labels/gpt.c:1708:41: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(name)'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def27]
parted-3.6-build/parted-3.6/libparted/libparted.c: scope_hint: In function 'ped_calloc'
parted-3.6-build/parted-3.6/libparted/libparted.c:259:9: warning[-Wanalyzer-null-argument]: use of NULL 'ped_malloc(size)' where non-null expected
parted-3.6-build/parted-3.6/libparted/libparted.c:30: included_from: Included from here.
parted-3.6-build/parted-3.6/libparted/libparted.c:247:38: note: in expansion of macro '_'
<built-in>: note: argument 1 of '__builtin_memset' must be non-null
Error: CPPCHECK_WARNING (CWE-401): [#def28]
parted-3.6-build/parted-3.6/parted/strlist.c:168: error[memleakOnRealloc]: Common realloc mistake: 'result' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
parted-3.6-build/parted-3.6/parted/strlist.c: scope_hint: In function 'str_list_convert'
parted-3.6-build/parted-3.6/parted/strlist.c:361:38: warning[-Wanalyzer-malloc-leak]: leak of 'str'
Error: CPPCHECK_WARNING (CWE-401): [#def30]
parted-3.6-build/parted-3.6/parted/strlist.c:367: error[memleakOnRealloc]: Common realloc mistake: 'str' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-688): [#def31]
parted-3.6-build/parted-3.6/parted/strlist.c:368:25: warning[-Wanalyzer-null-argument]: use of NULL 'str' where non-null expected
<built-in>: note: argument 1 of '__builtin_strcpy' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
parted-3.6-build/parted-3.6/parted/table.c: scope_hint: In function 'table_add_row_from_strlist'
parted-3.6-build/parted-3.6/parted/table.c:155:26: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc((long unsigned int)str_list_length(list) * 8)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def33]
parted-3.6-build/parted-3.6/parted/ui.c: scope_hint: In function '_readline'
parted-3.6-build/parted-3.6/parted/ui.c:576:49: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'line'
parted-3.6-build/parted-3.6/parted/ui.c:23: included_from: Included from here.
parted-3.6-build/parted-3.6/parted/ui.c:793:9: note: in expansion of macro 'PED_ASSERT'
parted-3.6-build/parted-3.6/parted/ui.c:795:9: note: in expansion of macro 'PED_ASSERT'
parted-3.6-build/parted-3.6/parted/ui.c:30: included_from: Included from here.
parted-3.6-build/parted-3.6/parted/ui.c: scope_hint: In function '_readline'
Scan Properties
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-235.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | parted-3.6-7.fc42 |
store-results-to | /tmp/tmpt02h1je_/parted-3.6-7.fc42.tar.xz |
time-created | 2024-11-13 02:21:40 |
time-finished | 2024-11-13 02:24:32 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpt02h1je_/parted-3.6-7.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpt02h1je_/parted-3.6-7.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |