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/fast-cpp-csv-parser-0.0+git20160525~9bf299c/csv.h

FINAL RESULTS:

data/fast-cpp-csv-parser-0.0+git20160525~9bf299c/csv.h:66:33:  [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.
                        mutable char error_message_buffer[512];
data/fast-cpp-csv-parser-0.0+git20160525~9bf299c/csv.h:85:25:  [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 file_name[max_file_name_length+1];
data/fast-cpp-csv-parser-0.0+git20160525~9bf299c/csv.h:190:38:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                                std::memcpy(buffer, str, to_copy_byte_count);
data/fast-cpp-csv-parser-0.0+git20160525~9bf299c/csv.h:330:17:  [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 file_name[error::max_file_name_length+1];
data/fast-cpp-csv-parser-0.0+git20160525~9bf299c/csv.h:336:42:  [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).
                        FILE*file = std::fopen(file_name, "rb");
data/fast-cpp-csv-parser-0.0+git20160525~9bf299c/csv.h:454:38:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                                std::memcpy(buffer.get(), buffer.get()+block_len, block_len);
data/fast-cpp-csv-parser-0.0+git20160525~9bf299c/csv.h:460:46:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                                        std::memcpy(buffer.get()+block_len, buffer.get()+2*block_len, block_len);
data/fast-cpp-csv-parser-0.0+git20160525~9bf299c/csv.h:517:25:  [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 column_name[max_column_name_length+1];
data/fast-cpp-csv-parser-0.0+git20160525~9bf299c/csv.h:537:25:  [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 column_content[max_column_content_length+1];
data/fast-cpp-csv-parser-0.0+git20160525~9bf299c/csv.h:78:41:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                                        strncpy(this->file_name, file_name, error::max_file_name_length);
data/fast-cpp-csv-parser-0.0+git20160525~9bf299c/csv.h:142:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                virtual int read(char*buffer, int size)=0;
data/fast-cpp-csv-parser-0.0+git20160525~9bf299c/csv.h:155:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        int read(char*buffer, int size){
data/fast-cpp-csv-parser-0.0+git20160525~9bf299c/csv.h:171:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        int read(char*buffer, int size){
data/fast-cpp-csv-parser-0.0+git20160525~9bf299c/csv.h:172:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                in.read(buffer, size);
data/fast-cpp-csv-parser-0.0+git20160525~9bf299c/csv.h:186:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        int read(char*buffer, int desired_byte_count){
data/fast-cpp-csv-parser-0.0+git20160525~9bf299c/csv.h:225:96:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                                                read_byte_count = byte_source->read(buffer, desired_byte_count);
data/fast-cpp-csv-parser-0.0+git20160525~9bf299c/csv.h:309:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                return byte_source->read(buffer, desired_byte_count);
data/fast-cpp-csv-parser-0.0+git20160525~9bf299c/csv.h:352:49:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        data_end = byte_source->read(buffer.get(), 2*block_len);
data/fast-cpp-csv-parser-0.0+git20160525~9bf299c/csv.h:425:33:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                                strncpy(this->file_name, file_name, error::max_file_name_length);
data/fast-cpp-csv-parser-0.0+git20160525~9bf299c/csv.h:510:46:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                                        std::strncpy(this->column_name, column_name, max_column_name_length);
data/fast-cpp-csv-parser-0.0+git20160525~9bf299c/csv.h:530:46:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                                        std::strncpy(this->column_content, column_content, max_column_content_length);

ANALYSIS SUMMARY:

Hits = 21
Lines analyzed = 1267 in approximately 0.62 seconds (2031 lines/second)
Physical Source Lines of Code (SLOC) = 1036
Hits@level = [0]  16 [1]  12 [2]   9 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  37 [1+]  21 [2+]   9 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 35.7143 [1+] 20.2703 [2+] 8.68726 [3+]   0 [4+]   0 [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.