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-14.3/globus_gram_client.h Examining data/globus-gram-client-14.3/globus_gram_client_attr.c Examining data/globus-gram-client-14.3/globus_i_gram_client.h Examining data/globus-gram-client-14.3/globus_gram_client.c Examining data/globus-gram-client-14.3/test/activate-test.c Examining data/globus-gram-client-14.3/test/callback-contact-test.c FINAL RESULTS: data/globus-gram-client-14.3/globus_gram_client.c:423:50: [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). iport = (unsigned short) atoi(port); data/globus-gram-client-14.3/globus_gram_client.c:431:49: [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). iport = (unsigned short) atoi(port); data/globus-gram-client-14.3/globus_gram_client.c:4078:54: [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->info->protocol_error_code = atoi(extension->value); data/globus-gram-client-14.3/globus_gram_client.c:4095:58: [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->info->protocol_error_code = atoi(extension->value); data/globus-gram-client-14.3/globus_gram_client.c:4200:54: [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->info->protocol_error_code = atoi(extension->value); data/globus-gram-client-14.3/globus_gram_client.c:4217:58: [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->info->protocol_error_code = atoi(extension->value); data/globus-gram-client-14.3/test/callback-contact-test.c:86: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 *callback_contact[3]; data/globus-gram-client-14.3/globus_gram_client.c:430: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). if (strlen(port) > 0) data/globus-gram-client-14.3/globus_gram_client.c:464:44: [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(host) + data/globus-gram-client-14.3/globus_gram_client.c:466:44: [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(service) + data/globus-gram-client-14.3/globus_gram_client.c:468: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(service_prefix) data/globus-gram-client-14.3/globus_gram_client.c:471: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(username) + 1 : 0)); data/globus-gram-client-14.3/globus_gram_client.c:1888:36: [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). request = (char *) malloc( strlen(signal_arg) data/globus-gram-client-14.3/globus_gram_client.c:2052:36: [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). request = (char *) malloc( strlen(signal_arg) data/globus-gram-client-14.3/globus_gram_client.c:2561:27: [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(callback_contact) data/globus-gram-client-14.3/globus_gram_client.c:2696:27: [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(callback_contact) data/globus-gram-client-14.3/globus_gram_client.c:3027:27: [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(callback_contact) data/globus-gram-client-14.3/globus_gram_client.c:3151:27: [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(callback_contact) ANALYSIS SUMMARY: Hits = 18 Lines analyzed = 5484 in approximately 0.17 seconds (32241 lines/second) Physical Source Lines of Code (SLOC) = 3036 Hits@level = [0] 8 [1] 11 [2] 7 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 26 [1+] 18 [2+] 7 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 8.5639 [1+] 5.92885 [2+] 2.30567 [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.