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/mysqmail-0.4.9/myconfig.c
Examining data/mysqmail-0.4.9/mysqmail-courier-logger.c
Examining data/mysqmail-0.4.9/mysqmail-qmail-logger.c
Examining data/mysqmail-0.4.9/mysqmail-postfix-logger.c
Examining data/mysqmail-0.4.9/mydaemon.h
Examining data/mysqmail-0.4.9/mydaemon.c
Examining data/mysqmail-0.4.9/mysqmail-pure-ftpd-logger.c
Examining data/mysqmail-0.4.9/myconfig.h
Examining data/mysqmail-0.4.9/mysqmail-dovecot-logger.c

FINAL RESULTS:

data/mysqmail-0.4.9/myconfig.c:34: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(mysqmail_config.mysql_hostname,cmd->data.str);
data/mysqmail-0.4.9/myconfig.c:39: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(mysqmail_config.mysql_user,cmd->data.str);
data/mysqmail-0.4.9/myconfig.c:44: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(mysqmail_config.mysql_pass,cmd->data.str);
data/mysqmail-0.4.9/myconfig.c:49: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(mysqmail_config.mysql_db,cmd->data.str);
data/mysqmail-0.4.9/myconfig.c:54: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(mysqmail_config.mysql_table_smtp_logs,cmd->data.str);
data/mysqmail-0.4.9/myconfig.c:59: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(mysqmail_config.mysql_table_pop_access,cmd->data.str);
data/mysqmail-0.4.9/myconfig.c:64: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(mysqmail_config.mysql_table_scoreboard,cmd->data.str);
data/mysqmail-0.4.9/myconfig.c:69: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(mysqmail_config.mysql_table_domain,cmd->data.str);
data/mysqmail-0.4.9/mydaemon.c:129:2:  [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(pid_fn,daemon_name);
data/mysqmail-0.4.9/mydaemon.c:150:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if( access("/var/log/syslog", R_OK) == 0){
data/mysqmail-0.4.9/mydaemon.c:153:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		}else if( access("/var/log/messages", R_OK) == 0){
data/mysqmail-0.4.9/mydaemon.c:160:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if( access(file_path, R_OK) != 0){
data/mysqmail-0.4.9/mydaemon.c:171:3:  [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(tail_cmd,file_path);
data/mysqmail-0.4.9/mydaemon.c:174:11:  [4] (shell) popen:
  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.
	fifo_p = popen(tail_cmd,"r");
data/mysqmail-0.4.9/mysqmail-courier-logger.c:171:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query,"INSERT IGNORE INTO %s (domain_name,month,year) VALUES ('%s','%s','%s');"
data/mysqmail-0.4.9/mysqmail-courier-logger.c:178:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query,"UPDATE %s SET pop_trafic=pop_trafic+%ld WHERE domain_name='%s' AND month='%s' AND year='%s'"
data/mysqmail-0.4.9/mysqmail-courier-logger.c:184:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query,"UPDATE %s SET pop3_login_count=pop3_login_count+1 , pop3_transfered_bytes=pop3_transfered_bytes+%ld,last_login=%ld WHERE id='%s' AND mbox_host='%s';", mysqmail_config.mysql_table_pop_access,mysqmail_bytes,tv.tv_sec,user,domain);
data/mysqmail-0.4.9/mysqmail-courier-logger.c:189:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query,"INSERT IGNORE INTO %s (domain_name,month,year) VALUES ('%s','%s','%s');"
data/mysqmail-0.4.9/mysqmail-courier-logger.c:195:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query,"UPDATE %s SET imap_trafic=imap_trafic+%ld \
data/mysqmail-0.4.9/mysqmail-courier-logger.c:202:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query,"UPDATE %s SET imap_login_count=imap_login_count+1 , imap_transfered_bytes=imap_transfered_bytes+%ld,last_login=%ld WHERE id='%s' AND mbox_host='%s';", mysqmail_config.mysql_table_pop_access,mysqmail_bytes,tv.tv_sec,user,domain);
data/mysqmail-0.4.9/mysqmail-dovecot-logger.c:114: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( user_str, words[5] + strlen("IMAP(") );
data/mysqmail-0.4.9/mysqmail-dovecot-logger.c:154:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query,"INSERT IGNORE INTO %s (domain_name,month,year) VALUES ('%s','%s','%s');"
data/mysqmail-0.4.9/mysqmail-dovecot-logger.c:161:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query,"UPDATE %s SET pop_trafic=pop_trafic+%ld WHERE domain_name='%s' AND month='%s' AND year='%s'"
data/mysqmail-0.4.9/mysqmail-dovecot-logger.c:168:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query,"UPDATE %s SET pop3_login_count=pop3_login_count+1 , pop3_transfered_bytes=pop3_transfered_bytes+%ld,last_login=%ld WHERE id='%s' AND mbox_host='%s';", mysqmail_config.mysql_table_pop_access,mysqmail_bytes,tv.tv_sec,user,domain);
data/mysqmail-0.4.9/mysqmail-dovecot-logger.c:190:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query,"INSERT IGNORE INTO %s (domain_name,month,year) VALUES ('%s','%s','%s');"
data/mysqmail-0.4.9/mysqmail-dovecot-logger.c:197:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query,"UPDATE %s SET imap_trafic=imap_trafic+%ld \
data/mysqmail-0.4.9/mysqmail-dovecot-logger.c:205:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query,"UPDATE %s SET imap_login_count=imap_login_count+1 , imap_transfered_bytes=imap_transfered_bytes+%ld,last_login=%ld WHERE id='%s' AND mbox_host='%s';", mysqmail_config.mysql_table_pop_access,mysqmail_bytes,tv.tv_sec,user,domain);
data/mysqmail-0.4.9/mysqmail-postfix-logger.c:46:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(query,"DELETE FROM %s WHERE newmsg_id=NULL;",
data/mysqmail-0.4.9/mysqmail-postfix-logger.c:276:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query,"INSERT INTO %s (sender_user, sender_domain, bytes, delivery_id_text) VALUES ('%s','%s','%s','%s');", smtp_logs, sender_user, sender_domain, values[M_SIZE], delivery_id);
data/mysqmail-0.4.9/mysqmail-postfix-logger.c:304:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query,"SELECT bytes, sender_domain FROM %s WHERE delivery_id_text='%s'"
data/mysqmail-0.4.9/mysqmail-postfix-logger.c:340:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query,"SELECT owner,name FROM %s WHERE name='%s'",
data/mysqmail-0.4.9/mysqmail-postfix-logger.c:362:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(query,"INSERT IGNORE INTO %s (domain_name,month,year) VALUES ('%s','%s','%s')"
data/mysqmail-0.4.9/mysqmail-postfix-logger.c:367:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(query,"UPDATE %s SET smtp_trafic=smtp_trafic+%s WHERE domain_name='%s' AND month='%s' AND year='%s';",
data/mysqmail-0.4.9/mysqmail-postfix-logger.c:376:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(query,"SELECT owner,name FROM %s WHERE name='%s'",
data/mysqmail-0.4.9/mysqmail-postfix-logger.c:398:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(query,"INSERT IGNORE INTO %s (domain_name,month,year) VALUES ('%s','%s','%s')"
data/mysqmail-0.4.9/mysqmail-postfix-logger.c:403:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(query,"UPDATE %s SET smtp_trafic=smtp_trafic+%s WHERE domain_name='%s' AND month='%s' AND year='%s';",
data/mysqmail-0.4.9/mysqmail-postfix-logger.c:420:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query,"DELETE FROM %s WHERE delivery_id_text='%s'", smtp_logs, delivery_id);
data/mysqmail-0.4.9/mysqmail-pure-ftpd-logger.c:72:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(query,"INSERT IGNORE INTO %s (id,sub_domain,transfer,hits,month,year) VALUES ('','%s','0','0',%s,%s)",
data/mysqmail-0.4.9/mysqmail-pure-ftpd-logger.c:78:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(query,"UPDATE %s SET transfer=transfer+%s,hits=hits+1 WHERE sub_domain='%s' AND month='%s' AND year='%s'",
data/mysqmail-0.4.9/mysqmail-pure-ftpd-logger.c:106: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(logline_cpy,logline);
data/mysqmail-0.4.9/mysqmail-pure-ftpd-logger.c:125:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query,"SELECT hostname FROM %s WHERE login='%s';","ftp_access",words[2]);
data/mysqmail-0.4.9/mysqmail-pure-ftpd-logger.c:143:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(query,"UPDATE %s SET dl_count=dl_count+1, dl_bytes=dl_bytes+%s WHERE login='%s'","ftp_access",words[num_words-1],words[2]);
data/mysqmail-0.4.9/mysqmail-pure-ftpd-logger.c:146:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(query,"UPDATE %s SET ul_count=dl_count+1, ul_bytes=ul_bytes+%s WHERE login='%s'","ftp_access",words[num_words-1],words[2]);
data/mysqmail-0.4.9/mysqmail-pure-ftpd-logger.c:184:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if( access("/var/log/pure-ftpd/transfer.log", R_OK) == 0){
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:45:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(query,"DELETE FROM %s WHERE newmsg_id=NULL;", mysqmail_config.mysql_table_smtp_logs);
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:114:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(ds,"Found %d words: %s",num_words,ds2);
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:136:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(query,"UPDATE %s SET bytes='%s',newmsg_id='%s' WHERE bounce_qp='%s';",
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:145:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(query,"INSERT INTO %s (time_stamp,newmsg_id,bytes,sender_user,sender_domain) VALUES('%ld','%s','%s','%s','%s')",
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:152:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(ds,"Founded statring delivery %s",words[SKIP_WORD+2]);
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:177:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(query,"UPDATE %s SET delivery_id='%s',delivery_user='%s',delivery_domain='%s' WHERE newmsg_id='%s';",
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:180:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(query,"UPDATE %s SET delivery_id='%s',delivery_user='%s',delivery_domain='%s' WHERE newmsg_id='%s';",
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:185:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(ds,"Founded delivery #%s",words[SKIP_WORD+1]);
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:190:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(query,"UPDATE %s SET delivery_success='yes',delivery_id=NULL WHERE delivery_id='%s';",
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:200:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(ds,"Founded bounce #%s",words[SKIP_WORD+4]);
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:201:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query,"UPDATE %s SET bounce_qp='%s' WHERE newmsg_id='%s';",
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:205:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(ds,"Founded tripple bounce #%s",words[SKIP_WORD+3]);
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:208:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query,"DELETE FROM %s WHERE newmsg_id='%s';",
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:222:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query,"SELECT * FROM %s WHERE newmsg_id='%s';",
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:256:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(query,"SELECT name FROM %s WHERE name='%s'"
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:268:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(query,"INSERT IGNORE INTO %s (domain_name,month,year) VALUES ('%s','%s','%s');"
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:275:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(query,"UPDATE %s SET pop_trafic=pop_trafic+%s \
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:285:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(query,"SELECT name FROM %s WHERE name='%s'"
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:297:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(query,"INSERT IGNORE INTO %s (domain_name,month,year) VALUES ('%s','%s','%s');"
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:304:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(query,"UPDATE %s SET pop_trafic=pop_trafic+%s \
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:316:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query,"DELETE FROM %s WHERE newmsg_id='%s';",
data/mysqmail-0.4.9/mydaemon.c:26: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 pid_fn[8096];
data/mysqmail-0.4.9/mydaemon.c:128: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(pid_fn,"/var/run/");
data/mysqmail-0.4.9/mydaemon.c:130:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(pid_fn,".pid");
data/mysqmail-0.4.9/mydaemon.c:131:7:  [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).
	fp = fopen(pid_fn,"w");
data/mysqmail-0.4.9/mydaemon.c:144:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char logline[MAX_LOG_LINE+1];
data/mysqmail-0.4.9/mydaemon.c:170:3:  [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(tail_cmd,"tail -n 0 -F ");
data/mysqmail-0.4.9/mysqmail-courier-logger.c:54:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		return atoi(value);
data/mysqmail-0.4.9/mysqmail-courier-logger.c:67: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 query[MAX_QUERY_SIZE+1]="";
data/mysqmail-0.4.9/mysqmail-courier-logger.c:78: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 sql_month[60];
data/mysqmail-0.4.9/mysqmail-courier-logger.c:79: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 sql_year[60];
data/mysqmail-0.4.9/mysqmail-courier-logger.c:94: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 *values[NUM_KEYWORDS+1];
data/mysqmail-0.4.9/mysqmail-dovecot-logger.c:57:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		return atoi(value);
data/mysqmail-0.4.9/mysqmail-dovecot-logger.c:70: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 query[MAX_QUERY_SIZE+1]="";
data/mysqmail-0.4.9/mysqmail-dovecot-logger.c:81: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 sql_month[60];
data/mysqmail-0.4.9/mysqmail-dovecot-logger.c:82: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 sql_year[60];
data/mysqmail-0.4.9/mysqmail-dovecot-logger.c:152:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		mysqmail_bytes += atoi(bytes_fld);
data/mysqmail-0.4.9/mysqmail-dovecot-logger.c:182:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		mysqmail_bytes += atoi(bytes_fld);
data/mysqmail-0.4.9/mysqmail-dovecot-logger.c:187:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			mysqmail_bytes += atoi(bytes_fld);
data/mysqmail-0.4.9/mysqmail-postfix-logger.c:45: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 query[256]="";
data/mysqmail-0.4.9/mysqmail-postfix-logger.c:112: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 query[MAX_QUERY_SIZE+1]="";
data/mysqmail-0.4.9/mysqmail-postfix-logger.c:141: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 *values[NUM_KEYWORDS+1];
data/mysqmail-0.4.9/mysqmail-postfix-logger.c:285:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char sql_month[60];
data/mysqmail-0.4.9/mysqmail-postfix-logger.c:286:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char sql_year[60];
data/mysqmail-0.4.9/mysqmail-pure-ftpd-logger.c:61: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 query[1024]="";
data/mysqmail-0.4.9/mysqmail-pure-ftpd-logger.c:62:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char sql_month[60];
data/mysqmail-0.4.9/mysqmail-pure-ftpd-logger.c:63:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char sql_year[60];
data/mysqmail-0.4.9/mysqmail-pure-ftpd-logger.c:88: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 query[MAX_QUERY_SIZE+1]="";
data/mysqmail-0.4.9/mysqmail-pure-ftpd-logger.c:93:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char logline_cpy[MAX_LOGLINE_SIZE+2];
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:44: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 query[256]="";
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:87: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 query[MAX_QUERY_SIZE+1]="";
data/mysqmail-0.4.9/mysqmail-qmail-logger.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 ds[1024];
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:123:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(ds,"Founded not parsable log line.");
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:128:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(ds,"Founded info");
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:162:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char tmp2[256];
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:241:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char sql_month[60];
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:242:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char sql_year[60];
data/mysqmail-0.4.9/myconfig.c:33: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).
	mysqmail_config.mysql_hostname = (char*)malloc(strlen(cmd->data.str)+1);
data/mysqmail-0.4.9/myconfig.c:38:45:  [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).
	mysqmail_config.mysql_user = (char*)malloc(strlen(cmd->data.str)+1);
data/mysqmail-0.4.9/myconfig.c:43:45:  [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).
	mysqmail_config.mysql_pass = (char*)malloc(strlen(cmd->data.str)+1);
data/mysqmail-0.4.9/myconfig.c:48:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mysqmail_config.mysql_db = (char*)malloc(strlen(cmd->data.str)+1);
data/mysqmail-0.4.9/myconfig.c:53:56:  [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).
	mysqmail_config.mysql_table_smtp_logs = (char*)malloc(strlen(cmd->data.str)+1);
data/mysqmail-0.4.9/myconfig.c:58:57:  [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).
	mysqmail_config.mysql_table_pop_access = (char*)malloc(strlen(cmd->data.str)+1);
data/mysqmail-0.4.9/myconfig.c:63:57:  [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).
	mysqmail_config.mysql_table_scoreboard = (char*)malloc(strlen(cmd->data.str)+1);
data/mysqmail-0.4.9/myconfig.c:68:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mysqmail_config.mysql_table_domain = (char*)malloc(strlen(cmd->data.str)+1);
data/mysqmail-0.4.9/mydaemon.c:166: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).
		tail_cmd = malloc( strlen("tail -n 0 -F ") + strlen(file_path) + 1);
data/mysqmail-0.4.9/mydaemon.c:166: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).
		tail_cmd = malloc( strlen("tail -n 0 -F ") + strlen(file_path) + 1);
data/mysqmail-0.4.9/mysqmail-courier-logger.c:130: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).
				cur_p += strlen(keywords[j]) + 1;
data/mysqmail-0.4.9/mysqmail-courier-logger.c:131: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).
				end = cur_p + strlen(cur_p) - 1;
data/mysqmail-0.4.9/mysqmail-courier-logger.c:159: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).
		user[strlen(user) - strlen(domain)] = 0; //strip off the domain portion
data/mysqmail-0.4.9/mysqmail-courier-logger.c:159: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).
		user[strlen(user) - strlen(domain)] = 0; //strip off the domain portion
data/mysqmail-0.4.9/mysqmail-dovecot-logger.c:109: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).
	user_str = malloc( strlen(words[5]) + 1);
data/mysqmail-0.4.9/mysqmail-dovecot-logger.c:114: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).
	strcpy( user_str, words[5] + strlen("IMAP(") );
data/mysqmail-0.4.9/mysqmail-dovecot-logger.c:115: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).
	user_str[ strlen(user_str) ] = '\0';
data/mysqmail-0.4.9/mysqmail-dovecot-logger.c:123: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).
		user[strlen(user) - strlen(domain)] = 0; //strip off the domain portion
data/mysqmail-0.4.9/mysqmail-dovecot-logger.c:123: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).
		user[strlen(user) - strlen(domain)] = 0; //strip off the domain portion
data/mysqmail-0.4.9/mysqmail-dovecot-logger.c:128: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).
	domain[strlen(domain) - 2] = 0;
data/mysqmail-0.4.9/mysqmail-dovecot-logger.c:144: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).
		bytes_fld += strlen("retr=");
data/mysqmail-0.4.9/mysqmail-dovecot-logger.c:181: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).
		bytes_fld = bytes_fld + strlen("bytes=");
data/mysqmail-0.4.9/mysqmail-postfix-logger.c:79: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(source);
data/mysqmail-0.4.9/mysqmail-postfix-logger.c:89:5:  [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(domain_tmp) < 4)	return 0;	// and at least 4 chars after
data/mysqmail-0.4.9/mysqmail-postfix-logger.c:93:5:  [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(source) < 1)	return 0;
data/mysqmail-0.4.9/mysqmail-postfix-logger.c:152: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).
	end = logline + strlen(logline);
data/mysqmail-0.4.9/mysqmail-postfix-logger.c:161: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).
	cur_p += strlen(cur_p) + 1;
data/mysqmail-0.4.9/mysqmail-postfix-logger.c:223: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( strncmp(cur_p, keywords[j],strlen(keywords[j]))==0){
data/mysqmail-0.4.9/mysqmail-postfix-logger.c:224: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).
					cur_p += strlen(keywords[j]) + 1;
data/mysqmail-0.4.9/mysqmail-postfix-logger.c:261: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).
	if( strlen(cur_p) != 12 || cur_p[11] != ':'){
data/mysqmail-0.4.9/mysqmail-postfix-logger.c:291:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if( strncmp(values[M_STATUS], "sent",strlen("sent")) !=0){
data/mysqmail-0.4.9/mysqmail-pure-ftpd-logger.c:102: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).
	if( strlen(logline) > MAX_LOG_WORDS ){
data/mysqmail-0.4.9/mysqmail-pure-ftpd-logger.c:117:2:  [1] (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 character.
	strcpy(query,"");
data/mysqmail-0.4.9/mysqmail-pure-ftpd-logger.c:149:5:  [1] (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 character.
				strcpy(query,"");
data/mysqmail-0.4.9/mysqmail-pure-ftpd-logger.c:153:4:  [1] (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 character.
			strcpy(query,"");
data/mysqmail-0.4.9/mysqmail-pure-ftpd-logger.c:163:5:  [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(query)!=0){
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:116:2:  [1] (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 character.
	strcpy(query,"");
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:122:3:  [1] (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 character.
		strcpy(query,"");
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:131: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).
		msg_id[ (strlen(msg_id)-1) ] = 0;
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:143: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).
				sender_domain[ (strlen(sender_domain)-1) ] = 0;
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:154: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).
		delivery_id[strlen(delivery_id)-1] = 0;	// Remove the :
data/mysqmail-0.4.9/mysqmail-qmail-logger.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).
			if(strlen(delivery_user)>strlen(delivery_domain)){
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:161: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(strlen(delivery_user)>strlen(delivery_domain)){
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:164:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(tmp2,delivery_domain,254);
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:173: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(!strncmp(delivery_user,tmp2,strlen(tmp2))){
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:174: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).
					delivery_user += strlen(tmp2);
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:187: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).
		delivery_id[strlen(delivery_id)-1] = 0;
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:207: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).
		tmp += strlen("bounce/");
data/mysqmail-0.4.9/mysqmail-qmail-logger.c:324:5:  [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(query)!=0){

ANALYSIS SUMMARY:

Hits = 150
Lines analyzed = 1723 in approximately 0.08 seconds (22777 lines/second)
Physical Source Lines of Code (SLOC) = 1336
Hits@level = [0]  67 [1]  49 [2]  36 [3]   0 [4]  65 [5]   0
Hits@level+ = [0+] 217 [1+] 150 [2+] 101 [3+]  65 [4+]  65 [5+]   0
Hits/KSLOC@level+ = [0+] 162.425 [1+] 112.275 [2+] 75.5988 [3+] 48.6527 [4+] 48.6527 [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.