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-server-ez-6.1/globus_gass_server_ez.c Examining data/globus-gass-server-ez-6.1/globus_gass_server.c Examining data/globus-gass-server-ez-6.1/globus_gass_server_ez.h FINAL RESULTS: data/globus-gass-server-ez-6.1/globus_gass_server_ez.c:767:5: [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(*outpath, inpath); data/globus-gass-server-ez-6.1/globus_gass_server.c:123:17: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int res = (atoi(value) <= 0); data/globus-gass-server-ez-6.1/globus_gass_server.c:281:30: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). port = (unsigned short) atoi(instance->values[0]); data/globus-gass-server-ez-6.1/globus_gass_server_ez.c:455: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). fp = fopen(path, flags); data/globus-gass-server-ez-6.1/globus_gass_server_ez.c:526:22: [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). fp = fopen(path, flags); data/globus-gass-server-ez-6.1/globus_gass_server_ez.c:385:39: [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). parsed_url.url_path == NULL || strlen(parsed_url.url_path) == 0U) data/globus-gass-server-ez-6.1/globus_gass_server_ez.c:745:8: [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). if(strlen(inpath) >= 2) data/globus-gass-server-ez-6.1/globus_gass_server_ez.c:762:23: [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). *outpath = malloc(strlen(inpath)+1); ANALYSIS SUMMARY: Hits = 8 Lines analyzed = 1349 in approximately 0.04 seconds (30920 lines/second) Physical Source Lines of Code (SLOC) = 1008 Hits@level = [0] 3 [1] 3 [2] 4 [3] 0 [4] 1 [5] 0 Hits@level+ = [0+] 11 [1+] 8 [2+] 5 [3+] 1 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 10.9127 [1+] 7.93651 [2+] 4.96032 [3+] 0.992063 [4+] 0.992063 [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.