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/sdaps-1.9.8/sdaps/image/image.c Examining data/sdaps-1.9.8/sdaps/image/image.h Examining data/sdaps-1.9.8/sdaps/image/surface.c Examining data/sdaps-1.9.8/sdaps/image/surface.h Examining data/sdaps-1.9.8/sdaps/image/transform.c Examining data/sdaps-1.9.8/sdaps/image/transform.h Examining data/sdaps-1.9.8/sdaps/image/wrap_image.c FINAL RESULTS: data/sdaps-1.9.8/sdaps/image/surface.c:180:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(*data, start); data/sdaps-1.9.8/sdaps/image/surface.c:178:12: [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). *length = strlen(start) + height * d_stride; data/sdaps-1.9.8/sdaps/image/surface.c:181:20: [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). d_pixel = *data + strlen(start); ANALYSIS SUMMARY: Hits = 3 Lines analyzed = 2816 in approximately 0.08 seconds (34764 lines/second) Physical Source Lines of Code (SLOC) = 2060 Hits@level = [0] 0 [1] 2 [2] 0 [3] 0 [4] 1 [5] 0 Hits@level+ = [0+] 3 [1+] 3 [2+] 1 [3+] 1 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 1.45631 [1+] 1.45631 [2+] 0.485437 [3+] 0.485437 [4+] 0.485437 [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.