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/kdevelop-pg-qt-2.2.1/include/kdev-pg-token-stream.h
Examining data/kdevelop-pg-qt-2.2.1/include/kdev-pg-memory-pool.h
Examining data/kdevelop-pg-qt-2.2.1/include/kdev-pg-location-table.h
Examining data/kdevelop-pg-qt-2.2.1/include/kdev-pg-list.h
Examining data/kdevelop-pg-qt-2.2.1/include/kdev-pg-char-sets.h
Examining data/kdevelop-pg-qt-2.2.1/include/kdev-pg-allocator.h
Examining data/kdevelop-pg-qt-2.2.1/examples/php/phptest.cpp
Examining data/kdevelop-pg-qt-2.2.1/examples/cool/FlexLexer.h
Examining data/kdevelop-pg-qt-2.2.1/examples/cool/decoder.h
Examining data/kdevelop-pg-qt-2.2.1/examples/cool/cool_default_visitor.cpp
Examining data/kdevelop-pg-qt-2.2.1/examples/cool/decoder.cpp
Examining data/kdevelop-pg-qt-2.2.1/examples/cool/cool_visitor.cpp
Examining data/kdevelop-pg-qt-2.2.1/examples/cool/cool_default_visitor.h
Examining data/kdevelop-pg-qt-2.2.1/examples/cool/cool_lexer.h
Examining data/kdevelop-pg-qt-2.2.1/examples/cool/cool_io.cpp
Examining data/kdevelop-pg-qt-2.2.1/examples/cool/main.cpp
Examining data/kdevelop-pg-qt-2.2.1/examples/cool/cool_ast.h
Examining data/kdevelop-pg-qt-2.2.1/examples/cool/cool_visitor.h
Examining data/kdevelop-pg-qt-2.2.1/examples/cool/cool_parser.cpp
Examining data/kdevelop-pg-qt-2.2.1/examples/cool/cool_lexer.cpp
Examining data/kdevelop-pg-qt-2.2.1/examples/cool/cool_parser.h
Examining data/kdevelop-pg-qt-2.2.1/examples/cc/FlexLexer.h
Examining data/kdevelop-pg-qt-2.2.1/examples/cc/main.cpp
Examining data/kdevelop-pg-qt-2.2.1/examples/cc/lexer.h
Examining data/kdevelop-pg-qt-2.2.1/examples/cc/dumptree.h
Examining data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h
Examining data/kdevelop-pg-qt-2.2.1/examples/cc/tests/foobar.c
Examining data/kdevelop-pg-qt-2.2.1/examples/cc/dumptree.cpp
Examining data/kdevelop-pg-qt-2.2.1/examples/cc/cclexer.cpp
Examining data/kdevelop-pg-qt-2.2.1/examples/foolisp/foolisptest.cpp
Examining data/kdevelop-pg-qt-2.2.1/examples/fact/factparser.h
Examining data/kdevelop-pg-qt-2.2.1/examples/fact/factvisitor.h
Examining data/kdevelop-pg-qt-2.2.1/examples/fact/factast.h
Examining data/kdevelop-pg-qt-2.2.1/examples/fact/factdefaultvisitor.h
Examining data/kdevelop-pg-qt-2.2.1/examples/fact/main.cpp
Examining data/kdevelop-pg-qt-2.2.1/examples/fact/factlexer.cpp
Examining data/kdevelop-pg-qt-2.2.1/examples/fact/factparser.cpp
Examining data/kdevelop-pg-qt-2.2.1/examples/fact/factlexer.h
Examining data/kdevelop-pg-qt-2.2.1/examples/fact/factdefaultvisitor.cpp
Examining data/kdevelop-pg-qt-2.2.1/examples/fact/factvisitor.cpp
Examining data/kdevelop-pg-qt-2.2.1/tests/testlocationtable.cpp
Examining data/kdevelop-pg-qt-2.2.1/tests/testlocationtable.h
Examining data/kdevelop-pg-qt-2.2.1/tests/testmemorypool.cpp
Examining data/kdevelop-pg-qt-2.2.1/tests/benchmarks.h
Examining data/kdevelop-pg-qt-2.2.1/tests/benchmarks.cpp
Examining data/kdevelop-pg-qt-2.2.1/tests/testmemorypool.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/ASFormatter.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-regexp.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-ast-gen.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-visitor-gen.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/generated-kdev-utf8-tuples.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-generate.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/astyle.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-generate.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-environment.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/regexp2.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-bnf-visitor.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-visitor.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/regexp1.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-bit-array.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-serialize-visitor-gen.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-ast.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-ast-gen.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/ASBeautifier.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/ASLocalizer.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-code-gen.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-clone-tree.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-inline-checker.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-regexp.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-pretty-printer.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-code-gen.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-default-visitor.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/ASEnhancer.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-parser.cc
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-token-type-gen.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-pretty-printer.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-new-visitor-bits-gen.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-new-visitor-gen.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-bnf-visitor.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-unicode-loader.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-serialize-visitor-gen.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-regexp-helper.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-new-visitor-gen.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-default-visitor-bits-gen.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-checker.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-default-visitor-gen.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/regexp-test.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-token-type-gen.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/regexp.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-checker.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-beautifier.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-visitor-gen.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-default-visitor.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-lexer.cc
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-debug-visitor-gen.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-follow.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-inline-checker.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-main.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/ASLocalizer.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/ASResource.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-default-visitor-gen.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-debug-visitor-gen.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-beautifier.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-visitor.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-visitor-bits-gen.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-global.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-clone-tree.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-first.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-default-visitor-bits-gen.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-unicode-loader.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-first.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-follow.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-visitor-bits-gen.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/test/Op2tokenstream.h
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/test/utf-iterator-test.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/test/Op2main.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/test/Opmain.cpp
Examining data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-new-visitor-bits-gen.cpp

FINAL RESULTS:

data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:1076:14:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
extern char *mktemp (char *__template) throw () __attribute__ ((__nonnull__ (1))) ;
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:1096:12:  [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.
extern int system (__const char *__command) ;
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-lexer.cc:3436: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(yyTextLine+currentOffset, yytext + (yymoreFlag ? lastTextLeng : 0)); /* append current */
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-parser.cc:1078:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-parser.cc:3050:38:  [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(tmp+1, (yyvsp[(2) - (2)].str));
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-parser.cc:3063:38:  [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(tmp+1, (yyvsp[(2) - (2)].str));
data/kdevelop-pg-qt-2.2.1/tests/benchmarks.cpp:160:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  QFETCH(int, access);
data/kdevelop-pg-qt-2.2.1/tests/benchmarks.cpp:168:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      switch ( access ) {
data/kdevelop-pg-qt-2.2.1/tests/benchmarks.cpp:192:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      switch ( access ) {
data/kdevelop-pg-qt-2.2.1/tests/benchmarks.cpp:216:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      switch ( access ) {
data/kdevelop-pg-qt-2.2.1/tests/benchmarks.cpp:258:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  QFETCH(int, access);
data/kdevelop-pg-qt-2.2.1/tests/benchmarks.cpp:267:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      switch ( access ) {
data/kdevelop-pg-qt-2.2.1/tests/benchmarks.cpp:305:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      switch ( access ) {
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:788:17:  [3] (random) random:
  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.
extern long int random (void) throw ();
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:791:13:  [3] (random) srandom:
  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.
extern void srandom (unsigned int __seed) throw ();
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:802:14:  [3] (random) setstate:
  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.
extern char *setstate (char *__statebuf) throw () __attribute__ ((__nonnull__ (1)));
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:843:13:  [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.
extern void srand (unsigned int __seed) throw ();
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:856:15:  [3] (random) drand48:
  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.
extern double drand48 (void) throw ();
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:857:15:  [3] (random) erand48:
  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.
extern double erand48 (unsigned short int __xsubi[3]) throw () __attribute__ ((__nonnull__ (1)));
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:860:17:  [3] (random) lrand48:
  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.
extern long int lrand48 (void) throw ();
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:861:17:  [3] (random) nrand48:
  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.
extern long int nrand48 (unsigned short int __xsubi[3])
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:865:17:  [3] (random) mrand48:
  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.
extern long int mrand48 (void) throw ();
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:866:17:  [3] (random) jrand48:
  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.
extern long int jrand48 (unsigned short int __xsubi[3])
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:871:28:  [3] (random) seed48:
  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.
extern unsigned short int *seed48 (unsigned short int __seed16v[3])
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:873:13:  [3] (random) lcong48:
  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.
extern void lcong48 (unsigned short int __param[7]) throw () __attribute__ ((__nonnull__ (1)));
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:1045:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
extern char *getenv (__const char *__name) throw () __attribute__ ((__nonnull__ (1))) ;
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:1106:14:  [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.
extern char *realpath (__const char *__restrict __name,
data/kdevelop-pg-qt-2.2.1/tests/benchmarks.cpp:154: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(nullptr) );
data/kdevelop-pg-qt-2.2.1/examples/cc/main.cpp:49:12:  [2] (misc) open:
  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).
			filestr.open(argv[i]);
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:130:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
extern int atoi (__const char *__nptr)
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:133:17:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
extern long int atol (__const char *__nptr)
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:215:9:  [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.
  const char *__names[13];
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:651: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 __size[36];
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:681: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 __size[24];
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:687: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 __size[4];
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:707: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 __size[48];
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:713: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 __size[4];
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:747: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 __size[32];
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:753: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 __size[8];
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:768: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 __size[20];
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:774: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 __size[4];
data/kdevelop-pg-qt-2.2.1/examples/cc/tests/stdlib.h:1078:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ;
data/kdevelop-pg-qt-2.2.1/examples/fact/main.cpp:66:14:  [2] (misc) open:
  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 (file.open(QIODevice::ReadOnly | QIODevice::Text))
data/kdevelop-pg-qt-2.2.1/include/kdev-pg-char-sets.h:205:3:  [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(&ret[0], str.utf16(), 2*str.size());
data/kdevelop-pg-qt-2.2.1/include/kdev-pg-char-sets.h:213:3:  [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(&ret[0], str.utf16(), 2*str.size());
data/kdevelop-pg-qt-2.2.1/kdev-pg/ASLocalizer.cpp:129:2:  [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 canonicalLang[3];
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-beautifier.cpp:63:9:  [2] (misc) open:
  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).
  ofile.open(QIODevice::WriteOnly);
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-code-gen.cpp:94: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 __var[1024];
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-code-gen.cpp:101:9:  [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.
        sprintf(__var, "__node_%d", __id);
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-main.cpp:328:25:  [2] (misc) open:
  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 (!KDevPG::file.open(QIODevice::ReadOnly|QIODevice::Text))
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-main.cpp:470:10:  [2] (misc) open:
  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).
      ft.open( QIODevice::WriteOnly | QIODevice::Truncate );
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-main.cpp:481:10:  [2] (misc) open:
  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).
      ft.open( QIODevice::WriteOnly | QIODevice::Truncate );
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-main.cpp:492:10:  [2] (misc) open:
  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).
      ft.open( QIODevice::WriteOnly | QIODevice::Truncate );
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-main.cpp:505:10:  [2] (misc) open:
  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).
      ft.open(QIODevice::WriteOnly);
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-main.cpp:515:12:  [2] (misc) open:
  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).
        ft.open(QIODevice::WriteOnly);
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-parser.cc:1374: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-parser.cc:1609: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 yymsgbuf[128];
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-parser.cc:3051:38:  [2] (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). Risk is low because the source is a constant string.
                                     strcpy(tmp+yyleng+6-6+1, "?1:0)");
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-parser.cc:3064:38:  [2] (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). Risk is low because the source is a constant string.
                                     strcpy(tmp+yyleng+6-6+1, "?0:1)");
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-unicode-loader.cpp:52:11:  [2] (misc) open:
  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(file.open(QIODevice::ReadOnly))
data/kdevelop-pg-qt-2.2.1/kdev-pg/test/Op2main.cpp:18:10:  [2] (misc) open:
  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.open(QIODevice::ReadOnly);
data/kdevelop-pg-qt-2.2.1/examples/cc/cclexer.cpp:3617:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	(void) yyin->read( buf, max_size );
data/kdevelop-pg-qt-2.2.1/examples/cc/main.cpp:50:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			filestr.read(contents, size);
data/kdevelop-pg-qt-2.2.1/examples/cool/cool_lexer.cpp:1166:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	(void) yyin->read( buf, max_size );
data/kdevelop-pg-qt-2.2.1/examples/foolisp/foolisptest.cpp:27:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while((kind = lex.read().kind) != Parser::Token_EOF)
data/kdevelop-pg-qt-2.2.1/examples/php/phptest.cpp:62:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    lex.read();
data/kdevelop-pg-qt-2.2.1/include/kdev-pg-token-stream.h:176:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  inline T &read()
data/kdevelop-pg-qt-2.2.1/kdev-pg/astyle.h:764: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).
			return currentLine.compare(charNum, strlen(sequence), sequence) == 0;
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-lexer.cc:1231:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(yylval.str, string, len); \
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-lexer.cc:1250:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(yylval.str, tmp.data(), tmp.size()); \
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-lexer.cc:1252:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(yylval.str + tmp.size() + firstCodeColumn, string, len); \
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-lexer.cc:1392:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-lexer.cc:3113: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).
	return yy_scan_bytes(yystr,(int) strlen(yystr) );
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-lexer.cc:3423: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).
  currentOffset = strlen(yyTextLine); /* start of current */
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-lexer.cc:3425: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).
  int newLeng = currentOffset + strlen(yytext) - (yymoreFlag ? lastTextLeng : 0) + 1;
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-lexer.cc:3439:12:  [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).
  Q_ASSERT(strlen(yyTextLine) < size_t(yyTextLineLeng));
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-lexer.cc:3441: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).
  lastTextLeng = strlen(yytext);
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-lexer.cc:3450: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).
  char *current_end = yyTextLine + strlen(yyTextLine);
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-parser.cc:1258: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).
#   define yystrlen strlen
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-parser.cc:3047: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).
    { uint yyleng = strlen((yyvsp[(2) - (2)].str));
data/kdevelop-pg-qt-2.2.1/kdev-pg/kdev-pg-parser.cc:3060: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).
    { uint yyleng = strlen((yyvsp[(2) - (2)].str));

ANALYSIS SUMMARY:

Hits = 81
Lines analyzed = 44936 in approximately 1.18 seconds (38118 lines/second)
Physical Source Lines of Code (SLOC) = 33305
Hits@level = [0]   5 [1]  20 [2]  33 [3]  15 [4]  13 [5]   0
Hits@level+ = [0+]  86 [1+]  81 [2+]  61 [3+]  28 [4+]  13 [5+]   0
Hits/KSLOC@level+ = [0+] 2.58219 [1+] 2.43207 [2+] 1.83156 [3+] 0.840715 [4+] 0.390332 [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.