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/globus-gass-cache-program-7.0/globus_gass_cache.c FINAL RESULTS: data/globus-gass-cache-program-7.0/globus_gass_cache.c:392:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(arg, data/globus-gass-cache-program-7.0/globus_gass_cache.c:420:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(arg, data/globus-gass-cache-program-7.0/globus_gass_cache.c:448:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(arg, data/globus-gass-cache-program-7.0/globus_gass_cache.c:682:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(fileurl, "file://%s", local_filename); data/globus-gass-cache-program-7.0/globus_gass_cache.c:387:12: [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 arg[1024]; data/globus-gass-cache-program-7.0/globus_gass_cache.c:416:12: [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 arg[1024]; data/globus-gass-cache-program-7.0/globus_gass_cache.c:443:12: [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 arg[1024]; data/globus-gass-cache-program-7.0/globus_gass_cache.c:538:5: [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 spec[1024]; data/globus-gass-cache-program-7.0/globus_gass_cache.c:680:32: [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). fileurl = globus_libc_malloc(strlen(local_filename) + data/globus-gass-cache-program-7.0/globus_gass_cache.c:681:11: [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("file://") + 1); ANALYSIS SUMMARY: Hits = 10 Lines analyzed = 951 in approximately 0.04 seconds (23074 lines/second) Physical Source Lines of Code (SLOC) = 749 Hits@level = [0] 3 [1] 2 [2] 4 [3] 0 [4] 4 [5] 0 Hits@level+ = [0+] 13 [1+] 10 [2+] 8 [3+] 4 [4+] 4 [5+] 0 Hits/KSLOC@level+ = [0+] 17.3565 [1+] 13.3511 [2+] 10.6809 [3+] 5.34045 [4+] 5.34045 [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.