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/pg-partman-4.4.0/src/pg_partman_bgw.c

FINAL RESULTS:

data/pg-partman-4.4.0/src/pg_partman_bgw.c:195: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(worker.bgw_name, "pg_partman master background worker");
data/pg-partman-4.4.0/src/pg_partman_bgw.c:204: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(worker.bgw_library_name, "pg_partman_bgw");
data/pg-partman-4.4.0/src/pg_partman_bgw.c:205: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(worker.bgw_function_name, "pg_partman_bgw_main");
data/pg-partman-4.4.0/src/pg_partman_bgw.c:297:17:  [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(worker.bgw_library_name, "pg_partman_bgw");
data/pg-partman-4.4.0/src/pg_partman_bgw.c:298:17:  [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(worker.bgw_function_name, "pg_partman_bgw_run_maint");
data/pg-partman-4.4.0/src/pg_partman_bgw.c:304:21:  [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(worker.bgw_name + sizeof(worker.bgw_name) - sizeof(truncated_mark),

ANALYSIS SUMMARY:

Hits = 6
Lines analyzed = 530 in approximately 0.07 seconds (7909 lines/second)
Physical Source Lines of Code (SLOC) = 368
Hits@level = [0]   1 [1]   0 [2]   6 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   7 [1+]   6 [2+]   6 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 19.0217 [1+] 16.3043 [2+] 16.3043 [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.