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/python-pyelftools-0.27/test/external_tools/elf_creator.c Examining data/python-pyelftools-0.27/test/testfiles_for_readelf/aarch64-relocs.c Examining data/python-pyelftools-0.27/test/testfiles_for_readelf/gcc48-simple.src.c Examining data/python-pyelftools-0.27/test/testfiles_for_readelf/hello.c Examining data/python-pyelftools-0.27/test/testfiles_for_readelf/mips64-relocs.c Examining data/python-pyelftools-0.27/test/testfiles_for_readelf/tls.c Examining data/python-pyelftools-0.27/test/testfiles_for_unittests/aranges_partial_a.c Examining data/python-pyelftools-0.27/test/testfiles_for_unittests/aranges_partial_b.c Examining data/python-pyelftools-0.27/test/testfiles_for_unittests/arm_exidx_test.cpp Examining data/python-pyelftools-0.27/test/testfiles_for_unittests/arm_reloc_source.c Examining data/python-pyelftools-0.27/test/testfiles_for_unittests/compressed.c Examining data/python-pyelftools-0.27/test/testfiles_for_unittests/empty_pubtypes/main.c Examining data/python-pyelftools-0.27/test/testfiles_for_unittests/simple_mipsel.c FINAL RESULTS: data/python-pyelftools-0.27/test/external_tools/elf_creator.c:64:20: [2] (misc) open: 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). if ((FileDes = open(OUTFILE, O_CREAT | O_WRONLY | O_TRUNC, 0777)) < 0) ANALYSIS SUMMARY: Hits = 1 Lines analyzed = 429 in approximately 0.07 seconds (6321 lines/second) Physical Source Lines of Code (SLOC) = 255 Hits@level = [0] 3 [1] 0 [2] 1 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 4 [1+] 1 [2+] 1 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 15.6863 [1+] 3.92157 [2+] 3.92157 [3+] 0 [4+] 0 [5+] 0 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.