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/healpix-fortran-3.60+ds/src/f90/lib/giftogd.c
Examining data/healpix-fortran-3.60+ds/src/f90/lib/gifstr.c
Examining data/healpix-fortran-3.60+ds/src/f90/lib/gifout.c
Examining data/healpix-fortran-3.60+ds/src/f90/mod/c_utils.h
Examining data/healpix-fortran-3.60+ds/src/f90/mod/sharp_healpix_f_inc.c
Examining data/healpix-fortran-3.60+ds/src/f90/mod/sharp_healpix_f.c

FINAL RESULTS:

data/healpix-fortran-3.60+ds/src/f90/lib/gifout.c:41:9:  [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).
  out = fopen(fn, "wb");
data/healpix-fortran-3.60+ds/src/f90/lib/giftogd.c:18:7:  [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).
	in = fopen(argv[1], "rb");
data/healpix-fortran-3.60+ds/src/f90/lib/giftogd.c:29:8:  [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).
	out = fopen(argv[2], "wb");
data/healpix-fortran-3.60+ds/src/f90/lib/gifstr.c:59: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).
    xs = *sx - ((strlen(fn) + 1) * ft->w);
data/healpix-fortran-3.60+ds/src/f90/lib/gifstr.c:63:17:  [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).
    xs = *sx - (strlen(fn) * ft->w / 2);

ANALYSIS SUMMARY:

Hits = 5
Lines analyzed = 533 in approximately 0.04 seconds (14956 lines/second)
Physical Source Lines of Code (SLOC) = 381
Hits@level = [0]   4 [1]   2 [2]   3 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   9 [1+]   5 [2+]   3 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 23.622 [1+] 13.1234 [2+] 7.87402 [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.