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/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c Examining data/mlmmj-1.3.0/contrib/receivestrip/mlmmj-receive-strip.c Examining data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/chomp.c Examining data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/ctrlvalues.c Examining data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/dumpfd2fd.c Examining data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/log_error.c Examining data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/memory.c Examining data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/mygetline.c Examining data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/print-version.c Examining data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/random-int.c Examining data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/readn.c Examining data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/strgen.c Examining data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/writen.c Examining data/mlmmj-1.3.0/include/checkwait_smtpreply.h Examining data/mlmmj-1.3.0/include/chomp.h Examining data/mlmmj-1.3.0/include/ctrlvalue.h Examining data/mlmmj-1.3.0/include/ctrlvalues.h Examining data/mlmmj-1.3.0/include/do_all_the_voodoo_here.h Examining data/mlmmj-1.3.0/include/find_email_adr.h Examining data/mlmmj-1.3.0/include/getaddrsfromfd.h Examining data/mlmmj-1.3.0/include/gethdrline.h Examining data/mlmmj-1.3.0/include/getlistaddr.h Examining data/mlmmj-1.3.0/include/getlistdelim.h Examining data/mlmmj-1.3.0/include/incindexfile.h Examining data/mlmmj-1.3.0/include/init_sockfd.h Examining data/mlmmj-1.3.0/include/itoa.h Examining data/mlmmj-1.3.0/include/listcontrol.h Examining data/mlmmj-1.3.0/include/log_error.h Examining data/mlmmj-1.3.0/include/log_oper.h Examining data/mlmmj-1.3.0/include/mail-functions.h Examining data/mlmmj-1.3.0/include/memory.h Examining data/mlmmj-1.3.0/include/mlmmj-maintd.h Examining data/mlmmj-1.3.0/include/mlmmj-process.h Examining data/mlmmj-1.3.0/include/mlmmj-receive.h Examining data/mlmmj-1.3.0/include/mlmmj-send.h Examining data/mlmmj-1.3.0/include/mlmmj-sub.h Examining data/mlmmj-1.3.0/include/mlmmj-unsub.h Examining data/mlmmj-1.3.0/include/mygetline.h Examining data/mlmmj-1.3.0/include/mylocking.h Examining data/mlmmj-1.3.0/include/prepstdreply.h Examining data/mlmmj-1.3.0/include/remailfile.h Examining data/mlmmj-1.3.0/include/send_digest.h Examining data/mlmmj-1.3.0/include/send_help.h Examining data/mlmmj-1.3.0/include/send_list.h Examining data/mlmmj-1.3.0/include/statctrl.h Examining data/mlmmj-1.3.0/include/strgen.h Examining data/mlmmj-1.3.0/include/subscriberfuncs.h Examining data/mlmmj-1.3.0/include/unistr.h Examining data/mlmmj-1.3.0/include/wrappers.h Examining data/mlmmj-1.3.0/include/mlmmj.h Examining data/mlmmj-1.3.0/src/checkwait_smtpreply.c Examining data/mlmmj-1.3.0/src/chomp.c Examining data/mlmmj-1.3.0/src/ctrlvalue.c Examining data/mlmmj-1.3.0/src/ctrlvalues.c Examining data/mlmmj-1.3.0/src/do_all_the_voodoo_here.c Examining data/mlmmj-1.3.0/src/dumpfd2fd.c Examining data/mlmmj-1.3.0/src/find_email_adr.c Examining data/mlmmj-1.3.0/src/getaddrsfromfd.c Examining data/mlmmj-1.3.0/src/gethdrline.c Examining data/mlmmj-1.3.0/src/getlistaddr.c Examining data/mlmmj-1.3.0/src/getlistdelim.c Examining data/mlmmj-1.3.0/src/incindexfile.c Examining data/mlmmj-1.3.0/src/init_sockfd.c Examining data/mlmmj-1.3.0/src/itoa.c Examining data/mlmmj-1.3.0/src/listcontrol.c Examining data/mlmmj-1.3.0/src/log_error.c Examining data/mlmmj-1.3.0/src/log_oper.c Examining data/mlmmj-1.3.0/src/mail-functions.c Examining data/mlmmj-1.3.0/src/memory.c Examining data/mlmmj-1.3.0/src/mlmmj-bounce.c Examining data/mlmmj-1.3.0/src/mlmmj-list.c Examining data/mlmmj-1.3.0/src/mlmmj-maintd.c Examining data/mlmmj-1.3.0/src/mlmmj-process.c Examining data/mlmmj-1.3.0/src/mlmmj-receive.c Examining data/mlmmj-1.3.0/src/mlmmj-send.c Examining data/mlmmj-1.3.0/src/mlmmj-sub.c Examining data/mlmmj-1.3.0/src/mlmmj-unsub.c Examining data/mlmmj-1.3.0/src/mygetline.c Examining data/mlmmj-1.3.0/src/mylocking.c Examining data/mlmmj-1.3.0/src/prepstdreply.c Examining data/mlmmj-1.3.0/src/print-version.c Examining data/mlmmj-1.3.0/src/random-int.c Examining data/mlmmj-1.3.0/src/readn.c Examining data/mlmmj-1.3.0/src/send_digest.c Examining data/mlmmj-1.3.0/src/send_help.c Examining data/mlmmj-1.3.0/src/send_list.c Examining data/mlmmj-1.3.0/src/statctrl.c Examining data/mlmmj-1.3.0/src/strgen.c Examining data/mlmmj-1.3.0/src/subscriberfuncs.c Examining data/mlmmj-1.3.0/src/unistr.c Examining data/mlmmj-1.3.0/src/writen.c FINAL RESULTS: data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:649: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(*footer+footerl,suffix); data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:656:4: [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(*footer+footerl,suffix); data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:660: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(*footer,prefix); data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:856:6: [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(type_header,saved_mime_headers[mime_headers_count]); data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:866:6: [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(transfer_header,saved_mime_headers[mime_headers_count]); data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:876:6: [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(disposition_header,saved_mime_headers[mime_headers_count]); data/mlmmj-1.3.0/contrib/receivestrip/mlmmj-receive-strip.c:516:2: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjprocess, mlmmjprocess, data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/log_error.c:60:2: [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. vsnprintf(buf, sizeof(buf), fmt, ap); data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/strgen.c:135:25: [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(retstr, str); data/mlmmj-1.3.0/src/do_all_the_voodoo_here.c:67:4: [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(readhdrs[i].values[readhdrs[i].valuecount - 1], data/mlmmj-1.3.0/src/find_email_adr.c:92: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(nbuf, name); data/mlmmj-1.3.0/src/find_email_adr.c:192:2: [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(s, str); data/mlmmj-1.3.0/src/listcontrol.c:241:3: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsub, mlmmjsub, data/mlmmj-1.3.0/src/listcontrol.c:290:3: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsub, mlmmjsub, data/mlmmj-1.3.0/src/listcontrol.c:339:3: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsub, mlmmjsub, data/mlmmj-1.3.0/src/listcontrol.c:370:3: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsub, mlmmjsub, data/mlmmj-1.3.0/src/listcontrol.c:399:3: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsub, mlmmjsub, data/mlmmj-1.3.0/src/listcontrol.c:427:3: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsub, mlmmjsub, data/mlmmj-1.3.0/src/listcontrol.c:455:3: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsub, mlmmjsub, data/mlmmj-1.3.0/src/listcontrol.c:484:3: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsub, mlmmjsub, data/mlmmj-1.3.0/src/listcontrol.c:516:3: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjunsub, mlmmjunsub, data/mlmmj-1.3.0/src/listcontrol.c:550:3: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjunsub, mlmmjunsub, data/mlmmj-1.3.0/src/listcontrol.c:584:3: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjunsub, mlmmjunsub, data/mlmmj-1.3.0/src/listcontrol.c:619:3: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjunsub, mlmmjunsub, data/mlmmj-1.3.0/src/listcontrol.c:633:4: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjbounce, mlmmjbounce, data/mlmmj-1.3.0/src/listcontrol.c:643:3: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjbounce, mlmmjbounce, data/mlmmj-1.3.0/src/listcontrol.c:704:4: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/listcontrol.c:709:4: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/listcontrol.c:757:3: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsub, mlmmjsub, data/mlmmj-1.3.0/src/listcontrol.c:873:3: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/log_error.c:60:2: [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. vsnprintf(buf, sizeof(buf), fmt, ap); data/mlmmj-1.3.0/src/log_oper.c:88:6: [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. i = vsnprintf(log_msg, sizeof(log_msg), fmt, ap); data/mlmmj-1.3.0/src/mlmmj-bounce.c:113:2: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/mlmmj-maintd.c:368:5: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/mlmmj-maintd.c:377:5: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/mlmmj-maintd.c:500:4: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/mlmmj-maintd.c:658:4: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjbounce, mlmmjbounce, data/mlmmj-1.3.0/src/mlmmj-maintd.c:806:4: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjunsub, mlmmjunsub, data/mlmmj-1.3.0/src/mlmmj-process.c:210:4: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/mlmmj-process.c:217:4: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/mlmmj-process.c:246:2: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/mlmmj-process.c:799:4: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/mlmmj-process.c:869:4: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/mlmmj-process.c:938:3: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/mlmmj-process.c:992:4: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/mlmmj-process.c:1097:8: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/mlmmj-process.c:1166:3: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/mlmmj-process.c:1171:3: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/mlmmj-receive.c:180:2: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjprocess, mlmmjprocess, data/mlmmj-1.3.0/src/mlmmj-send.c:234:2: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjbounce, mlmmjbounce, data/mlmmj-1.3.0/src/mlmmj-sub.c:185:3: [4] (shell) execl: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execl(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/mlmmj-sub.c:221:2: [4] (shell) execl: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execl(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/mlmmj-sub.c:333:2: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/mlmmj-sub.c:389:2: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/mlmmj-sub.c:489:2: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/mlmmj-sub.c:550:2: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/mlmmj-sub.c:817:5: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjunsub, mlmmjunsub, data/mlmmj-1.3.0/src/mlmmj-unsub.c:91:2: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/mlmmj-unsub.c:145:2: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/mlmmj-unsub.c:242:2: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/mlmmj-unsub.c:344:2: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/prepstdreply.c:163:2: [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(s->lines, lines); data/mlmmj-1.3.0/src/prepstdreply.c:1155:6: [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(line, txt->src->prefix); data/mlmmj-1.3.0/src/prepstdreply.c:1166: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(pos, txt->src->upcoming); data/mlmmj-1.3.0/src/send_digest.c:543:3: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/send_help.c:63:2: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/send_list.c:224:2: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(mlmmjsend, mlmmjsend, data/mlmmj-1.3.0/src/strgen.c:135:25: [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(retstr, str); data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:556:2: [3] (random) srandom: 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. srandom((unsigned int)(getpid()*time(NULL))); data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:558:14: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt=getopt(argc,argv,"p:h:P:H:sV"))!=-1) { data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:1222:35: [3] (random) random: 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. (*boundary)[r]=(char)((int)'A'+(random()%16)); data/mlmmj-1.3.0/contrib/receivestrip/mlmmj-receive-strip.c:417:16: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = getopt(argc, argv, "hPVL:F")) != -1) { data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/random-int.c:58:2: [3] (random) srand: 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. srand(seed); data/mlmmj-1.3.0/src/init_sockfd.c:41:6: [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 (getenv("MLMMJ_TESTING")) { data/mlmmj-1.3.0/src/mlmmj-bounce.c:207:16: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = getopt(argc, argv, "hdVL:a:n:m:p")) != -1) { data/mlmmj-1.3.0/src/mlmmj-list.c:110:16: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = getopt(argc, argv, "cdhmnosVL:")) != -1) { data/mlmmj-1.3.0/src/mlmmj-maintd.c:961:8: [3] (random) random: 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. char *random, *logname, *logstr; data/mlmmj-1.3.0/src/mlmmj-maintd.c:996:49: [3] (random) random: 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. logname = concatstr(3, listdir, "/maintdlog-", random); data/mlmmj-1.3.0/src/mlmmj-maintd.c:997:9: [3] (random) random: 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. myfree(random); data/mlmmj-1.3.0/src/mlmmj-maintd.c:1072:16: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = getopt(argc, argv, "hFVL:d:")) != -1) { data/mlmmj-1.3.0/src/mlmmj-process.c:504:16: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = getopt(argc, argv, "hVPm:L:")) != -1) { data/mlmmj-1.3.0/src/mlmmj-process.c:635: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((envstr = getenv("DEFAULT")) != NULL) { data/mlmmj-1.3.0/src/mlmmj-process.c:638:22: [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. } else if((envstr = getenv("EXTENSION")) != NULL) { data/mlmmj-1.3.0/src/mlmmj-process.c:641:22: [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. } else if((envstr = getenv("LOCAL_PART_SUFFIX")) != NULL) { data/mlmmj-1.3.0/src/mlmmj-process.c:744: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((envstr = getenv("SENDER")) != NULL) { data/mlmmj-1.3.0/src/mlmmj-receive.c:75:16: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = getopt(argc, argv, "hPVL:s:e:F")) != -1) { data/mlmmj-1.3.0/src/mlmmj-send.c:847:16: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = getopt(argc, argv, "aVDhm:l:L:R:F:T:r:s:o:")) != -1){ data/mlmmj-1.3.0/src/mlmmj-sub.c:670:16: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = getopt(argc, argv, "hbcCdfm:nsVUL:a:qrR")) != -1) { data/mlmmj-1.3.0/src/mlmmj-unsub.c:546:16: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = getopt(argc, argv, "hcCdenNVUL:a:sbqrR")) != -1) { data/mlmmj-1.3.0/src/random-int.c:58:2: [3] (random) srand: 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. srand(seed); data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:331: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 mem_buffer_start[mem_buffer_size]; data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:384: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 encoding_buffer[4]; data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:387: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 decoding_buffer[4]; data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:623:4: [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). f=fopen(file,"r"); data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:1196:2: [2] (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). Risk is low because the source is a constant string. strcpy(header,"Content-Type: multipart/mixed;\r\n boundary=\""); data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:1220:2: [2] (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). Risk is low because the source is a constant string. strcpy(*boundary,"--=_foot_filter_boundary_0123456789012_="); data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:1983:9: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). fildes=mkstemp(disk_buffer_template); data/mlmmj-1.3.0/contrib/receivestrip/mlmmj-receive-strip.c:153:4: [2] (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). Risk is low because the source is a constant string. strcpy(*boundary,"--"); data/mlmmj-1.3.0/contrib/receivestrip/mlmmj-receive-strip.c:465: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(infilename, O_RDWR|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR); data/mlmmj-1.3.0/contrib/receivestrip/mlmmj-receive-strip.c:471:8: [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(infilename, O_RDWR|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR); data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/ctrlvalues.c:44:11: [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). ctrlfd = open(filename, O_RDONLY); data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/dumpfd2fd.c:37:2: [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[DUMPBUF]; data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/log_error.c:56:2: [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[1024]; data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/random-int.c:42:14: [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). devrandom = open("/dev/urandom", O_RDONLY); data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/random-int.c:44:15: [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). devrandom = open("/dev/random", O_RDONLY); data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/strgen.c:224:2: [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 qc[3]; data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/strgen.c:269:2: [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/mlmmj-1.3.0/include/mlmmj.h:84: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. extern char *subtype_strs[7]; /* count matches enum above; defined in subscriberfuncs.c */ data/mlmmj-1.3.0/include/mlmmj.h:95: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. extern char * subreason_strs[6]; /* count matches enum above; defined in subscriberfuncs.c */ data/mlmmj-1.3.0/src/ctrlvalue.c:47:11: [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). ctrlfd = open(filename, O_RDONLY); data/mlmmj-1.3.0/src/ctrlvalues.c:44:11: [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). ctrlfd = open(filename, O_RDONLY); data/mlmmj-1.3.0/src/do_all_the_voodoo_here.c:63:6: [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 **)myrealloc(readhdrs[i].values, data/mlmmj-1.3.0/src/dumpfd2fd.c:37:2: [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[DUMPBUF]; data/mlmmj-1.3.0/src/getlistaddr.c:43:19: [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). if((listnamefd = open(tmpstr, O_RDONLY)) < 0) { data/mlmmj-1.3.0/src/getlistdelim.c:43:22: [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). if(-1 != (delimfd = open(delimfn, O_RDONLY))){ data/mlmmj-1.3.0/src/incindexfile.c:47:2: [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 intbuf[INTBUF_SIZE] = "uninitialized"; data/mlmmj-1.3.0/src/incindexfile.c:52: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(indexfilename, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR); data/mlmmj-1.3.0/src/incindexfile.c:76:10: [2] (integer) atol: 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). index = atol(intbuf); data/mlmmj-1.3.0/src/listcontrol.c:385:15: [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). if((tmpfd = open(conffilename, O_RDONLY)) < 0) { data/mlmmj-1.3.0/src/listcontrol.c:413:15: [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). if((tmpfd = open(conffilename, O_RDONLY)) < 0) { data/mlmmj-1.3.0/src/listcontrol.c:441:15: [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). if((tmpfd = open(conffilename, O_RDONLY)) < 0) { data/mlmmj-1.3.0/src/listcontrol.c:469:15: [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). if((tmpfd = open(conffilename, O_RDONLY)) < 0) { data/mlmmj-1.3.0/src/listcontrol.c:536:15: [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). if((tmpfd = open(conffilename, O_RDONLY)) < 0) { data/mlmmj-1.3.0/src/listcontrol.c:570:15: [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). if((tmpfd = open(conffilename, O_RDONLY)) < 0) { data/mlmmj-1.3.0/src/listcontrol.c:604:15: [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). if((tmpfd = open(conffilename, O_RDONLY)) < 0) { data/mlmmj-1.3.0/src/listcontrol.c:685:12: [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). tmpfd = open(omitfilename, O_RDONLY); data/mlmmj-1.3.0/src/log_error.c:56:2: [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[1024]; data/mlmmj-1.3.0/src/log_oper.c:46:2: [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 ct[26], *logstr, *logfilename, *tmp, log_msg[256]; data/mlmmj-1.3.0/src/log_oper.c:69: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(logfilename, O_RDWR|O_CREAT|O_APPEND, S_IRUSR|S_IWUSR); data/mlmmj-1.3.0/src/mail-functions.c:152:2: [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 newlinebuf[3]; data/mlmmj-1.3.0/src/mail-functions.c:224:2: [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 newlinebuf[3]; data/mlmmj-1.3.0/src/mlmmj-bounce.c:104: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(probefile, O_WRONLY|O_TRUNC|O_CREAT, S_IRUSR|S_IWUSR); data/mlmmj-1.3.0/src/mlmmj-bounce.c:131: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(mailname, O_RDONLY); data/mlmmj-1.3.0/src/mlmmj-bounce.c:366:12: [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). if ((fd = open(bfilename, O_WRONLY|O_APPEND|O_CREAT, data/mlmmj-1.3.0/src/mlmmj-list.c:63:11: [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). if((fd = open(filename, O_RDONLY)) < 0) data/mlmmj-1.3.0/src/mlmmj-maintd.c:98:2: [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). open("/dev/null", O_RDONLY); data/mlmmj-1.3.0/src/mlmmj-maintd.c:99:2: [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). open("/dev/null", O_RDWR); data/mlmmj-1.3.0/src/mlmmj-maintd.c:100:2: [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). open("/dev/null", O_RDWR); data/mlmmj-1.3.0/src/mlmmj-maintd.c:148:16: [2] (integer) atol: 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). modreqlife = atol(modreqlifestr); data/mlmmj-1.3.0/src/mlmmj-maintd.c:198: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(old, O_RDWR); data/mlmmj-1.3.0/src/mlmmj-maintd.c:279:12: [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). fromfd = open(fromname, O_RDONLY); data/mlmmj-1.3.0/src/mlmmj-maintd.c:282:10: [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). tofd = open(toname, O_RDONLY); data/mlmmj-1.3.0/src/mlmmj-maintd.c:317:8: [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(reptoname, O_RDONLY); data/mlmmj-1.3.0/src/mlmmj-maintd.c:331:17: [2] (integer) atol: 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). bouncelife = atol(bouncelifestr); data/mlmmj-1.3.0/src/mlmmj-maintd.c:561:14: [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). probefd = open(filename, O_RDONLY); data/mlmmj-1.3.0/src/mlmmj-maintd.c:701:16: [2] (integer) atol: 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). bouncelife = atol(bouncelifestr); data/mlmmj-1.3.0/src/mlmmj-maintd.c:738:8: [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(dp->d_name, O_RDONLY); data/mlmmj-1.3.0/src/mlmmj-maintd.c:837:28: [2] (integer) atol: 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). digestinterval = (time_t)atol(digestintervalstr); data/mlmmj-1.3.0/src/mlmmj-maintd.c:845:20: [2] (integer) atol: 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). digestmaxmails = atol(digestmaxmailsstr); data/mlmmj-1.3.0/src/mlmmj-maintd.c:852: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(digestname, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); data/mlmmj-1.3.0/src/mlmmj-maintd.c:874:16: [2] (integer) atol: 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). lastissue = atol(lastissuestr); data/mlmmj-1.3.0/src/mlmmj-maintd.c:878:14: [2] (integer) atol: 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). lasttime = atol(lasttimestr); data/mlmmj-1.3.0/src/mlmmj-maintd.c:880:15: [2] (integer) atol: 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). lastindex = atol(lastindexstr); data/mlmmj-1.3.0/src/mlmmj-maintd.c:897:12: [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). indexfd = open(indexname, O_RDONLY); data/mlmmj-1.3.0/src/mlmmj-maintd.c:918:10: [2] (integer) atol: 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). index = atol(s2); data/mlmmj-1.3.0/src/mlmmj-maintd.c:962:2: [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 timenow[64]; data/mlmmj-1.3.0/src/mlmmj-maintd.c:999:16: [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). maintdlogfd = open(logname, O_WRONLY|O_EXCL|O_CREAT, S_IRUSR|S_IWUSR); data/mlmmj-1.3.0/src/mlmmj-process.c:98:21: [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). if((moderatorsfd = open(moderatorsfilename, O_RDONLY)) < 0) { data/mlmmj-1.3.0/src/mlmmj-process.c:264:2: [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 errbuf[128]; data/mlmmj-1.3.0/src/mlmmj-process.c:555:30: [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). donemailfd = open(donemailname, O_RDWR|O_CREAT|O_EXCL, data/mlmmj-1.3.0/src/mlmmj-process.c:568:18: [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). if((rawmailfd = open(mailfile, O_RDONLY)) < 0) { data/mlmmj-1.3.0/src/mlmmj-process.c:578:10: [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). hdrfd = open(headerfilename, O_RDONLY); data/mlmmj-1.3.0/src/mlmmj-process.c:583:11: [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). footfd = open(footerfilename, O_RDONLY); data/mlmmj-1.3.0/src/mlmmj-process.c:773:20: [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). if((rawmailfd = open(mailfile, O_RDONLY)) < 0) { data/mlmmj-1.3.0/src/mlmmj-process.c:778:21: [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). if((donemailfd = open(donemailname, data/mlmmj-1.3.0/src/mlmmj-process.c:826:17: [2] (integer) atol: 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). maxmailsize = atol(maxmailsizestr); data/mlmmj-1.3.0/src/mlmmj-process.c:1133:13: [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). omitfd = open(omitfilename, O_RDWR|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR); data/mlmmj-1.3.0/src/mlmmj-receive.c:129: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(infilename, O_RDWR|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR); data/mlmmj-1.3.0/src/mlmmj-receive.c:135:8: [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(infilename, O_RDWR|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR); data/mlmmj-1.3.0/src/mlmmj-send.c:693:11: [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). addrfd = open(addrfilename, O_WRONLY|O_CREAT|O_APPEND, data/mlmmj-1.3.0/src/mlmmj-send.c:820:2: [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 relay[16], *listname, *listfqdn, *verpfrom, *maxverprecipsstr; data/mlmmj-1.3.0/src/mlmmj-send.c:821:2: [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 strindex[32], *reply, *strport, *smtphelo, *requeuefilename; data/mlmmj-1.3.0/src/mlmmj-send.c:943:19: [2] (integer) atol: 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). maxverprecips = atol(maxverprecipsstr); data/mlmmj-1.3.0/src/mlmmj-send.c:971:15: [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). if((mailfd = open(mailfilename, O_RDWR)) < 0) { data/mlmmj-1.3.0/src/mlmmj-send.c:1035:15: [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). if((subfd = open(subfilename, O_RDONLY)) < 0) { data/mlmmj-1.3.0/src/mlmmj-send.c:1051:15: [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). if((subfd = open(subfilename, O_RDONLY)) < 0) { data/mlmmj-1.3.0/src/mlmmj-send.c:1101:30: [2] (integer) atol: 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). smtpport = (unsigned short)atol(strport); data/mlmmj-1.3.0/src/mlmmj-send.c:1125:12: [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). tmpfd = open(tmpstr, O_WRONLY|O_CREAT|O_TRUNC, data/mlmmj-1.3.0/src/mlmmj-send.c:1138:12: [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). tmpfd = open(tmpstr, O_WRONLY|O_CREAT|O_TRUNC, data/mlmmj-1.3.0/src/mlmmj-send.c:1153:13: [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). tmpfd = open(tmpstr, O_WRONLY|O_CREAT|O_TRUNC, data/mlmmj-1.3.0/src/mlmmj-send.c:1306:16: [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). if((subfd = open(subfilename, O_RDONLY)) < 0) { data/mlmmj-1.3.0/src/mlmmj-sub.c:87:8: [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(modfilename, O_RDWR|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR); data/mlmmj-1.3.0/src/mlmmj-sub.c:242: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(modfilename, O_RDONLY); data/mlmmj-1.3.0/src/mlmmj-sub.c:420:29: [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). subconffd = open(confirmfilename, O_RDWR|O_CREAT|O_EXCL, data/mlmmj-1.3.0/src/mlmmj-sub.c:565:2: [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 chstr[2], *subdir; data/mlmmj-1.3.0/src/mlmmj-sub.c:599:14: [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). sublockfd = open(sublockname, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); data/mlmmj-1.3.0/src/mlmmj-sub.c:616:14: [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). subfilefd = open(subfilename, O_RDWR|O_CREAT, data/mlmmj-1.3.0/src/mlmmj-unsub.c:178:29: [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). subconffd = open(confirmfilename, O_RDWR|O_CREAT|O_EXCL, data/mlmmj-1.3.0/src/mlmmj-unsub.c:407:13: [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). subread = open(subreadname, O_RDWR); data/mlmmj-1.3.0/src/mlmmj-unsub.c:423:15: [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). sublockfd = open(sublockname, O_RDWR | O_CREAT, data/mlmmj-1.3.0/src/mlmmj-unsub.c:454:14: [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). subwrite = open(subwritename, O_RDWR | O_CREAT | O_TRUNC, data/mlmmj-1.3.0/src/prepstdreply.c:217:11: [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). s->fd = open(filename, O_RDONLY); data/mlmmj-1.3.0/src/prepstdreply.c:250:11: [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). s->fd = open(s->filename, O_RDONLY); data/mlmmj-1.3.0/src/prepstdreply.c:502:17: [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). txt->src->fd = open(tmp, O_RDONLY); data/mlmmj-1.3.0/src/prepstdreply.c:507:17: [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). txt->src->fd = open(tmp, O_RDONLY); data/mlmmj-1.3.0/src/prepstdreply.c:512:17: [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). txt->src->fd = open(tmp, O_RDONLY); data/mlmmj-1.3.0/src/prepstdreply.c:624: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(filename, O_RDONLY); data/mlmmj-1.3.0/src/prepstdreply.c:968:31: [2] (integer) atol: 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). if (token != NULL) limit = atol(token); data/mlmmj-1.3.0/src/prepstdreply.c:1049:31: [2] (integer) atol: 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). if (token != NULL) limit = atol(token); data/mlmmj-1.3.0/src/prepstdreply.c:1052:31: [2] (integer) atol: 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). if (token != NULL) limit = atol(token); data/mlmmj-1.3.0/src/prepstdreply.c:1108:2: [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 utf8char[5] = {0, 0, 0, 0, 0}; data/mlmmj-1.3.0/src/prepstdreply.c:1593:2: [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 *headers[10] = { NULL }; /* relies on NULL to flag end */ data/mlmmj-1.3.0/src/prepstdreply.c:1606:11: [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). outfd = open(retstr, O_RDWR|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR); data/mlmmj-1.3.0/src/random-int.c:42:14: [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). devrandom = open("/dev/urandom", O_RDONLY); data/mlmmj-1.3.0/src/random-int.c:44:15: [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). devrandom = open("/dev/random", O_RDONLY); data/mlmmj-1.3.0/src/send_digest.c:98:2: [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[45]; data/mlmmj-1.3.0/src/send_digest.c:112:15: [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). archivefd = open(archivename, O_RDONLY); data/mlmmj-1.3.0/src/send_digest.c:245:2: [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[100]; data/mlmmj-1.3.0/src/send_digest.c:266:8: [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(queuename, O_RDWR|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR); data/mlmmj-1.3.0/src/send_digest.c:277:10: [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). hdrfd = open(tmp, O_RDONLY); data/mlmmj-1.3.0/src/send_digest.c:471:15: [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). archivefd = open(archivename, O_RDONLY); data/mlmmj-1.3.0/src/send_list.c:108:12: [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). s->fd = open(filename, O_RDONLY); data/mlmmj-1.3.0/src/send_list.c:199:8: [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(queuefilename, O_WRONLY); data/mlmmj-1.3.0/src/strgen.c:224:2: [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 qc[3]; data/mlmmj-1.3.0/src/strgen.c:269:2: [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/mlmmj-1.3.0/src/subscriberfuncs.c:133:13: [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). subread = open(subreadname, O_RDONLY); data/mlmmj-1.3.0/src/unistr.c:190:2: [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 bytes[ICONV_BUFFER_SIZE]; data/mlmmj-1.3.0/src/unistr.c:558:2: [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[4]; data/mlmmj-1.3.0/src/unistr.c:617:2: [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 u[5]; data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:472:52: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). static bool look(callback_t callback,int from,bool read); data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:620: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). prefixl=(int)strlen(prefix); data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:621: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). suffixl=(int)strlen(suffix); data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:1287: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). l=(int)strlen(boundary); data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:1314: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). int prefixl=(int)strlen(prefix); data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:1315: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). int suffixl=(int)strlen(suffix); data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:1437: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). l=(int)strlen(*test); data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:1470: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). l=(int)strlen(*closing); data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:1482: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). ll=(int)strlen(*opening); data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:1492: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). ll=(int)strlen(*opening); data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:1531: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). l=(int)strlen(*test); data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:1766:52: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). static bool look(callback_t callback,int from,bool read) { data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:1781:16: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). buffer_char=getc(disk_buffer); data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:1787:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read&&pos==buffer_read) ++buffer_read; data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:1799:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read&&pos==buffer_read) ++buffer_read; data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:1842:16: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). buffer_char=getc(disk_buffer); data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:1883:16: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). buffer_char=getc(disk_buffer); data/mlmmj-1.3.0/contrib/foot_filter/foot_filter.c:2653:4: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c=getchar(); data/mlmmj-1.3.0/contrib/receivestrip/mlmmj-receive-strip.c:88: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). len = strlen(headers[i]); data/mlmmj-1.3.0/contrib/receivestrip/mlmmj-receive-strip.c:129:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(*mime_type,pos,len); data/mlmmj-1.3.0/contrib/receivestrip/mlmmj-receive-strip.c:154:4: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(*boundary,pos,len); data/mlmmj-1.3.0/contrib/receivestrip/mlmmj-receive-strip.c:214:35: [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(writen(outfd, hdrs->strs[i], strlen(hdrs->strs[i])) < 0){ data/mlmmj-1.3.0/contrib/receivestrip/mlmmj-receive-strip.c:223: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). if(writen(outfd, UNWANTED_MIME_HDR,strlen(UNWANTED_MIME_HDR)) < 0){ data/mlmmj-1.3.0/contrib/receivestrip/mlmmj-receive-strip.c:271: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). if(boundary && !strncmp(line,boundary,strlen(boundary))){ data/mlmmj-1.3.0/contrib/receivestrip/mlmmj-receive-strip.c:274: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). if(strncmp(line + strlen(boundary),"--",2)){ data/mlmmj-1.3.0/contrib/receivestrip/mlmmj-receive-strip.c:282: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). if(writen(outfd, line, strlen(line)) < 0){ data/mlmmj-1.3.0/contrib/receivestrip/mlmmj-receive-strip.c:302:28: [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(writen(outfd, line, strlen(line)) < 0){ data/mlmmj-1.3.0/contrib/receivestrip/mlmmj-receive-strip.c:312:28: [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(writen(outfd, line, strlen(line)) < 0){ data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/chomp.c:39:6: [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). i = strlen(str) - 1; data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/dumpfd2fd.c:39:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((n = read(infd, &buf, sizeof(buf))) != 0) { data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/mygetline.c:42:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res = read(fd, &ch, 1); data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/readn.c:39:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((nread = read(fd, ptr, nleft)) < 0) { data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/strgen.c:53: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). size_t len = strlen(addr) + 128; data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/strgen.c:74: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). size_t len = strlen(headertoken) + strlen(str) + 2; data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/strgen.c:74:37: [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(headertoken) + strlen(str) + 2; data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/strgen.c:104: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). len = strlen(listaddr) - (atsign - listaddr); data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/strgen.c:124: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). len += strlen(str); data/mlmmj-1.3.0/contrib/receivestrip/mlmmj_src/strgen.c:234: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). len = strlen(qpstr); data/mlmmj-1.3.0/include/mlmmj-maintd.h:46:31: [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). writen(maintdlogfd, logstr, strlen(logstr)); \ data/mlmmj-1.3.0/include/mlmmj-maintd.h:52:31: [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). writen(maintdlogfd, logstr, strlen(logstr)); \ data/mlmmj-1.3.0/src/chomp.c:39:6: [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). i = strlen(str) - 1; data/mlmmj-1.3.0/src/ctrlvalue.c:58: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). i = strlen(value) - 1; data/mlmmj-1.3.0/src/do_all_the_voodoo_here.c:44: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(headers->strs[i]); data/mlmmj-1.3.0/src/do_all_the_voodoo_here.c:58: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). tokenlen = strlen(readhdrs[i].token); data/mlmmj-1.3.0/src/do_all_the_voodoo_here.c:61: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). valuelen = strlen(line) - tokenlen; data/mlmmj-1.3.0/src/do_all_the_voodoo_here.c:112:28: [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). writen(outfd, subject, strlen(subject)); data/mlmmj-1.3.0/src/do_all_the_voodoo_here.c:149: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). strlen(subject)); data/mlmmj-1.3.0/src/do_all_the_voodoo_here.c:161:28: [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). writen(outfd, unfolded, strlen(unfolded)); data/mlmmj-1.3.0/src/dumpfd2fd.c:39:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((n = read(infd, &buf, sizeof(buf))) != 0) { data/mlmmj-1.3.0/src/find_email_adr.c:88: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). nbuf = mymalloc(strlen(name) + 1); data/mlmmj-1.3.0/src/find_email_adr.c:179:33: [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). nbuf = (char *)myrealloc(nbuf, strlen(nbuf) + 1); data/mlmmj-1.3.0/src/find_email_adr.c:191: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). s = (char *)mymalloc(strlen(str) + 1); data/mlmmj-1.3.0/src/getaddrsfromfd.c:44:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(slist->strs[slist->count - 1], cur, len); data/mlmmj-1.3.0/src/getlistdelim.c:57: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(0 == strlen(delimstr)){ data/mlmmj-1.3.0/src/incindexfile.c:80: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). writen(fd, intbuf, strlen(intbuf)); data/mlmmj-1.3.0/src/itoa.c:32: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). for(i = 0, j = strlen(str) - 1; i < j; i++, j--) { data/mlmmj-1.3.0/src/listcontrol.c:148: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). cmdlen = strlen(ctrl_commands[ctrl].command); data/mlmmj-1.3.0/src/log_oper.c:77:3: [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 string. strncpy(ct, "Unknown time", sizeof(ct)); data/mlmmj-1.3.0/src/log_oper.c:100: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). if(writen(fd, logstr, strlen(logstr)) < 0) data/mlmmj-1.3.0/src/mail-functions.c:44: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). size_t len = (size_t)(strlen(hostname) + EXTRA_EHLO_LEN + 1); data/mlmmj-1.3.0/src/mail-functions.c:51: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). len = strlen(ehlo); data/mlmmj-1.3.0/src/mail-functions.c:68: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). size_t len = (size_t)(strlen(hostname) + EXTRA_HELO_LEN + 1); data/mlmmj-1.3.0/src/mail-functions.c:75: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). len = strlen(helo); data/mlmmj-1.3.0/src/mail-functions.c:92: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). size_t len = (size_t)(strlen(from_addr) + EXTRA_FROM_LEN + data/mlmmj-1.3.0/src/mail-functions.c:93: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(extra) + 1); data/mlmmj-1.3.0/src/mail-functions.c:106: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). len = strlen(mail_from); data/mlmmj-1.3.0/src/mail-functions.c:125: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). size_t len = (size_t)(strlen(rcpt_addr) + EXTRA_RCPT_LEN + 1); data/mlmmj-1.3.0/src/mail-functions.c:133: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). len = strlen(rcpt_to); data/mlmmj-1.3.0/src/mail-functions.c:174: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). if(writen(sockfd, tohdr, strlen(tohdr)) < 0) { data/mlmmj-1.3.0/src/mail-functions.c:210:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(r, cur, next - cur); data/mlmmj-1.3.0/src/mail-functions.c:212:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(r, newlinebuf, 2); data/mlmmj-1.3.0/src/mail-functions.c:249:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(r, cur, next - cur); data/mlmmj-1.3.0/src/mail-functions.c:258:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(r, newlinebuf, len); data/mlmmj-1.3.0/src/mail-functions.c:282: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). size_t len = strlen(line) + EXTRA_CUSTOM_LEN + 1; data/mlmmj-1.3.0/src/mail-functions.c:290: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). len = strlen(customline); data/mlmmj-1.3.0/src/mail-functions.c:293: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). fprintf(stderr, "strlen(customline) = [%d]\n", strlen(customline)); data/mlmmj-1.3.0/src/mail-functions.c:309: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). size_t len = (size_t)(strlen(replyaddr) + EXTRA_REPLYTO_LEN + 1); data/mlmmj-1.3.0/src/mail-functions.c:317: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). len = strlen(replyto); data/mlmmj-1.3.0/src/mlmmj-bounce.c:108: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). if(writen(fd, a, strlen(a)) < 0) data/mlmmj-1.3.0/src/mlmmj-bounce.c:387: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). ctime_r(&t, buf+strlen(buf)); data/mlmmj-1.3.0/src/mlmmj-bounce.c:388: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). writen(fd, buf, strlen(buf)); data/mlmmj-1.3.0/src/mlmmj-maintd.c:882: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 (s1 && (strlen(s1) > 0)) { data/mlmmj-1.3.0/src/mlmmj-process.c:419: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). delim += strlen(listdelim); data/mlmmj-1.3.0/src/mlmmj-process.c:431:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(*recipextra, delim, len); data/mlmmj-1.3.0/src/mlmmj-process.c:644: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). if (strncmp(envstr, listdelim, strlen(listdelim)) == 0) { data/mlmmj-1.3.0/src/mlmmj-process.c:645:35: [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). recipextra = mystrdup(envstr + strlen(listdelim)); data/mlmmj-1.3.0/src/mlmmj-process.c:701: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). if(recipextra && (strlen(recipextra) == 0)) { data/mlmmj-1.3.0/src/mlmmj-process.c:1142: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). if(writen(omitfd, posteraddr, strlen(posteraddr)) < 0) { data/mlmmj-1.3.0/src/mlmmj-send.c:86: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). len = strlen(myfilename); data/mlmmj-1.3.0/src/mlmmj-send.c:151: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). len = strlen(mylistadr) + strlen(listdelim) + strlen(myrecipient) data/mlmmj-1.3.0/src/mlmmj-send.c:151:28: [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(mylistadr) + strlen(listdelim) + strlen(myrecipient) data/mlmmj-1.3.0/src/mlmmj-send.c:151:48: [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(mylistadr) + strlen(listdelim) + strlen(myrecipient) data/mlmmj-1.3.0/src/mlmmj-send.c:152: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). + strlen(indexstr) + strlen(listdomain) + 11; data/mlmmj-1.3.0/src/mlmmj-send.c:152: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(indexstr) + strlen(listdomain) + 11; data/mlmmj-1.3.0/src/mlmmj-send.c:160: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). len += strlen(staticbounceaddr_localpart) + 1 data/mlmmj-1.3.0/src/mlmmj-send.c:161: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). + strlen(staticbounceaddr_domain); data/mlmmj-1.3.0/src/mlmmj-send.c:220:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(addr, myfrom, len); data/mlmmj-1.3.0/src/mlmmj-send.c:337:35: [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). retval = writen(sockfd, tohdr, strlen(tohdr)); data/mlmmj-1.3.0/src/mlmmj-send.c:707:28: [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(writen(addrfd, addr, strlen(addr)) < 0) { data/mlmmj-1.3.0/src/mlmmj-send.c:715: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). if(writen(addrfd, addr, strlen(addr)) < 0) { data/mlmmj-1.3.0/src/mlmmj-send.c:1075: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(listdir) + 9 + 20; data/mlmmj-1.3.0/src/mlmmj-send.c:1087:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(relay, RELAYHOST, sizeof(relay)); data/mlmmj-1.3.0/src/mlmmj-send.c:1091:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(relay, RELAYHOST, sizeof(relay)); data/mlmmj-1.3.0/src/mlmmj-send.c:1096:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(relay, RELAYHOST, sizeof(relay)); data/mlmmj-1.3.0/src/mlmmj-send.c:1129:31: [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). writen(tmpfd, bounceaddr, strlen(bounceaddr)); data/mlmmj-1.3.0/src/mlmmj-send.c:1142:28: [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). writen(tmpfd, to_addr, strlen(to_addr)); data/mlmmj-1.3.0/src/mlmmj-send.c:1158: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). strlen(replyto)); data/mlmmj-1.3.0/src/mlmmj-send.c:1430: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). len = strlen(listdir) + 9 + 20 + 9; data/mlmmj-1.3.0/src/mlmmj-sub.c:101: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(writen(fd, str, strlen(str)) < 0) { data/mlmmj-1.3.0/src/mlmmj-sub.c:434: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). if(writen(subconffd, subaddr, strlen(subaddr)) < 0) { data/mlmmj-1.3.0/src/mlmmj-sub.c:588:4: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(S_IWOTH); data/mlmmj-1.3.0/src/mlmmj-sub.c:634: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). len = strlen(address); data/mlmmj-1.3.0/src/mlmmj-sub.c:776: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). if(strncasecmp(listaddr, address, strlen(listaddr)) == 0) { data/mlmmj-1.3.0/src/mlmmj-unsub.c:192: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). if(writen(subconffd, subaddr, strlen(subaddr)) < 0) { data/mlmmj-1.3.0/src/mlmmj-unsub.c:257: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). size_t len = strlen(address) + 1; /* + 1 for the '\n' */ data/mlmmj-1.3.0/src/mlmmj-unsub.c:386:4: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(S_IWOTH); data/mlmmj-1.3.0/src/mygetline.c:42:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res = read(fd, &ch, 1); data/mlmmj-1.3.0/src/prepstdreply.c:157: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). len = strlen(lines); data/mlmmj-1.3.0/src/prepstdreply.c:528: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). filenamelen = strlen(filename); data/mlmmj-1.3.0/src/prepstdreply.c:531: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). len = type ? strlen(type) : 0; data/mlmmj-1.3.0/src/prepstdreply.c:536: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). len = reason ? strlen(reason) : 0; data/mlmmj-1.3.0/src/prepstdreply.c:541: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). len = action ? strlen(action) : 0; data/mlmmj-1.3.0/src/prepstdreply.c:634: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). src->prefixlen = strlen(line); data/mlmmj-1.3.0/src/prepstdreply.c:691: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). src->prefixlen = strlen(line); data/mlmmj-1.3.0/src/prepstdreply.c:714: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). *pos_p = line + strlen(*line_p); data/mlmmj-1.3.0/src/prepstdreply.c:1128: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). len = strlen(txt->src->upcoming); data/mlmmj-1.3.0/src/prepstdreply.c:1136: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). strlen(txt->src->prefix); data/mlmmj-1.3.0/src/prepstdreply.c:1211: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). len = strlen(prev); data/mlmmj-1.3.0/src/prepstdreply.c:1666: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). len = strlen(line); data/mlmmj-1.3.0/src/prepstdreply.c:1706: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). len = strlen(line); data/mlmmj-1.3.0/src/prepstdreply.c:1721: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(headers[i]); data/mlmmj-1.3.0/src/prepstdreply.c:1748: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). len = strlen(line); data/mlmmj-1.3.0/src/readn.c:39:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((nread = read(fd, ptr, nleft)) < 0) { data/mlmmj-1.3.0/src/send_digest.c:382: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). if (writen(fd, tmp, strlen(tmp)) < 0) { data/mlmmj-1.3.0/src/send_digest.c:422: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). if (writen(fd, tmp, strlen(tmp)) == -1) { data/mlmmj-1.3.0/src/send_digest.c:445: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). len = strlen(line); data/mlmmj-1.3.0/src/send_digest.c:482: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). if (writen(fd, tmp, strlen(tmp)) == -1) { data/mlmmj-1.3.0/src/send_digest.c:514: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). if (writen(fd, tmp, strlen(tmp)) == -1) { data/mlmmj-1.3.0/src/send_list.c:146: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). if (writen(fd, sub, strlen(sub)) < 0) { data/mlmmj-1.3.0/src/strgen.c:53: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). size_t len = strlen(addr) + 128; data/mlmmj-1.3.0/src/strgen.c:74: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). size_t len = strlen(headertoken) + strlen(str) + 2; data/mlmmj-1.3.0/src/strgen.c:74:37: [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(headertoken) + strlen(str) + 2; data/mlmmj-1.3.0/src/strgen.c:104: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). len = strlen(listaddr) - (atsign - listaddr); data/mlmmj-1.3.0/src/strgen.c:124: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). len += strlen(str); data/mlmmj-1.3.0/src/strgen.c:234: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). len = strlen(qpstr); data/mlmmj-1.3.0/src/subscriberfuncs.c:91: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(address) == len) && data/mlmmj-1.3.0/src/subscriberfuncs.c:102: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(address) == len) && data/mlmmj-1.3.0/src/unistr.c:341: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). *binary = mymalloc(strlen(str)); data/mlmmj-1.3.0/src/unistr.c:384: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). len = strlen(str); data/mlmmj-1.3.0/src/unistr.c:390: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). for (i=0; i<strlen(str); i++) { data/mlmmj-1.3.0/src/unistr.c:418:35: [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). unistr_append_usascii(ret, wsp, strlen(wsp)); ANALYSIS SUMMARY: Hits = 370 Lines analyzed = 18932 in approximately 0.55 seconds (34550 lines/second) Physical Source Lines of Code (SLOC) = 13840 Hits@level = [0] 145 [1] 151 [2] 129 [3] 22 [4] 68 [5] 0 Hits@level+ = [0+] 515 [1+] 370 [2+] 219 [3+] 90 [4+] 68 [5+] 0 Hits/KSLOC@level+ = [0+] 37.211 [1+] 26.7341 [2+] 15.8237 [3+] 6.50289 [4+] 4.91329 [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.