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/libcoverart-1.0.0+git20150706/examples/example_c.c Examining data/libcoverart-1.0.0+git20150706/examples/example.cc Examining data/libcoverart-1.0.0+git20150706/include/coverart/CoverArt.h Examining data/libcoverart-1.0.0+git20150706/include/coverart/HTTPFetch.h Examining data/libcoverart-1.0.0+git20150706/include/coverart/Image.h Examining data/libcoverart-1.0.0+git20150706/include/coverart/ImageList.h Examining data/libcoverart-1.0.0+git20150706/include/coverart/ReleaseInfo.h Examining data/libcoverart-1.0.0+git20150706/include/coverart/Thumbnails.h Examining data/libcoverart-1.0.0+git20150706/include/coverart/Type.h Examining data/libcoverart-1.0.0+git20150706/include/coverart/TypeList.h Examining data/libcoverart-1.0.0+git20150706/include/coverart/defines.h Examining data/libcoverart-1.0.0+git20150706/src/CoverArt.cc Examining data/libcoverart-1.0.0+git20150706/src/Image.cc Examining data/libcoverart-1.0.0+git20150706/src/ImageList.cc Examining data/libcoverart-1.0.0+git20150706/src/NeonWrappers.h Examining data/libcoverart-1.0.0+git20150706/src/ReleaseInfo.cc Examining data/libcoverart-1.0.0+git20150706/src/Thumbnails.cc Examining data/libcoverart-1.0.0+git20150706/src/Type.cc Examining data/libcoverart-1.0.0+git20150706/src/TypeList.cc Examining data/libcoverart-1.0.0+git20150706/src/make-c-interface.cc Examining data/libcoverart-1.0.0+git20150706/src/xmlParser.cc Examining data/libcoverart-1.0.0+git20150706/src/xmlParser.h Examining data/libcoverart-1.0.0+git20150706/src/HTTPFetch.cc Examining data/libcoverart-1.0.0+git20150706/tests/ctest.c Examining data/libcoverart-1.0.0+git20150706/tests/test.cc FINAL RESULTS: data/libcoverart-1.0.0+git20150706/examples/example_c.c:54:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(FileName,"%s-front.jpg",ReleaseID); data/libcoverart-1.0.0+git20150706/examples/example_c.c:86:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(FileName,"%s-back.jpg",ReleaseID); data/libcoverart-1.0.0+git20150706/examples/example_c.c:162:10: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(FileName,"%s-%s-full.jpg",ReleaseID,ID); data/libcoverart-1.0.0+git20150706/examples/example_c.c:194:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(FileName,"%s-%s-500.jpg",ReleaseID,ID); data/libcoverart-1.0.0+git20150706/examples/example_c.c:224:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(FileName,"%s-%s-250.jpg",ReleaseID,ID); data/libcoverart-1.0.0+git20150706/src/HTTPFetch.cc:76:27: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They 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. const char *http_proxy = getenv("http_proxy"); data/libcoverart-1.0.0+git20150706/examples/example_c.c:57:11: [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). fptr=fopen(FileName,"wb"); data/libcoverart-1.0.0+git20150706/examples/example_c.c:89:11: [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). fptr=fopen(FileName,"wb"); data/libcoverart-1.0.0+git20150706/examples/example_c.c:165:15: [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). fptr=fopen(FileName,"wb"); data/libcoverart-1.0.0+git20150706/examples/example_c.c:197:17: [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). fptr=fopen(FileName,"wb"); data/libcoverart-1.0.0+git20150706/examples/example_c.c:227:18: [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). fptr=fopen(FileName,"wb"); data/libcoverart-1.0.0+git20150706/tests/ctest.c:44:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Version[256]; data/libcoverart-1.0.0+git20150706/tests/ctest.c:65:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Str[256]; data/libcoverart-1.0.0+git20150706/src/HTTPFetch.cc:292:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(username, Fetch->m_d->m_UserName.c_str(), NE_ABUFSIZ); data/libcoverart-1.0.0+git20150706/src/HTTPFetch.cc:293:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(password, Fetch->m_d->m_Password.c_str(), NE_ABUFSIZ); data/libcoverart-1.0.0+git20150706/src/HTTPFetch.cc:303:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(username, Fetch->m_d->m_ProxyUserName.c_str(), NE_ABUFSIZ); data/libcoverart-1.0.0+git20150706/src/HTTPFetch.cc:304:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(password, Fetch->m_d->m_ProxyPassword.c_str(), NE_ABUFSIZ); ANALYSIS SUMMARY: Hits = 17 Lines analyzed = 4106 in approximately 0.14 seconds (30353 lines/second) Physical Source Lines of Code (SLOC) = 2516 Hits@level = [0] 27 [1] 4 [2] 7 [3] 1 [4] 5 [5] 0 Hits@level+ = [0+] 44 [1+] 17 [2+] 13 [3+] 6 [4+] 5 [5+] 0 Hits/KSLOC@level+ = [0+] 17.4881 [1+] 6.75676 [2+] 5.16693 [3+] 2.38474 [4+] 1.98728 [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.