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/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_apache_compat.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_apache_compat.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_apache_includes.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_apr_compat.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_apr_includes.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_bucket.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_bucket.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_callback.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_callback.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_cgi.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_cgi.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_cmd.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_cmd.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_common_debug.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_common_debug.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_common_includes.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_common_log.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_common_log.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_common_types.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_common_util.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_common_util.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_config.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_config.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_const.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_const.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_debug.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_debug.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_env.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_env.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_error.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_error.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_filter.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_filter.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_global.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_global.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_gtop.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_gtop.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_handler.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_handler.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_interp.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_interp.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_io.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_io.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_io_apache.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_io_apache.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_log.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_log.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_mgv.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_mgv.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_module.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_module.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_options.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_options.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_pcw.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_pcw.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_perl.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_perl.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_perl_global.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_perl_global.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_perl_includes.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_perl_pp.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_perl_pp.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_perl_unembed.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_svptr_table.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_svptr_table.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_sys.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_sys.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_time.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_tipool.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_tipool.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_types.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_util.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_util.h Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/mod_perl.c Examining data/libapache2-mod-perl2-2.0.11/src/modules/perl/mod_perl.h Examining data/libapache2-mod-perl2-2.0.11/xs/Apache2/Access/Apache2__Access.h Examining data/libapache2-mod-perl2-2.0.11/xs/Apache2/CmdParms/Apache2__CmdParms.h Examining data/libapache2-mod-perl2-2.0.11/xs/Apache2/Command/Apache2__Command.h Examining data/libapache2-mod-perl2-2.0.11/xs/Apache2/Connection/Apache2__Connection.h Examining data/libapache2-mod-perl2-2.0.11/xs/Apache2/ConnectionUtil/Apache2__ConnectionUtil.h Examining data/libapache2-mod-perl2-2.0.11/xs/Apache2/Directive/Apache2__Directive.h Examining data/libapache2-mod-perl2-2.0.11/xs/Apache2/Filter/Apache2__Filter.h Examining data/libapache2-mod-perl2-2.0.11/xs/Apache2/Log/Apache2__Log.h Examining data/libapache2-mod-perl2-2.0.11/xs/Apache2/Module/Apache2__Module.h Examining data/libapache2-mod-perl2-2.0.11/xs/Apache2/MPM/Apache2__MPM.h Examining data/libapache2-mod-perl2-2.0.11/xs/Apache2/RequestIO/Apache2__RequestIO.h Examining data/libapache2-mod-perl2-2.0.11/xs/Apache2/RequestRec/Apache2__RequestRec.h Examining data/libapache2-mod-perl2-2.0.11/xs/Apache2/RequestUtil/Apache2__RequestUtil.h Examining data/libapache2-mod-perl2-2.0.11/xs/Apache2/Response/Apache2__Response.h Examining data/libapache2-mod-perl2-2.0.11/xs/Apache2/ServerRec/Apache2__ServerRec.h Examining data/libapache2-mod-perl2-2.0.11/xs/Apache2/ServerUtil/Apache2__ServerUtil.h Examining data/libapache2-mod-perl2-2.0.11/xs/Apache2/SubProcess/Apache2__SubProcess.h Examining data/libapache2-mod-perl2-2.0.11/xs/Apache2/SubRequest/Apache2__SubRequest.h Examining data/libapache2-mod-perl2-2.0.11/xs/Apache2/URI/Apache2__URI.h Examining data/libapache2-mod-perl2-2.0.11/xs/Apache2/Util/Apache2__Util.h Examining data/libapache2-mod-perl2-2.0.11/xs/APR/aprext/modperl_dummy.c Examining data/libapache2-mod-perl2-2.0.11/xs/APR/Base64/APR__Base64.h Examining data/libapache2-mod-perl2-2.0.11/xs/APR/Brigade/APR__Brigade.h Examining data/libapache2-mod-perl2-2.0.11/xs/APR/Bucket/APR__Bucket.h Examining data/libapache2-mod-perl2-2.0.11/xs/APR/BucketAlloc/APR__BucketAlloc.h Examining data/libapache2-mod-perl2-2.0.11/xs/APR/Error/APR__Error.h Examining data/libapache2-mod-perl2-2.0.11/xs/APR/Finfo/APR__Finfo.h Examining data/libapache2-mod-perl2-2.0.11/xs/APR/IpSubnet/APR__IpSubnet.h Examining data/libapache2-mod-perl2-2.0.11/xs/APR/Lock/APR__Lock.h Examining data/libapache2-mod-perl2-2.0.11/xs/APR/OS/APR__OS.h Examining data/libapache2-mod-perl2-2.0.11/xs/APR/PerlIO/modperl_apr_perlio.c Examining data/libapache2-mod-perl2-2.0.11/xs/APR/PerlIO/modperl_apr_perlio.h Examining data/libapache2-mod-perl2-2.0.11/xs/APR/Pool/APR__Pool.h Examining data/libapache2-mod-perl2-2.0.11/xs/APR/SockAddr/APR__SockAddr.h Examining data/libapache2-mod-perl2-2.0.11/xs/APR/Socket/APR__Socket.h Examining data/libapache2-mod-perl2-2.0.11/xs/APR/Status/APR__Status.h Examining data/libapache2-mod-perl2-2.0.11/xs/APR/String/APR__String.h Examining data/libapache2-mod-perl2-2.0.11/xs/APR/Table/APR__Table.h Examining data/libapache2-mod-perl2-2.0.11/xs/APR/ThreadMutex/APR__ThreadMutex.h Examining data/libapache2-mod-perl2-2.0.11/xs/APR/ThreadRWLock/APR__ThreadRWLock.h Examining data/libapache2-mod-perl2-2.0.11/xs/APR/URI/APR__URI.h Examining data/libapache2-mod-perl2-2.0.11/xs/APR/Util/APR__Util.h Examining data/libapache2-mod-perl2-2.0.11/xs/APR/UUID/APR__UUID.h Examining data/libapache2-mod-perl2-2.0.11/xs/ModPerl/Global/ModPerl__Global.h Examining data/libapache2-mod-perl2-2.0.11/xs/ModPerl/Interpreter/ModPerl__Interpreter.h Examining data/libapache2-mod-perl2-2.0.11/xs/ModPerl/Util/ModPerl__Util.h Examining data/libapache2-mod-perl2-2.0.11/xs/modperl_xs_util.h FINAL RESULTS: data/libapache2-mod-perl2-2.0.11/src/modules/perl/mod_perl.c:816: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. if ((level = getenv("PERL_DESTRUCT_LEVEL"))) { data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_cmd.c:358:17: [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. char *val = getenv(arg); data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_common_log.c:21:8: [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. #undef getenv /* from XSUB.h */ data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_common_log.c:98: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 (!(level = getenv("MOD_PERL_TRACE"))) { data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_env.c:232:20: [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 ((val = getenv(key))) { data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_perl_unembed.h:40:11: [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. # undef getenv data/libapache2-mod-perl2-2.0.11/src/modules/perl/mod_perl.c:817:34: [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). modperl_destruct_level = atoi(level); data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_cmd.c:476: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[MAX_STRING_LEN]; data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_cmd.c:652: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[MAX_STRING_LEN]; data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_cmd.c:677: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[MAX_STRING_LEN]; data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_cmd.c:803:16: [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 item = atoi(arg); \ data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_common_log.c:44: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 vstr[8192]; data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_common_log.c:116:23: [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). debug_level = atoi(level); data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_error.c:30: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[256]; data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_filter.c:267:9: [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(&wb->outbuf[wb->outcnt], buf, len); data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_gtop.h:40: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 size[MP_GTOP_SSS]; data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_gtop.h:41: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 vsize[MP_GTOP_SSS]; data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_gtop.h:42: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 resident[MP_GTOP_SSS]; data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_gtop.h:43: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 share[MP_GTOP_SSS]; data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_gtop.h:44: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 rss[MP_GTOP_SSS]; data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_module.c:201: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(mrg, tmp, sizeof(*mrg)); data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_module.c:504: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[2]; data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_options.c:125: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((char *)conf, (const char *)base, sizeof(*base)); data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_perl.c:244:9: [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[APR_UUID_FORMATTED_LENGTH + 1]; data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_perl_global.h:62: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 pv[256]; /* XXX: only need enough for $/ at the moment */ data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_types.h:198: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 outbuf[MP_IOBUFSIZE]; data/libapache2-mod-perl2-2.0.11/xs/APR/PerlIO/modperl_apr_perlio.c:84:19: [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. path = (const char *)SvPV_nolen(args[narg-2]); data/libapache2-mod-perl2-2.0.11/xs/APR/String/APR__String.h:20: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 buff[5]; data/libapache2-mod-perl2-2.0.11/xs/Apache2/Module/Apache2__Module.h:21: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 nameptr[256]; data/libapache2-mod-perl2-2.0.11/xs/Apache2/Module/Apache2__Module.h:29:9: [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(nameptr, name, len); data/libapache2-mod-perl2-2.0.11/xs/Apache2/Module/Apache2__Module.h:30:9: [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(nameptr + len, ".c\0", 3); data/libapache2-mod-perl2-2.0.11/xs/Apache2/RequestIO/Apache2__RequestIO.h:291: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 c[1] = "\0"; data/libapache2-mod-perl2-2.0.11/xs/Apache2/RequestUtil/Apache2__RequestUtil.h: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 encoded[1024]; data/libapache2-mod-perl2-2.0.11/xs/Apache2/SubProcess/Apache2__SubProcess.h:171:36: [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. argv[i+1] = (const char *)SvPV_nolen(AvARRAY(av_argv)[i]); data/libapache2-mod-perl2-2.0.11/src/modules/perl/mod_perl.c:282:19: [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). PL_origalen = strlen(argv[0]) + 1; data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_const.c:27:20: [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 name_len = strlen(name); data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_debug.c:35: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). tmp_len = strlen(elts[i].key); data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_env.c:38:20: [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). I32 klen = strlen(key); \ data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_env.c:64: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). I32 klen = strlen(key); data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_env.c:66:34: [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). (void)hv_delete(hv, key, strlen(key), G_DISCARD); data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_env.c:180:41: [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). svp = hv_fetch(hv, elts[i].key, strlen(elts[i].key), FALSE); data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_handler.c:104:18: [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). anon->len = strlen(anon->name); data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_interp.c:531: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). strlen(MP_THX_INTERP_KEY), 0); data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_interp.c:539:53: [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). (void)hv_store(PL_modglobal, MP_THX_INTERP_KEY, strlen(MP_THX_INTERP_KEY), data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_io_apache.c:271:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). apr_size_t read; data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_io_apache.c:306:44: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rc = apr_brigade_flatten(bb, tmp, &read); data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_io_apache.c:312:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). total += read; data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_io_apache.c:313:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). tmp += read; data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_io_apache.c:314:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len -= read; data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_mgv.c:27: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). mgv->len = strlen(n); \ data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_mgv.c:228: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). int package_len = strlen(name) - strlen(tmp); data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_mgv.c:228: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 package_len = strlen(name) - strlen(tmp); data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_module.c:619: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). SV **svp = hv_fetch(hv, name, strlen(name), 0); data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_module.c:808: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). minfo->namelen = strlen(name); data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_perl_global.c:166:19: [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). I32 packlen = strlen(package); data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_perl_global.c:378:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(svpv->pv, SvPVX(*svpv->sv), sizeof(svpv->pv)); data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_perl_unembed.h:35:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #undef read data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_util.c:569:24: [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). filename = malloc((strlen(package)+4)*sizeof(char)); data/libapache2-mod-perl2-2.0.11/src/modules/perl/modperl_util.c:663: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). int len = strlen(file)+1; data/libapache2-mod-perl2-2.0.11/xs/APR/URI/APR__URI.h:82: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). int uri_len = strlen(uri->uri.path); data/libapache2-mod-perl2-2.0.11/xs/APR/URI/APR__URI.h:83: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). int n = strlen(uri->path_info); data/libapache2-mod-perl2-2.0.11/xs/Apache2/Directive/Apache2__Directive.h:89: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). directive_len = strlen(directive); data/libapache2-mod-perl2-2.0.11/xs/Apache2/Directive/Apache2__Directive.h:91:20: [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). args_len = strlen(args); data/libapache2-mod-perl2-2.0.11/xs/Apache2/Directive/Apache2__Directive.h:158: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). directive_len = strlen(directive); data/libapache2-mod-perl2-2.0.11/xs/Apache2/Directive/Apache2__Directive.h:170: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). args_len = strlen(args); data/libapache2-mod-perl2-2.0.11/xs/Apache2/Module/Apache2__Module.h:42: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). if ((strlen(base+1) == 2) && data/libapache2-mod-perl2-2.0.11/xs/Apache2/RequestUtil/Apache2__RequestUtil.h:177:49: [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). elen = apr_base64_encode(encoded, auth_cat, strlen(auth_cat)); data/libapache2-mod-perl2-2.0.11/xs/Apache2/URI/Apache2__URI.h:36:24: [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). SvCUR_set(url, strlen(SvPVX(url))); ANALYSIS SUMMARY: Hits = 68 Lines analyzed = 22558 in approximately 1.05 seconds (21586 lines/second) Physical Source Lines of Code (SLOC) = 14486 Hits@level = [0] 2 [1] 34 [2] 28 [3] 6 [4] 0 [5] 0 Hits@level+ = [0+] 70 [1+] 68 [2+] 34 [3+] 6 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 4.83225 [1+] 4.69419 [2+] 2.34709 [3+] 0.414193 [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.