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/wmfrog-0.3.1+git20161115/Src/wmfrog.c
Examining data/wmfrog-0.3.1+git20161115/Src/xutils.c
Examining data/wmfrog-0.3.1+git20161115/Src/xutils.h

FINAL RESULTS:

data/wmfrog-0.3.1+git20161115/Src/wmfrog.c:357:13:  [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(StationID, StringToUpper(argv[++i]));
data/wmfrog-0.3.1+git20161115/Src/wmfrog.c:358:13:  [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(Label, StationID);
data/wmfrog-0.3.1+git20161115/Src/wmfrog.c:382:13:  [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(Label, StringToUpper(argv[++i]));
data/wmfrog-0.3.1+git20161115/Src/wmfrog.c:499:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ign = system(command);
data/wmfrog-0.3.1+git20161115/Src/wmfrog.c:70:1:  [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 StationID[10];
data/wmfrog-0.3.1+git20161115/Src/wmfrog.c:71:1:  [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 Label[20];
data/wmfrog-0.3.1+git20161115/Src/wmfrog.c:459:5:  [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 command[1024], Line[512], FileName[128];
data/wmfrog-0.3.1+git20161115/Src/wmfrog.c:503:15:  [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).
    if ((fp = fopen(FileName, "r")) != NULL) {
data/wmfrog-0.3.1+git20161115/Src/wmfrog.c:625:12:  [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 char userHome[128];
data/wmfrog-0.3.1+git20161115/Src/wmfrog.c:118:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(500000);
data/wmfrog-0.3.1+git20161115/Src/wmfrog.c:543: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).
                if (tmp1 && strlen(tmp1) > 2) {
data/wmfrog-0.3.1+git20161115/Src/wmfrog.c:584: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).
                if (tmp1 && strlen(tmp1) > 2) {
data/wmfrog-0.3.1+git20161115/Src/wmfrog.c:637: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).
    for (i = 0; i < strlen(String); i++)

ANALYSIS SUMMARY:

Hits = 13
Lines analyzed = 1027 in approximately 0.05 seconds (21142 lines/second)
Physical Source Lines of Code (SLOC) = 677
Hits@level = [0]  60 [1]   4 [2]   5 [3]   0 [4]   4 [5]   0
Hits@level+ = [0+]  73 [1+]  13 [2+]   9 [3+]   4 [4+]   4 [5+]   0
Hits/KSLOC@level+ = [0+] 107.829 [1+] 19.2024 [2+] 13.2939 [3+] 5.90842 [4+] 5.90842 [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.