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/xdg-desktop-portal-wlr-0.1.0/include/logger.h
Examining data/xdg-desktop-portal-wlr-0.1.0/include/pipewire_screencast.h
Examining data/xdg-desktop-portal-wlr-0.1.0/include/screencast.h
Examining data/xdg-desktop-portal-wlr-0.1.0/include/screencast_common.h
Examining data/xdg-desktop-portal-wlr-0.1.0/include/wlr_screencast.h
Examining data/xdg-desktop-portal-wlr-0.1.0/include/xdpw.h
Examining data/xdg-desktop-portal-wlr-0.1.0/src/core/logger.c
Examining data/xdg-desktop-portal-wlr-0.1.0/src/core/main.c
Examining data/xdg-desktop-portal-wlr-0.1.0/src/core/request.c
Examining data/xdg-desktop-portal-wlr-0.1.0/src/core/session.c
Examining data/xdg-desktop-portal-wlr-0.1.0/src/screencast/pipewire_screencast.c
Examining data/xdg-desktop-portal-wlr-0.1.0/src/screencast/screencast.c
Examining data/xdg-desktop-portal-wlr-0.1.0/src/screencast/screencast_common.c
Examining data/xdg-desktop-portal-wlr-0.1.0/src/screencast/wlr_screencast.c
Examining data/xdg-desktop-portal-wlr-0.1.0/src/screenshot/screenshot.c

FINAL RESULTS:

data/xdg-desktop-portal-wlr-0.1.0/src/core/logger.c:63:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(logprops.dst, msg, args);
data/xdg-desktop-portal-wlr-0.1.0/src/screenshot/screenshot.c:24: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("grim", argv);
data/xdg-desktop-portal-wlr-0.1.0/src/core/main.c:47:11:  [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.
		int c = getopt_long(argc, argv, shortopts, longopts, NULL);
data/xdg-desktop-portal-wlr-0.1.0/src/core/logger.c:48: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 timestr[200];
data/xdg-desktop-portal-wlr-0.1.0/src/screencast/pipewire_screencast.c:16: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(pwFramePointer, wlrFramePointer, height * stride);
data/xdg-desktop-portal-wlr-0.1.0/src/screencast/pipewire_screencast.c:23: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(pwRowPointer, flippedWlrRowPointer, stride);
data/xdg-desktop-portal-wlr-0.1.0/src/screenshot/screenshot.c:64: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 uri[strlen(path) + strlen(uri_prefix) + 1];
data/xdg-desktop-portal-wlr-0.1.0/src/screencast/pipewire_screencast.c:148: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).
	randname(name + strlen(name) - 6);
data/xdg-desktop-portal-wlr-0.1.0/src/screencast/wlr_screencast.c:48: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).
		randname(name + strlen(name) - 6);
data/xdg-desktop-portal-wlr-0.1.0/src/screenshot/screenshot.c:64:11:  [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 uri[strlen(path) + strlen(uri_prefix) + 1];
data/xdg-desktop-portal-wlr-0.1.0/src/screenshot/screenshot.c:64:26:  [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 uri[strlen(path) + strlen(uri_prefix) + 1];

ANALYSIS SUMMARY:

Hits = 11
Lines analyzed = 1858 in approximately 0.05 seconds (35427 lines/second)
Physical Source Lines of Code (SLOC) = 1507
Hits@level = [0]  10 [1]   4 [2]   4 [3]   1 [4]   2 [5]   0
Hits@level+ = [0+]  21 [1+]  11 [2+]   7 [3+]   3 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 13.935 [1+] 7.29927 [2+] 4.64499 [3+] 1.99071 [4+] 1.32714 [5+]   0
Dot directories skipped = 2 (--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.