gdisk-1.0.10-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
gdisk-1.0.10-build/gptfdisk-1.0.10/attributes.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
gdisk-1.0.10-build/gptfdisk-1.0.10/basicmbr.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def3]
gdisk-1.0.10-build/gptfdisk-1.0.10/bsd.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def4]
gdisk-1.0.10-build/gptfdisk-1.0.10/diskio-unix.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def5]
gdisk-1.0.10-build/gptfdisk-1.0.10/gpt.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def6]
gdisk-1.0.10-build/gptfdisk-1.0.10/gptcl.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def7]
gdisk-1.0.10-build/gptfdisk-1.0.10/gptcl.cc:213:33: warning[unix.Malloc]: Use of memory after it is freed
#  211|                     break;
#  212|                  case 'b':
#  213|->                   SaveGPTBackup(backupFile);
#  214|                     free(backupFile);
#  215|                     break;

Error: CLANG_WARNING: [#def8]
gdisk-1.0.10-build/gptfdisk-1.0.10/gptcl.cc:302:34: warning[unix.Malloc]: Use of memory after it is freed
#  300|                     break;
#  301|                  case 'l':
#  302|->                   LoadBackupFile(backupFile, saveData, neverSaveData);
#  303|                     free(backupFile);
#  304|                     break;

Error: CLANG_WARNING: [#def9]
gdisk-1.0.10-build/gptfdisk-1.0.10/gptcl.cc:467:34: warning[unix.Malloc]: Use of memory after it is freed
#  465|               switch (opt) {
#  466|                  case 'l':
#  467|->                   LoadBackupFile(backupFile, saveData, neverSaveData);
#  468|                     cout << "Information: Loading backup partition table; will override earlier problems!\n";
#  469|                     free(backupFile);

Error: CLANG_WARNING: [#def10]
gdisk-1.0.10-build/gptfdisk-1.0.10/gptcl.cc:470:19: warning[deadcode.DeadStores]: Value stored to 'retval' is never read
#  468|                     cout << "Information: Loading backup partition table; will override earlier problems!\n";
#  469|                     free(backupFile);
#  470|->                   retval = 0;
#  471|                     break;
#  472|                  case 'o':

Error: CLANG_WARNING: [#def11]
gdisk-1.0.10-build/gptfdisk-1.0.10/gptcl.cc:477:19: warning[deadcode.DeadStores]: Value stored to 'retval' is never read
#  475|                     saveData = 1;
#  476|                     cout << "Information: Creating fresh partition table; will override earlier problems!\n";
#  477|->                   retval = 0;
#  478|                     break;
#  479|                  case 'v':

Error: CPPCHECK_WARNING: [#def12]
gdisk-1.0.10-build/gptfdisk-1.0.10/gptcurses.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def13]
gdisk-1.0.10-build/gptfdisk-1.0.10/gptpart.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def14]
gdisk-1.0.10-build/gptfdisk-1.0.10/gpttext.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def15]
gdisk-1.0.10-build/gptfdisk-1.0.10/guid.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def16]
gdisk-1.0.10-build/gptfdisk-1.0.10/mbr.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def17]
gdisk-1.0.10-build/gptfdisk-1.0.10/mbrpart.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def18]
gdisk-1.0.10-build/gptfdisk-1.0.10/parttypes.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def19]
gdisk-1.0.10-build/gptfdisk-1.0.10/support.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def20]
gdisk-1.0.10-build/gptfdisk-1.0.10/support.cc:176:7: warning[deadcode.DeadStores]: Value stored to 'suffix' is never read
#  174|      if ((inValue.length() == 0) || (response == 0)) {
#  175|         response = def;
#  176|->       suffix = ' ';
#  177|         plusFlag = ' ';
#  178|      } // if

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-149.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namegdisk-1.0.10-1.fc41
store-results-to/tmp/tmpc__jmknl/gdisk-1.0.10-1.fc41.tar.xz
time-created2024-07-03 12:47:57
time-finished2024-07-03 12:49:29
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpc__jmknl/gdisk-1.0.10-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpc__jmknl/gdisk-1.0.10-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9