{"id":21352,"library":"flawfinder","title":"Flawfinder","description":"A static analysis tool for C/C++ code that searches for potential security flaws (e.g., buffer overflows, format string vulnerabilities). Version 2.0.19 requires Python >=2.7, with no recent releases; appears to be in maintenance mode.","status":"maintenance","version":"2.0.19","language":"python","source_language":"en","source_url":"https://github.com/david-a-wheeler/flawfinder","tags":["security","static-analysis","c","c++","vulnerability-scanner"],"install":[{"cmd":"pip install flawfinder","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"flawfinder is a script, not a standard module; the recommended way is to run the command-line tool, not import as a library.","wrong":"from flawfinder import scan","symbol":"flawfinder","correct":"import flawfinder; flawfinder.scan()"}],"quickstart":{"code":"import subprocess\nresult = subprocess.run(['flawfinder', '--help'], capture_output=True, text=True)\nprint(result.stdout)","lang":"python","description":"Flawfinder is primarily a command-line tool. Use subprocess to invoke it from Python."},"warnings":[{"fix":"Use subprocess or os.system to call flawfinder from Python.","message":"Flawfinder is a command-line tool, not a Python library designed for import. Attempting to import 'flawfinder' as a module may work but is not officially supported and may break.","severity":"gotcha","affected_versions":"All"},{"fix":"Consider alternatives like Cppcheck or clang-tidy for modern C/C++ analysis.","message":"Flawfinder has not been updated since 2019; requires Python >=2.7. It may not work on Python 3.10+ without adjustments.","severity":"deprecated","affected_versions":">=2.0.19"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Install with pip and run 'flawfinder' from command line, not via import.","cause":"Trying to import flawfinder as a Python module, but it's not installed as a library (it's a script).","error":"ModuleNotFoundError: No module named 'flawfinder'"},{"fix":"Check 'flawfinder --help' for supported arguments.","cause":"Using incorrect command-line arguments.","error":"flawfinder: error: unrecognized arguments: ..."}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}