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/lcmaps-1.6.6/examples/lcmaps_plugin_example.c Examining data/lcmaps-1.6.6/src/evaluationmanager/pdl.h Examining data/lcmaps-1.6.6/src/evaluationmanager/pdl_policy.c Examining data/lcmaps-1.6.6/src/evaluationmanager/pdl_lex.c Examining data/lcmaps-1.6.6/src/evaluationmanager/pdl_main.c Examining data/lcmaps-1.6.6/src/evaluationmanager/evaluationmanager.h Examining data/lcmaps-1.6.6/src/evaluationmanager/pdl_rule.h Examining data/lcmaps-1.6.6/src/evaluationmanager/pdl_policy.h Examining data/lcmaps-1.6.6/src/evaluationmanager/pdl_rule.c Examining data/lcmaps-1.6.6/src/evaluationmanager/pdl_test.c Examining data/lcmaps-1.6.6/src/evaluationmanager/pdl_yacc.c Examining data/lcmaps-1.6.6/src/evaluationmanager/pdl_variable.h Examining data/lcmaps-1.6.6/src/evaluationmanager/pdl_variable.c Examining data/lcmaps-1.6.6/src/evaluationmanager/evaluationmanager.c Examining data/lcmaps-1.6.6/src/evaluationmanager/pdl_yacc.h Examining data/lcmaps-1.6.6/src/lcmaps_return_poolindex_without_gsi.c Examining data/lcmaps-1.6.6/src/lcmaps_gss_assist_gridmap.c Examining data/lcmaps-1.6.6/src/lcmaps.c Examining data/lcmaps-1.6.6/src/pluginmanager/_lcmaps_utils.h Examining data/lcmaps-1.6.6/src/pluginmanager/lcmaps_utils.c Examining data/lcmaps-1.6.6/src/pluginmanager/lcmaps_db_read.c Examining data/lcmaps-1.6.6/src/pluginmanager/_lcmaps_pluginmanager.h Examining data/lcmaps-1.6.6/src/pluginmanager/lcmaps_pluginmanager.c Examining data/lcmaps-1.6.6/src/pluginmanager/_lcmaps_log.h Examining data/lcmaps-1.6.6/src/pluginmanager/lcmaps_arguments.c Examining data/lcmaps-1.6.6/src/pluginmanager/lcmaps_cred_data.c Examining data/lcmaps-1.6.6/src/pluginmanager/lcmaps_log.c Examining data/lcmaps-1.6.6/src/pluginmanager/lcmaps_vo_data.c Examining data/lcmaps-1.6.6/src/pluginmanager/_lcmaps_db_read.h Examining data/lcmaps-1.6.6/src/pluginmanager/_lcmaps_cred_data.h Examining data/lcmaps-1.6.6/src/grid_credential_handling/x509_handling/_lcmaps_x509_utils.h Examining data/lcmaps-1.6.6/src/grid_credential_handling/x509_handling/lcmaps_x509_utils.c Examining data/lcmaps-1.6.6/src/grid_credential_handling/_lcmaps_runvars.h Examining data/lcmaps-1.6.6/src/grid_credential_handling/lcmaps_runvars.c Examining data/lcmaps-1.6.6/src/grid_credential_handling/gsi_handling/lcmaps_gsi_utils.c Examining data/lcmaps-1.6.6/src/grid_credential_handling/gsi_handling/_lcmaps_gsi_utils.h Examining data/lcmaps-1.6.6/src/grid_credential_handling/gsi_handling/lcmaps_voms_attributes.c Examining data/lcmaps-1.6.6/src/grid_credential_handling/gsi_handling/_lcmaps_voms_attributes.h Examining data/lcmaps-1.6.6/src/grid_credential_handling/gsi_handling/_lcmaps_globus_internal.h Examining data/lcmaps-1.6.6/src/grid_credential_handling/lcmaps_credential.c Examining data/lcmaps-1.6.6/src/grid_credential_handling/_lcmaps_credential.h Examining data/lcmaps-1.6.6/src/lcmaps_return_poolindex.c Examining data/lcmaps-1.6.6/src/lcmaps_account.c Examining data/lcmaps-1.6.6/src/lcmaps_verify_account_from_pem.c Examining data/lcmaps-1.6.6/src/lcmaps_return_account_from_pem.c Examining data/lcmaps-1.6.6/src/lcmaps_test.c Examining data/lcmaps-1.6.6/interface/lcmaps_return_poolindex.h Examining data/lcmaps-1.6.6/interface/lcmaps_log.h Examining data/lcmaps-1.6.6/interface/lcmaps_defines.h Examining data/lcmaps-1.6.6/interface/lcmaps_openssl.h Examining data/lcmaps-1.6.6/interface/lcmaps_plugin_prototypes.h Examining data/lcmaps-1.6.6/interface/lcmaps_plugin_typedefs.h Examining data/lcmaps-1.6.6/interface/_lcmaps_verify_account_from_pem.h Examining data/lcmaps-1.6.6/interface/_lcmaps.h Examining data/lcmaps-1.6.6/interface/lcmaps_basic.h Examining data/lcmaps-1.6.6/interface/lcmaps_return_poolindex_without_gsi.h Examining data/lcmaps-1.6.6/interface/lcmaps_utils.h Examining data/lcmaps-1.6.6/interface/lcmaps.h Examining data/lcmaps-1.6.6/interface/lcmaps_account.h Examining data/lcmaps-1.6.6/interface/_lcmaps_gss_assist_gridmap.h Examining data/lcmaps-1.6.6/interface/lcmaps_vo_data.h Examining data/lcmaps-1.6.6/interface/lcmaps_if.h Examining data/lcmaps-1.6.6/interface/lcmaps_types.h Examining data/lcmaps-1.6.6/interface/lcmaps_arguments.h Examining data/lcmaps-1.6.6/interface/lcmaps_verify_account_from_pem.h Examining data/lcmaps-1.6.6/interface/lcmaps_cred_data.h Examining data/lcmaps-1.6.6/interface/lcmaps_modules.h Examining data/lcmaps-1.6.6/interface/_lcmaps_return_account_from_pem.h Examining data/lcmaps-1.6.6/interface/lcmaps_globus.h Examining data/lcmaps-1.6.6/interface/lcmaps_gss_assist_gridmap.h Examining data/lcmaps-1.6.6/interface/_lcmaps_return_poolindex.h Examining data/lcmaps-1.6.6/interface/lcmaps_return_account_from_pem.h Examining data/lcmaps-1.6.6/interface/lcmaps_db_read.h FINAL RESULTS: data/lcmaps-1.6.6/interface/lcmaps_log.h:77:27: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((format(printf, 2, 3))); data/lcmaps-1.6.6/interface/lcmaps_log.h:93:27: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((format(printf, 2, 3))); data/lcmaps-1.6.6/interface/lcmaps_log.h:109:27: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((format(printf, 2, 3))); data/lcmaps-1.6.6/interface/lcmaps_log.h:127:27: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((format(printf,2,0))); data/lcmaps-1.6.6/interface/lcmaps_log.h:145:27: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((format(printf,2,0))); data/lcmaps-1.6.6/src/evaluationmanager/pdl.h:162:27: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((format(printf,2,3))); data/lcmaps-1.6.6/src/evaluationmanager/pdl_main.c:496:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(path,"%s/%s",LCMAPS_LIB_HOME,_path->string); data/lcmaps-1.6.6/src/evaluationmanager/pdl_main.c:567:3: [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(record->string, s1->string); data/lcmaps-1.6.6/src/evaluationmanager/pdl_main.c:569: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(record->string+len, extra); data/lcmaps-1.6.6/src/evaluationmanager/pdl_main.c:570:3: [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(record->string+len+len_extra, s2->string); data/lcmaps-1.6.6/src/evaluationmanager/pdl_main.c:837:9: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. res = vsnprintf(buf+len, WARNBUFLEN-2-len, s, args); data/lcmaps-1.6.6/src/evaluationmanager/pdl_test.c:132:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, f, args); data/lcmaps-1.6.6/src/evaluationmanager/pdl_test.c:143:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, f, args); data/lcmaps-1.6.6/src/evaluationmanager/pdl_yacc.c:665:21: [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. # define YYFPRINTF fprintf data/lcmaps-1.6.6/src/lcmaps_return_account_from_pem.c:196:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(lcmaps_db_file, "%s/%s", LCMAPS_REQUIRED_DB_PATH, lcmaps_db_file_env); data/lcmaps-1.6.6/src/lcmaps_test.c:81:25: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. #define notice2(i,a,b) {sprintf(tmpbuf, a,b); notice(i,tmpbuf);} data/lcmaps-1.6.6/src/lcmaps_test.c:82:27: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. #define notice3(i,a,b,c) {sprintf(tmpbuf, a,b,c); notice(i,tmpbuf);} data/lcmaps-1.6.6/src/lcmaps_test.c:83:29: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. #define notice4(i,a,b,c,d) {sprintf(tmpbuf, a,b,c,d); notice(i,tmpbuf);} data/lcmaps-1.6.6/src/lcmaps_test.c:84:26: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. #define failure2(t,a,b) {sprintf(tmpbuf, a,b); failure(t,tmpbuf);} data/lcmaps-1.6.6/src/lcmaps_test.c:85:28: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. #define failure3(t,a,b,c) {sprintf(tmpbuf, a,b,c); failure(t,tmpbuf);} data/lcmaps-1.6.6/src/lcmaps_test.c:86:30: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. #define failure4(t,a,b,c,d) {sprintf(tmpbuf, a,b,c,d); failure(t,tmpbuf);} data/lcmaps-1.6.6/src/pluginmanager/lcmaps_log.c:308:9: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. res=vsnprintf(buf,MAX_LOG_BUFFER_SIZE,fmt,pvar); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_log.c:444:9: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. res=vsnprintf(buf,MAX_LOG_BUFFER_SIZE,fmt,pvar); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_log.c:602:9: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. res=vsnprintf(buf,MAX_LOG_BUFFER_SIZE,fmt,pvar); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_utils.c:131:13: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(newfilename, prefix); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_utils.c:137:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(newfilename, path); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_utils.c:145:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(newfilename, suffix); data/lcmaps-1.6.6/src/evaluationmanager/pdl_test.c:124:11: [3] (random) drand48: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. return (drand48()>0.5) ? 0 : 1; data/lcmaps-1.6.6/src/grid_credential_handling/gsi_handling/lcmaps_voms_attributes.c:828:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ( (tmp=getenv("LCMAPS_X509_VOMS_DIR"))==NULL ) { data/lcmaps-1.6.6/src/grid_credential_handling/gsi_handling/lcmaps_voms_attributes.c:829:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ( (tmp=getenv("X509_VOMS_DIR"))==NULL ) data/lcmaps-1.6.6/src/grid_credential_handling/gsi_handling/lcmaps_voms_attributes.c:834:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ( (tmp=getenv("LCMAPS_X509_CERT_DIR"))==NULL ) { data/lcmaps-1.6.6/src/grid_credential_handling/gsi_handling/lcmaps_voms_attributes.c:835:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ( (tmp=getenv("X509_CERT_DIR"))==NULL ) data/lcmaps-1.6.6/src/grid_credential_handling/gsi_handling/lcmaps_voms_attributes.c:987:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. tz = getenv("TZ"); data/lcmaps-1.6.6/src/lcmaps.c:1523:26: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. lcmaps_verify_type = getenv("LCMAPS_VERIFY_TYPE"); data/lcmaps-1.6.6/src/lcmaps_return_account_from_pem.c:167:32: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ( (lcmaps_db_file_env = getenv("LCMAPS_DB_FILE")) != NULL) data/lcmaps-1.6.6/src/lcmaps_return_account_from_pem.c:198:26: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. lcmaps_db_file_env = getenv("LCMAPS_DB_FILE"); data/lcmaps-1.6.6/src/lcmaps_return_account_from_pem.c:302:28: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. lcmaps_policy_string = getenv("LCMAPS_POLICY_NAME"); data/lcmaps-1.6.6/src/lcmaps_return_poolindex.c:299:28: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. lcmaps_policy_string = getenv("LCMAPS_POLICY_NAME"); data/lcmaps-1.6.6/src/lcmaps_return_poolindex_without_gsi.c:194:28: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. lcmaps_policy_string = getenv("LCMAPS_POLICY_NAME"); data/lcmaps-1.6.6/src/lcmaps_verify_account_from_pem.c:140:28: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. lcmaps_policy_string = getenv("LCMAPS_POLICY_NAME"); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_log.c:200:29: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. logfile=(path ? path : getenv("LCMAPS_LOG_FILE")); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_log.c:226:23: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ( (debug_env = getenv("LCMAPS_DEBUG_LEVEL")) ) data/lcmaps-1.6.6/src/pluginmanager/lcmaps_log.c:256:23: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((logstr_env = getenv("LCMAPS_LOG_STRING")) != NULL ) { data/lcmaps-1.6.6/src/pluginmanager/lcmaps_log.c:344:32: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. lcmaps_log_ident = getenv("LCMAPS_LOG_IDENT"); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_pluginmanager.c:244:28: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. lcmaps_modules_dir=getenv("LCMAPS_MODULES_DIR"); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_pluginmanager.c:310:18: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. lcmaps_dir = getenv("LCMAPS_DIR"); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_pluginmanager.c:311:45: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. lcmaps_dir = (lcmaps_dir ? lcmaps_dir : getenv("LCMAPS_ETC_DIR") ); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_pluginmanager.c:314:30: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. lcmaps_db_file_default = getenv("LCMAPS_DB_FILE"); data/lcmaps-1.6.6/interface/lcmaps_db_read.h:71: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 pluginname[LCMAPS_MAXPATHLEN+1]; /*!< Name of authorization plugin/module */ data/lcmaps-1.6.6/interface/lcmaps_db_read.h:72: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 pluginargs[LCMAPS_MAXARGSTRING+1]; /*!< Argument list to be passed to authorization plugin/module */ data/lcmaps-1.6.6/src/evaluationmanager/pdl_main.c:139:12: [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). file = fopen(name, "r"); data/lcmaps-1.6.6/src/evaluationmanager/pdl_main.c:616:5: [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(r, s1, sizeof(record_t)); data/lcmaps-1.6.6/src/evaluationmanager/pdl_main.c:804:3: [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 buf[WARNBUFLEN]; data/lcmaps-1.6.6/src/evaluationmanager/pdl_rule.c:573:5: [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(new_list, list, insert*sizeof(int)); data/lcmaps-1.6.6/src/evaluationmanager/pdl_rule.c:577:5: [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(new_list+insert+1, list+insert, (depth-insert-1)*sizeof(int)); data/lcmaps-1.6.6/src/evaluationmanager/pdl_test.c:55:3: [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 *argvv[2]; data/lcmaps-1.6.6/src/evaluationmanager/pdl_variable.c:231:5: [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(loop, var, sizeof(var_t)); data/lcmaps-1.6.6/src/evaluationmanager/pdl_yacc.c:965:7: [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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; data/lcmaps-1.6.6/src/evaluationmanager/pdl_yacc.c:982:7: [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 yyformat[sizeof yyunexpected data/lcmaps-1.6.6/src/evaluationmanager/pdl_yacc.c:1172:3: [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 yymsgbuf[128]; data/lcmaps-1.6.6/src/grid_credential_handling/gsi_handling/lcmaps_voms_attributes.c:163: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 treecoords[GRST_ASN1_MAXCOORDLEN + 1]; data/lcmaps-1.6.6/src/grid_credential_handling/gsi_handling/lcmaps_voms_attributes.c:1058:19: [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). tmpFile = fopen(output_file, "a"); data/lcmaps-1.6.6/src/lcmaps.c:240: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 lcmapsmappingresultoneliner[1024]; data/lcmaps-1.6.6/src/lcmaps_return_account_from_pem.c:127: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 * lcmaps_policies[LCMAPS_MAX_POLICIES]; data/lcmaps-1.6.6/src/lcmaps_return_poolindex.c:258: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 * lcmaps_policies[LCMAPS_MAX_POLICIES]; data/lcmaps-1.6.6/src/lcmaps_return_poolindex_without_gsi.c:147: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 * lcmaps_policies[LCMAPS_MAX_POLICIES]; data/lcmaps-1.6.6/src/lcmaps_test.c:80:8: [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 tmpbuf[1024]; data/lcmaps-1.6.6/src/lcmaps_verify_account_from_pem.c:109: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 * lcmaps_policies[LCMAPS_MAX_POLICIES]; data/lcmaps-1.6.6/src/pluginmanager/lcmaps_db_read.c:131:25: [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). lcmaps_db_fhandle = fopen(lcmaps_db_fname, "r"); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_db_read.c:171: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 line[1024]; data/lcmaps-1.6.6/src/pluginmanager/lcmaps_db_read.c:301: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 * var_val_pairs[MAXPAIRS]; data/lcmaps-1.6.6/src/pluginmanager/lcmaps_log.c:203:23: [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). if ((lcmaps_logfp = fopen(logfile, "a")) != NULL) { data/lcmaps-1.6.6/src/pluginmanager/lcmaps_log.c:297: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 buf[MAX_LOG_BUFFER_SIZE]; data/lcmaps-1.6.6/src/pluginmanager/lcmaps_log.c:424: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 buf[MAX_LOG_BUFFER_SIZE]; data/lcmaps-1.6.6/src/pluginmanager/lcmaps_log.c:597: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 buf[MAX_LOG_BUFFER_SIZE]; data/lcmaps-1.6.6/src/pluginmanager/lcmaps_pluginmanager.c:120: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 pluginshortname[LCMAPS_MAXPATHLEN+1]; /*!< name of plugin without path */ data/lcmaps-1.6.6/src/pluginmanager/lcmaps_pluginmanager.c:121: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 pluginabsname[LCMAPS_MAXPATHLEN+1]; /*!< absolute name of plugin */ data/lcmaps-1.6.6/src/pluginmanager/lcmaps_pluginmanager.c:122: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 pluginargs[LCMAPS_MAXARGSTRING+1]; /*!< argument string */ data/lcmaps-1.6.6/src/pluginmanager/lcmaps_pluginmanager.c:124: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 * init_argv[LCMAPS_MAXARGS]; /*!< list of arguments for the initialization function */ data/lcmaps-1.6.6/src/pluginmanager/lcmaps_utils.c:273: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(*arg,pp,(size_t)(qp - pp)); data/lcmaps-1.6.6/src/evaluationmanager/evaluationmanager.c:185:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(p->pluginname, p_list->name, LCMAPS_MAXPATHLEN); data/lcmaps-1.6.6/src/evaluationmanager/evaluationmanager.c:186:9: [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(p_list->name)>=LCMAPS_MAXPATHLEN) { data/lcmaps-1.6.6/src/evaluationmanager/evaluationmanager.c:193:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(p->pluginargs, p_list->args, LCMAPS_MAXARGSTRING); data/lcmaps-1.6.6/src/evaluationmanager/evaluationmanager.c:194: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). if (strlen(p_list->args)>LCMAPS_MAXARGSTRING) { data/lcmaps-1.6.6/src/evaluationmanager/pdl_lex.c:669:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ data/lcmaps-1.6.6/src/evaluationmanager/pdl_lex.c:1769:29: [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). return yy_scan_bytes(yystr,strlen(yystr) ); data/lcmaps-1.6.6/src/evaluationmanager/pdl_main.c:289:15: [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). string_len= strlen(string); data/lcmaps-1.6.6/src/evaluationmanager/pdl_main.c:370:14: [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). string_len=strlen(string); data/lcmaps-1.6.6/src/evaluationmanager/pdl_main.c:380:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((*plugin)->name, string, space); data/lcmaps-1.6.6/src/evaluationmanager/pdl_main.c:389:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((*plugin)->args, string+space+1, remainder); data/lcmaps-1.6.6/src/evaluationmanager/pdl_main.c:419:16: [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). max_length = strlen(string); data/lcmaps-1.6.6/src/evaluationmanager/pdl_main.c:491:16: [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). path=calloc(strlen(LCMAPS_LIB_HOME)+strlen(_path->string)+2,sizeof(char)); data/lcmaps-1.6.6/src/evaluationmanager/pdl_main.c:491:40: [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). path=calloc(strlen(LCMAPS_LIB_HOME)+strlen(_path->string)+2,sizeof(char)); data/lcmaps-1.6.6/src/evaluationmanager/pdl_main.c:556:22: [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). size_t len = strlen(s1->string); data/lcmaps-1.6.6/src/evaluationmanager/pdl_main.c:557: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). size_t len_extra = extra ? strlen(extra) : 0; data/lcmaps-1.6.6/src/evaluationmanager/pdl_main.c:562: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). (char *)malloc(len + len_extra + strlen(s2->string)+1))==NULL ) { data/lcmaps-1.6.6/src/evaluationmanager/pdl_main.c:592:7: [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(s2->string)!=0) { data/lcmaps-1.6.6/src/evaluationmanager/pdl_main.c:597:21: [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 ((s1->string[strlen(s1->string)-1]=='"') && data/lcmaps-1.6.6/src/evaluationmanager/pdl_main.c:598:21: [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). (s2->string[strlen(s2->string)-1]=='"')) data/lcmaps-1.6.6/src/evaluationmanager/pdl_test.c:113:16: [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). switch (name[strlen(name)-1]) { data/lcmaps-1.6.6/src/evaluationmanager/pdl_yacc.c:846:21: [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). # define yystrlen strlen data/lcmaps-1.6.6/src/grid_credential_handling/gsi_handling/lcmaps_gsi_utils.c:249:63: [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 (strncmp(peer_name_buffer.value, peer_subject, strlen(peer_name_buffer.value)) != 0) data/lcmaps-1.6.6/src/grid_credential_handling/gsi_handling/lcmaps_voms_attributes.c:964: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(asn1time_string)!=15) { /* dont understand */ data/lcmaps-1.6.6/src/lcmaps_return_account_from_pem.c:191: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). lcmaps_db_file = (char *) malloc(strlen(LCMAPS_REQUIRED_DB_PATH) + 2 + strlen(lcmaps_db_file_env)); data/lcmaps-1.6.6/src/lcmaps_return_account_from_pem.c:191:76: [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). lcmaps_db_file = (char *) malloc(strlen(LCMAPS_REQUIRED_DB_PATH) + 2 + strlen(lcmaps_db_file_env)); data/lcmaps-1.6.6/src/lcmaps_return_poolindex.c:378: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). if(strlen(poolindex) + 1 > buffer_length) data/lcmaps-1.6.6/src/lcmaps_return_poolindex.c:381:73: [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). (long unsigned)(buffer_length-1), (long unsigned)strlen(poolindex)); data/lcmaps-1.6.6/src/lcmaps_return_poolindex.c:387:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(poolindex_buffer, poolindex, buffer_length); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_cred_data.c:407:9: [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). buflen=strlen(buffer); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_cred_data.c:419:9: [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). buflen=strlen(buffer); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_cred_data.c:429:9: [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). buflen=strlen(buffer); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_cred_data.c:439:9: [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). buflen=strlen(buffer); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_cred_data.c:449:9: [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(buffer) > 0) data/lcmaps-1.6.6/src/pluginmanager/lcmaps_db_read.c:267:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(plist->pluginname,entry->pluginname,LCMAPS_MAXPATHLEN); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_db_read.c:271:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant character. strncpy(plist->pluginname,"",LCMAPS_MAXPATHLEN); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_db_read.c:275:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(plist->pluginargs,entry->pluginargs,LCMAPS_MAXARGSTRING); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_db_read.c:279:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant character. strncpy(plist->pluginargs,"",LCMAPS_MAXARGSTRING); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_db_read.c:390: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). if (strncmp(var,"pluginname",strlen("pluginname")) == 0) data/lcmaps-1.6.6/src/pluginmanager/lcmaps_db_read.c:393:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(tmp_entry->pluginname,val,LCMAPS_MAXPATHLEN); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_db_read.c:396:47: [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). else if (strncmp(var,"pluginargs",strlen("pluginargs")) == 0) data/lcmaps-1.6.6/src/pluginmanager/lcmaps_db_read.c:399:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(tmp_entry->pluginargs,val,LCMAPS_MAXARGSTRING); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_log.c:229: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). for (j = 0; j < strlen(debug_env); j++) { data/lcmaps-1.6.6/src/pluginmanager/lcmaps_pluginmanager.c:374:13: [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(ihandle->pluginname) > 0) data/lcmaps-1.6.6/src/pluginmanager/lcmaps_pluginmanager.c:619:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pplugin->pluginshortname,name,LCMAPS_MAXPATHLEN); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_pluginmanager.c:622:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pplugin->pluginabsname,pname,LCMAPS_MAXPATHLEN); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_pluginmanager.c:626:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant character. strncpy(pplugin->pluginshortname,"",LCMAPS_MAXPATHLEN); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_pluginmanager.c:627:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant character. strncpy(pplugin->pluginabsname,"",LCMAPS_MAXPATHLEN); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_pluginmanager.c:633:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pplugin->pluginargs,args,LCMAPS_MAXARGSTRING); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_pluginmanager.c:637:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant character. strncpy(pplugin->pluginargs,"",LCMAPS_MAXARGSTRING); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_pluginmanager.c:731:9: [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). len=strlen(name); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_pluginmanager.c:736:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(xargv[0],name,len+1); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_utils.c:122:15: [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). prefixl = strlen(prefix); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_utils.c:123:16: [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). pathl = strlen(path); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_utils.c:124:17: [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). suffixl = strlen(suffix); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_utils.c:134:17: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(newfilename, "/"); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_utils.c:143:13: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(newfilename, "/"); data/lcmaps-1.6.6/src/pluginmanager/lcmaps_utils.c:391:43: [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 (strncmp(username, gr_mem, strlen(username))==0) ANALYSIS SUMMARY: Hits = 137 Lines analyzed = 25669 in approximately 1.03 seconds (24919 lines/second) Physical Source Lines of Code (SLOC) = 11977 Hits@level = [0] 56 [1] 57 [2] 32 [3] 21 [4] 27 [5] 0 Hits@level+ = [0+] 193 [1+] 137 [2+] 80 [3+] 48 [4+] 27 [5+] 0 Hits/KSLOC@level+ = [0+] 16.1142 [1+] 11.4386 [2+] 6.67947 [3+] 4.00768 [4+] 2.25432 [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.