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/gst-python1.0-1.18.1/gi/overrides/gstmodule.c Examining data/gst-python1.0-1.18.1/plugin/gstpythonplugin.c Examining data/gst-python1.0-1.18.1/testsuite/old/test-object.c Examining data/gst-python1.0-1.18.1/testsuite/old/test-object.h Examining data/gst-python1.0-1.18.1/testsuite/old/testhelpermodule.c FINAL RESULTS: data/gst-python1.0-1.18.1/plugin/gstpythonplugin.c:180:38: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. home_plugins = g_build_filename (g_get_home_dir (), data/gst-python1.0-1.18.1/plugin/gstpythonplugin.c:262:16: [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 *fd = fopen (overrides_setup, "rb"); data/gst-python1.0-1.18.1/plugin/gstpythonplugin.c:128:19: [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). gsize len = strlen (file) - 3; ANALYSIS SUMMARY: Hits = 3 Lines analyzed = 1522 in approximately 0.10 seconds (15862 lines/second) Physical Source Lines of Code (SLOC) = 1144 Hits@level = [0] 0 [1] 1 [2] 1 [3] 1 [4] 0 [5] 0 Hits@level+ = [0+] 3 [1+] 3 [2+] 2 [3+] 1 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 2.62238 [1+] 2.62238 [2+] 1.74825 [3+] 0.874126 [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.