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/bgw-replstatus-1.0.5/bgw_replstatus.c FINAL RESULTS: data/bgw-replstatus-1.0.5/bgw_replstatus.c:199:2: [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, "bgw_replstatus"); data/bgw-replstatus-1.0.5/bgw_replstatus.c:200:2: [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, "bgw_replstatus_main"); data/bgw-replstatus-1.0.5/bgw_replstatus.c:71:26: [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 (bindaddr == NULL || strlen(bindaddr) == 0) data/bgw-replstatus-1.0.5/bgw_replstatus.c:125:36: [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 (write(worksock, status_str, strlen(status_str)) != strlen(status_str)) data/bgw-replstatus-1.0.5/bgw_replstatus.c:125:59: [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 (write(worksock, status_str, strlen(status_str)) != strlen(status_str)) ANALYSIS SUMMARY: Hits = 5 Lines analyzed = 205 in approximately 0.02 seconds (11068 lines/second) Physical Source Lines of Code (SLOC) = 145 Hits@level = [0] 1 [1] 3 [2] 2 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 6 [1+] 5 [2+] 2 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 41.3793 [1+] 34.4828 [2+] 13.7931 [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.