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/postgresql-multicorn-1.4.0/src/multicorn.h Examining data/postgresql-multicorn-1.4.0/src/utils.c Examining data/postgresql-multicorn-1.4.0/src/errors.c Examining data/postgresql-multicorn-1.4.0/src/python.c Examining data/postgresql-multicorn-1.4.0/src/multicorn.c Examining data/postgresql-multicorn-1.4.0/src/query.c FINAL RESULTS: data/postgresql-multicorn-1.4.0/src/multicorn.c:982:25: [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). rv->relname, strlen(rv->relname), data/postgresql-multicorn-1.4.0/src/python.c:145:14: [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(s), data/postgresql-multicorn-1.4.0/src/python.c:809:50: [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). p_operatorname = PyUnicode_Decode(operatorname, strlen(operatorname), getPythonEncodingName(), NULL); data/postgresql-multicorn-1.4.0/src/python.c:833:49: [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). columnName = PyUnicode_Decode(cinfo->attrname, strlen(cinfo->attrname), getPythonEncodingName(), NULL); data/postgresql-multicorn-1.4.0/src/python.c:856:57: [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). p_attname = PyUnicode_Decode(NameStr(*(key->attname)), strlen(NameStr(*(key->attname))), getPythonEncodingName(), NULL); data/postgresql-multicorn-1.4.0/src/python.c:870:58: [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). p_collate = PyUnicode_Decode(NameStr(*(key->collate)), strlen(NameStr(*(key->collate))), getPythonEncodingName(), NULL); data/postgresql-multicorn-1.4.0/src/python.c:1372:9: [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). size = strlen(temp); data/postgresql-multicorn-1.4.0/src/python.c:1390:9: [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). size = strlen(temp); ANALYSIS SUMMARY: Hits = 8 Lines analyzed = 4174 in approximately 0.16 seconds (25855 lines/second) Physical Source Lines of Code (SLOC) = 3324 Hits@level = [0] 0 [1] 8 [2] 0 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 8 [1+] 8 [2+] 0 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 2.40674 [1+] 2.40674 [2+] 0 [3+] 0 [4+] 0 [5+] 0 Symlinks skipped = 5 (--allowlink overrides but see doc for security issue) Dot directories skipped = 2 (--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.