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/zathura-djvu-0.2.9/zathura-djvu/djvu.c
Examining data/zathura-djvu-0.2.9/zathura-djvu/djvu.h
Examining data/zathura-djvu-0.2.9/zathura-djvu/internal.h
Examining data/zathura-djvu-0.2.9/zathura-djvu/page-text.c
Examining data/zathura-djvu-0.2.9/zathura-djvu/page-text.h

FINAL RESULTS:

data/zathura-djvu-0.2.9/zathura-djvu/djvu.c:195:14:  [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).
  FILE* fp = fopen(path, "w");
data/zathura-djvu-0.2.9/zathura-djvu/djvu.c:462:28:  [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).
      target.page_number = atoi(target_string + 2) - 1;
data/zathura-djvu-0.2.9/zathura-djvu/djvu.c:707:30:  [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).
        target.page_number = atoi(link + 1) - 1;
data/zathura-djvu-0.2.9/zathura-djvu/djvu.c:260:39:  [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).
  if (page == NULL || text == NULL || strlen(text) == 0) {
data/zathura-djvu-0.2.9/zathura-djvu/djvu.c:628: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).
  unsigned int i = strlen(path);
data/zathura-djvu-0.2.9/zathura-djvu/djvu.c:697:30:  [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).
      const size_t linklen = strlen(link);
data/zathura-djvu-0.2.9/zathura-djvu/page-text.c:141:37:  [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).
  if (page_text->content == NULL || strlen(page_text->content) == 0) {
data/zathura-djvu-0.2.9/zathura-djvu/page-text.c:146: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).
  int search_length = strlen(text);
data/zathura-djvu-0.2.9/zathura-djvu/page-text.c:245: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).
          strlen(page_text->content) : 0;

ANALYSIS SUMMARY:

Hits = 9
Lines analyzed = 1576 in approximately 0.04 seconds (36593 lines/second)
Physical Source Lines of Code (SLOC) = 1100
Hits@level = [0]   0 [1]   6 [2]   3 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   9 [1+]   9 [2+]   3 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 8.18182 [1+] 8.18182 [2+] 2.72727 [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.