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/libmediaart-1.9.4/libmediaart/storage.h Examining data/libmediaart-1.9.4/libmediaart/mediaart-macros.h Examining data/libmediaart-1.9.4/libmediaart/marshal.h Examining data/libmediaart-1.9.4/libmediaart/cache.h Examining data/libmediaart-1.9.4/libmediaart/extractqt.cpp Examining data/libmediaart-1.9.4/libmediaart/storage.c Examining data/libmediaart-1.9.4/libmediaart/extractdummy.c Examining data/libmediaart-1.9.4/libmediaart/mediaart.h Examining data/libmediaart-1.9.4/libmediaart/cache.c Examining data/libmediaart-1.9.4/libmediaart/extract.h Examining data/libmediaart-1.9.4/libmediaart/extractpixbuf.c Examining data/libmediaart-1.9.4/libmediaart/extractgeneric.h Examining data/libmediaart-1.9.4/libmediaart/extract.c Examining data/libmediaart-1.9.4/libmediaart/marshal.c Examining data/libmediaart-1.9.4/tests/mediaarttest.c FINAL RESULTS: data/libmediaart-1.9.4/libmediaart/extractqt.cpp:55:9: [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. static char *argv[2] = { (char*) "libmediaart", NULL }; data/libmediaart-1.9.4/libmediaart/extractqt.cpp:92:12: [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 (!file.open (QIODevice::ReadOnly)) { data/libmediaart-1.9.4/libmediaart/extractqt.cpp:100:9: [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). buffer.open (QIODevice::ReadOnly); data/libmediaart-1.9.4/libmediaart/extractqt.cpp:157:11: [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). qbuffer.open (QIODevice::ReadOnly); data/libmediaart-1.9.4/libmediaart/cache.c:304: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). strlen (artist_down)); data/libmediaart-1.9.4/libmediaart/cache.c:313: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). strlen (title_down)); data/libmediaart-1.9.4/libmediaart/extractqt.cpp:111:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). image1 = reader.read (); data/libmediaart-1.9.4/libmediaart/extractqt.cpp:175:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). image1 = reader->read (); data/libmediaart-1.9.4/libmediaart/storage.c:500: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). name = mount_path + strlen ("/"); data/libmediaart-1.9.4/libmediaart/storage.c:874: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). len = strlen (normalized_mount_point); ANALYSIS SUMMARY: Hits = 10 Lines analyzed = 5542 in approximately 0.14 seconds (38487 lines/second) Physical Source Lines of Code (SLOC) = 3483 Hits@level = [0] 0 [1] 6 [2] 4 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 10 [1+] 10 [2+] 4 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 2.87109 [1+] 2.87109 [2+] 1.14844 [3+] 0 [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.