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/dbview-1.0.4/db_dump.c
Examining data/dbview-1.0.4/db_dump.h
Examining data/dbview-1.0.4/dbview.c
Examining data/dbview-1.0.4/version.c
Examining data/dbview-1.0.4/version.h

FINAL RESULTS:

data/dbview-1.0.4/db_dump.c:153: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(rvar, c);
data/dbview-1.0.4/dbview.c:129: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(dbfile, argv[optind]);
data/dbview-1.0.4/dbview.c:84:18:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ( (c = getopt_long(argc, argv, "Hbd:ehiDortv", long_options, &opt_index)) != -1 ) {
data/dbview-1.0.4/db_dump.c:80: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        buf_work[255];
data/dbview-1.0.4/db_dump.c:122: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).
    dbfile=fopen(dbfn,"r");
data/dbview-1.0.4/db_dump.c:146: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 rvar[257];	/* dBase fields can only
data/dbview-1.0.4/db_dump.c:339:9:  [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(buf_work,temp->data,temp->fld->length);
data/dbview-1.0.4/dbview.c:79: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 dbfile[256];
data/dbview-1.0.4/db_dump.c:169:13:  [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 (c+=strlen(var)-1; isspace (*c); c--);

ANALYSIS SUMMARY:

Hits = 9
Lines analyzed = 696 in approximately 0.07 seconds (10565 lines/second)
Physical Source Lines of Code (SLOC) = 383
Hits@level = [0]  51 [1]   1 [2]   5 [3]   1 [4]   2 [5]   0
Hits@level+ = [0+]  60 [1+]   9 [2+]   8 [3+]   3 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 156.658 [1+] 23.4987 [2+] 20.8877 [3+] 7.8329 [4+] 5.22193 [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.