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-gram-client-tools-12.0/globusrun.c FINAL RESULTS: data/globus-gram-client-tools-12.0/globusrun.c:259:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, \ data/globus-gram-client-tools-12.0/globusrun.c:271:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, \ data/globus-gram-client-tools-12.0/globusrun.c:755:2: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(url_relation_string, data/globus-gram-client-tools-12.0/globusrun.c:835:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(val, relation_format, var, var); data/globus-gram-client-tools-12.0/globusrun.c:611:7: [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). fd = open(request_file, O_RDONLY); data/globus-gram-client-tools-12.0/globusrun.c:1159:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( data/globus-gram-client-tools-12.0/globusrun.c:1854:37: [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). monitor->failure_code = atoi(entry->value); data/globus-gram-client-tools-12.0/globusrun.c:288:42: [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). int res = (strncmp(value,"https://", strlen("https://"))); data/globus-gram-client-tools-12.0/globusrun.c:627:41: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ( (i<len) && read(fd, &c, 1) > 0) data/globus-gram-client-tools-12.0/globusrun.c:740:38: [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). url_relation_string = globus_malloc(strlen(relation_format) + data/globus-gram-client-tools-12.0/globusrun.c:741:10: [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(gass_server_url)); data/globus-gram-client-tools-12.0/globusrun.c:831:30: [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). val = globus_malloc((2 * strlen(var)) + data/globus-gram-client-tools-12.0/globusrun.c:832:4: [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(relation_format)); ANALYSIS SUMMARY: Hits = 13 Lines analyzed = 1894 in approximately 0.06 seconds (31966 lines/second) Physical Source Lines of Code (SLOC) = 1520 Hits@level = [0] 53 [1] 6 [2] 3 [3] 0 [4] 4 [5] 0 Hits@level+ = [0+] 66 [1+] 13 [2+] 7 [3+] 4 [4+] 4 [5+] 0 Hits/KSLOC@level+ = [0+] 43.4211 [1+] 8.55263 [2+] 4.60526 [3+] 2.63158 [4+] 2.63158 [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.