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/dose3-5.0.1/rpm/librpm4_stubs.c
Examining data/dose3-5.0.1/rpm/librpm5_stubs.c

FINAL RESULTS:

data/dose3-5.0.1/rpm/librpm5_stubs.c:159:5:  [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 E[10];
data/dose3-5.0.1/rpm/librpm5_stubs.c:167:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(E,"%d:",epoch);
data/dose3-5.0.1/rpm/librpm5_stubs.c:172: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).
    nb += strlen(E) + 1;
data/dose3-5.0.1/rpm/librpm5_stubs.c:173: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).
    if (V)      nb += strlen(V);
data/dose3-5.0.1/rpm/librpm5_stubs.c:174: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).
    if (R)      nb += strlen(R) + 1;

ANALYSIS SUMMARY:

Hits = 5
Lines analyzed = 658 in approximately 0.14 seconds (4654 lines/second)
Physical Source Lines of Code (SLOC) = 434
Hits@level = [0]   0 [1]   3 [2]   2 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   5 [1+]   5 [2+]   2 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 11.5207 [1+] 11.5207 [2+] 4.60829 [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.