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/libxxf86dga-1.1.4/include/X11/extensions/Xxf86dga.h
Examining data/libxxf86dga-1.1.4/include/X11/extensions/xf86dga1.h
Examining data/libxxf86dga-1.1.4/src/XF86DGA2.c
Examining data/libxxf86dga-1.1.4/src/XF86DGA.c

FINAL RESULTS:

data/libxxf86dga-1.1.4/src/XF86DGA.c:506:15:  [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 ((mapFd = open("/dev/mmap", O_RDWR)) < 0)
data/libxxf86dga-1.1.4/src/XF86DGA.c:558:15:  [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 ((mapFd = open(DEV_MEM, O_RDWR)) < 0)
data/libxxf86dga-1.1.4/src/XF86DGA2.c:921:21:  [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 ((pMap->fd = open("/dev/mmap", O_RDWR)) < 0)
data/libxxf86dga-1.1.4/src/XF86DGA2.c:972:21:  [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 ((pMap->fd = open(name, O_RDWR)) < 0)

ANALYSIS SUMMARY:

Hits = 4
Lines analyzed = 2017 in approximately 0.04 seconds (46170 lines/second)
Physical Source Lines of Code (SLOC) = 1648
Hits@level = [0]   2 [1]   0 [2]   4 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   6 [1+]   4 [2+]   4 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 3.64078 [1+] 2.42718 [2+] 2.42718 [3+]   0 [4+]   0 [5+]   0
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.