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/powerline-2.8.1/client/powerline.c

FINAL RESULTS:

data/powerline-2.8.1/client/powerline.c:103:3:  [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.
		snprintf(address_buf, ADDRESS_SIZE, ADDRESS_TEMPLATE, getuid());
data/powerline-2.8.1/client/powerline.c:123:3:  [4] (shell) execvp:
  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.
		execvp("powerline-render", newargv);
data/powerline-2.8.1/client/powerline.c:83: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 address_buf[ADDRESS_SIZE];
data/powerline-2.8.1/client/powerline.c:84:8:  [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 eof[2] = "\0\0";
data/powerline-2.8.1/client/powerline.c:85: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 num_args[NUM_ARGS_SIZE];
data/powerline-2.8.1/client/powerline.c:86: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 buf[BUF_SIZE];
data/powerline-2.8.1/client/powerline.c:87: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 *newargv[NEW_ARGV_SIZE];
data/powerline-2.8.1/client/powerline.c:52: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).
		return sizeof(ptr->sun_family) + strlen(ptr->sun_path + 1) + 1;
data/powerline-2.8.1/client/powerline.c:113:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(server.sun_path A, address, strlen(address));
data/powerline-2.8.1/client/powerline.c:113:38:  [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(server.sun_path A, address, strlen(address));
data/powerline-2.8.1/client/powerline.c:131: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).
		do_write(sd, argv[i], strlen(argv[i]));
data/powerline-2.8.1/client/powerline.c:137: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).
		do_write(sd, wd, strlen(wd));
data/powerline-2.8.1/client/powerline.c:144: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).
		do_write(sd, *envp, strlen(*envp));
data/powerline-2.8.1/client/powerline.c:152:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		TEMP_FAILURE_RETRY(read_size, read(sd, buf, BUF_SIZE));

ANALYSIS SUMMARY:

Hits = 14
Lines analyzed = 164 in approximately 0.11 seconds (1530 lines/second)
Physical Source Lines of Code (SLOC) = 131
Hits@level = [0]   2 [1]   7 [2]   5 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]  16 [1+]  14 [2+]   7 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 122.137 [1+] 106.87 [2+] 53.4351 [3+] 15.2672 [4+] 15.2672 [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.