Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/xmount-0.7.6/libxmount/endianness.h
Examining data/xmount-0.7.6/libxmount/libxmount.c
Examining data/xmount-0.7.6/libxmount/libxmount.h
Examining data/xmount-0.7.6/libxmount_input/libxmount_input.h
Examining data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.c
Examining data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.h
Examining data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.c
Examining data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.h
Examining data/xmount-0.7.6/libxmount_input/libxmount_input_aff/libxmount_input_aff.c
Examining data/xmount-0.7.6/libxmount_input/libxmount_input_aff/libxmount_input_aff.h
Examining data/xmount-0.7.6/libxmount_input/libxmount_input_ewf/libxmount_input_ewf.c
Examining data/xmount-0.7.6/libxmount_input/libxmount_input_ewf/libxmount_input_ewf.h
Examining data/xmount-0.7.6/libxmount_input/libxmount_input_raw/libxmount_input_raw.c
Examining data/xmount-0.7.6/libxmount_input/libxmount_input_raw/libxmount_input_raw.h
Examining data/xmount-0.7.6/libxmount_morphing/libxmount_morphing.h
Examining data/xmount-0.7.6/libxmount_morphing/libxmount_morphing_combine/libxmount_morphing_combine.c
Examining data/xmount-0.7.6/libxmount_morphing/libxmount_morphing_combine/libxmount_morphing_combine.h
Examining data/xmount-0.7.6/libxmount_morphing/libxmount_morphing_raid/libxmount_morphing_raid.c
Examining data/xmount-0.7.6/libxmount_morphing/libxmount_morphing_raid/libxmount_morphing_raid.h
Examining data/xmount-0.7.6/libxmount_morphing/libxmount_morphing_unallocated/fat_functions.c
Examining data/xmount-0.7.6/libxmount_morphing/libxmount_morphing_unallocated/fat_functions.h
Examining data/xmount-0.7.6/libxmount_morphing/libxmount_morphing_unallocated/hfs_functions.c
Examining data/xmount-0.7.6/libxmount_morphing/libxmount_morphing_unallocated/hfs_functions.h
Examining data/xmount-0.7.6/libxmount_morphing/libxmount_morphing_unallocated/libxmount_morphing_unallocated.c
Examining data/xmount-0.7.6/libxmount_morphing/libxmount_morphing_unallocated/libxmount_morphing_unallocated.h
Examining data/xmount-0.7.6/libxmount_morphing/libxmount_morphing_unallocated/libxmount_morphing_unallocated_retvalues.h
Examining data/xmount-0.7.6/libxmount_morphing/libxmount_morphing_unallocated/ntfs_functions.c
Examining data/xmount-0.7.6/libxmount_morphing/libxmount_morphing_unallocated/ntfs_functions.h
Examining data/xmount-0.7.6/src/macros.h
Examining data/xmount-0.7.6/src/md5.c
Examining data/xmount-0.7.6/src/md5.h
Examining data/xmount-0.7.6/src/xmount.c
Examining data/xmount-0.7.6/src/xmount.h

FINAL RESULTS:

data/xmount-0.7.6/libxmount/libxmount.c:51:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vprintf(p_msg,var_list);
data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.c:113:13:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            vfprintf (pFile, pFormat, pArguments);
data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.c:123:7:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      vprintf (pFormat, pArguments);
data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.c:283:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
   sprintf (SearchPageStr, "page%" PRIu64, SearchPage);
data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.c:751:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
   Pos += snprintf (&pAaff->pInfoBuff[Pos], REM, "\nSectors     %" PRIu64, pAaff->Sectors);
data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.c:753:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
   Pos += snprintf (&pAaff->pInfoBuff[Pos], REM, "\nTotal pages %" PRIu64, pAaff->TotalPages);
data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.c:760:16:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
   else Pos += snprintf (&pAaff->pInfoBuff[Pos], REM, "%" PRIu64, pAaff->CurrentPage);
data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.c:761:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
   Pos += snprintf (&pAaff->pInfoBuff[Pos], REM, "\nSeek array length  %" PRIu64, pAaff->PageSeekArrLen);
data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.c:762:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
   Pos += snprintf (&pAaff->pInfoBuff[Pos], REM, "\nSeek interleave    %" PRIu64, pAaff->Interleave);
data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.c:769:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
   Pos += snprintf (&pAaff->pInfoBuff[Pos], REM, "\nSeek array entries %" PRIu64, Entries);
data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.c:868:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   printf (__VA_ARGS__);          \
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.c:150:13:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            vfprintf (pFile, pFormat, pArguments0);
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.c:161:7:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      vprintf (pFormat, pArguments0);
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.c:456:19:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                  sprintf (&pValue[w], " (epoch %s)", pCurData);
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.c:458:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
               wr += sprintf (&pInfo3[wr], "%-17s %s\n", pField, pValue);
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.c:1696:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   printf (__VA_ARGS__);          \
data/xmount-0.7.6/libxmount_input/libxmount_input_ewf/libxmount_input_ewf.c:319:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(p_infobuf+strlen(p_infobuf),str);              \
data/xmount-0.7.6/libxmount_input/libxmount_input_ewf/libxmount_input_ewf.c:322:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(p_infobuf,str);                                \
data/xmount-0.7.6/libxmount_input/libxmount_input_ewf/libxmount_input_ewf.c:435:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(buf,"%" PRIu32,uint32value);
data/xmount-0.7.6/libxmount_input/libxmount_input_ewf/libxmount_input_ewf.c:438:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(buf,"%" PRIu64,uint64value);
data/xmount-0.7.6/libxmount_input/libxmount_input_ewf/libxmount_input_ewf.c:442:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(buf,"%" PRIu32,uint32value);
data/xmount-0.7.6/libxmount_input/libxmount_input_ewf/libxmount_input_ewf.c:445:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(buf,"%" PRIu64,uint64value);
data/xmount-0.7.6/libxmount_input/libxmount_input_raw/libxmount_input_raw.h:74:7:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      printf (pFormat, ##__VA_ARGS__);
data/xmount-0.7.6/src/macros.h:51:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(var1,var2); \
data/xmount-0.7.6/src/macros.h:60:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy((var1)+strlen(var1),var2); \
data/xmount-0.7.6/src/xmount.c:663:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(XMOUNT_COPYRIGHT_NOTICE "\n\n",XMOUNT_VERSION);
data/xmount-0.7.6/src/xmount.c:2040:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(buf,
data/xmount-0.7.6/src/xmount.c:2047:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(buf,
data/xmount-0.7.6/src/xmount.c:2367:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(p_library_path+base_library_path_len,p_dirent->d_name);
data/xmount-0.7.6/src/xmount.c:3072:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(aVmdkLockDir,
data/xmount-0.7.6/src/xmount.c:3330:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(glob_xmount.output.vmdk.p_vmdk_lockfile_name,p_npath);
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.c:1201:25:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
      pSegment->pName = realpath (ppFilenameArr[i], NULL); // realpath allocates a buffer of the necessary length
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.c:1528:28:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
         pAewf->pLogPath = realpath (pOption->p_value, NULL);
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.c:1546:30:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
         pAewf->pStatsPath = realpath (pOption->p_value, NULL);
data/xmount-0.7.6/src/xmount.c:764:13:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
      p_buf=realpath(glob_xmount.input.pp_images[0]->pp_files[0],NULL);
data/xmount-0.7.6/src/xmount.c:3801:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(time(NULL));
data/xmount-0.7.6/libxmount/libxmount.h:27:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  #define fopen64 fopen
data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.c:69:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char         LogLineHeader[1024];
data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.c:278:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char               SearchPageStr[128];
data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.c:459:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char      Signature[strlen(AFF_HEADER)+1];
data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.c:468:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   pAaff->pFile     = fopen  (ppFilenameArr[0],"r");
data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.c:496:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char            HexStr[HexStrLen+1];
data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.c:520:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            wr += sprintf (&HexStr[wr], "%02X", pData[i]);
data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.c:654:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (pBuf, pPageBuffer+Ofs, ToCopy);
data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.c:1001:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   pFile = fopen (argv[2], "w");
data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.h:85:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char         Magic[4];
data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.h:97:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char         Magic[4];
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.c:104:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char         LogLineHeader[1024];
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.c:226:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   *ppFile = fopen (pFilename, "r");
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.c:417:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char         TimeBuff[64];
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.c:621:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
         pFile = fopen (pFilename, "w");
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.c:823:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (pBuf, pChunkBuffer+Ofs, ToCopy);
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.c:856:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (pThread->pBuf, pThread->pChunkBuffUncompressed+pThread->Ofs, pThread->Len);
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.c:874:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (pThread->pBuf, pThread->pChunkBuffUncompressed+pThread->Ofs, pThread->Len);
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.c:885:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (pThread->pBuf, pThread->pChunkBuffUncompressed+pThread->Ofs, pThread->Len);
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.c:1784:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char           Buff[BuffSize];
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.c:1865:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   pFile = fopen ("dd", "w");
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.c:1870:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      pFileRev = fopen ("rev", "w");
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.h:45:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char      Signature[8];
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.h:53:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char      Type[16];
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.h:56:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char      Padding[40];
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.h:64:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char      Unknown1[3];  // contains 0x00
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.h:73:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char      Unknown2[3];  // contains 0x00
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.h:75:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char      Padding1[4];  // contains 0x00
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.h:78:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char      Unknown3[3];  // contains 0x00
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.h:80:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char      Unknown4[4];
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.h:81:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char      AcquirySystemGUID[16];
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.h:82:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char      Padding2[963];
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.h:83:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char      Reserved [5];
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.h:90:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char      Padding1 [4];
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.h:92:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char      Padding2 [4];
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.h:108:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char           Padding[512];
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.h:116:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char MD5[16];
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.h:117:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char Unknown[16];
data/xmount-0.7.6/libxmount_input/libxmount_input_ewf/libxmount_input_ewf.c:307:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[512];
data/xmount-0.7.6/libxmount_input/libxmount_input_raw/libxmount_input_raw.c:179:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    pPiece->pFile = fopen (pPiece->pFilename, "r");
data/xmount-0.7.6/src/macros.h:25:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  #define FOPEN fopen
data/xmount-0.7.6/src/md5.c:58:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char *const test[7] = {
data/xmount-0.7.6/src/md5.c:209:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(xbuf, data, 64);
data/xmount-0.7.6/src/md5.c:360:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(pms->buf + offset, p, copy);
data/xmount-0.7.6/src/md5.c:374:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(pms->buf, p, left);
data/xmount-0.7.6/src/xmount.c:290:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[256];
data/xmount-0.7.6/src/xmount.c:1147:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(p_buf,
data/xmount-0.7.6/src/xmount.c:1265:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(p_buf,
data/xmount-0.7.6/src/xmount.c:1783:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char hash[16];
data/xmount-0.7.6/src/xmount.c:2012:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[500];
data/xmount-0.7.6/src/xmount.c:2414:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(p_input_lib->p_supported_input_types,
data/xmount-0.7.6/src/xmount.c:2493:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(p_morphing_lib->p_supported_morphing_types,
data/xmount-0.7.6/src/xmount.c:3071:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char aVmdkLockDir[strlen(glob_xmount.output.vmdk.p_virtual_vmdk_path)+5];
data/xmount-0.7.6/src/xmount.c:3259:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p_buf,filebuf+offset,size);                                         \
data/xmount-0.7.6/src/xmount.c:3487:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(glob_xmount.output.vmdk.p_vmdk_file+offset,p_buf,size);
data/xmount-0.7.6/src/xmount.c:3506:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(glob_xmount.output.vmdk.p_vmdk_lockfile_data+offset,p_buf,size);
data/xmount-0.7.6/src/xmount.h:54:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char szFileInfo[64];
data/xmount-0.7.6/src/xmount.h:67:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char szComment[256];
data/xmount-0.7.6/src/xmount.h:113:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char padding[56];
data/xmount-0.7.6/src/xmount.h:176:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char reserved[427];
data/xmount-0.7.6/src/xmount.h:233:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char HeaderPadding[432];
data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.c:199:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   pSegmentNamePageNumber = &pSegmentName[strlen(AFF_SEGNAME_PAGE)];
data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.c:295:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strncmp (pAaff->pNameBuff, AFF_SEGNAME_PAGE, strlen(AFF_SEGNAME_PAGE)) != 0)
data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.c:459:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   char      Signature[strlen(AFF_HEADER)+1];
data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.c:527:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      else if (strncmp(pName,AFF_SEGNAME_PAGE,strlen(AFF_SEGNAME_PAGE))==0)
data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.c:777:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   LOG ("Ret - %d bytes of info", strlen(*ppInfoBuf)+1);
data/xmount-0.7.6/libxmount_input/libxmount_input_aaff/libxmount_input_aaff.c:893:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (pOptions[strlen(pOptions)-1] == ',')
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.c:421:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         pInfo3 = (char *) malloc (strlen (pCurData) + 4096);
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.c:1584:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   LOG ("Ret - %d bytes of info", strlen(pInfo)+1);
data/xmount-0.7.6/libxmount_input/libxmount_input_aewf/libxmount_input_aewf.c:1721:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (pOptions[strlen(pOptions)-1] == ',')
data/xmount-0.7.6/libxmount_input/libxmount_input_ewf/libxmount_input_ewf.c:318:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    EWF_INFOBUF_REALLOC(strlen(p_infobuf)+strlen(str)+1); \
data/xmount-0.7.6/libxmount_input/libxmount_input_ewf/libxmount_input_ewf.c:318:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    EWF_INFOBUF_REALLOC(strlen(p_infobuf)+strlen(str)+1); \
data/xmount-0.7.6/libxmount_input/libxmount_input_ewf/libxmount_input_ewf.c:319:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strcpy(p_infobuf+strlen(p_infobuf),str);              \
data/xmount-0.7.6/libxmount_input/libxmount_input_ewf/libxmount_input_ewf.c:321:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    EWF_INFOBUF_REALLOC(strlen(str)+1);                   \
data/xmount-0.7.6/libxmount_morphing/libxmount_morphing_combine/libxmount_morphing_combine.c:171:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  size_t read;
data/xmount-0.7.6/libxmount_morphing/libxmount_morphing_combine/libxmount_morphing_combine.c:223:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               &read);
data/xmount-0.7.6/libxmount_morphing/libxmount_morphing_combine/libxmount_morphing_combine.c:224:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(ret!=0 || read!=cur_count) return COMBINE_CANNOT_READ_DATA;
data/xmount-0.7.6/libxmount_morphing/libxmount_morphing_raid/libxmount_morphing_raid.c:193:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  size_t read;
data/xmount-0.7.6/libxmount_morphing/libxmount_morphing_raid/libxmount_morphing_raid.c:239:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               &read);
data/xmount-0.7.6/libxmount_morphing/libxmount_morphing_raid/libxmount_morphing_raid.c:240:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(ret!=0 || read!=cur_count) return RAID_CANNOT_READ_DATA;
data/xmount-0.7.6/src/macros.h:50:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  XMOUNT_MALLOC(var1,char*,strlen(var2)+1) \
data/xmount-0.7.6/src/macros.h:55:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(var1,var2,size); \
data/xmount-0.7.6/src/macros.h:59:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  XMOUNT_REALLOC(var1,char*,strlen(var1)+strlen(var2)+1) \
data/xmount-0.7.6/src/macros.h:59:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  XMOUNT_REALLOC(var1,char*,strlen(var1)+strlen(var2)+1) \
data/xmount-0.7.6/src/macros.h:60:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  strcpy((var1)+strlen(var1),var2); \
data/xmount-0.7.6/src/macros.h:63:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  XMOUNT_REALLOC(var1,char*,strlen(var1)+(size)+1) \
data/xmount-0.7.6/src/macros.h:64:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  (var1)[strlen(var1)+(size)]='\0'; \
data/xmount-0.7.6/src/macros.h:65:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy((var1)+strlen(var1),var2,size); \
data/xmount-0.7.6/src/macros.h:65:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  strncpy((var1)+strlen(var1),var2,size); \
data/xmount-0.7.6/src/md5.c:76:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	md5_append(&state, (const md5_byte_t *)test[i], strlen(test[i]));
data/xmount-0.7.6/src/xmount.c:166:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      p_buf+=(strlen(p_buf)+1);
data/xmount-0.7.6/src/xmount.c:190:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      p_buf+=(strlen(p_buf)+1);
data/xmount-0.7.6/src/xmount.c:390:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(strlen(pp_argv[i])>1 && *(pp_argv[i]+1)!='-') {
data/xmount-0.7.6/src/xmount.c:678:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            p_buf+=(strlen(p_buf)+1);
data/xmount-0.7.6/src/xmount.c:693:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            p_buf+=(strlen(p_buf)+1);
data/xmount-0.7.6/src/xmount.c:769:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      for(uint32_t i=0;i<strlen(p_buf);i++) {
data/xmount-0.7.6/src/xmount.c:828:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                   strlen(p_orig_name)-strlen(tmp));
data/xmount-0.7.6/src/xmount.c:828:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                   strlen(p_orig_name)-strlen(tmp));
data/xmount-0.7.6/src/xmount.c:830:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                   strlen(p_orig_name)-strlen(tmp));
data/xmount-0.7.6/src/xmount.c:830:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                   strlen(p_orig_name)-strlen(tmp));
data/xmount-0.7.6/src/xmount.c:835:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                     strlen(p_orig_name)-strlen(tmp));
data/xmount-0.7.6/src/xmount.c:835:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                     strlen(p_orig_name)-strlen(tmp));
data/xmount-0.7.6/src/xmount.c:1026:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  size_t read;
data/xmount-0.7.6/src/xmount.c:1054:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                             &read);
data/xmount-0.7.6/src/xmount.c:1077:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  size_t read, to_read=0, cur_to_read=0;
data/xmount-0.7.6/src/xmount.c:1207:59:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ret=GetMorphedImageData(p_buf,file_off,cur_to_read,&read);
data/xmount-0.7.6/src/xmount.c:1208:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if(ret!=TRUE || read!=cur_to_read) {
data/xmount-0.7.6/src/xmount.c:1539:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  size_t read;
data/xmount-0.7.6/src/xmount.c:1647:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                &read);
data/xmount-0.7.6/src/xmount.c:1648:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if(ret!=TRUE || read!=block_offset) {
data/xmount-0.7.6/src/xmount.c:1683:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                  &read);
data/xmount-0.7.6/src/xmount.c:1684:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          if(ret!=TRUE || read!=orig_image_size-(file_offset+to_write_now)) {
data/xmount-0.7.6/src/xmount.c:1692:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                  &read);
data/xmount-0.7.6/src/xmount.c:1693:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          if(ret!=TRUE || read!=CACHE_BLOCK_SIZE-(block_offset+to_write_now)) {
data/xmount-0.7.6/src/xmount.c:1850:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(glob_xmount.output.vdi.p_vdi_header->szFileInfo,
data/xmount-0.7.6/src/xmount.c:1852:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          strlen(VDI_FILE_COMMENT)+1);
data/xmount-0.7.6/src/xmount.c:1859:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(glob_xmount.output.vdi.p_vdi_header->szComment,
data/xmount-0.7.6/src/xmount.c:1861:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          strlen(VDI_HEADER_COMMENT)+1);
data/xmount-0.7.6/src/xmount.c:2060:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  XMOUNT_MALLOC(glob_xmount.output.vmdk.p_vmdk_file,char*,strlen(buf))
data/xmount-0.7.6/src/xmount.c:2061:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(glob_xmount.output.vmdk.p_vmdk_file,buf,strlen(buf));
data/xmount-0.7.6/src/xmount.c:2061:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  strncpy(glob_xmount.output.vmdk.p_vmdk_file,buf,strlen(buf));
data/xmount-0.7.6/src/xmount.c:2062:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  glob_xmount.output.vmdk.vmdk_file_size=strlen(buf);
data/xmount-0.7.6/src/xmount.c:2078:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                strlen(IMAGE_INFO_INPUT_HEADER)+1);
data/xmount-0.7.6/src/xmount.c:2079:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(glob_xmount.output.p_info_file,
data/xmount-0.7.6/src/xmount.c:2081:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          strlen(IMAGE_INFO_INPUT_HEADER)+1);
data/xmount-0.7.6/src/xmount.c:2329:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  base_library_path_len=strlen(XMOUNT_LIBRARY_PATH);
data/xmount-0.7.6/src/xmount.c:2362:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                           base_library_path_len+strlen(p_dirent->d_name)+1);
data/xmount-0.7.6/src/xmount.c:2407:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        supported_formats_len+=(strlen(p_buf)+1);
data/xmount-0.7.6/src/xmount.c:2408:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        p_buf+=(strlen(p_buf)+1);
data/xmount-0.7.6/src/xmount.c:2486:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        supported_formats_len+=(strlen(p_buf)+1);
data/xmount-0.7.6/src/xmount.c:2487:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        p_buf+=(strlen(p_buf)+1);
data/xmount-0.7.6/src/xmount.c:2572:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      p_buf+=(strlen(p_buf)+1);
data/xmount-0.7.6/src/xmount.c:2606:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      p_buf+=(strlen(p_buf)+1);
data/xmount-0.7.6/src/xmount.c:2839:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  params_len=strlen(p_params);
data/xmount-0.7.6/src/xmount.c:3019:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      p_stat->st_size=strlen(glob_xmount.output.p_info_file);
data/xmount-0.7.6/src/xmount.c:3049:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        p_stat->st_size=strlen(glob_xmount.output.vmdk.p_vmdk_lockfile_name);
data/xmount-0.7.6/src/xmount.c:3071:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char aVmdkLockDir[strlen(glob_xmount.output.vmdk.p_virtual_vmdk_path)+5];
data/xmount-0.7.6/src/xmount.c:3087:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                      strlen(glob_xmount.output.vmdk.p_vmdk_lockdir1))==0)
data/xmount-0.7.6/src/xmount.c:3095:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                strlen(glob_xmount.output.vmdk.p_vmdk_lockdir1),
data/xmount-0.7.6/src/xmount.c:3177:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 strlen(glob_xmount.output.vmdk.p_vmdk_lockdir1)+1,
data/xmount-0.7.6/src/xmount.c:3283:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  strlen(glob_xmount.output.p_info_file),
data/xmount-0.7.6/src/xmount.c:3329:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                     (strlen(p_npath)+1)*sizeof(char));

ANALYSIS SUMMARY:

Hits = 178
Lines analyzed = 13244 in approximately 0.36 seconds (36665 lines/second)
Physical Source Lines of Code (SLOC) = 9081
Hits@level = [0] 178 [1]  81 [2]  61 [3]   5 [4]  31 [5]   0
Hits@level+ = [0+] 356 [1+] 178 [2+]  97 [3+]  36 [4+]  31 [5+]   0
Hits/KSLOC@level+ = [0+] 39.2027 [1+] 19.6014 [2+] 10.6816 [3+] 3.96432 [4+] 3.41372 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.