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/postfix-3.5.6/auxiliary/name-addr-test/getaddrinfo.c
Examining data/postfix-3.5.6/auxiliary/name-addr-test/gethostbyaddr.c
Examining data/postfix-3.5.6/auxiliary/name-addr-test/gethostbyname.c
Examining data/postfix-3.5.6/auxiliary/name-addr-test/getnameinfo.c
Examining data/postfix-3.5.6/src/anvil/anvil.c
Examining data/postfix-3.5.6/src/bounce/bounce_cleanup.c
Examining data/postfix-3.5.6/src/bounce/bounce.c
Examining data/postfix-3.5.6/src/bounce/bounce_append_service.c
Examining data/postfix-3.5.6/src/bounce/bounce_notify_service.c
Examining data/postfix-3.5.6/src/bounce/bounce_notify_util.c
Examining data/postfix-3.5.6/src/bounce/bounce_notify_verp.c
Examining data/postfix-3.5.6/src/bounce/bounce_one_service.c
Examining data/postfix-3.5.6/src/bounce/bounce_service.h
Examining data/postfix-3.5.6/src/bounce/bounce_template.c
Examining data/postfix-3.5.6/src/bounce/bounce_template.h
Examining data/postfix-3.5.6/src/bounce/bounce_templates.c
Examining data/postfix-3.5.6/src/bounce/bounce_trace_service.c
Examining data/postfix-3.5.6/src/bounce/bounce_warn_service.c
Examining data/postfix-3.5.6/src/cleanup/cleanup_body_edit.c
Examining data/postfix-3.5.6/src/cleanup/cleanup.c
Examining data/postfix-3.5.6/src/cleanup/cleanup.h
Examining data/postfix-3.5.6/src/cleanup/cleanup_addr.c
Examining data/postfix-3.5.6/src/cleanup/cleanup_api.c
Examining data/postfix-3.5.6/src/cleanup/cleanup_masquerade.c
Examining data/postfix-3.5.6/src/cleanup/cleanup_bounce.c
Examining data/postfix-3.5.6/src/cleanup/cleanup_envelope.c
Examining data/postfix-3.5.6/src/cleanup/cleanup_extracted.c
Examining data/postfix-3.5.6/src/cleanup/cleanup_final.c
Examining data/postfix-3.5.6/src/cleanup/cleanup_init.c
Examining data/postfix-3.5.6/src/cleanup/cleanup_map11.c
Examining data/postfix-3.5.6/src/cleanup/cleanup_map1n.c
Examining data/postfix-3.5.6/src/cleanup/cleanup_message.c
Examining data/postfix-3.5.6/src/cleanup/cleanup_milter.c
Examining data/postfix-3.5.6/src/cleanup/cleanup_out.c
Examining data/postfix-3.5.6/src/cleanup/cleanup_out_recipient.c
Examining data/postfix-3.5.6/src/cleanup/cleanup_region.c
Examining data/postfix-3.5.6/src/cleanup/cleanup_rewrite.c
Examining data/postfix-3.5.6/src/cleanup/cleanup_state.c
Examining data/postfix-3.5.6/src/discard/discard.c
Examining data/postfix-3.5.6/src/dns/dns_lookup.c
Examining data/postfix-3.5.6/src/dns/dns.h
Examining data/postfix-3.5.6/src/dns/dns_rr_eq_sa.c
Examining data/postfix-3.5.6/src/dns/dns_rr.c
Examining data/postfix-3.5.6/src/dns/dns_rr_filter.c
Examining data/postfix-3.5.6/src/dns/dns_rr_to_pa.c
Examining data/postfix-3.5.6/src/dns/dns_rr_to_sa.c
Examining data/postfix-3.5.6/src/dns/dns_sa_to_rr.c
Examining data/postfix-3.5.6/src/dns/dns_str_resflags.c
Examining data/postfix-3.5.6/src/dns/dns_strerror.c
Examining data/postfix-3.5.6/src/dns/dns_strrecord.c
Examining data/postfix-3.5.6/src/dns/dns_strtype.c
Examining data/postfix-3.5.6/src/dns/test_dns_lookup.c
Examining data/postfix-3.5.6/src/dnsblog/dnsblog.c
Examining data/postfix-3.5.6/src/error/error.c
Examining data/postfix-3.5.6/src/flush/flush.c
Examining data/postfix-3.5.6/src/fsstone/fsstone.c
Examining data/postfix-3.5.6/src/global/addr_match_list.c
Examining data/postfix-3.5.6/src/global/abounce.c
Examining data/postfix-3.5.6/src/global/abounce.h
Examining data/postfix-3.5.6/src/global/header_body_checks.c
Examining data/postfix-3.5.6/src/global/addr_match_list.h
Examining data/postfix-3.5.6/src/global/anvil_clnt.c
Examining data/postfix-3.5.6/src/global/anvil_clnt.h
Examining data/postfix-3.5.6/src/global/attr_override.c
Examining data/postfix-3.5.6/src/global/attr_override.h
Examining data/postfix-3.5.6/src/global/been_here.c
Examining data/postfix-3.5.6/src/global/been_here.h
Examining data/postfix-3.5.6/src/global/bounce.c
Examining data/postfix-3.5.6/src/global/bounce.h
Examining data/postfix-3.5.6/src/global/bounce_log.c
Examining data/postfix-3.5.6/src/global/bounce_log.h
Examining data/postfix-3.5.6/src/global/canon_addr.c
Examining data/postfix-3.5.6/src/global/canon_addr.h
Examining data/postfix-3.5.6/src/global/cfg_parser.c
Examining data/postfix-3.5.6/src/global/cfg_parser.h
Examining data/postfix-3.5.6/src/global/cleanup_strerror.c
Examining data/postfix-3.5.6/src/global/cleanup_strflags.c
Examining data/postfix-3.5.6/src/global/cleanup_user.h
Examining data/postfix-3.5.6/src/global/clnt_stream.c
Examining data/postfix-3.5.6/src/global/clnt_stream.h
Examining data/postfix-3.5.6/src/global/config.h
Examining data/postfix-3.5.6/src/global/conv_time.c
Examining data/postfix-3.5.6/src/global/conv_time.h
Examining data/postfix-3.5.6/src/global/data_redirect.c
Examining data/postfix-3.5.6/src/global/data_redirect.h
Examining data/postfix-3.5.6/src/global/db_common.c
Examining data/postfix-3.5.6/src/global/db_common.h
Examining data/postfix-3.5.6/src/global/debug_peer.c
Examining data/postfix-3.5.6/src/global/debug_peer.h
Examining data/postfix-3.5.6/src/global/debug_process.c
Examining data/postfix-3.5.6/src/global/debug_process.h
Examining data/postfix-3.5.6/src/global/defer.c
Examining data/postfix-3.5.6/src/global/defer.h
Examining data/postfix-3.5.6/src/global/deliver_completed.c
Examining data/postfix-3.5.6/src/global/deliver_completed.h
Examining data/postfix-3.5.6/src/global/deliver_flock.c
Examining data/postfix-3.5.6/src/global/deliver_flock.h
Examining data/postfix-3.5.6/src/global/deliver_pass.c
Examining data/postfix-3.5.6/src/global/deliver_pass.h
Examining data/postfix-3.5.6/src/global/deliver_request.c
Examining data/postfix-3.5.6/src/global/deliver_request.h
Examining data/postfix-3.5.6/src/global/delivered_hdr.c
Examining data/postfix-3.5.6/src/global/delivered_hdr.h
Examining data/postfix-3.5.6/src/global/dict_ldap.h
Examining data/postfix-3.5.6/src/global/dict_memcache.c
Examining data/postfix-3.5.6/src/global/dict_memcache.h
Examining data/postfix-3.5.6/src/global/dict_mysql.c
Examining data/postfix-3.5.6/src/global/dict_mysql.h
Examining data/postfix-3.5.6/src/global/dict_pgsql.c
Examining data/postfix-3.5.6/src/global/dict_pgsql.h
Examining data/postfix-3.5.6/src/global/dict_proxy.c
Examining data/postfix-3.5.6/src/global/dict_proxy.h
Examining data/postfix-3.5.6/src/global/dict_sqlite.c
Examining data/postfix-3.5.6/src/global/dict_sqlite.h
Examining data/postfix-3.5.6/src/global/domain_list.c
Examining data/postfix-3.5.6/src/global/domain_list.h
Examining data/postfix-3.5.6/src/global/dot_lockfile.c
Examining data/postfix-3.5.6/src/global/dot_lockfile.h
Examining data/postfix-3.5.6/src/global/dot_lockfile_as.c
Examining data/postfix-3.5.6/src/global/dot_lockfile_as.h
Examining data/postfix-3.5.6/src/global/dsb_scan.c
Examining data/postfix-3.5.6/src/global/dsb_scan.h
Examining data/postfix-3.5.6/src/global/dsn.c
Examining data/postfix-3.5.6/src/global/dsn.h
Examining data/postfix-3.5.6/src/global/dsn_buf.c
Examining data/postfix-3.5.6/src/global/dsn_buf.h
Examining data/postfix-3.5.6/src/global/dsn_filter.c
Examining data/postfix-3.5.6/src/global/dsn_filter.h
Examining data/postfix-3.5.6/src/global/dsn_mask.c
Examining data/postfix-3.5.6/src/global/dsn_mask.h
Examining data/postfix-3.5.6/src/global/dsn_print.c
Examining data/postfix-3.5.6/src/global/dsn_print.h
Examining data/postfix-3.5.6/src/global/dsn_util.c
Examining data/postfix-3.5.6/src/global/dsn_util.h
Examining data/postfix-3.5.6/src/global/dynamicmaps.c
Examining data/postfix-3.5.6/src/global/dynamicmaps.h
Examining data/postfix-3.5.6/src/global/ehlo_mask.c
Examining data/postfix-3.5.6/src/global/ehlo_mask.h
Examining data/postfix-3.5.6/src/global/maps.c
Examining data/postfix-3.5.6/src/global/ext_prop.c
Examining data/postfix-3.5.6/src/global/ext_prop.h
Examining data/postfix-3.5.6/src/global/file_id.c
Examining data/postfix-3.5.6/src/global/file_id.h
Examining data/postfix-3.5.6/src/global/flush_clnt.c
Examining data/postfix-3.5.6/src/global/flush_clnt.h
Examining data/postfix-3.5.6/src/global/fold_addr.c
Examining data/postfix-3.5.6/src/global/fold_addr.h
Examining data/postfix-3.5.6/src/global/haproxy_srvr.c
Examining data/postfix-3.5.6/src/global/haproxy_srvr.h
Examining data/postfix-3.5.6/src/global/header_body_checks.h
Examining data/postfix-3.5.6/src/global/header_opts.c
Examining data/postfix-3.5.6/src/global/mail_params.h
Examining data/postfix-3.5.6/src/global/mail_run.c
Examining data/postfix-3.5.6/src/global/header_opts.h
Examining data/postfix-3.5.6/src/global/header_token.c
Examining data/postfix-3.5.6/src/global/header_token.h
Examining data/postfix-3.5.6/src/global/info_log_addr_form.c
Examining data/postfix-3.5.6/src/global/info_log_addr_form.h
Examining data/postfix-3.5.6/src/global/input_transp.c
Examining data/postfix-3.5.6/src/global/input_transp.h
Examining data/postfix-3.5.6/src/global/int_filt.c
Examining data/postfix-3.5.6/src/global/int_filt.h
Examining data/postfix-3.5.6/src/global/is_header.c
Examining data/postfix-3.5.6/src/global/is_header.h
Examining data/postfix-3.5.6/src/global/lex_822.h
Examining data/postfix-3.5.6/src/global/log_adhoc.c
Examining data/postfix-3.5.6/src/global/log_adhoc.h
Examining data/postfix-3.5.6/src/global/mail_addr.c
Examining data/postfix-3.5.6/src/global/mail_addr.h
Examining data/postfix-3.5.6/src/global/mail_addr_crunch.c
Examining data/postfix-3.5.6/src/global/mail_addr_crunch.h
Examining data/postfix-3.5.6/src/global/mail_addr_find.c
Examining data/postfix-3.5.6/src/global/mail_addr_find.h
Examining data/postfix-3.5.6/src/global/mail_addr_form.c
Examining data/postfix-3.5.6/src/global/mail_addr_form.h
Examining data/postfix-3.5.6/src/global/mail_addr_map.c
Examining data/postfix-3.5.6/src/global/mail_addr_map.h
Examining data/postfix-3.5.6/src/global/mail_command_client.c
Examining data/postfix-3.5.6/src/global/mail_command_server.c
Examining data/postfix-3.5.6/src/global/mail_conf.c
Examining data/postfix-3.5.6/src/global/mail_conf.h
Examining data/postfix-3.5.6/src/global/mail_conf_bool.c
Examining data/postfix-3.5.6/src/global/mail_conf_int.c
Examining data/postfix-3.5.6/src/global/mail_conf_raw.c
Examining data/postfix-3.5.6/src/global/mail_conf_long.c
Examining data/postfix-3.5.6/src/global/mail_conf_nbool.c
Examining data/postfix-3.5.6/src/global/mail_conf_nint.c
Examining data/postfix-3.5.6/src/global/mail_conf_str.c
Examining data/postfix-3.5.6/src/global/mail_conf_time.c
Examining data/postfix-3.5.6/src/global/mail_connect.c
Examining data/postfix-3.5.6/src/global/mail_copy.c
Examining data/postfix-3.5.6/src/global/mail_copy.h
Examining data/postfix-3.5.6/src/global/mail_date.c
Examining data/postfix-3.5.6/src/global/mail_date.h
Examining data/postfix-3.5.6/src/global/mail_dict.c
Examining data/postfix-3.5.6/src/global/mail_dict.h
Examining data/postfix-3.5.6/src/global/mail_error.c
Examining data/postfix-3.5.6/src/global/mail_error.h
Examining data/postfix-3.5.6/src/global/mail_flush.c
Examining data/postfix-3.5.6/src/global/mail_flush.h
Examining data/postfix-3.5.6/src/global/mail_open_ok.c
Examining data/postfix-3.5.6/src/global/mail_open_ok.h
Examining data/postfix-3.5.6/src/global/mail_params.c
Examining data/postfix-3.5.6/src/global/match_parent_style.c
Examining data/postfix-3.5.6/src/global/mail_parm_split.c
Examining data/postfix-3.5.6/src/global/mail_parm_split.h
Examining data/postfix-3.5.6/src/global/mail_pathname.c
Examining data/postfix-3.5.6/src/global/mail_proto.h
Examining data/postfix-3.5.6/src/global/mail_queue.c
Examining data/postfix-3.5.6/src/global/mail_queue.h
Examining data/postfix-3.5.6/src/global/mail_run.h
Examining data/postfix-3.5.6/src/global/mail_scan_dir.c
Examining data/postfix-3.5.6/src/global/mail_scan_dir.h
Examining data/postfix-3.5.6/src/global/mail_stream.c
Examining data/postfix-3.5.6/src/global/mail_stream.h
Examining data/postfix-3.5.6/src/global/mail_task.c
Examining data/postfix-3.5.6/src/global/mail_task.h
Examining data/postfix-3.5.6/src/global/mail_trigger.c
Examining data/postfix-3.5.6/src/global/mail_version.c
Examining data/postfix-3.5.6/src/global/mail_version.h
Examining data/postfix-3.5.6/src/global/map_search.c
Examining data/postfix-3.5.6/src/global/maillog_client.c
Examining data/postfix-3.5.6/src/global/maillog_client.h
Examining data/postfix-3.5.6/src/global/map_search.h
Examining data/postfix-3.5.6/src/global/maps.h
Examining data/postfix-3.5.6/src/global/mark_corrupt.c
Examining data/postfix-3.5.6/src/global/mark_corrupt.h
Examining data/postfix-3.5.6/src/global/match_parent_style.h
Examining data/postfix-3.5.6/src/global/match_service.c
Examining data/postfix-3.5.6/src/global/match_service.h
Examining data/postfix-3.5.6/src/global/mbox_conf.c
Examining data/postfix-3.5.6/src/global/mbox_conf.h
Examining data/postfix-3.5.6/src/global/mbox_open.c
Examining data/postfix-3.5.6/src/global/mbox_open.h
Examining data/postfix-3.5.6/src/global/memcache_proto.c
Examining data/postfix-3.5.6/src/global/memcache_proto.h
Examining data/postfix-3.5.6/src/global/midna_adomain.c
Examining data/postfix-3.5.6/src/global/midna_adomain.h
Examining data/postfix-3.5.6/src/global/mkmap_cdb.c
Examining data/postfix-3.5.6/src/global/mkmap_db.c
Examining data/postfix-3.5.6/src/global/mkmap.h
Examining data/postfix-3.5.6/src/global/mime_state.c
Examining data/postfix-3.5.6/src/global/mime_state.h
Examining data/postfix-3.5.6/src/global/mkmap_dbm.c
Examining data/postfix-3.5.6/src/global/mkmap_fail.c
Examining data/postfix-3.5.6/src/global/mkmap_lmdb.c
Examining data/postfix-3.5.6/src/global/mkmap_open.c
Examining data/postfix-3.5.6/src/global/mkmap_proxy.c
Examining data/postfix-3.5.6/src/global/mkmap_sdbm.c
Examining data/postfix-3.5.6/src/global/msg_stats.h
Examining data/postfix-3.5.6/src/global/msg_stats_print.c
Examining data/postfix-3.5.6/src/global/msg_stats_scan.c
Examining data/postfix-3.5.6/src/global/mynetworks.c
Examining data/postfix-3.5.6/src/global/mynetworks.h
Examining data/postfix-3.5.6/src/global/mypwd.c
Examining data/postfix-3.5.6/src/global/mypwd.h
Examining data/postfix-3.5.6/src/global/namadr_list.c
Examining data/postfix-3.5.6/src/global/own_inet_addr.c
Examining data/postfix-3.5.6/src/global/off_cvt.c
Examining data/postfix-3.5.6/src/global/namadr_list.h
Examining data/postfix-3.5.6/src/global/normalize_mailhost_addr.c
Examining data/postfix-3.5.6/src/global/normalize_mailhost_addr.h
Examining data/postfix-3.5.6/src/global/off_cvt.h
Examining data/postfix-3.5.6/src/global/opened.c
Examining data/postfix-3.5.6/src/global/opened.h
Examining data/postfix-3.5.6/src/global/own_inet_addr.h
Examining data/postfix-3.5.6/src/global/pipe_command.c
Examining data/postfix-3.5.6/src/global/pipe_command.h
Examining data/postfix-3.5.6/src/global/post_mail.c
Examining data/postfix-3.5.6/src/global/post_mail.h
Examining data/postfix-3.5.6/src/global/qmgr_user.h
Examining data/postfix-3.5.6/src/global/qmqp_proto.h
Examining data/postfix-3.5.6/src/global/recipient_list.c
Examining data/postfix-3.5.6/src/global/quote_821_local.c
Examining data/postfix-3.5.6/src/global/quote_821_local.h
Examining data/postfix-3.5.6/src/global/quote_flags.c
Examining data/postfix-3.5.6/src/global/quote_822_local.c
Examining data/postfix-3.5.6/src/global/quote_822_local.h
Examining data/postfix-3.5.6/src/global/quote_flags.h
Examining data/postfix-3.5.6/src/global/rcpt_buf.c
Examining data/postfix-3.5.6/src/global/rcpt_buf.h
Examining data/postfix-3.5.6/src/global/rcpt_print.c
Examining data/postfix-3.5.6/src/global/rcpt_print.h
Examining data/postfix-3.5.6/src/global/rec2stream.c
Examining data/postfix-3.5.6/src/global/rec_attr_map.c
Examining data/postfix-3.5.6/src/global/rec_attr_map.h
Examining data/postfix-3.5.6/src/global/rec_streamlf.c
Examining data/postfix-3.5.6/src/global/rec_streamlf.h
Examining data/postfix-3.5.6/src/global/rec_type.c
Examining data/postfix-3.5.6/src/global/rec_type.h
Examining data/postfix-3.5.6/src/global/recdump.c
Examining data/postfix-3.5.6/src/global/recipient_list.h
Examining data/postfix-3.5.6/src/global/record.c
Examining data/postfix-3.5.6/src/global/record.h
Examining data/postfix-3.5.6/src/global/reject_deliver_request.c
Examining data/postfix-3.5.6/src/global/remove.c
Examining data/postfix-3.5.6/src/global/resolve_clnt.c
Examining data/postfix-3.5.6/src/global/resolve_clnt.h
Examining data/postfix-3.5.6/src/global/resolve_local.c
Examining data/postfix-3.5.6/src/global/resolve_local.h
Examining data/postfix-3.5.6/src/global/rewrite_clnt.c
Examining data/postfix-3.5.6/src/global/rewrite_clnt.h
Examining data/postfix-3.5.6/src/global/safe_ultostr.c
Examining data/postfix-3.5.6/src/global/safe_ultostr.h
Examining data/postfix-3.5.6/src/global/scache.c
Examining data/postfix-3.5.6/src/global/scache.h
Examining data/postfix-3.5.6/src/global/sent.c
Examining data/postfix-3.5.6/src/global/smtp_reply_footer.c
Examining data/postfix-3.5.6/src/global/scache_clnt.c
Examining data/postfix-3.5.6/src/global/scache_multi.c
Examining data/postfix-3.5.6/src/global/scache_single.c
Examining data/postfix-3.5.6/src/global/sent.h
Examining data/postfix-3.5.6/src/global/server_acl.c
Examining data/postfix-3.5.6/src/global/server_acl.h
Examining data/postfix-3.5.6/src/global/smtp_reply_footer.h
Examining data/postfix-3.5.6/src/global/smtp_stream.c
Examining data/postfix-3.5.6/src/global/smtp_stream.h
Examining data/postfix-3.5.6/src/global/smtputf8.c
Examining data/postfix-3.5.6/src/global/smtputf8.h
Examining data/postfix-3.5.6/src/global/split_addr.c
Examining data/postfix-3.5.6/src/global/split_addr.h
Examining data/postfix-3.5.6/src/global/stream2rec.c
Examining data/postfix-3.5.6/src/global/string_list.c
Examining data/postfix-3.5.6/src/global/string_list.h
Examining data/postfix-3.5.6/src/global/strip_addr.c
Examining data/postfix-3.5.6/src/global/strip_addr.h
Examining data/postfix-3.5.6/src/global/sys_exits.c
Examining data/postfix-3.5.6/src/global/sys_exits.h
Examining data/postfix-3.5.6/src/global/timed_ipc.c
Examining data/postfix-3.5.6/src/global/timed_ipc.h
Examining data/postfix-3.5.6/src/global/tok822.h
Examining data/postfix-3.5.6/src/global/tok822_find.c
Examining data/postfix-3.5.6/src/global/tok822_node.c
Examining data/postfix-3.5.6/src/global/tok822_parse.c
Examining data/postfix-3.5.6/src/global/tok822_resolve.c
Examining data/postfix-3.5.6/src/global/tok822_rewrite.c
Examining data/postfix-3.5.6/src/global/tok822_tree.c
Examining data/postfix-3.5.6/src/global/trace.c
Examining data/postfix-3.5.6/src/global/trace.h
Examining data/postfix-3.5.6/src/global/valid_mailhost_addr.c
Examining data/postfix-3.5.6/src/global/user_acl.c
Examining data/postfix-3.5.6/src/global/user_acl.h
Examining data/postfix-3.5.6/src/global/uxtext.c
Examining data/postfix-3.5.6/src/global/uxtext.h
Examining data/postfix-3.5.6/src/global/valid_mailhost_addr.h
Examining data/postfix-3.5.6/src/global/verify.c
Examining data/postfix-3.5.6/src/global/verify.h
Examining data/postfix-3.5.6/src/global/verify_clnt.c
Examining data/postfix-3.5.6/src/global/verify_clnt.h
Examining data/postfix-3.5.6/src/global/verify_sender_addr.c
Examining data/postfix-3.5.6/src/global/verify_sender_addr.h
Examining data/postfix-3.5.6/src/global/verp_sender.c
Examining data/postfix-3.5.6/src/global/verp_sender.h
Examining data/postfix-3.5.6/src/global/xtext.c
Examining data/postfix-3.5.6/src/global/wildcard_inet_addr.c
Examining data/postfix-3.5.6/src/global/wildcard_inet_addr.h
Examining data/postfix-3.5.6/src/global/xtext.h
Examining data/postfix-3.5.6/src/global/dict_ldap.c
Examining data/postfix-3.5.6/src/local/biff_notify.c
Examining data/postfix-3.5.6/src/local/alias.c
Examining data/postfix-3.5.6/src/local/bounce_workaround.c
Examining data/postfix-3.5.6/src/local/biff_notify.h
Examining data/postfix-3.5.6/src/local/deliver_attr.c
Examining data/postfix-3.5.6/src/local/command.c
Examining data/postfix-3.5.6/src/local/unknown.c
Examining data/postfix-3.5.6/src/local/dotforward.c
Examining data/postfix-3.5.6/src/local/file.c
Examining data/postfix-3.5.6/src/local/forward.c
Examining data/postfix-3.5.6/src/local/include.c
Examining data/postfix-3.5.6/src/local/indirect.c
Examining data/postfix-3.5.6/src/local/local.c
Examining data/postfix-3.5.6/src/local/local.h
Examining data/postfix-3.5.6/src/local/local_expand.c
Examining data/postfix-3.5.6/src/local/mailbox.c
Examining data/postfix-3.5.6/src/local/maildir.c
Examining data/postfix-3.5.6/src/local/recipient.c
Examining data/postfix-3.5.6/src/local/resolve.c
Examining data/postfix-3.5.6/src/local/token.c
Examining data/postfix-3.5.6/src/master/dgram_server.c
Examining data/postfix-3.5.6/src/master/master_monitor.c
Examining data/postfix-3.5.6/src/master/event_server.c
Examining data/postfix-3.5.6/src/master/mail_flow.c
Examining data/postfix-3.5.6/src/master/mail_flow.h
Examining data/postfix-3.5.6/src/master/mail_server.h
Examining data/postfix-3.5.6/src/master/master.c
Examining data/postfix-3.5.6/src/master/master.h
Examining data/postfix-3.5.6/src/master/master_avail.c
Examining data/postfix-3.5.6/src/master/master_conf.c
Examining data/postfix-3.5.6/src/master/master_ent.c
Examining data/postfix-3.5.6/src/master/master_flow.c
Examining data/postfix-3.5.6/src/master/master_listen.c
Examining data/postfix-3.5.6/src/master/master_service.c
Examining data/postfix-3.5.6/src/master/master_proto.c
Examining data/postfix-3.5.6/src/master/master_proto.h
Examining data/postfix-3.5.6/src/master/master_sig.c
Examining data/postfix-3.5.6/src/master/master_spawn.c
Examining data/postfix-3.5.6/src/master/master_status.c
Examining data/postfix-3.5.6/src/master/master_vars.c
Examining data/postfix-3.5.6/src/master/master_wakeup.c
Examining data/postfix-3.5.6/src/master/master_watch.c
Examining data/postfix-3.5.6/src/master/multi_server.c
Examining data/postfix-3.5.6/src/master/single_server.c
Examining data/postfix-3.5.6/src/master/trigger_server.c
Examining data/postfix-3.5.6/src/milter/milter_macros.c
Examining data/postfix-3.5.6/src/milter/milter.c
Examining data/postfix-3.5.6/src/milter/milter.h
Examining data/postfix-3.5.6/src/milter/milter8.c
Examining data/postfix-3.5.6/src/milter/test-milter.c
Examining data/postfix-3.5.6/src/oqmgr/qmgr_active.c
Examining data/postfix-3.5.6/src/oqmgr/qmgr.c
Examining data/postfix-3.5.6/src/oqmgr/qmgr.h
Examining data/postfix-3.5.6/src/oqmgr/qmgr_transport.c
Examining data/postfix-3.5.6/src/oqmgr/qmgr_bounce.c
Examining data/postfix-3.5.6/src/oqmgr/qmgr_defer.c
Examining data/postfix-3.5.6/src/oqmgr/qmgr_deliver.c
Examining data/postfix-3.5.6/src/oqmgr/qmgr_enable.c
Examining data/postfix-3.5.6/src/oqmgr/qmgr_entry.c
Examining data/postfix-3.5.6/src/oqmgr/qmgr_error.c
Examining data/postfix-3.5.6/src/oqmgr/qmgr_feedback.c
Examining data/postfix-3.5.6/src/oqmgr/qmgr_message.c
Examining data/postfix-3.5.6/src/oqmgr/qmgr_move.c
Examining data/postfix-3.5.6/src/oqmgr/qmgr_queue.c
Examining data/postfix-3.5.6/src/oqmgr/qmgr_scan.c
Examining data/postfix-3.5.6/src/pickup/pickup.c
Examining data/postfix-3.5.6/src/pipe/pipe.c
Examining data/postfix-3.5.6/src/postalias/postalias.c
Examining data/postfix-3.5.6/src/postcat/postcat.c
Examining data/postfix-3.5.6/src/postconf/postconf_builtin.c
Examining data/postfix-3.5.6/src/postconf/install_table.h
Examining data/postfix-3.5.6/src/postconf/install_vars.h
Examining data/postfix-3.5.6/src/postconf/postconf.c
Examining data/postfix-3.5.6/src/postconf/postconf.h
Examining data/postfix-3.5.6/src/postconf/postconf_lookup.c
Examining data/postfix-3.5.6/src/postconf/postconf_dbms.c
Examining data/postfix-3.5.6/src/postconf/postconf_edit.c
Examining data/postfix-3.5.6/src/postconf/postconf_master.c
Examining data/postfix-3.5.6/src/postconf/postconf_main.c
Examining data/postfix-3.5.6/src/postconf/postconf_match.c
Examining data/postfix-3.5.6/src/postconf/postconf_misc.c
Examining data/postfix-3.5.6/src/postconf/postconf_node.c
Examining data/postfix-3.5.6/src/postconf/postconf_other.c
Examining data/postfix-3.5.6/src/postconf/postconf_print.c
Examining data/postfix-3.5.6/src/postconf/postconf_service.c
Examining data/postfix-3.5.6/src/postconf/postconf_unused.c
Examining data/postfix-3.5.6/src/postconf/postconf_user.c
Examining data/postfix-3.5.6/src/postdrop/postdrop.c
Examining data/postfix-3.5.6/src/postfix/postfix.c
Examining data/postfix-3.5.6/src/postkick/postkick.c
Examining data/postfix-3.5.6/src/postlock/postlock.c
Examining data/postfix-3.5.6/src/postlog/postlog.c
Examining data/postfix-3.5.6/src/postlogd/postlogd.c
Examining data/postfix-3.5.6/src/postmap/postmap.c
Examining data/postfix-3.5.6/src/postmulti/postmulti.c
Examining data/postfix-3.5.6/src/postqueue/showq_compat.c
Examining data/postfix-3.5.6/src/postqueue/postqueue.c
Examining data/postfix-3.5.6/src/postqueue/postqueue.h
Examining data/postfix-3.5.6/src/postqueue/showq_json.c
Examining data/postfix-3.5.6/src/tls/tls_proxy_client_misc.c
Examining data/postfix-3.5.6/src/tls/tls.h
Examining data/postfix-3.5.6/src/tls/tls_bio_ops.c
Examining data/postfix-3.5.6/src/tls/tls_certkey.c
Examining data/postfix-3.5.6/src/tls/tls_client.c
Examining data/postfix-3.5.6/src/tls/tls_dane.c
Examining data/postfix-3.5.6/src/tls/tls_dh.c
Examining data/postfix-3.5.6/src/tls/tls_fprint.c
Examining data/postfix-3.5.6/src/tls/tls_level.c
Examining data/postfix-3.5.6/src/tls/tls_mgr.c
Examining data/postfix-3.5.6/src/tls/tls_mgr.h
Examining data/postfix-3.5.6/src/tls/tls_prng.h
Examining data/postfix-3.5.6/src/tls/tls_prng_dev.c
Examining data/postfix-3.5.6/src/tls/tls_prng_egd.c
Examining data/postfix-3.5.6/src/tls/tls_prng_exch.c
Examining data/postfix-3.5.6/src/tls/tls_prng_file.c
Examining data/postfix-3.5.6/src/tls/tls_proxy.h
Examining data/postfix-3.5.6/src/tls/tls_proxy_client_print.c
Examining data/postfix-3.5.6/src/tls/tls_proxy_client_scan.c
Examining data/postfix-3.5.6/src/tls/tls_proxy_clnt.c
Examining data/postfix-3.5.6/src/tls/tls_rsa.c
Examining data/postfix-3.5.6/src/tls/tls_proxy_context_print.c
Examining data/postfix-3.5.6/src/tls/tls_proxy_context_scan.c
Examining data/postfix-3.5.6/src/tls/tls_proxy_server_print.c
Examining data/postfix-3.5.6/src/tls/tls_proxy_server_scan.c
Examining data/postfix-3.5.6/src/tls/tls_scache.c
Examining data/postfix-3.5.6/src/tls/tls_scache.h
Examining data/postfix-3.5.6/src/tls/tls_seed.c
Examining data/postfix-3.5.6/src/tls/tls_server.c
Examining data/postfix-3.5.6/src/tls/tls_session.c
Examining data/postfix-3.5.6/src/tls/tls_stream.c
Examining data/postfix-3.5.6/src/tls/tls_verify.c
Examining data/postfix-3.5.6/src/tls/tls_misc.c
Examining data/postfix-3.5.6/src/postscreen/postscreen.c
Examining data/postfix-3.5.6/src/postscreen/postscreen_dict.c
Examining data/postfix-3.5.6/src/postscreen/postscreen.h
Examining data/postfix-3.5.6/src/postscreen/postscreen_haproxy.c
Examining data/postfix-3.5.6/src/postscreen/postscreen_dnsbl.c
Examining data/postfix-3.5.6/src/postscreen/postscreen_early.c
Examining data/postfix-3.5.6/src/postscreen/postscreen_endpt.c
Examining data/postfix-3.5.6/src/postscreen/postscreen_expand.c
Examining data/postfix-3.5.6/src/postscreen/postscreen_haproxy.h
Examining data/postfix-3.5.6/src/postscreen/postscreen_misc.c
Examining data/postfix-3.5.6/src/postscreen/postscreen_send.c
Examining data/postfix-3.5.6/src/postscreen/postscreen_smtpd.c
Examining data/postfix-3.5.6/src/postscreen/postscreen_starttls.c
Examining data/postfix-3.5.6/src/postscreen/postscreen_state.c
Examining data/postfix-3.5.6/src/postscreen/postscreen_tests.c
Examining data/postfix-3.5.6/src/postsuper/postsuper.c
Examining data/postfix-3.5.6/src/posttls-finger/posttls-finger.c
Examining data/postfix-3.5.6/src/posttls-finger/tlsmgrmem.c
Examining data/postfix-3.5.6/src/posttls-finger/tlsmgrmem.h
Examining data/postfix-3.5.6/src/proxymap/proxymap.c
Examining data/postfix-3.5.6/src/qmgr/qmgr_active.c
Examining data/postfix-3.5.6/src/qmgr/qmgr.c
Examining data/postfix-3.5.6/src/qmgr/qmgr.h
Examining data/postfix-3.5.6/src/qmgr/qmgr_bounce.c
Examining data/postfix-3.5.6/src/qmgr/qmgr_defer.c
Examining data/postfix-3.5.6/src/qmgr/qmgr_deliver.c
Examining data/postfix-3.5.6/src/qmgr/qmgr_enable.c
Examining data/postfix-3.5.6/src/qmgr/qmgr_entry.c
Examining data/postfix-3.5.6/src/qmgr/qmgr_error.c
Examining data/postfix-3.5.6/src/qmgr/qmgr_feedback.c
Examining data/postfix-3.5.6/src/qmgr/qmgr_job.c
Examining data/postfix-3.5.6/src/qmgr/qmgr_message.c
Examining data/postfix-3.5.6/src/qmgr/qmgr_move.c
Examining data/postfix-3.5.6/src/qmgr/qmgr_peer.c
Examining data/postfix-3.5.6/src/qmgr/qmgr_queue.c
Examining data/postfix-3.5.6/src/qmgr/qmgr_scan.c
Examining data/postfix-3.5.6/src/qmgr/qmgr_transport.c
Examining data/postfix-3.5.6/src/qmqpd/qmqpd_peer.c
Examining data/postfix-3.5.6/src/qmqpd/qmqpd.c
Examining data/postfix-3.5.6/src/qmqpd/qmqpd.h
Examining data/postfix-3.5.6/src/qmqpd/qmqpd_state.c
Examining data/postfix-3.5.6/src/scache/scache.c
Examining data/postfix-3.5.6/src/sendmail/sendmail.c
Examining data/postfix-3.5.6/src/showq/showq.c
Examining data/postfix-3.5.6/src/smtp/lmtp_params.c
Examining data/postfix-3.5.6/src/smtp/smtp_connect.c
Examining data/postfix-3.5.6/src/smtp/smtp.c
Examining data/postfix-3.5.6/src/smtp/smtp.h
Examining data/postfix-3.5.6/src/smtp/smtp_addr.c
Examining data/postfix-3.5.6/src/smtp/smtp_addr.h
Examining data/postfix-3.5.6/src/smtp/smtp_chat.c
Examining data/postfix-3.5.6/src/smtp/smtp_map11.c
Examining data/postfix-3.5.6/src/smtp/smtp_key.c
Examining data/postfix-3.5.6/src/smtp/smtp_sasl_auth_cache.c
Examining data/postfix-3.5.6/src/smtp/smtp_misc.c
Examining data/postfix-3.5.6/src/smtp/smtp_params.c
Examining data/postfix-3.5.6/src/smtp/smtp_proto.c
Examining data/postfix-3.5.6/src/smtp/smtp_rcpt.c
Examining data/postfix-3.5.6/src/smtp/smtp_reuse.c
Examining data/postfix-3.5.6/src/smtp/smtp_reuse.h
Examining data/postfix-3.5.6/src/smtp/smtp_sasl.h
Examining data/postfix-3.5.6/src/smtp/smtp_sasl_auth_cache.h
Examining data/postfix-3.5.6/src/smtp/smtp_sasl_glue.c
Examining data/postfix-3.5.6/src/smtp/smtp_sasl_proto.c
Examining data/postfix-3.5.6/src/smtp/smtp_session.c
Examining data/postfix-3.5.6/src/smtp/smtp_state.c
Examining data/postfix-3.5.6/src/smtp/smtp_tls_policy.c
Examining data/postfix-3.5.6/src/smtp/smtp_trouble.c
Examining data/postfix-3.5.6/src/smtp/smtp_unalias.c
Examining data/postfix-3.5.6/src/smtpd/smtpd.c
Examining data/postfix-3.5.6/src/smtpd/smtpd.h
Examining data/postfix-3.5.6/src/smtpd/smtpd_chat.c
Examining data/postfix-3.5.6/src/smtpd/smtpd_chat.h
Examining data/postfix-3.5.6/src/smtpd/smtpd_check.c
Examining data/postfix-3.5.6/src/smtpd/smtpd_check.h
Examining data/postfix-3.5.6/src/smtpd/smtpd_dsn_fix.c
Examining data/postfix-3.5.6/src/smtpd/smtpd_dsn_fix.h
Examining data/postfix-3.5.6/src/smtpd/smtpd_expand.c
Examining data/postfix-3.5.6/src/smtpd/smtpd_expand.h
Examining data/postfix-3.5.6/src/smtpd/smtpd_haproxy.c
Examining data/postfix-3.5.6/src/smtpd/smtpd_milter.c
Examining data/postfix-3.5.6/src/smtpd/smtpd_milter.h
Examining data/postfix-3.5.6/src/smtpd/smtpd_peer.c
Examining data/postfix-3.5.6/src/smtpd/smtpd_proxy.c
Examining data/postfix-3.5.6/src/smtpd/smtpd_proxy.h
Examining data/postfix-3.5.6/src/smtpd/smtpd_resolve.c
Examining data/postfix-3.5.6/src/smtpd/smtpd_resolve.h
Examining data/postfix-3.5.6/src/smtpd/smtpd_sasl_glue.c
Examining data/postfix-3.5.6/src/smtpd/smtpd_sasl_glue.h
Examining data/postfix-3.5.6/src/smtpd/smtpd_sasl_proto.c
Examining data/postfix-3.5.6/src/smtpd/smtpd_sasl_proto.h
Examining data/postfix-3.5.6/src/smtpd/smtpd_state.c
Examining data/postfix-3.5.6/src/smtpd/smtpd_token.c
Examining data/postfix-3.5.6/src/smtpd/smtpd_token.h
Examining data/postfix-3.5.6/src/smtpd/smtpd_xforward.c
Examining data/postfix-3.5.6/src/smtpstone/qmqp-sink.c
Examining data/postfix-3.5.6/src/smtpstone/qmqp-source.c
Examining data/postfix-3.5.6/src/smtpstone/smtp-sink.c
Examining data/postfix-3.5.6/src/smtpstone/smtp-source.c
Examining data/postfix-3.5.6/src/spawn/spawn.c
Examining data/postfix-3.5.6/src/tlsmgr/tlsmgr.c
Examining data/postfix-3.5.6/src/tlsproxy/tlsproxy_state.c
Examining data/postfix-3.5.6/src/tlsproxy/tlsproxy.c
Examining data/postfix-3.5.6/src/tlsproxy/tlsproxy.h
Examining data/postfix-3.5.6/src/trivial-rewrite/resolve.c
Examining data/postfix-3.5.6/src/trivial-rewrite/rewrite.c
Examining data/postfix-3.5.6/src/trivial-rewrite/transport.c
Examining data/postfix-3.5.6/src/trivial-rewrite/transport.h
Examining data/postfix-3.5.6/src/trivial-rewrite/trivial-rewrite.c
Examining data/postfix-3.5.6/src/trivial-rewrite/trivial-rewrite.h
Examining data/postfix-3.5.6/src/util/argv_attr_print.c
Examining data/postfix-3.5.6/src/util/allascii.c
Examining data/postfix-3.5.6/src/util/alldig.c
Examining data/postfix-3.5.6/src/util/allprint.c
Examining data/postfix-3.5.6/src/util/allspace.c
Examining data/postfix-3.5.6/src/util/argv.c
Examining data/postfix-3.5.6/src/util/argv.h
Examining data/postfix-3.5.6/src/util/argv_attr.h
Examining data/postfix-3.5.6/src/util/argv_attr_scan.c
Examining data/postfix-3.5.6/src/util/argv_split.c
Examining data/postfix-3.5.6/src/util/argv_splitq.c
Examining data/postfix-3.5.6/src/util/attr.h
Examining data/postfix-3.5.6/src/util/attr_clnt.c
Examining data/postfix-3.5.6/src/util/attr_clnt.h
Examining data/postfix-3.5.6/src/util/attr_print0.c
Examining data/postfix-3.5.6/src/util/attr_print64.c
Examining data/postfix-3.5.6/src/util/attr_print_plain.c
Examining data/postfix-3.5.6/src/util/attr_scan0.c
Examining data/postfix-3.5.6/src/util/attr_scan64.c
Examining data/postfix-3.5.6/src/util/attr_scan_plain.c
Examining data/postfix-3.5.6/src/util/auto_clnt.c
Examining data/postfix-3.5.6/src/util/auto_clnt.h
Examining data/postfix-3.5.6/src/util/balpar.c
Examining data/postfix-3.5.6/src/util/base32_code.c
Examining data/postfix-3.5.6/src/util/base32_code.h
Examining data/postfix-3.5.6/src/util/base64_code.c
Examining data/postfix-3.5.6/src/util/base64_code.h
Examining data/postfix-3.5.6/src/util/basename.c
Examining data/postfix-3.5.6/src/util/binhash.c
Examining data/postfix-3.5.6/src/util/binhash.h
Examining data/postfix-3.5.6/src/util/byte_mask.c
Examining data/postfix-3.5.6/src/util/byte_mask.h
Examining data/postfix-3.5.6/src/util/casefold.c
Examining data/postfix-3.5.6/src/util/check_arg.h
Examining data/postfix-3.5.6/src/util/chroot_uid.c
Examining data/postfix-3.5.6/src/util/chroot_uid.h
Examining data/postfix-3.5.6/src/util/cidr_match.c
Examining data/postfix-3.5.6/src/util/cidr_match.h
Examining data/postfix-3.5.6/src/util/clean_env.c
Examining data/postfix-3.5.6/src/util/clean_env.h
Examining data/postfix-3.5.6/src/util/close_on_exec.c
Examining data/postfix-3.5.6/src/util/compat_va_copy.h
Examining data/postfix-3.5.6/src/util/concatenate.c
Examining data/postfix-3.5.6/src/util/connect.h
Examining data/postfix-3.5.6/src/util/ctable.c
Examining data/postfix-3.5.6/src/util/ctable.h
Examining data/postfix-3.5.6/src/util/dict.c
Examining data/postfix-3.5.6/src/util/dict.h
Examining data/postfix-3.5.6/src/util/dict_alloc.c
Examining data/postfix-3.5.6/src/util/dict_cache.c
Examining data/postfix-3.5.6/src/util/dict_cache.h
Examining data/postfix-3.5.6/src/util/dict_cdb.c
Examining data/postfix-3.5.6/src/util/dict_cdb.h
Examining data/postfix-3.5.6/src/util/dict_cidr.c
Examining data/postfix-3.5.6/src/util/dict_cidr.h
Examining data/postfix-3.5.6/src/util/dict_db.c
Examining data/postfix-3.5.6/src/util/dict_db.h
Examining data/postfix-3.5.6/src/util/dict_dbm.h
Examining data/postfix-3.5.6/src/util/dict_debug.c
Examining data/postfix-3.5.6/src/util/dict_env.c
Examining data/postfix-3.5.6/src/util/dict_env.h
Examining data/postfix-3.5.6/src/util/dict_fail.c
Examining data/postfix-3.5.6/src/util/dict_fail.h
Examining data/postfix-3.5.6/src/util/dict_file.c
Examining data/postfix-3.5.6/src/util/dict_ht.c
Examining data/postfix-3.5.6/src/util/dict_ht.h
Examining data/postfix-3.5.6/src/util/dict_inline.c
Examining data/postfix-3.5.6/src/util/dict_inline.h
Examining data/postfix-3.5.6/src/util/dict_lmdb.c
Examining data/postfix-3.5.6/src/util/dict_lmdb.h
Examining data/postfix-3.5.6/src/util/dict_ni.c
Examining data/postfix-3.5.6/src/util/dict_ni.h
Examining data/postfix-3.5.6/src/util/dict_nis.c
Examining data/postfix-3.5.6/src/util/dict_nis.h
Examining data/postfix-3.5.6/src/util/dict_nisplus.c
Examining data/postfix-3.5.6/src/util/dict_nisplus.h
Examining data/postfix-3.5.6/src/util/dict_open.c
Examining data/postfix-3.5.6/src/util/dict_pcre.c
Examining data/postfix-3.5.6/src/util/dict_pcre.h
Examining data/postfix-3.5.6/src/util/dict_pipe.c
Examining data/postfix-3.5.6/src/util/dict_pipe.h
Examining data/postfix-3.5.6/src/util/dict_random.c
Examining data/postfix-3.5.6/src/util/dict_random.h
Examining data/postfix-3.5.6/src/util/dict_regexp.c
Examining data/postfix-3.5.6/src/util/dict_regexp.h
Examining data/postfix-3.5.6/src/util/dict_sdbm.c
Examining data/postfix-3.5.6/src/util/dict_sdbm.h
Examining data/postfix-3.5.6/src/util/dict_sockmap.c
Examining data/postfix-3.5.6/src/util/dummy_read.c
Examining data/postfix-3.5.6/src/util/doze.c
Examining data/postfix-3.5.6/src/util/dict_sockmap.h
Examining data/postfix-3.5.6/src/util/dict_static.c
Examining data/postfix-3.5.6/src/util/dict_static.h
Examining data/postfix-3.5.6/src/util/dict_surrogate.c
Examining data/postfix-3.5.6/src/util/dict_tcp.c
Examining data/postfix-3.5.6/src/util/dict_tcp.h
Examining data/postfix-3.5.6/src/util/dict_test.c
Examining data/postfix-3.5.6/src/util/dict_thash.c
Examining data/postfix-3.5.6/src/util/dict_thash.h
Examining data/postfix-3.5.6/src/util/dict_union.c
Examining data/postfix-3.5.6/src/util/dict_union.h
Examining data/postfix-3.5.6/src/util/dict_unix.c
Examining data/postfix-3.5.6/src/util/dict_unix.h
Examining data/postfix-3.5.6/src/util/dict_utf8.c
Examining data/postfix-3.5.6/src/util/dir_forest.c
Examining data/postfix-3.5.6/src/util/dir_forest.h
Examining data/postfix-3.5.6/src/util/dummy_write.c
Examining data/postfix-3.5.6/src/util/dup2_pass_on_exec.c
Examining data/postfix-3.5.6/src/util/duplex_pipe.c
Examining data/postfix-3.5.6/src/util/edit_file.c
Examining data/postfix-3.5.6/src/util/edit_file.h
Examining data/postfix-3.5.6/src/util/environ.c
Examining data/postfix-3.5.6/src/util/events.c
Examining data/postfix-3.5.6/src/util/events.h
Examining data/postfix-3.5.6/src/util/exec_command.c
Examining data/postfix-3.5.6/src/util/exec_command.h
Examining data/postfix-3.5.6/src/util/extpar.c
Examining data/postfix-3.5.6/src/util/fifo_listen.c
Examining data/postfix-3.5.6/src/util/fifo_open.c
Examining data/postfix-3.5.6/src/util/fifo_rdonly_bug.c
Examining data/postfix-3.5.6/src/util/find_inet.c
Examining data/postfix-3.5.6/src/util/get_domainname.c
Examining data/postfix-3.5.6/src/util/fifo_rdwr_bug.c
Examining data/postfix-3.5.6/src/util/fifo_trigger.c
Examining data/postfix-3.5.6/src/util/file_limit.c
Examining data/postfix-3.5.6/src/util/find_inet.h
Examining data/postfix-3.5.6/src/util/format_tv.c
Examining data/postfix-3.5.6/src/util/format_tv.h
Examining data/postfix-3.5.6/src/util/fsspace.c
Examining data/postfix-3.5.6/src/util/fsspace.h
Examining data/postfix-3.5.6/src/util/fullname.c
Examining data/postfix-3.5.6/src/util/fullname.h
Examining data/postfix-3.5.6/src/util/gccw.c
Examining data/postfix-3.5.6/src/util/get_domainname.h
Examining data/postfix-3.5.6/src/util/get_hostname.c
Examining data/postfix-3.5.6/src/util/get_hostname.h
Examining data/postfix-3.5.6/src/util/hex_code.c
Examining data/postfix-3.5.6/src/util/hex_code.h
Examining data/postfix-3.5.6/src/util/hex_quote.c
Examining data/postfix-3.5.6/src/util/hex_quote.h
Examining data/postfix-3.5.6/src/util/host_port.c
Examining data/postfix-3.5.6/src/util/iostuff.h
Examining data/postfix-3.5.6/src/util/ip_match.c
Examining data/postfix-3.5.6/src/util/host_port.h
Examining data/postfix-3.5.6/src/util/htable.c
Examining data/postfix-3.5.6/src/util/htable.h
Examining data/postfix-3.5.6/src/util/inet_addr_host.c
Examining data/postfix-3.5.6/src/util/inet_addr_host.h
Examining data/postfix-3.5.6/src/util/inet_addr_list.c
Examining data/postfix-3.5.6/src/util/inet_addr_list.h
Examining data/postfix-3.5.6/src/util/inet_addr_local.c
Examining data/postfix-3.5.6/src/util/inet_addr_local.h
Examining data/postfix-3.5.6/src/util/inet_connect.c
Examining data/postfix-3.5.6/src/util/inet_listen.c
Examining data/postfix-3.5.6/src/util/inet_proto.c
Examining data/postfix-3.5.6/src/util/inet_proto.h
Examining data/postfix-3.5.6/src/util/inet_trigger.c
Examining data/postfix-3.5.6/src/util/inet_windowsize.c
Examining data/postfix-3.5.6/src/util/ip_match.h
Examining data/postfix-3.5.6/src/util/killme_after.c
Examining data/postfix-3.5.6/src/util/killme_after.h
Examining data/postfix-3.5.6/src/util/line_number.c
Examining data/postfix-3.5.6/src/util/line_number.h
Examining data/postfix-3.5.6/src/util/line_wrap.c
Examining data/postfix-3.5.6/src/util/line_wrap.h
Examining data/postfix-3.5.6/src/util/listen.h
Examining data/postfix-3.5.6/src/util/load_file.c
Examining data/postfix-3.5.6/src/util/load_file.h
Examining data/postfix-3.5.6/src/util/load_lib.c
Examining data/postfix-3.5.6/src/util/load_lib.h
Examining data/postfix-3.5.6/src/util/logwriter.c
Examining data/postfix-3.5.6/src/util/logwriter.h
Examining data/postfix-3.5.6/src/util/lowercase.c
Examining data/postfix-3.5.6/src/util/lstat_as.c
Examining data/postfix-3.5.6/src/util/lstat_as.h
Examining data/postfix-3.5.6/src/util/mac_expand.c
Examining data/postfix-3.5.6/src/util/mac_expand.h
Examining data/postfix-3.5.6/src/util/mac_parse.c
Examining data/postfix-3.5.6/src/util/mac_parse.h
Examining data/postfix-3.5.6/src/util/make_dirs.c
Examining data/postfix-3.5.6/src/util/make_dirs.h
Examining data/postfix-3.5.6/src/util/mask_addr.c
Examining data/postfix-3.5.6/src/util/mask_addr.h
Examining data/postfix-3.5.6/src/util/match_list.c
Examining data/postfix-3.5.6/src/util/match_list.h
Examining data/postfix-3.5.6/src/util/match_ops.c
Examining data/postfix-3.5.6/src/util/midna_domain.h
Examining data/postfix-3.5.6/src/util/msg.c
Examining data/postfix-3.5.6/src/util/non_blocking.c
Examining data/postfix-3.5.6/src/util/msg.h
Examining data/postfix-3.5.6/src/util/msg_logger.c
Examining data/postfix-3.5.6/src/util/msg_logger.h
Examining data/postfix-3.5.6/src/util/msg_output.c
Examining data/postfix-3.5.6/src/util/msg_output.h
Examining data/postfix-3.5.6/src/util/msg_rate_delay.c
Examining data/postfix-3.5.6/src/util/msg_syslog.c
Examining data/postfix-3.5.6/src/util/msg_syslog.h
Examining data/postfix-3.5.6/src/util/msg_vstream.c
Examining data/postfix-3.5.6/src/util/msg_vstream.h
Examining data/postfix-3.5.6/src/util/mvect.c
Examining data/postfix-3.5.6/src/util/mvect.h
Examining data/postfix-3.5.6/src/util/myaddrinfo.c
Examining data/postfix-3.5.6/src/util/myaddrinfo.h
Examining data/postfix-3.5.6/src/util/myflock.c
Examining data/postfix-3.5.6/src/util/myflock.h
Examining data/postfix-3.5.6/src/util/mymalloc.c
Examining data/postfix-3.5.6/src/util/mymalloc.h
Examining data/postfix-3.5.6/src/util/nbbio.c
Examining data/postfix-3.5.6/src/util/myrand.c
Examining data/postfix-3.5.6/src/util/myrand.h
Examining data/postfix-3.5.6/src/util/mystrtok.c
Examining data/postfix-3.5.6/src/util/name_code.c
Examining data/postfix-3.5.6/src/util/name_code.h
Examining data/postfix-3.5.6/src/util/name_mask.c
Examining data/postfix-3.5.6/src/util/name_mask.h
Examining data/postfix-3.5.6/src/util/nbbio.h
Examining data/postfix-3.5.6/src/util/netstring.c
Examining data/postfix-3.5.6/src/util/netstring.h
Examining data/postfix-3.5.6/src/util/neuter.c
Examining data/postfix-3.5.6/src/util/recv_pass_attr.c
Examining data/postfix-3.5.6/src/util/nvtable.c
Examining data/postfix-3.5.6/src/util/nvtable.h
Examining data/postfix-3.5.6/src/util/open_as.c
Examining data/postfix-3.5.6/src/util/open_as.h
Examining data/postfix-3.5.6/src/util/open_limit.c
Examining data/postfix-3.5.6/src/util/open_lock.c
Examining data/postfix-3.5.6/src/util/open_lock.h
Examining data/postfix-3.5.6/src/util/pass_accept.c
Examining data/postfix-3.5.6/src/util/pass_trigger.c
Examining data/postfix-3.5.6/src/util/peekfd.c
Examining data/postfix-3.5.6/src/util/percentm.c
Examining data/postfix-3.5.6/src/util/percentm.h
Examining data/postfix-3.5.6/src/util/poll_fd.c
Examining data/postfix-3.5.6/src/util/posix_signals.c
Examining data/postfix-3.5.6/src/util/posix_signals.h
Examining data/postfix-3.5.6/src/util/printable.c
Examining data/postfix-3.5.6/src/util/rand_sleep.c
Examining data/postfix-3.5.6/src/util/readlline.c
Examining data/postfix-3.5.6/src/util/readlline.h
Examining data/postfix-3.5.6/src/util/ring.c
Examining data/postfix-3.5.6/src/util/ring.h
Examining data/postfix-3.5.6/src/util/safe.h
Examining data/postfix-3.5.6/src/util/safe_getenv.c
Examining data/postfix-3.5.6/src/util/set_ugid.c
Examining data/postfix-3.5.6/src/util/slmdb.c
Examining data/postfix-3.5.6/src/util/safe_open.c
Examining data/postfix-3.5.6/src/util/safe_open.h
Examining data/postfix-3.5.6/src/util/sane_accept.c
Examining data/postfix-3.5.6/src/util/sane_accept.h
Examining data/postfix-3.5.6/src/util/sane_basename.c
Examining data/postfix-3.5.6/src/util/sane_connect.c
Examining data/postfix-3.5.6/src/util/sane_connect.h
Examining data/postfix-3.5.6/src/util/sane_fsops.h
Examining data/postfix-3.5.6/src/util/sane_link.c
Examining data/postfix-3.5.6/src/util/sane_rename.c
Examining data/postfix-3.5.6/src/util/sane_socketpair.c
Examining data/postfix-3.5.6/src/util/sane_socketpair.h
Examining data/postfix-3.5.6/src/util/sane_time.c
Examining data/postfix-3.5.6/src/util/sane_time.h
Examining data/postfix-3.5.6/src/util/scan_dir.c
Examining data/postfix-3.5.6/src/util/scan_dir.h
Examining data/postfix-3.5.6/src/util/select_bug.c
Examining data/postfix-3.5.6/src/util/set_eugid.c
Examining data/postfix-3.5.6/src/util/set_eugid.h
Examining data/postfix-3.5.6/src/util/skipblanks.c
Examining data/postfix-3.5.6/src/util/set_ugid.h
Examining data/postfix-3.5.6/src/util/sigdelay.c
Examining data/postfix-3.5.6/src/util/sigdelay.h
Examining data/postfix-3.5.6/src/util/slmdb.h
Examining data/postfix-3.5.6/src/util/sock_addr.c
Examining data/postfix-3.5.6/src/util/sock_addr.h
Examining data/postfix-3.5.6/src/util/spawn_command.c
Examining data/postfix-3.5.6/src/util/spawn_command.h
Examining data/postfix-3.5.6/src/util/split_at.c
Examining data/postfix-3.5.6/src/util/split_at.h
Examining data/postfix-3.5.6/src/util/split_nameval.c
Examining data/postfix-3.5.6/src/util/split_qnameval.c
Examining data/postfix-3.5.6/src/util/stat_as.c
Examining data/postfix-3.5.6/src/util/stat_as.h
Examining data/postfix-3.5.6/src/util/strcasecmp.c
Examining data/postfix-3.5.6/src/util/strcasecmp_utf8.c
Examining data/postfix-3.5.6/src/util/stream_connect.c
Examining data/postfix-3.5.6/src/util/stream_listen.c
Examining data/postfix-3.5.6/src/util/timed_connect.c
Examining data/postfix-3.5.6/src/util/stream_recv_fd.c
Examining data/postfix-3.5.6/src/util/stream_send_fd.c
Examining data/postfix-3.5.6/src/util/stream_test.c
Examining data/postfix-3.5.6/src/util/stream_trigger.c
Examining data/postfix-3.5.6/src/util/stringops.h
Examining data/postfix-3.5.6/src/util/sys_compat.c
Examining data/postfix-3.5.6/src/util/sys_defs.h
Examining data/postfix-3.5.6/src/util/timecmp.c
Examining data/postfix-3.5.6/src/util/timecmp.h
Examining data/postfix-3.5.6/src/util/timed_connect.h
Examining data/postfix-3.5.6/src/util/timed_read.c
Examining data/postfix-3.5.6/src/util/timed_wait.c
Examining data/postfix-3.5.6/src/util/timed_wait.h
Examining data/postfix-3.5.6/src/util/timed_write.c
Examining data/postfix-3.5.6/src/util/translit.c
Examining data/postfix-3.5.6/src/util/trigger.h
Examining data/postfix-3.5.6/src/util/trimblanks.c
Examining data/postfix-3.5.6/src/util/unescape.c
Examining data/postfix-3.5.6/src/util/valid_hostname.c
Examining data/postfix-3.5.6/src/util/unsafe.c
Examining data/postfix-3.5.6/src/util/unix_connect.c
Examining data/postfix-3.5.6/src/util/unix_dgram_connect.c
Examining data/postfix-3.5.6/src/util/unix_dgram_listen.c
Examining data/postfix-3.5.6/src/util/unix_listen.c
Examining data/postfix-3.5.6/src/util/unix_pass_fd_fix.c
Examining data/postfix-3.5.6/src/util/unix_recv_fd.c
Examining data/postfix-3.5.6/src/util/unix_send_fd.c
Examining data/postfix-3.5.6/src/util/unix_trigger.c
Examining data/postfix-3.5.6/src/util/uppercase.c
Examining data/postfix-3.5.6/src/util/username.c
Examining data/postfix-3.5.6/src/util/username.h
Examining data/postfix-3.5.6/src/util/valid_hostname.h
Examining data/postfix-3.5.6/src/util/vbuf_print.c
Examining data/postfix-3.5.6/src/util/valid_utf8_hostname.c
Examining data/postfix-3.5.6/src/util/valid_utf8_hostname.h
Examining data/postfix-3.5.6/src/util/valid_utf8_string.c
Examining data/postfix-3.5.6/src/util/vbuf.c
Examining data/postfix-3.5.6/src/util/vbuf.h
Examining data/postfix-3.5.6/src/util/vbuf_print.h
Examining data/postfix-3.5.6/src/util/vstream.c
Examining data/postfix-3.5.6/src/util/vstream.h
Examining data/postfix-3.5.6/src/util/vstream_popen.c
Examining data/postfix-3.5.6/src/util/vstream_tweak.c
Examining data/postfix-3.5.6/src/util/vstring.c
Examining data/postfix-3.5.6/src/util/vstring.h
Examining data/postfix-3.5.6/src/util/vstring_vstream.c
Examining data/postfix-3.5.6/src/util/vstring_vstream.h
Examining data/postfix-3.5.6/src/util/warn_stat.c
Examining data/postfix-3.5.6/src/util/warn_stat.h
Examining data/postfix-3.5.6/src/util/watchdog.c
Examining data/postfix-3.5.6/src/util/watchdog.h
Examining data/postfix-3.5.6/src/util/write_buf.c
Examining data/postfix-3.5.6/src/util/midna_domain.c
Examining data/postfix-3.5.6/src/util/dict_dbm.c
Examining data/postfix-3.5.6/src/verify/verify.c
Examining data/postfix-3.5.6/src/virtual/deliver_attr.c
Examining data/postfix-3.5.6/src/virtual/mailbox.c
Examining data/postfix-3.5.6/src/virtual/maildir.c
Examining data/postfix-3.5.6/src/virtual/recipient.c
Examining data/postfix-3.5.6/src/virtual/unknown.c
Examining data/postfix-3.5.6/src/virtual/virtual.c
Examining data/postfix-3.5.6/src/virtual/virtual.h
Examining data/postfix-3.5.6/src/xsasl/xsasl_client.c
Examining data/postfix-3.5.6/src/xsasl/xsasl.h
Examining data/postfix-3.5.6/src/xsasl/xsasl_cyrus.h
Examining data/postfix-3.5.6/src/xsasl/xsasl_cyrus_security.c
Examining data/postfix-3.5.6/src/xsasl/xsasl_dovecot.h
Examining data/postfix-3.5.6/src/xsasl/xsasl_dovecot_server.c
Examining data/postfix-3.5.6/src/xsasl/xsasl_server.c
Examining data/postfix-3.5.6/src/xsasl/xsasl_cyrus_client.c
Examining data/postfix-3.5.6/src/xsasl/xsasl_cyrus_common.h
Examining data/postfix-3.5.6/src/xsasl/xsasl_cyrus_log.c
Examining data/postfix-3.5.6/src/xsasl/xsasl_cyrus_server.c
Examining data/postfix-3.5.6/rmail/rmail.c

FINAL RESULTS:

data/postfix-3.5.6/src/util/make_dirs.c:135:38:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	    if (st.st_gid != egid && (ret = chown(saved_path, -1, egid)) < 0) {
data/postfix-3.5.6/src/util/unix_dgram_listen.c:88:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    if (chmod(path, 0666) < 0)
data/postfix-3.5.6/src/util/unix_listen.c:99:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    if (chmod(addr, 0666) < 0)
data/postfix-3.5.6/rmail/rmail.c:101:12:  [4] (format) snprintf:
  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.
extern int	snprintf __P((char *, size_t, const char *, ...));
data/postfix-3.5.6/rmail/rmail.c:124:19:  [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).
#define newstr(s)	strcpy(xalloc(strlen(s) + 1), s)
data/postfix-3.5.6/rmail/rmail.c:386:10:  [4] (shell) execv:
  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.
		(void) execv(_PATH_SENDMAIL, args);
data/postfix-3.5.6/rmail/rmail.c:406:10:  [4] (shell) execv:
  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.
		(void) execv(_PATH_SENDMAIL, args);
data/postfix-3.5.6/rmail/rmail.c:471:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) vfprintf(stderr, fmt, ap);
data/postfix-3.5.6/src/global/debug_process.c:61:5:  [4] (shell) system:
  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.
    system(command);
data/postfix-3.5.6/src/global/dict_proxy.c:440: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(relative_path, F_OK) == 0)
data/postfix-3.5.6/src/global/dynamicmaps.c:329:9:  [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(conf_path_d, R_OK | X_OK) == 0
data/postfix-3.5.6/src/global/mail_run.c:97:6:  [4] (shell) execv:
  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.
	    execv(path, argv);
data/postfix-3.5.6/src/global/mail_run.c:131:6:  [4] (shell) execv:
  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.
	    execv(path, argv);
data/postfix-3.5.6/src/global/mail_run.c:148:5:  [4] (shell) execv:
  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.
    execv(path, argv);
data/postfix-3.5.6/src/global/pipe_command.c:547:6:  [4] (shell) execvp:
  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.
	    execvp(args.argv[0], args.argv);
data/postfix-3.5.6/src/global/pipe_command.c:553:6:  [4] (shell) execvp:
  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.
	    execvp(argv->argv[0], argv->argv);
data/postfix-3.5.6/src/master/master.c:492:22:  [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 (test_lock && access(vstring_str(lock_path), F_OK) < 0)
data/postfix-3.5.6/src/master/master_spawn.c:231:2:  [4] (shell) execvp:
  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.
	execvp(serv->path, serv->args->argv);
data/postfix-3.5.6/src/milter/test-milter.c:550:2:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	sscanf(optarg, "%d %s %[^\n]", idx, *hdr, *value) != 3 :
data/postfix-3.5.6/src/postfix/postfix.c:633:2:  [4] (shell) execvp:
  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.
	execvp(script, argv + optind - 1);
data/postfix-3.5.6/src/postfix/postfix.c:648:2:  [4] (shell) execvp:
  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.
	execvp(my_argv->argv[0], my_argv->argv);
data/postfix-3.5.6/src/postlock/postlock.c:268:2:  [4] (shell) execvp:
  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.
	execvp(command[0], command);
data/postfix-3.5.6/src/postmulti/postmulti.c:1412:5:  [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(cmd, cmd, "-e", EDIT_CMD_STR(edit_cmd), (char *) 0);
data/postfix-3.5.6/src/postmulti/postmulti.c:1461:2:  [4] (shell) execvp:
  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.
	execvp(argv[0], argv);
data/postfix-3.5.6/src/smtpd/smtpd_check.c:6056:34:  [4] (shell) system:
  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.
	    vstream_printf("exit %d\n", system(bp + 1));
data/postfix-3.5.6/src/util/concatenate.c:68: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(result, arg0);
data/postfix-3.5.6/src/util/concatenate.c:70: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(result, arg);
data/postfix-3.5.6/src/util/dict_ni.c:92:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(query, "%s/%s=%s", path, key_prop, key_value);
data/postfix-3.5.6/src/util/environ.c:112: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(destination + l_name + 1, value);
data/postfix-3.5.6/src/util/exec_command.c:75:9:  [4] (shell) execvp:
  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.
	(void) execvp(argv->argv[0], argv->argv);
data/postfix-3.5.6/src/util/exec_command.c:92:12:  [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.
    (void) execl(_PATH_BSHELL, "sh", "-c", command, (char *) 0);
data/postfix-3.5.6/src/util/spawn_command.c:276:6:  [4] (shell) execvp:
  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.
	    execvp(args.argv[0], args.argv);
data/postfix-3.5.6/src/util/spawn_command.c:282:6:  [4] (shell) execvp:
  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.
	    execvp(argv->argv[0], argv->argv);
data/postfix-3.5.6/src/util/sys_compat.c:123:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(cp, "%s=%s", name, value);
data/postfix-3.5.6/src/util/sys_defs.h:1603:49:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define PRINTFLIKE(x,y) __attribute__ ((format (printf, (x), (y))))
data/postfix-3.5.6/src/util/sys_defs.h:1613:48:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#define SCANFLIKE(x,y) __attribute__ ((format (scanf, (x), (y))))
data/postfix-3.5.6/src/util/vbuf_print.c:112:9:  [4] (format) snprintf:
  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.
	_ret = snprintf((char *) (bp)->ptr, (bp)->cnt, (fmt), (arg)); \
data/postfix-3.5.6/src/util/vbuf_print.c:124:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf((char *) (bp)->ptr, (fmt), (arg)); \
data/postfix-3.5.6/src/util/vstream_popen.c:255:6:  [4] (shell) execvp:
  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.
	    execvp(args.argv[0], args.argv);
data/postfix-3.5.6/src/util/vstream_popen.c:261:6:  [4] (shell) execvp:
  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.
	    execvp(argv->argv[0], argv->argv);
data/postfix-3.5.6/rmail/rmail.c:160:15:  [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 ((ch = getopt(argc, argv, "D:T")) != -1)
data/postfix-3.5.6/src/global/mail_conf.c:209:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((config_dir = getenv(CONF_ENV_PATH)) == 0)
data/postfix-3.5.6/src/global/pipe_command.c:184:13:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
    char   *chroot;			/* root directory */
data/postfix-3.5.6/src/global/pipe_command.c:487:11:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
	if (args.chroot) {
data/postfix-3.5.6/src/global/pipe_command.c:489:22:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
	    chroot_uid(args.chroot, (char *) 0);
data/postfix-3.5.6/src/master/dgram_server.c:344:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv(CONF_ENV_VERB))
data/postfix-3.5.6/src/master/dgram_server.c:346:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv(CONF_ENV_DEBUG))
data/postfix-3.5.6/src/master/dgram_server.c:570:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((generation = getenv(MASTER_GEN_NAME)) != 0) {
data/postfix-3.5.6/src/master/event_server.c:596:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv(CONF_ENV_VERB))
data/postfix-3.5.6/src/master/event_server.c:598:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv(CONF_ENV_DEBUG))
data/postfix-3.5.6/src/master/event_server.c:852:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((generation = getenv(MASTER_GEN_NAME)) != 0) {
data/postfix-3.5.6/src/master/master.c:298:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv(CONF_ENV_VERB))
data/postfix-3.5.6/src/master/master.c:300:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv(CONF_ENV_DEBUG))
data/postfix-3.5.6/src/master/master_ent.c:273:13:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
    int     chroot;			/* passed on to child */
data/postfix-3.5.6/src/master/master_ent.c:562:9:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
    if (chroot)
data/postfix-3.5.6/src/master/multi_server.c:570:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv(CONF_ENV_VERB))
data/postfix-3.5.6/src/master/multi_server.c:572:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv(CONF_ENV_DEBUG))
data/postfix-3.5.6/src/master/multi_server.c:807:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((generation = getenv(MASTER_GEN_NAME)) != 0) {
data/postfix-3.5.6/src/master/single_server.c:465:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv(CONF_ENV_VERB))
data/postfix-3.5.6/src/master/single_server.c:467:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv(CONF_ENV_DEBUG))
data/postfix-3.5.6/src/master/single_server.c:711:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((generation = getenv(MASTER_GEN_NAME)) != 0) {
data/postfix-3.5.6/src/master/trigger_server.c:451:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv(CONF_ENV_VERB))
data/postfix-3.5.6/src/master/trigger_server.c:453:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv(CONF_ENV_DEBUG))
data/postfix-3.5.6/src/master/trigger_server.c:702:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((generation = getenv(MASTER_GEN_NAME)) != 0) {
data/postfix-3.5.6/src/milter/test-milter.c:570:18:  [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 ((ch = getopt(argc, argv, "a:A:b:c:C:d:D:f:h:i:lm:M:n:N:p:rv")) > 0) {
data/postfix-3.5.6/src/postalias/postalias.c:740:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv(CONF_ENV_VERB))
data/postfix-3.5.6/src/postfix/postfix.c:551:30:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    force_single_instance = (getenv(CONF_ENV_PATH) != 0);
data/postfix-3.5.6/src/postlock/postlock.c:196:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv(CONF_ENV_VERB))
data/postfix-3.5.6/src/postmap/postmap.c:959:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv(CONF_ENV_VERB))
data/postfix-3.5.6/src/postmulti/postmulti.c:1710:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((config_dir = getenv(CONF_ENV_PATH)) != 0
data/postfix-3.5.6/src/posttls-finger/posttls-finger.c:2112:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char   *loopenv = getenv("VALGRINDLOOP");
data/postfix-3.5.6/src/smtpstone/qmqp-source.c:557: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(getpid());
data/postfix-3.5.6/src/smtpstone/smtp-source.c:1071: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(getpid());
data/postfix-3.5.6/src/util/casefold.c:319:7:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
		if (chroot(STR(buffer)) < 0)
data/postfix-3.5.6/src/util/chroot_uid.c:68:6:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
	if (chroot(root_dir))
data/postfix-3.5.6/src/util/environ.c:51:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
char   *getenv(const char *name)
data/postfix-3.5.6/src/util/midna_domain.c:376:6:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
	if (chroot(".") != 0)
data/postfix-3.5.6/src/util/msg_logger.c:255:13:  [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.
	    while (getenv("TZ"))		/* There may be multiple. */
data/postfix-3.5.6/src/util/msg_syslog.c:197:13:  [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.
	    while (getenv("TZ"))		/* There may be multiple. */
data/postfix-3.5.6/src/util/myrand.c:52:5:  [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/postfix-3.5.6/src/util/safe_getenv.c:40:29:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    return (unsafe() == 0 ? getenv(name) : 0);
data/postfix-3.5.6/src/util/sys_compat.c:119:25:  [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 (clobber == 0 && getenv(name) != 0)
data/postfix-3.5.6/src/util/sys_defs.h:1312:33:  [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.
#define GETOPT(argc, argv, str)	getopt((argc), (argv), "+" str)
data/postfix-3.5.6/src/util/sys_defs.h:1314:33:  [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.
#define GETOPT(argc, argv, str) getopt((argc), (argv), (str))
data/postfix-3.5.6/auxiliary/name-addr-test/getaddrinfo.c:28: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    hostbuf[NI_MAXHOST];	/* XXX */
data/postfix-3.5.6/auxiliary/name-addr-test/getnameinfo.c:28: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    hostbuf[NI_MAXHOST];	/* XXX */
data/postfix-3.5.6/rmail/rmail.c:58:15:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
# define FORK vfork
data/postfix-3.5.6/rmail/rmail.c:97:28:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
# define memmove(d, s, l)	(bcopy((s), (d), (l)))
data/postfix-3.5.6/rmail/rmail.c:153: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 **args, buf[2048], lbuf[2048];
data/postfix-3.5.6/src/bounce/bounce_notify_util.c:340:39:  [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).
		    && (bounce_info->arrival_time = atol(STR(bounce_info->buf))) < 0)
data/postfix-3.5.6/src/cleanup/cleanup.c:547:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int     milter_count = atoi(vstring_str(buf));
data/postfix-3.5.6/src/cleanup/cleanup_bounce.c:168:35:  [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).
	    if (alldig(start) && (junk = atoi(start)) > 0
data/postfix-3.5.6/src/cleanup/cleanup_envelope.c:139:15:  [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).
	extra_opts = atoi(buf);
data/postfix-3.5.6/src/cleanup/cleanup_envelope.c:150:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	defer_delay = atoi(buf);
data/postfix-3.5.6/src/cleanup/cleanup_envelope.c:168: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).
	if ((milter_count = atoi(buf)) >= 0)
data/postfix-3.5.6/src/cleanup/cleanup_envelope.c:316:37:  [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).
	if (!alldig(mapped_buf) || (junk = atoi(mapped_buf)) == 0
data/postfix-3.5.6/src/cleanup/cleanup_envelope.c:429:37:  [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).
	if (!alldig(mapped_buf) || (junk = atoi(mapped_buf)) == 0
data/postfix-3.5.6/src/cleanup/cleanup_envelope.c:493:39:  [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).
		state->tflags = DEL_REQ_TRACE_FLAGS(atoi(attr_value));
data/postfix-3.5.6/src/cleanup/cleanup_extracted.c:122:15:  [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).
	extra_opts = atoi(buf);
data/postfix-3.5.6/src/cleanup/cleanup_extracted.c:133:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	defer_delay = atoi(buf);
data/postfix-3.5.6/src/cleanup/cleanup_extracted.c:254:30:  [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).
	if (!alldig(buf) || (junk = atoi(buf)) == 0 || DSN_NOTIFY_OK(junk) == 0)
data/postfix-3.5.6/src/cleanup/cleanup_message.c:664: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    time_stamp[1024];		/* XXX locale dependent? */
data/postfix-3.5.6/src/cleanup/cleanup_milter.c:1783:35:  [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).
	    if (alldig(start) && (junk = atoi(start)) > 0
data/postfix-3.5.6/src/cleanup/cleanup_milter.c:2115: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).
	state->client_af = atoi(proto_attr);
data/postfix-3.5.6/src/cleanup/cleanup_milter.c:2173:11:  [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.
    const char *argv[2];
data/postfix-3.5.6/src/cleanup/cleanup_milter.c:2231:11:  [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.
    const char *argv[2];
data/postfix-3.5.6/src/cleanup/cleanup_milter.c:2432:8:  [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 (atol(STR(buf)) != 0)
data/postfix-3.5.6/src/cleanup/cleanup_milter.c:2441:8:  [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 (atol(STR(buf)) != 0)
data/postfix-3.5.6/src/cleanup/cleanup_milter.c:2451:8:  [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 (atol(STR(buf)) != 0)
data/postfix-3.5.6/src/cleanup/cleanup_milter.c:2578:26:  [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).
	    } else if ((index = atoi(argv->argv[1])) < 1) {
data/postfix-3.5.6/src/cleanup/cleanup_milter.c:2588:26:  [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).
	    } else if ((index = atoi(argv->argv[1])) < 1) {
data/postfix-3.5.6/src/cleanup/cleanup_milter.c:2598:26:  [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).
	    } else if ((index = atoi(argv->argv[1])) < 1) {
data/postfix-3.5.6/src/dns/dns.h:153: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    data[1];			/* actually a bunch of data */
data/postfix-3.5.6/src/dns/dns_lookup.c:320:14:  [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.
    unsigned char msg_buf[MAX_DNS_QUERY_SIZE];
data/postfix-3.5.6/src/dns/dns_lookup.c:640: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    temp[DNS_NAME_LEN];
data/postfix-3.5.6/src/dns/dns_lookup.c:685: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    temp[DNS_NAME_LEN];
data/postfix-3.5.6/src/dns/dns_lookup.c:735:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(temp, pos, fixed->length);
data/postfix-3.5.6/src/dns/dns_lookup.c:747:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(temp, pos, fixed->length);
data/postfix-3.5.6/src/dns/dns_lookup.c:835: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    rr_name[DNS_NAME_LEN];
data/postfix-3.5.6/src/dns/dns_lookup.c:944: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    cname[DNS_NAME_LEN];
data/postfix-3.5.6/src/dns/dns_rr.c:129:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(rr->data, data, data_len);
data/postfix-3.5.6/src/dns/dns_rr.c:159:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *) dst, (void *) src, len);
data/postfix-3.5.6/src/dns/dns_rr_to_sa.c:145:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if (!alldig(argv[2]) || (port = atoi(argv[2])) > 65535)
data/postfix-3.5.6/src/fsstone/fsstone.c:67: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    new_path[BUFSIZ];
data/postfix-3.5.6/src/fsstone/fsstone.c:68: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    old_path[BUFSIZ];
data/postfix-3.5.6/src/fsstone/fsstone.c:70:5:  [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(new_path, "%06d", new);
data/postfix-3.5.6/src/fsstone/fsstone.c:71:5:  [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(old_path, "%06d", old);
data/postfix-3.5.6/src/fsstone/fsstone.c:80: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    path[BUFSIZ];
data/postfix-3.5.6/src/fsstone/fsstone.c:81:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[1024];
data/postfix-3.5.6/src/fsstone/fsstone.c:85:5:  [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(path, "%06d", seqno);
data/postfix-3.5.6/src/fsstone/fsstone.c:86:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(path, "w")) == 0)
data/postfix-3.5.6/src/fsstone/fsstone.c:96:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(path, "r")) == 0)
data/postfix-3.5.6/src/fsstone/fsstone.c:108: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    path[BUFSIZ];
data/postfix-3.5.6/src/fsstone/fsstone.c:112:5:  [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(path, "%06d", seqno);
data/postfix-3.5.6/src/fsstone/fsstone.c:113:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(path, "w")) == 0)
data/postfix-3.5.6/src/fsstone/fsstone.c:121:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(path, "r+")) == 0)
data/postfix-3.5.6/src/fsstone/fsstone.c:135: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    path[BUFSIZ];
data/postfix-3.5.6/src/fsstone/fsstone.c:137:5:  [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(path, "%06d", seq);
data/postfix-3.5.6/src/fsstone/fsstone.c:146: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    path[BUFSIZ];
data/postfix-3.5.6/src/fsstone/fsstone.c:148:5:  [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(path, "%06d", seq);
data/postfix-3.5.6/src/fsstone/fsstone.c:187:18:  [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).
	    if ((size = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/fsstone/fsstone.c:197: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).
    if ((op_count = atoi(argv[optind])) <= 0)
data/postfix-3.5.6/src/fsstone/fsstone.c:199: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).
    if ((max_file = atoi(argv[optind + 1])) <= 0)
data/postfix-3.5.6/src/global/bounce_log.c:235:17:  [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).
		if ((notify = atoi(value)) > 0 && DSN_NOTIFY_OK(notify))
data/postfix-3.5.6/src/global/bounce_log.c:238: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).
		if ((offset = atol(value)) > 0)
data/postfix-3.5.6/src/global/dot_lockfile.c:97: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(lock_file, O_WRONLY | O_EXCL | O_CREAT, 0)) >= 0) {
data/postfix-3.5.6/src/global/dsn_util.h:35: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    data[DSN_SIZE];		/* NOT a public interface */
data/postfix-3.5.6/src/global/haproxy_srvr.c:273:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(port->buf, str, strlen(str) + 1);
data/postfix-3.5.6/src/global/haproxy_srvr.c:310:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&sin6.sin6_addr, sin6_addr, 16);
data/postfix-3.5.6/src/global/haproxy_srvr.c:498: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    read_buf[HAPROXY_HEADER_MAX_LEN + 1];
data/postfix-3.5.6/src/global/haproxy_srvr.c:716:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(hdr_v2->sig, PP2_SIGNATURE, PP2_SIGNATURE_LEN);
data/postfix-3.5.6/src/global/mail_addr_crunch.c:134:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ratsign, extension, extlen);
data/postfix-3.5.6/src/global/mail_addr_map.c:256:11:  [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.
    const char *expect_argv[2];
data/postfix-3.5.6/src/global/mail_conf_int.c:186:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[BUFSIZ];		/* yeah! crappy code! */
data/postfix-3.5.6/src/global/mail_conf_int.c:198:5:  [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(buf, "%d", value);			/* yeah! more crappy code! */
data/postfix-3.5.6/src/global/mail_conf_long.c:176:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[BUFSIZ];		/* yeah! crappy code! */
data/postfix-3.5.6/src/global/mail_conf_long.c:188:5:  [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(buf, "%ld", value);			/* yeah! more crappy code! */
data/postfix-3.5.6/src/global/mail_conf_nint.c:195:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[BUFSIZ];		/* yeah! crappy code! */
data/postfix-3.5.6/src/global/mail_conf_nint.c:207:5:  [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(buf, "%d", value);			/* yeah! more crappy code! */
data/postfix-3.5.6/src/global/mail_conf_time.c:197:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[BUFSIZ];		/* yeah! crappy code! */
data/postfix-3.5.6/src/global/mail_conf_time.c:209:5:  [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(buf, "%ds", value);			/* yeah! more crappy code! */
data/postfix-3.5.6/src/global/mail_dict.c:56: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).
    struct DICT *(*open) (const char *, int, int);
data/postfix-3.5.6/src/global/mail_dict.c:98:35:  [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).
	dict_open_register(dp->type, dp->open);
data/postfix-3.5.6/src/global/mail_params.c:365:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char null_format_string[1] = "";
data/postfix-3.5.6/src/global/mail_params.h:3178:14:  [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 const char null_format_string[1];
data/postfix-3.5.6/src/global/mail_queue.c:362: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(STR(temp_path), O_RDWR | O_CREAT | O_EXCL, mode)) >= 0)
data/postfix-3.5.6/src/global/mkmap.h:26: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).
    DICT_OPEN_FN open;			/* dict_xx_open() */
data/postfix-3.5.6/src/global/mkmap_db.c:91:24:  [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 ((mkmap->lock_fd = open(mkmap->lock_file, O_RDWR, 0644)) < 0)
data/postfix-3.5.6/src/global/mkmap_db.c:141:27:  [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 ((mkmap->lock_fd = open(mkmap->lock_file, O_RDWR, 0644)) < 0) {
data/postfix-3.5.6/src/global/mkmap_dbm.c:96:27:  [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 ((mkmap->lock_fd = open(mkmap->lock_file, O_CREAT | O_RDWR, 0644)) < 0)
data/postfix-3.5.6/src/global/mkmap_dbm.c:100: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 ((pag_fd = open(pag_file, O_CREAT | O_RDWR, 0644)) < 0)
data/postfix-3.5.6/src/global/mkmap_open.c:283:26:  [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).
    mkmap->dict = mkmap->open(path, open_flags, dict_flags);
data/postfix-3.5.6/src/global/mkmap_sdbm.c:93:27:  [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 ((mkmap->lock_fd = open(mkmap->lock_file, O_CREAT | O_RDWR, 0644)) < 0)
data/postfix-3.5.6/src/global/mkmap_sdbm.c:97: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 ((pag_fd = open(pag_file, O_CREAT | O_RDWR, 0644)) < 0)
data/postfix-3.5.6/src/global/msg_stats_scan.c:77:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy((void *) stats, STR(buf), sizeof(*stats));
data/postfix-3.5.6/src/global/mypwd.c:203: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    pwstore[GETPW_R_BUFSIZ];
data/postfix-3.5.6/src/global/mypwd.c:266: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    pwstore[GETPW_R_BUFSIZ];
data/postfix-3.5.6/src/global/mypwd.c:342:25:  [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).
	    mypwd[i] = mypwuid(atoi(argv[i]));
data/postfix-3.5.6/src/global/pipe_command.c:395: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    log_buf[VSTREAM_BUFSIZE + 1];
data/postfix-3.5.6/src/global/rec_type.h:142:44:  [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).
#define REC_TYPE_WARN_SCAN(cp, tv) ((tv) = atol(cp))
data/postfix-3.5.6/src/global/rec_type.h:153: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).
	(tv).tv_sec = atol(_p); \
data/postfix-3.5.6/src/global/rec_type.h:156: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).
	(tv).tv_usec = atol(_p); \
data/postfix-3.5.6/src/global/scache.c:227:37:  [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).
    if (argv->argc != 2 || (delay = atoi(argv->argv[1])) <= 0) {
data/postfix-3.5.6/src/global/scache.c:246:12:  [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).
	|| (ttl = atoi(argv->argv[1])) <= 0
data/postfix-3.5.6/src/global/scache.c:247:11:  [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).
	|| (fd = atoi(argv->argv[4])) <= 0) {
data/postfix-3.5.6/src/global/scache.c:276:35:  [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).
    if (argv->argc != 5 || (ttl = atoi(argv->argv[1])) <= 0) {
data/postfix-3.5.6/src/global/scache.c:303:37:  [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).
    if (argv->argc != 2 || (level = atoi(argv->argv[1])) < 0) {
data/postfix-3.5.6/src/global/verify_clnt.c:235:39:  [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).
    switch (verify_clnt_update(query, atoi(status_text), cp)) {
data/postfix-3.5.6/src/local/biff_notify.c:79:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((void *) &sin.sin_addr, hp->h_addr_list[0], hp->h_length);
data/postfix-3.5.6/src/local/local_expand.c:116:12:  [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 rcpt_delim[2];
data/postfix-3.5.6/src/local/maildir.c:84:13:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    char   *tmpfile;
data/postfix-3.5.6/src/local/maildir.c:188:30:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((dst = vstream_fopen(tmpfile, O_WRONLY | O_CREAT | O_EXCL, 0600)) == 0
data/postfix-3.5.6/src/local/maildir.c:191:30:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	    || (dst = vstream_fopen(tmpfile, O_WRONLY | O_CREAT | O_EXCL, 0600)) == 0)) {
data/postfix-3.5.6/src/local/maildir.c:193:36:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		   "create maildir file %s: %m", tmpfile);
data/postfix-3.5.6/src/local/maildir.c:201:28:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	msg_fatal("fstat %s: %m", tmpfile);
data/postfix-3.5.6/src/local/maildir.c:213:20:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	    if (sane_link(tmpfile, newfile) < 0
data/postfix-3.5.6/src/local/maildir.c:216:20:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		    || sane_link(tmpfile, newfile) < 0)) {
data/postfix-3.5.6/src/local/maildir.c:222:13:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	if (unlink(tmpfile) < 0)
data/postfix-3.5.6/src/local/maildir.c:223:32:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	    msg_warn("remove %s: %m", tmpfile);
data/postfix-3.5.6/src/local/maildir.c:253:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    myfree(tmpfile);
data/postfix-3.5.6/src/local/resolve.c:145:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ratsign + 1, state.msg_attr.unmatched, ext_len);
data/postfix-3.5.6/src/master/dgram_server.c:261:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[DGRAM_BUF_SIZE];
data/postfix-3.5.6/src/master/dgram_server.c:428:26:  [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).
	    if ((socket_count = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/master/event_server.c:680:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    if ((retire_me_from_flags = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/master/event_server.c:684:26:  [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).
	    if ((socket_count = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/master/mail_flow.c:73:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[BUFFER_SIZE];
data/postfix-3.5.6/src/master/mail_flow.c:108:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[BUFFER_SIZE];
data/postfix-3.5.6/src/master/master.c:363:57:  [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).
	    event_request_timer(master_exit_event, (void *) 0, atoi(optarg));
data/postfix-3.5.6/src/master/master.c:427: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).
	    if (open("/dev/null", O_RDWR, 0) != fd)
data/postfix-3.5.6/src/master/master_ent.c:254:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    if (!ISDIGIT(*value) || (n = atoi(value)) < min_val)
data/postfix-3.5.6/src/master/master_monitor.c:57:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[1];
data/postfix-3.5.6/src/master/master_sig.c:167:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    c[1];
data/postfix-3.5.6/src/master/multi_server.c:654:26:  [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).
	    if ((socket_count = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/master/single_server.c:549:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    if ((retire_me_from_flags = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/master/single_server.c:553:26:  [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).
	    if ((socket_count = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/master/trigger_server.c:271:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[TRIGGER_BUF_SIZE];
data/postfix-3.5.6/src/master/trigger_server.c:431:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[TRIGGER_BUF_SIZE];
data/postfix-3.5.6/src/master/trigger_server.c:535:26:  [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).
	    if ((socket_count = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/milter/milter8.c:1824: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).
	    if ((version = atoi(np->name)) > 0 && version <= milter->version) {
data/postfix-3.5.6/src/milter/milter8.c:1934:45:  [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).
	} else if (!alldig(client_port) || (port = atoi(client_port)) < 0
data/postfix-3.5.6/src/milter/test-milter.c:172:1:  [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   *add_rcpt[MAX_RCPT];
data/postfix-3.5.6/src/milter/test-milter.c:174:1:  [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   *del_rcpt[MAX_RCPT];
data/postfix-3.5.6/src/milter/test-milter.c:233:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[BUFSIZ];
data/postfix-3.5.6/src/milter/test-milter.c:329: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[BUFSIZ + 2];
data/postfix-3.5.6/src/milter/test-milter.c:334:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fp = fopen(body_file, "r")) == 0) {
data/postfix-3.5.6/src/milter/test-milter.c:597: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).
	    if (smfi_setdbg(atoi(optarg)) == MI_FAILURE) {
data/postfix-3.5.6/src/milter/test-milter.c:719:19:  [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).
	    conn_count = atoi(optarg);
data/postfix-3.5.6/src/milter/test-milter.c:765: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).
	} else if ((code = atoi(action)) >= 400
data/postfix-3.5.6/src/oqmgr/qmgr_feedback.c:110: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    denom_str[30 + 1];
data/postfix-3.5.6/src/oqmgr/qmgr_message.c:282:23:  [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 ((extra_offset = atol(start)) <= message->data_offset)
data/postfix-3.5.6/src/oqmgr/qmgr_message.c:501:30:  [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).
		if (!alldig(start) || (n = atoi(start)) == 0 || !DSN_NOTIFY_OK(n))
data/postfix-3.5.6/src/oqmgr/qmgr_message.c:577:26:  [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).
		message->create_time = atol(start);
data/postfix-3.5.6/src/oqmgr/qmgr_message.c:615:33:  [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).
	    if (!alldig(start) || (n = atoi(start)) == 0 || !DSN_RET_OK(n))
data/postfix-3.5.6/src/oqmgr/qmgr_message.c:724:45:  [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).
		    message->tflags = DEL_REQ_TRACE_FLAGS(atoi(value));
data/postfix-3.5.6/src/postalias/postalias.c:733: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).
	    && (close(fd), open("/dev/null", O_RDWR, 0)) != fd)
data/postfix-3.5.6/src/postcat/postcat.c:383: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).
		time = atol(attr_value);
data/postfix-3.5.6/src/postcat/postcat.c:447: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).
	    && (close(fd), open("/dev/null", O_RDWR, 0)) != fd)
data/postfix-3.5.6/src/postconf/postconf.c:824: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).
	    && (close(fd), open("/dev/null", O_RDWR, 0)) != fd)
data/postfix-3.5.6/src/postconf/postconf.h:246:44:  [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.
#define pcf_str_field_pattern(pat) ((const char *) (pcf_field_name_offset[pat].name))
data/postfix-3.5.6/src/postdrop/postdrop.c:270: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).
	    && (close(fd), open("/dev/null", O_RDWR, 0)) != fd)
data/postfix-3.5.6/src/postfix/postfix.c:499: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).
	    && (close(fd), open("/dev/null", O_RDWR, 0)) != fd)
data/postfix-3.5.6/src/postkick/postkick.c:143: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).
	    && (close(fd), open("/dev/null", O_RDWR, 0)) != fd)
data/postfix-3.5.6/src/postlock/postlock.c:189: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).
	    && (close(fd), open("/dev/null", O_RDWR, 0)) != fd)
data/postfix-3.5.6/src/postlog/postlog.c:220: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).
	    && (close(fd), open("/dev/null", O_RDWR, 0)) != fd)
data/postfix-3.5.6/src/postmap/postmap.c:952: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).
	    && (close(fd), open("/dev/null", O_RDWR, 0)) != fd)
data/postfix-3.5.6/src/postmulti/postmulti.c:1682: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).
	    && (close(fd), open("/dev/null", O_RDWR, 0)) != fd)
data/postfix-3.5.6/src/postqueue/postqueue.c:577: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).
	    && (close(fd), open("/dev/null", O_RDWR, 0)) != fd)
data/postfix-3.5.6/src/postscreen/postscreen_dnsbl.c:302: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    addr_buf[MAI_HOSTADDR_STRSIZE];
data/postfix-3.5.6/src/postscreen/postscreen_early.c:108: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    read_buf[PSC_READ_BUF_SIZE];
data/postfix-3.5.6/src/postsuper/postsuper.c:1300: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).
	    && (close(fd), open("/dev/null", O_RDWR, 0)) != fd)
data/postfix-3.5.6/src/posttls-finger/posttls-finger.c:577:32:  [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).
	rdata.code = (cp - BUF == 3 ? atoi(BUF) : 0);
data/postfix-3.5.6/src/posttls-finger/posttls-finger.c:676: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[CCERT_BUFSIZ];
data/postfix-3.5.6/src/posttls-finger/posttls-finger.c:824: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 ((cwd_fd = open(".", O_RDONLY)) < 0)
data/postfix-3.5.6/src/posttls-finger/posttls-finger.c:1079:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(sock_un.sun_path, path, len + 1);
data/postfix-3.5.6/src/posttls-finger/posttls-finger.c:1491:14:  [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).
	if ((port = atoi(service)) >= 65536 || port == 0)
data/postfix-3.5.6/src/posttls-finger/posttls-finger.c:1875:19:  [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).
	    conn_tmout = atoi(optarg);
data/postfix-3.5.6/src/posttls-finger/posttls-finger.c:1878:19:  [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).
	    smtp_tmout = atoi(optarg);
data/postfix-3.5.6/src/posttls-finger/posttls-finger.c:1944:29:  [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).
	    state->max_reconnect = atoi(optarg);
data/postfix-3.5.6/src/posttls-finger/posttls-finger.c:1965:25:  [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).
	    state->reconnect = atoi(optarg);
data/postfix-3.5.6/src/posttls-finger/posttls-finger.c:2113:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int     loop = loopenv ? atoi(loopenv) : 1;
data/postfix-3.5.6/src/qmgr/qmgr_feedback.c:110: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    denom_str[30 + 1];
data/postfix-3.5.6/src/qmgr/qmgr_message.c:304:23:  [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 ((extra_offset = atol(start)) <= message->data_offset)
data/postfix-3.5.6/src/qmgr/qmgr_message.c:542:30:  [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).
		if (!alldig(start) || (n = atoi(start)) == 0 || !DSN_NOTIFY_OK(n))
data/postfix-3.5.6/src/qmgr/qmgr_message.c:618:26:  [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).
		message->create_time = atol(start);
data/postfix-3.5.6/src/qmgr/qmgr_message.c:656:33:  [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).
	    if (!alldig(start) || (n = atoi(start)) == 0 || !DSN_RET_OK(n))
data/postfix-3.5.6/src/qmgr/qmgr_message.c:765:45:  [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).
		    message->tflags = DEL_REQ_TRACE_FLAGS(atoi(value));
data/postfix-3.5.6/src/qmqpd/qmqpd_peer.c:191:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((void *) sa, res0->ai_addr, sa_length);
data/postfix-3.5.6/src/sendmail/sendmail.c:1031: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).
	    && (close(fd), open("/dev/null", O_RDWR, 0)) != fd)
data/postfix-3.5.6/src/showq/showq.c:213:18:  [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).
		arrival_time = atol(start);
data/postfix-3.5.6/src/showq/showq.c:218:26:  [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).
			       && (msg_size = atol(start)) >= 0);
data/postfix-3.5.6/src/smtp/smtp_chat.c:413:15:  [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).
	rdata.code = atoi(STR(session->buffer));
data/postfix-3.5.6/src/smtp/smtp_connect.c:153:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(sock_un.sun_path, addr, len + 1);
data/postfix-3.5.6/src/smtp/smtp_connect.c:359:14:  [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).
	if ((port = atoi(service)) >= 65536 || port == 0)
data/postfix-3.5.6/src/smtp/smtp_proto.c:218:1:  [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   *xfer_states[SMTP_STATE_LAST] = {
data/postfix-3.5.6/src/smtp/smtp_proto.c:230:1:  [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   *xfer_request[SMTP_STATE_LAST] = {
data/postfix-3.5.6/src/smtpd/smtpd_check.c:1608: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   *prints[2];
data/postfix-3.5.6/src/smtpd/smtpd_check.c:2683:9:  [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).
	code = atoi(value);
data/postfix-3.5.6/src/smtpd/smtpd_check.c:2738:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ADDROF(savebuf), ADDROF(smtpd_check_buf), sizeof(savebuf));
data/postfix-3.5.6/src/smtpd/smtpd_check.c:2742:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ADDROF(smtpd_check_buf), ADDROF(savebuf),
data/postfix-3.5.6/src/smtpd/smtpd_check.c:2755:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ADDROF(smtpd_check_buf), ADDROF(savebuf), sizeof(smtpd_check_buf));
data/postfix-3.5.6/src/smtpd/smtpd_check.c:3556:9:  [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).
	code = atoi(STR(why));
data/postfix-3.5.6/src/smtpd/smtpd_check.c:4079:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ADDROF(savebuf), ADDROF(smtpd_check_buf), sizeof(savebuf));
data/postfix-3.5.6/src/smtpd/smtpd_check.c:4083:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(ADDROF(smtpd_check_buf), ADDROF(savebuf),
data/postfix-3.5.6/src/smtpd/smtpd_check.c:4093:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ADDROF(smtpd_check_buf), ADDROF(savebuf),
data/postfix-3.5.6/src/smtpd/smtpd_check.c:4254:9:  [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).
		sleep(atoi(*++cpp));
data/postfix-3.5.6/src/smtpd/smtpd_check.c:5818: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).
	    ip->target[0] = atoi(argv[1]);
data/postfix-3.5.6/src/smtpd/smtpd_check.c:6112:4:  [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).
			atoi(args->argv[3]);
data/postfix-3.5.6/src/smtpd/smtpd_peer.c:261:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((void *) sa, res0->ai_addr, sa_length);
data/postfix-3.5.6/src/smtpd/smtpd_peer.c:414:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *) &(state->sockaddr), res->ai_addr, res->ai_addrlen);
data/postfix-3.5.6/src/smtpd/smtpd_proxy.c:616:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		|| (expect = atoi(STR(replay_buf))) == SMTPD_PROX_WANT_BAD)
data/postfix-3.5.6/src/smtpstone/qmqp-sink.c:293:17:  [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).
	    if ((ttl = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/smtpstone/qmqp-sink.c:303:20:  [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).
    if ((backlog = atoi(argv[optind + 1])) <= 0)
data/postfix-3.5.6/src/smtpstone/qmqp-source.c:503:27:  [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).
	    if ((connect_count = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/smtpstone/qmqp-source.c:510:28:  [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).
	    if ((message_length = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/smtpstone/qmqp-source.c:514:27:  [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).
	    if ((message_count = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/smtpstone/qmqp-source.c:528:24:  [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).
	    if ((recipients = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/smtpstone/qmqp-source.c:532:45:  [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).
	    if (fixed_delay > 0 || (random_delay = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/smtpstone/qmqp-source.c:536: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).
	    if ((sessions = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/smtpstone/qmqp-source.c:546:45:  [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).
	    if (random_delay > 0 || (fixed_delay = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/smtpstone/qmqp-source.c:573:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(sun.sun_path, path, path_len);
data/postfix-3.5.6/src/smtpstone/qmqp-source.c:589:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((void *) sa, res->ai_addr, res->ai_addrlen);
data/postfix-3.5.6/src/smtpstone/smtp-sink.c:1091:24:  [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).
    set_cmd_delay(cmd, atoi(delay), odds ? atoi(odds) : 0);
data/postfix-3.5.6/src/smtpstone/smtp-sink.c:1091:44:  [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).
    set_cmd_delay(cmd, atoi(delay), odds ? atoi(odds) : 0);
data/postfix-3.5.6/src/smtpstone/smtp-sink.c:1481:44:  [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).
	    if (!alldig(optarg) || (abort_delay = atoi(optarg)) < 0)
data/postfix-3.5.6/src/smtpstone/smtp-sink.c:1529:29:  [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).
	    if ((data_read_delay = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/smtpstone/smtp-sink.c:1536:30:  [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).
	    if ((max_client_count = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/smtpstone/smtp-sink.c:1540:32:  [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).
	    if ((max_msg_quit_count = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/smtpstone/smtp-sink.c:1544:28:  [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).
	    if ((max_quit_count = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/smtpstone/smtp-sink.c:1579:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    if ((var_tmout = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/smtpstone/smtp-sink.c:1583:29:  [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).
	    if ((inet_windowsize = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/smtpstone/smtp-sink.c:1593:19:  [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).
	    if ((delay = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/smtpstone/smtp-sink.c:1606:20:  [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).
    if ((backlog = atoi(argv[optind + 1])) <= 0)
data/postfix-3.5.6/src/smtpstone/smtp-source.c:332:32:  [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).
	rdata.code = (cp - BUF == 3 ? atoi(BUF) : 0);
data/postfix-3.5.6/src/smtpstone/smtp-source.c:986:27:  [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).
	    if ((connect_count = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/smtpstone/smtp-source.c:1003:28:  [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).
	    if ((message_length = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/smtpstone/smtp-source.c:1010:27:  [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).
	    if ((message_count = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/smtpstone/smtp-source.c:1031:24:  [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).
	    if ((recipients = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/smtpstone/smtp-source.c:1037:26:  [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).
	    if ((random_delay = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/smtpstone/smtp-source.c:1041: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).
	    if ((sessions = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/smtpstone/smtp-source.c:1051:29:  [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).
	    if ((inet_windowsize = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/smtpstone/smtp-source.c:1060:25:  [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).
	    if ((fixed_delay = atoi(optarg)) <= 0)
data/postfix-3.5.6/src/smtpstone/smtp-source.c:1121:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(sun.sun_path, path, path_len);
data/postfix-3.5.6/src/smtpstone/smtp-source.c:1137:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((void *) sa, res->ai_addr, res->ai_addrlen);
data/postfix-3.5.6/src/tls/tls_certkey.c:758: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    buf[CCERT_BUFSIZ];
data/postfix-3.5.6/src/tls/tls_dane.c:1725:17:  [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).
    uint8_t u = atoi(argv[1]);
data/postfix-3.5.6/src/tls/tls_dane.c:1726:17:  [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).
    uint8_t s = atoi(argv[2]);
data/postfix-3.5.6/src/tls/tls_dh.c:198:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((paramfile = fopen(path, "r")) != 0) {
data/postfix-3.5.6/src/tls/tls_fprint.c:170:14:  [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.
    unsigned char md_buf[EVP_MAX_MD_SIZE];
data/postfix-3.5.6/src/tls/tls_fprint.c:289:14:  [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.
    unsigned char md_buf[EVP_MAX_MD_SIZE];
data/postfix-3.5.6/src/tls/tls_mgr.c:358:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *) &tmp, STR(keybuf), sizeof(tmp));
data/postfix-3.5.6/src/tls/tls_mgr.c:432:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    int     len = atoi(argv->argv[1]);
data/postfix-3.5.6/src/tls/tls_misc.c:1349: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    buffer[1024];		/* XXX */
data/postfix-3.5.6/src/tls/tls_prng_dev.c:94: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 ((fd = open(name, O_RDONLY, 0)) < 0) {
data/postfix-3.5.6/src/tls/tls_prng_dev.c:114:14:  [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.
    unsigned char buffer[UCHAR_MAX];
data/postfix-3.5.6/src/tls/tls_prng_egd.c:115:14:  [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.
    unsigned char buffer[UCHAR_MAX];
data/postfix-3.5.6/src/tls/tls_prng_exch.c:87: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 ((fd = open(name, O_RDWR | O_CREAT, 0600)) < 0)
data/postfix-3.5.6/src/tls/tls_prng_exch.c:102:14:  [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.
    unsigned char buffer[TLS_PRNG_EXCH_SIZE];
data/postfix-3.5.6/src/tls/tls_prng_file.c:89: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 ((fd = open(name, O_RDONLY, 0)) < 0) {
data/postfix-3.5.6/src/tls/tls_prng_file.c:109:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buffer[8192];
data/postfix-3.5.6/src/tls/tls_scache.c:178: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    session[1];			/* actually a bunch of bytes */
data/postfix-3.5.6/src/tls/tls_scache.c:208:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(entry->session, session, session_len);
data/postfix-3.5.6/src/tls/tls_scache.h:39:14:  [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.
    unsigned char name[TLS_TICKET_NAMELEN];
data/postfix-3.5.6/src/tls/tls_scache.h:40:14:  [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.
    unsigned char bits[TLS_TICKET_KEYLEN];
data/postfix-3.5.6/src/tls/tls_scache.h:41:14:  [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.
    unsigned char hmac[TLS_TICKET_MACLEN];
data/postfix-3.5.6/src/tls/tls_server.c:323:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((void *) name, (void *) key->name, TLS_TICKET_NAMELEN);
data/postfix-3.5.6/src/tls/tls_server.c:905:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[CCERT_BUFSIZ];
data/postfix-3.5.6/src/tls/tls_verify.c:151:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[CCERT_BUFSIZ];
data/postfix-3.5.6/src/tls/tls_verify.c:203:6:  [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(buf, "<unknown>");
data/postfix-3.5.6/src/tls/tls_verify.c:214:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[CCERT_BUFSIZ];
data/postfix-3.5.6/src/tls/tls_verify.c:252:6:  [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(buf, "<unknown>");
data/postfix-3.5.6/src/util/argv.h: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 *__fake_argv_args__[2]; \
data/postfix-3.5.6/src/util/attr_print0.c:189:22:  [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.
			     ht[0]->key, (char *) ht[0]->value);
data/postfix-3.5.6/src/util/attr_print64.c:229:22:  [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.
			     ht[0]->key, (char *) ht[0]->value);
data/postfix-3.5.6/src/util/attr_print_plain.c:181:47:  [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.
		vstream_fprintf(fp, "%s=%s\n", ht[0]->key, (char *) ht[0]->value);
data/postfix-3.5.6/src/util/attr_print_plain.c:184:22:  [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.
			     ht[0]->key, (char *) ht[0]->value);
data/postfix-3.5.6/src/util/attr_scan0.c:529:52:  [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.
	    vstream_printf("(hash) %s %s\n", ht[0]->key, (char *) ht[0]->value);
data/postfix-3.5.6/src/util/attr_scan0.c:548:52:  [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.
	    vstream_printf("(hash) %s %s\n", ht[0]->key, (char *) ht[0]->value);
data/postfix-3.5.6/src/util/attr_scan64.c:588:52:  [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.
	    vstream_printf("(hash) %s %s\n", ht[0]->key, (char *) ht[0]->value);
data/postfix-3.5.6/src/util/attr_scan64.c:607:52:  [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.
	    vstream_printf("(hash) %s %s\n", ht[0]->key, (char *) ht[0]->value);
data/postfix-3.5.6/src/util/attr_scan_plain.c:571:52:  [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.
	    vstream_printf("(hash) %s %s\n", ht[0]->key, (char *) ht[0]->value);
data/postfix-3.5.6/src/util/attr_scan_plain.c:590:52:  [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.
	    vstream_printf("(hash) %s %s\n", ht[0]->key, (char *) ht[0]->value);
data/postfix-3.5.6/src/util/base64_code.c:208: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    test[256];
data/postfix-3.5.6/src/util/binhash.c:227:35:  [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.
#define	KEY_EQ(x,y,l) (((unsigned char *) x)[0] == ((unsigned char *) y)[0] && memcmp(x,y,l) == 0)
data/postfix-3.5.6/src/util/binhash.c:227:63:  [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.
#define	KEY_EQ(x,y,l) (((unsigned char *) x)[0] == ((unsigned char *) y)[0] && memcmp(x,y,l) == 0)
data/postfix-3.5.6/src/util/cidr_match.c:150:14:  [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.
    unsigned char addr_bytes[CIDR_MATCH_ABYTES];
data/postfix-3.5.6/src/util/cidr_match.c:227:27:  [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).
	    || (ip->mask_shift = atoi(mask)) > ip->addr_bit_count
data/postfix-3.5.6/src/util/cidr_match.h:43:14:  [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.
    unsigned char net_bytes[CIDR_MATCH_ABYTES];	/* network portion */
data/postfix-3.5.6/src/util/cidr_match.h:44:14:  [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.
    unsigned char mask_bytes[CIDR_MATCH_ABYTES];	/* network mask */
data/postfix-3.5.6/src/util/dict_cache.c:593:60:  [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).
#define NEXT_START(last, delta) ((delta) + (unsigned long) atol(last))
data/postfix-3.5.6/src/util/dict_cache.c:1028:35:  [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).
    if (!alldig(todo) || (count = atoi(todo)) == 0) {
data/postfix-3.5.6/src/util/dict_cache.c:1089:20:  [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).
	    msg_verbose = atoi(args->argv[1]);
data/postfix-3.5.6/src/util/dict_cache.c:1091: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).
	    show_elapsed = atoi(args->argv[1]);
data/postfix-3.5.6/src/util/dict_cache.c:1094:27:  [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).
	    dict_lmdb_map_size = atol(args->argv[1]);
data/postfix-3.5.6/src/util/dict_cdb.c:196: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 ((fd = open(cdb_path, O_RDONLY)) < 0)
data/postfix-3.5.6/src/util/dict_cdb.c:365: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(tmp_path, O_RDWR | O_CREAT, 0644)) < 0)
data/postfix-3.5.6/src/util/dict_db.c:605:25:  [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 ((errno = dbenv->open(dbenv, sane_dirname(db_home_buf, db_path),
data/postfix-3.5.6/src/util/dict_db.c:695: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).
	if ((lock_fd = open(db_path, LOCK_OPEN_FLAGS(open_flags), 0644)) < 0) {
data/postfix-3.5.6/src/util/dict_db.c:758: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 ((errno = db->open(db, 0, sane_basename(db_base_buf, db_path),
data/postfix-3.5.6/src/util/dict_db.c:763: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 ((errno = db->open(db, sane_basename(db_base_buf, db_path), 0,
data/postfix-3.5.6/src/util/dict_dbm.c:443: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).
	if ((lock_fd = open(dbm_path, open_flags, 0644)) < 0)
data/postfix-3.5.6/src/util/dict_ni.c:116:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy(result + l, values.ni_namelist_val[i], n);
data/postfix-3.5.6/src/util/dict_nis.c:72: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 dict_nis_disabled[1];
data/postfix-3.5.6/src/util/dict_nisplus.c:293:52:  [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).
	if (!alldig(col_field) || (dict_nisplus->column = atoi(col_field)) < 1)
data/postfix-3.5.6/src/util/dict_open.c:357: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).
    DICT_OPEN_FN open;
data/postfix-3.5.6/src/util/dict_open.c:482: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 ((dict = dp->open(dict_name, open_flags, dict_flags)) == 0)
data/postfix-3.5.6/src/util/dict_open.c:511:59:  [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).
void    dict_open_register(const char *type, DICT_OPEN_FN open)
data/postfix-3.5.6/src/util/dict_open.c:522: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).
    dp->open = open;
data/postfix-3.5.6/src/util/dict_open.c:542:22:  [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.
    return (strcmp(((char **) a)[0], ((char **) b)[0]));
data/postfix-3.5.6/src/util/dict_open.c:542:40:  [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.
    return (strcmp(((char **) a)[0], ((char **) b)[0]));
data/postfix-3.5.6/src/util/dict_pcre.c:193:6:  [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).
	n = atoi(vstring_str(buf));
data/postfix-3.5.6/src/util/dict_pcre.c:530:6:  [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).
	n = atoi(vstring_str(buf));
data/postfix-3.5.6/src/util/dict_regexp.c:172:6:  [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).
	n = atoi(vstring_str(buf));
data/postfix-3.5.6/src/util/dict_regexp.c:200: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    errbuf[256];
data/postfix-3.5.6/src/util/dict_regexp.c:498:6:  [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).
	n = atoi(vstring_str(buf));
data/postfix-3.5.6/src/util/dict_sdbm.c:424: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).
	if ((lock_fd = open(dbm_path, open_flags, 0644)) < 0)
data/postfix-3.5.6/src/util/doze.c:65: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 (argc != 2 || (delay = atol(argv[1])) == 0)
data/postfix-3.5.6/src/util/environ.c:123:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(new, old, old_len);
data/postfix-3.5.6/src/util/events.c:371: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).
	er = event_pollfd = open("/dev/poll", O_RDWR); \
data/postfix-3.5.6/src/util/events.c:1228:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[BUFSIZ];
data/postfix-3.5.6/src/util/events.c:1254:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	msg_verbose = atoi(argv[1]);
data/postfix-3.5.6/src/util/fifo_listen.c:54:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[BUF_LEN];
data/postfix-3.5.6/src/util/fifo_listen.c:78: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(path, O_RDWR | O_NONBLOCK, 0)) < 0)
data/postfix-3.5.6/src/util/fifo_listen.c:91: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(path, open_mode, 0)) < 0)
data/postfix-3.5.6/src/util/fifo_open.c:59:9:  [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 (open(FIFO_PATH, O_WRONLY | O_NONBLOCK, 0) < 0) {
data/postfix-3.5.6/src/util/fifo_rdonly_bug.c:87: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 ((fd = open(FIFO_PATH, O_RDONLY | O_NONBLOCK, 0)) < 0)
data/postfix-3.5.6/src/util/fifo_rdonly_bug.c:91: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 ((fd2 = open(FIFO_PATH, O_WRONLY, 0)) < 0)
data/postfix-3.5.6/src/util/fifo_rdwr_bug.c:62: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 ((fd = open(FIFO_PATH, O_RDWR, 0)) < 0) {
data/postfix-3.5.6/src/util/find_inet.c:75:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((void *) &addr, hp->h_addr, hp->h_length);
data/postfix-3.5.6/src/util/find_inet.c:87:36:  [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).
    if (alldig(service) && (port = atoi(service)) != 0) {
data/postfix-3.5.6/src/util/get_hostname.c:57: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    namebuf[MAXHOSTNAMELEN + 1];
data/postfix-3.5.6/src/util/inet_addr_list.c:98:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(list->addrs + list->used++, addr, SOCK_ADDR_LEN(addr));
data/postfix-3.5.6/src/util/inet_addr_local.c:308:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy((void *) lifr_mask, (void *) lifr, sizeof(struct lifreq));
data/postfix-3.5.6/src/util/inet_addr_local.c:400:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy((void *) ifr_mask, (void *) ifr, IFREQ_SIZE(ifr));
data/postfix-3.5.6/src/util/inet_addr_local.c:463:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[BUFSIZ];
data/postfix-3.5.6/src/util/inet_addr_local.c:478:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(_PATH_PROCNET_IFINET6, "r")) != 0) {
data/postfix-3.5.6/src/util/ip_match.c:147:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    return (memcpy(dst, STR(byte_codes), LEN(byte_codes)));
data/postfix-3.5.6/src/util/midna_domain.c:172:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[1024];			/* XXX */
data/postfix-3.5.6/src/util/midna_domain.c:226:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[1024];			/* XXX */
data/postfix-3.5.6/src/util/myaddrinfo.c:274:9:  [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).
	port = atoi(service);
data/postfix-3.5.6/src/util/myaddrinfo.c:586: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    portbuf[sizeof("65535")];
data/postfix-3.5.6/src/util/myaddrinfo.c:603:2:  [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(portbuf, "%d", ntohs(SOCK_ADDR_IN_PORT(sa)) & 0xffff);
data/postfix-3.5.6/src/util/myaddrinfo.c:608:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(portnum->buf, portbuf, len + 1);
data/postfix-3.5.6/src/util/myaddrinfo.c:669:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(hostname->buf, hp->h_name, len + 1);
data/postfix-3.5.6/src/util/myaddrinfo.c:688:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(service->buf, sp->s_name, len + 1);
data/postfix-3.5.6/src/util/myaddrinfo.h:142:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[MAI_HOSTNAME_STRSIZE];
data/postfix-3.5.6/src/util/myaddrinfo.h:146:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[MAI_HOSTADDR_STRSIZE];
data/postfix-3.5.6/src/util/myaddrinfo.h:150:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[MAI_SERVNAME_STRSIZE];
data/postfix-3.5.6/src/util/myaddrinfo.h:154:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[MAI_SERVPORT_STRSIZE];
data/postfix-3.5.6/src/util/mymalloc.c:106: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    payload[1];		/* actually a bunch of bytes */
data/postfix-3.5.6/src/util/mymalloc.c:237:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    return (memcpy(mymalloc(len), str, len));
data/postfix-3.5.6/src/util/mymalloc.c:257:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    result = memcpy(mymalloc(len + 1), str, len);
data/postfix-3.5.6/src/util/mymalloc.c:268:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    return (memcpy(mymalloc(len), ptr, len));
data/postfix-3.5.6/src/util/open_as.c:62: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).
    fd = open(path, flags, mode);
data/postfix-3.5.6/src/util/rand_sleep.c:81:18:  [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).
    if ((delay = atoi(argv[1])) <= 0)
data/postfix-3.5.6/src/util/rand_sleep.c:83: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).
    if ((variation = atoi(argv[2])) < 0)
data/postfix-3.5.6/src/util/sane_time.c:112: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 (argc == 2 && (delay = atol(argv[1]) * 1000) > 0)
data/postfix-3.5.6/src/util/slmdb.c:367:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(slmdb->saved_key.mv_data, key_val->mv_data, key_val->mv_size);
data/postfix-3.5.6/src/util/stream_connect.c:73: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).
    if ((fifo = open(path, O_WRONLY | O_NONBLOCK, 0)) < 0)
data/postfix-3.5.6/src/util/stream_recv_fd.c:89:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[1024];
data/postfix-3.5.6/src/util/stream_send_fd.c:104: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 ((client_fd = open(path, O_RDONLY, 0)) < 0)
data/postfix-3.5.6/src/util/stream_test.c:61:19:  [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).
	    if ((count = atoi(optarg)) < 1)
data/postfix-3.5.6/src/util/sys_compat.c:241: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).
    fd = open("/dev/tty", O_RDONLY, 0);
data/postfix-3.5.6/src/util/sys_compat.c:328: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    buffer[sizeof("255.255.255.255")];
data/postfix-3.5.6/src/util/sys_compat.c:337:5:  [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(buffer, "%d.%d.%d.%d", addr[0] & 0xff,
data/postfix-3.5.6/src/util/sys_compat.c:340:5:  [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(buffer, "%d.%d.%d.%d", addr[0], addr[1], addr[2], addr[3]);
data/postfix-3.5.6/src/util/sys_compat.c:346:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst, buffer, len + 1);
data/postfix-3.5.6/src/util/sys_compat.c:384:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst, (void *) &addr, sizeof(addr));
data/postfix-3.5.6/src/util/sys_defs.h:399:24:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define memmove(d,s,l)	bcopy(s,d,l)
data/postfix-3.5.6/src/util/unix_connect.c:76:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(sun.sun_path, addr, len + 1);
data/postfix-3.5.6/src/util/unix_dgram_connect.c:78:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(sun.sun_path, path, path_len + 1);
data/postfix-3.5.6/src/util/unix_dgram_listen.c:73:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(sun.sun_path, path, path_len + 1);
data/postfix-3.5.6/src/util/unix_listen.c:83:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(sun.sun_path, addr, len + 1);
data/postfix-3.5.6/src/util/unix_recv_fd.c:61:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[1];
data/postfix-3.5.6/src/util/unix_recv_fd.c:71: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    control[CMSG_SPACE(sizeof(newfd))];
data/postfix-3.5.6/src/util/unix_recv_fd.c:146:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[1024];
data/postfix-3.5.6/src/util/unix_send_fd.c:73: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    control[CMSG_SPACE(sizeof(sendfd))];
data/postfix-3.5.6/src/util/unix_send_fd.c:182: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 ((client_fd = open(path, O_RDONLY, 0)) < 0)
data/postfix-3.5.6/src/util/valid_hostname.c:366:13:  [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).
	|| (port = atoi(str)) > 65535 || port < 0) {
data/postfix-3.5.6/src/util/vbuf.c:206:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(cp, bp->ptr, n);
data/postfix-3.5.6/src/util/vbuf.c:232:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(bp->ptr, cp, n);
data/postfix-3.5.6/src/util/vbuf_print.c:357: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).
			vstring_sprintf(obuf, fmt, atol(val));
data/postfix-3.5.6/src/util/vbuf_print.c:359:31:  [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).
			vstring_sprintf(obuf, fmt, atoi(val));
data/postfix-3.5.6/src/util/vstream.c:545:17:  [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 unsigned char vstream_fstd_buf[VSTREAM_BUFSIZE];
data/postfix-3.5.6/src/util/vstream.c:812:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(bp->data, bp->data + to_flush, left_over);
data/postfix-3.5.6/src/util/vstream.c:1338: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 ((fd = open(path, flags, mode)) < 0) {
data/postfix-3.5.6/src/util/vstream.c:1365:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(&string->vbuf, &stream->buf, sizeof(stream->buf));
data/postfix-3.5.6/src/util/vstring.c:509:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(vstring_str(vp), src, len);
data/postfix-3.5.6/src/util/vstring.c:519:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(vstring_end(vp), src, len);
data/postfix-3.5.6/src/util/vstring.c:558:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(vstring_str(vp) + start, buf, len);
data/postfix-3.5.6/src/util/vstring.c:582:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(vstring_str(vp), buf, len);
data/postfix-3.5.6/src/verify/verify.c:307:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
#define STATUS_FROM_RAW_ENTRY(e) atoi(e)
data/postfix-3.5.6/src/verify/verify.c:331:12:  [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).
	*probed = atol(probed_text);
data/postfix-3.5.6/src/verify/verify.c:332:13:  [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).
	*updated = atol(updated_text);
data/postfix-3.5.6/src/verify/verify.c:333:12:  [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).
	*status = atoi(buf);
data/postfix-3.5.6/src/virtual/mailbox.c:231: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).
    if ((n = atol(uid_res)) < var_virt_minimum_uid) {
data/postfix-3.5.6/src/virtual/mailbox.c:254: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).
    if ((n = atol(gid_res)) <= 0) {
data/postfix-3.5.6/src/virtual/maildir.c:79:13:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    char   *tmpfile;
data/postfix-3.5.6/src/virtual/maildir.c:182:30:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((dst = vstream_fopen(tmpfile, O_WRONLY | O_CREAT | O_EXCL, 0600)) == 0
data/postfix-3.5.6/src/virtual/maildir.c:185:30:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	    || (dst = vstream_fopen(tmpfile, O_WRONLY | O_CREAT | O_EXCL, 0600)) == 0)) {
data/postfix-3.5.6/src/virtual/maildir.c:187:36:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		   "create maildir file %s: %m", tmpfile);
data/postfix-3.5.6/src/virtual/maildir.c:195:28:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	msg_fatal("fstat %s: %m", tmpfile);
data/postfix-3.5.6/src/virtual/maildir.c:207:20:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	    if (sane_link(tmpfile, newfile) < 0
data/postfix-3.5.6/src/virtual/maildir.c:210:20:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		    || sane_link(tmpfile, newfile) < 0)) {
data/postfix-3.5.6/src/virtual/maildir.c:216:13:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	if (unlink(tmpfile) < 0)
data/postfix-3.5.6/src/virtual/maildir.c:217:32:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	    msg_warn("remove %s: %m", tmpfile);
data/postfix-3.5.6/src/virtual/maildir.c:250:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    myfree(tmpfile);
data/postfix-3.5.6/src/xsasl/xsasl_cyrus_client.c:214:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((*psecret)->data, client->password, len + 1);
data/postfix-3.5.6/src/xsasl/xsasl_cyrus_client.c:346:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *) custom_callbacks, callbacks, sizeof(callbacks));
data/postfix-3.5.6/rmail/rmail.c:124: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).
#define newstr(s)	strcpy(xalloc(strlen(s) + 1), s)
data/postfix-3.5.6/rmail/rmail.c:354: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(*argv) + 3;
data/postfix-3.5.6/src/bounce/bounce.c:396:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(STR(verp_delims)) != 2) {
data/postfix-3.5.6/src/bounce/bounce_notify_util.c:697: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(rcpt->address)) ?
data/postfix-3.5.6/src/bounce/bounce_notify_util.c:726: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).
					     strlen(rcpt->orig_addr)) ?
data/postfix-3.5.6/src/bounce/bounce_templates.c:307: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).
    (strncmp(tname, mname, tname_len = strlen(tname)) == 0 \
data/postfix-3.5.6/src/cleanup/cleanup_init.c:464:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cleanup_reject_chars = vstring_alloc(strlen(var_msg_reject_chars));
data/postfix-3.5.6/src/cleanup/cleanup_init.c:468: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).
	cleanup_strip_chars = vstring_alloc(strlen(var_msg_strip_chars));
data/postfix-3.5.6/src/cleanup/cleanup_map1n.c:144:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    if (strlen(lookup->argv[i]) > var_virt_addrlen_limit) {
data/postfix-3.5.6/src/cleanup/cleanup_masquerade.c:101: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).
    domain_len = strlen(domain);
data/postfix-3.5.6/src/cleanup/cleanup_masquerade.c:129: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).
	masq_len = strlen(masq);
data/postfix-3.5.6/src/cleanup/cleanup_message.c:160: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).
			      + strlen(hdr_opts->name) + 1,
data/postfix-3.5.6/src/cleanup/cleanup_message.c:183: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).
	vstring_truncate(header_buf, strlen(hdr_opts->name));
data/postfix-3.5.6/src/cleanup/cleanup_message.c:217: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).
			      + strlen(hdr_opts->name) + 1,
data/postfix-3.5.6/src/cleanup/cleanup_message.c:240: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).
	vstring_truncate(header_buf, strlen(hdr_opts->name));
data/postfix-3.5.6/src/cleanup/cleanup_message.c:417:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		temp = vstring_strcpy(vstring_alloc(strlen(optional_text)),
data/postfix-3.5.6/src/cleanup/cleanup_message.c:573: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).
    hdrval = vstring_str(header_buf) + strlen(hdr_opts->name) + 1;
data/postfix-3.5.6/src/cleanup/cleanup_message.c:905: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).
		cleanup_out(state, type, result, strlen(result));
data/postfix-3.5.6/src/cleanup/cleanup_milter.c:880: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).
		      && (strlen(header_label) == len)))
data/postfix-3.5.6/src/cleanup/cleanup_milter.c:1439: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).
    int_sender_buf = vstring_alloc(strlen(ext_from) + 1);
data/postfix-3.5.6/src/cleanup/cleanup_milter.c:1577: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).
    int_rcpt_buf = vstring_alloc(strlen(ext_rcpt) + 1);
data/postfix-3.5.6/src/cleanup/cleanup_milter.c:1719: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).
    int_rcpt_buf = vstring_alloc(strlen(ext_rcpt) + 1);
data/postfix-3.5.6/src/cleanup/cleanup_out.c:150: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).
    cleanup_out(state, type, string, strlen(string));
data/postfix-3.5.6/src/cleanup/cleanup_out.c:206: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).
	line_len = next_line ? next_line - 1 - line : strlen(line);
data/postfix-3.5.6/src/dns/dns_lookup.c:714: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).
	data_len = strlen(temp) + 1;
data/postfix-3.5.6/src/dns/dns_lookup.c:725: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).
	data_len = strlen(temp) + 1;
data/postfix-3.5.6/src/global/anvil_clnt.c:460: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).
	cmd_len = strlen(cmd);
data/postfix-3.5.6/src/global/cfg_parser.c:126: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(strval);
data/postfix-3.5.6/src/global/data_redirect.c:129: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).
	vstring_prepend(result, var_data_dir, strlen(var_data_dir));
data/postfix-3.5.6/src/global/data_redirect.c:172: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).
	map_type_len = strlen(map_type);
data/postfix-3.5.6/src/global/delivered_hdr.c:145:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		cp = STR(info->buf) + strlen(hdr->name) + 1;
data/postfix-3.5.6/src/global/dict_ldap.c:436: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).
	p = buf + strlen(buf) - 1;
data/postfix-3.5.6/src/global/dict_ldap.c:494: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).
	    in->len = strlen(in->result);
data/postfix-3.5.6/src/global/dict_ldap.c:571: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).
    cred.bv_len = strlen(cred.bv_val);
data/postfix-3.5.6/src/global/dict_ldap.c:941: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).
#define ADDSTR(vp, s) vstring_memcat((vp), (s), strlen((s))+1)
data/postfix-3.5.6/src/global/dict_ldap.c:1349: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).
	&& !valid_utf8_string(name, strlen(name))) {
data/postfix-3.5.6/src/global/dict_memcache.c:136: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  data_len = strlen(value);
data/postfix-3.5.6/src/global/dict_memcache.c:158: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).
		   || memcache_fwrite(fp, value, strlen(value)) < 0
data/postfix-3.5.6/src/global/dict_mysql.c:284: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     len = strlen(name);
data/postfix-3.5.6/src/global/dict_mysql.c:333: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).
	&& !valid_utf8_string(name, strlen(name))) {
data/postfix-3.5.6/src/global/dict_pgsql.c:243: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).
    size_t  len = strlen(name);
data/postfix-3.5.6/src/global/dict_pgsql.c:353: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).
	&& !valid_utf8_string(name, strlen(name))) {
data/postfix-3.5.6/src/global/dict_sqlite.c:169: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).
	&& !valid_utf8_string(name, strlen(name))) {
data/postfix-3.5.6/src/global/dsn_util.c:155:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dp->dsn.data, cp, len);
data/postfix-3.5.6/src/global/dsn_util.c:159:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dp->dsn.data, def_dsn, len);
data/postfix-3.5.6/src/global/dsn_util.h:42:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy((dsn_buf).data, (dsn), (len)); \
data/postfix-3.5.6/src/global/haproxy_srvr.c:233: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 (str == 0 || strlen(str) >= sizeof(MAI_HOSTADDR_STR))
data/postfix-3.5.6/src/global/haproxy_srvr.c:259: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).
	memmove(addr->buf, addr->buf + 7, strlen(addr->buf) + 1 - 7);
data/postfix-3.5.6/src/global/haproxy_srvr.c:269: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 (str == 0 || strlen(str) >= sizeof(MAI_SERVPORT_STR)
data/postfix-3.5.6/src/global/haproxy_srvr.c:273:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(port->buf, str, strlen(str) + 1);
data/postfix-3.5.6/src/global/haproxy_srvr.c:319:3:  [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(addr->buf) + 1 - 7);
data/postfix-3.5.6/src/global/haproxy_srvr.c:789:3:  [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(v1_test_case->haproxy_request);
data/postfix-3.5.6/src/global/header_body_checks.c:285:52:  [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).
	    cb->prepend(context, REC_TYPE_NORM, cmd_args, strlen(cmd_args), offset);
data/postfix-3.5.6/src/global/mail_addr_crunch.c:98: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).
	extlen = strlen(extension);
data/postfix-3.5.6/src/global/mail_addr_crunch.c:133: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).
		memmove(ratsign + extlen, ratsign, strlen(ratsign) + 1);
data/postfix-3.5.6/src/global/mail_addr_map.c:156:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		vstring_truncate(buffer, LEN(buffer) - strlen(extension));
data/postfix-3.5.6/src/global/mail_conf_raw.c:79: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).
    ssize_t len = strlen(strval);
data/postfix-3.5.6/src/global/mail_conf_str.c:107: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).
    ssize_t len = strlen(strval);
data/postfix-3.5.6/src/global/mail_params.c:574: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 (p = (s) + strlen(s); p > (s) && ISSPACE(p[-1]); p--) \
data/postfix-3.5.6/src/global/mail_queue.c:285: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 (*queue_name == 0 || strlen(queue_name) > 100)
data/postfix-3.5.6/src/global/mail_queue.c:305: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 (*queue_id == 0 || strlen(queue_id) > VALID_HOSTNAME_LEN)
data/postfix-3.5.6/src/global/mail_scan_dir.c:56: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).
	} else if (strlen(name) == 1) {
data/postfix-3.5.6/src/global/maillog_client.c:133: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).
	&& logwriter_one_shot(var_maillog_file, text, strlen(text)) < 0) {
data/postfix-3.5.6/src/global/maillog_client.c:221:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncmp(var_maillog_file, *cpp, strlen(*cpp)) == 0)
data/postfix-3.5.6/src/global/map_search.c:287: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).
    return (STR(escape(buf, search_order, strlen(search_order))));
data/postfix-3.5.6/src/global/maps.c:207: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).
			 strlen(expansion) > 100 ? "..." : "");
data/postfix-3.5.6/src/global/maps.c:264: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).
			 strlen(expansion) > 100 ? "..." : "");
data/postfix-3.5.6/src/global/mime_state.c:416: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).
	ssize_t _len = strlen(text); \
data/postfix-3.5.6/src/global/mime_state.c:466: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 ((stack->bound_len = strlen(boundary)) > var_mime_bound_len)
data/postfix-3.5.6/src/global/mime_state.c:560: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).
    cp = STR(state->output_buffer) + strlen(header_info->name) + 1;
data/postfix-3.5.6/src/global/mime_state.c:670: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).
    cp = STR(state->output_buffer) + strlen(header_info->name) + 1;
data/postfix-3.5.6/src/global/pipe_command.c:327:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return (read(fd, buf, len));
data/postfix-3.5.6/src/global/post_mail.c:441:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ssize_t len = str ? strlen(str) : 0;
data/postfix-3.5.6/src/global/quote_821_local.c:145: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).
	at = addr + strlen(addr);		/* should not happen */
data/postfix-3.5.6/src/global/quote_822_local.c:172: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).
	end = start + strlen(start);
data/postfix-3.5.6/src/global/record.c:403:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return (rec_put(stream, type, str, str ? strlen(str) : 0));
data/postfix-3.5.6/src/global/resolve_local.c:107: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(saved_addr);
data/postfix-3.5.6/src/global/smtp_reply_footer.c:127:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (cp = STR(buffer) + start, end = cp + strlen(cp);;) {
data/postfix-3.5.6/src/global/smtp_reply_footer.c:164:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (cp = saved_template, end = cp + strlen(cp);;) {
data/postfix-3.5.6/src/global/split_addr.c:88:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((len = strlen(localpart) - 8) > 0
data/postfix-3.5.6/src/global/strip_addr.c:94: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).
		*extent = full[strlen(stripped)];
data/postfix-3.5.6/src/global/strip_addr.c:101: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).
		memmove(extent, ratsign, strlen(ratsign) + 1);
data/postfix-3.5.6/src/global/tok822_node.c:67: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).
		vstring_strcpy(vstring_alloc(strlen(strval) + 1), strval));
data/postfix-3.5.6/src/global/valid_mailhost_addr.c:117:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(hostaddr.buf, addr + 1, address_bytes);
data/postfix-3.5.6/src/global/verp_sender.c:82:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      cp - sender : strlen(sender));
data/postfix-3.5.6/src/global/verp_sender.c:86:26:  [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).
		      cp - recipient : strlen(recipient));
data/postfix-3.5.6/src/global/verp_sender.c:106:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(delims) != 2)
data/postfix-3.5.6/src/local/file.c:140: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 (path[strlen(path) - 1] == '/')
data/postfix-3.5.6/src/local/local_expand.c:140: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).
	    local->state->msg_attr.local[strlen(local->state->msg_attr.user)];
data/postfix-3.5.6/src/local/mailbox.c:338:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define LAST_CHAR(s) (s[strlen(s) - 1])
data/postfix-3.5.6/src/local/recipient.c:276: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).
	    state.msg_attr.local[strlen(state.msg_attr.user)] = 0;
data/postfix-3.5.6/src/local/resolve.c:134: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).
	    rcpt_delim = state.msg_attr.local[strlen(state.msg_attr.user)];
data/postfix-3.5.6/src/local/resolve.c:139: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).
		ext_len = strlen(state.msg_attr.unmatched);
data/postfix-3.5.6/src/local/resolve.c:143: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).
		memmove(ratsign + ext_len + 1, ratsign, strlen(ratsign) + 1);
data/postfix-3.5.6/src/master/mail_flow.c:95:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((n = read(MASTER_FLOW_READ, buf, count > BUFFER_SIZE ?
data/postfix-3.5.6/src/master/master.c:293:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(077);					/* never fails! */
data/postfix-3.5.6/src/master/master_sig.c:169:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (read(SIG_PIPE_READ_FD, c, 1) > 0)
data/postfix-3.5.6/src/master/master_status.c:81:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    switch (n = read(serv->status_fd[0], (void *) &stat, sizeof(stat))) {
data/postfix-3.5.6/src/master/trigger_server.c:283:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((len = read(fd, buf, sizeof(buf))) >= 0)
data/postfix-3.5.6/src/master/trigger_server.c:768:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((len = read(vstream_fileno(stream), buf, sizeof(buf))) <= 0)
data/postfix-3.5.6/src/milter/milter8.c:782: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).
	    data_len += strlen(str) + 1;
data/postfix-3.5.6/src/milter/milter8.c:790: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).
		data_len += strlen(*cpp) + 1;
data/postfix-3.5.6/src/milter/milter8.c:869: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).
	    (void) vstream_fwrite(milter->fp, str, strlen(str) + 1);
data/postfix-3.5.6/src/milter/milter8.c:885: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).
		(void) vstream_fwrite(milter->fp, *cpp, strlen(*cpp) + 1);
data/postfix-3.5.6/src/milter/milter8.c:2348: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).
    cp = STR(buf) + (header_info ? strlen(header_info->name) :
data/postfix-3.5.6/src/milter/test-milter.c:544: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(optarg) + 1;
data/postfix-3.5.6/src/oqmgr/qmgr_deliver.c:160:52:  [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).
	    && !allascii(addr) && valid_utf8_string(addr, strlen(addr))) {
data/postfix-3.5.6/src/oqmgr/qmgr_feedback.c:137:13:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    switch (sscanf(fbck_val, "%lf %1[/] %30s%c",
data/postfix-3.5.6/src/oqmgr/qmgr_message.c:1107: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(STR(reply.recipient)));
data/postfix-3.5.6/src/oqmgr/qmgr_message.c:1225: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(STR(reply.recipient)));
data/postfix-3.5.6/src/oqmgr/qmgr_message.c:1229: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).
		vstring_truncate(queue_name, strlen(STR(queue_name)));
data/postfix-3.5.6/src/postalias/postalias.c:325:15:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	saved_mask = umask(022 | (~st.st_mode & 077));
data/postfix-3.5.6/src/postalias/postalias.c:346:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(saved_mask);
data/postfix-3.5.6/src/postalias/postalias.c:724:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(022);
data/postfix-3.5.6/src/postconf/postconf.c:815:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(022);
data/postfix-3.5.6/src/postconf/postconf_master.c:335: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(cp);
data/postfix-3.5.6/src/postconf/postconf_master.c:506: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).
	ADD_TEXT(arg, strlen(arg));
data/postfix-3.5.6/src/postconf/postconf_master.c:516: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).
	arg_len = strlen(arg);
data/postfix-3.5.6/src/postconf/postconf_master.c:554: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).
		arg_len += strlen(aval) + 3;
data/postfix-3.5.6/src/postconf/postconf_master.c:576: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).
	ADD_TEXT(arg, strlen(arg));
data/postfix-3.5.6/src/postconf/postconf_master.c:583: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).
	    ADD_TEXT(aval, strlen(aval));
data/postfix-3.5.6/src/postconf/postconf_master.c:676: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).
	ADD_TEXT(argv[0], strlen(argv[0]));
data/postfix-3.5.6/src/postconf/postconf_master.c:678: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).
	ADD_TEXT(argv[1], strlen(argv[1]));
data/postfix-3.5.6/src/postconf/postconf_master.c:680: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).
	ADD_TEXT(pcf_str_field_pattern(field), strlen(pcf_str_field_pattern(field)));
data/postfix-3.5.6/src/postconf/postconf_master.c:686: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).
	if (line_len > 0 && line_len + strlen(argv[field]) > PCF_LINE_LIMIT) {
data/postfix-3.5.6/src/postconf/postconf_master.c:690: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).
	ADD_TEXT(argv[field], strlen(argv[field]));
data/postfix-3.5.6/src/postconf/postconf_master.c:701: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).
	    arg_len = strlen(arg);
data/postfix-3.5.6/src/postconf/postconf_master.c:729: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).
		    arg_len += strlen(aval) + 1;
data/postfix-3.5.6/src/postconf/postconf_master.c:751: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).
	    ADD_TEXT(arg, strlen(arg));
data/postfix-3.5.6/src/postconf/postconf_master.c:758: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).
		ADD_TEXT(aval, strlen(aval));
data/postfix-3.5.6/src/postconf/postconf_master.c:1029: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).
    int     name_len = strlen(param_name);
data/postfix-3.5.6/src/postdrop/postdrop.c:261:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(022);
data/postfix-3.5.6/src/postfix/postfix.c:490:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(022);
data/postfix-3.5.6/src/postkick/postkick.c:197:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (mail_trigger(class, service, request, strlen(request)) < 0) {
data/postfix-3.5.6/src/postlock/postlock.c:180:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(022);
data/postfix-3.5.6/src/postlog/postlog.c:211:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(022);
data/postfix-3.5.6/src/postlogd/postlogd.c:132:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (void) logwriter_write(postlogd_stream, buf, strlen(buf));
data/postfix-3.5.6/src/postmap/postmap.c:413:15:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	saved_mask = umask(022 | (~st.st_mode & 077));
data/postfix-3.5.6/src/postmap/postmap.c:435:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(saved_mask);
data/postfix-3.5.6/src/postmap/postmap.c:511: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 (key[strlen(key) - 1] == ':')
data/postfix-3.5.6/src/postmap/postmap.c:943:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(022);
data/postfix-3.5.6/src/postmulti/postmulti.c:1147: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).
    for (end = value + strlen(value) - 1; end > value && *end == '/'; --end)
data/postfix-3.5.6/src/postmulti/postmulti.c:1673:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(022);
data/postfix-3.5.6/src/postqueue/postqueue.c:568:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(022);
data/postfix-3.5.6/src/postqueue/postqueue.c:684: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).
		   site_to_flush, strlen(site_to_flush) > 100 ? "..." : "");
data/postfix-3.5.6/src/postqueue/postqueue.c:690: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).
		       id_to_flush, strlen(id_to_flush) > 100 ? "..." : "");
data/postfix-3.5.6/src/postqueue/showq_compat.c:163: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 ((padding = 76 - (int) strlen(show_reason)) < 0)
data/postfix-3.5.6/src/postscreen/postscreen_send.c:134: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).
    ssize_t text_len = strlen(text) - 2;
data/postfix-3.5.6/src/postscreen/postscreen_smtpd.c:575: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).
	     (int) strlen(state->rcpt_reply) - 2,
data/postfix-3.5.6/src/postscreen/postscreen_smtpd.c:1008: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(cmd_buffer_ptr), 100);
data/postfix-3.5.6/src/postsuper/postsuper.c:975: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).
	    if (strlen(path) == 1 && (qp->flags & RECURSE) != 0) {
data/postfix-3.5.6/src/postsuper/postsuper.c:1045: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).
		&& strcmp(path + (strlen(path) - SUFFIX_LEN), SUFFIX) == 0) {
data/postfix-3.5.6/src/postsuper/postsuper.c:1046: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).
		path[strlen(path) - SUFFIX_LEN] = 0;	/* XXX */
data/postfix-3.5.6/src/postsuper/postsuper.c:1291:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(022);
data/postfix-3.5.6/src/posttls-finger/posttls-finger.c:1054: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     len = strlen(path);
data/postfix-3.5.6/src/qmgr/qmgr_deliver.c:165:52:  [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).
	    && !allascii(addr) && valid_utf8_string(addr, strlen(addr))) {
data/postfix-3.5.6/src/qmgr/qmgr_feedback.c:137:13:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    switch (sscanf(fbck_val, "%lf %1[/] %30s%c",
data/postfix-3.5.6/src/qmgr/qmgr_message.c:1166: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(STR(reply.recipient)));
data/postfix-3.5.6/src/qmgr/qmgr_message.c:1284: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(STR(reply.recipient)));
data/postfix-3.5.6/src/qmgr/qmgr_message.c:1288: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).
		vstring_truncate(queue_name, strlen(STR(queue_name)));
data/postfix-3.5.6/src/sendmail/sendmail.c:603: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).
	tree = tok822_parse(STR(buf) + strlen(header_info->name) + 1);
data/postfix-3.5.6/src/sendmail/sendmail.c:619: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).
	len = next_line ? next_line - line - 1 : strlen(line);
data/postfix-3.5.6/src/sendmail/sendmail.c:922:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if (rec_put(dst, REC_TYPE_RCPT, *cpp, strlen(*cpp)) < 0)
data/postfix-3.5.6/src/sendmail/sendmail.c:1022:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(022);
data/postfix-3.5.6/src/sendmail/sendmail.c:1166: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).
	    && argv[OPTIND + 1] != 0 && strlen(argv[OPTIND + 1]) == 2) {
data/postfix-3.5.6/src/sendmail/sendmail.c:1171: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).
	if (strncmp(argv[OPTIND], "-V", 2) == 0 && strlen(argv[OPTIND]) == 4) {
data/postfix-3.5.6/src/sendmail/sendmail.c:1217: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).
	    if (strlen(optarg) > 100)
data/postfix-3.5.6/src/smtp/smtp_connect.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).
    int     len = strlen(addr);
data/postfix-3.5.6/src/smtp/smtp_key.c:135: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).
	base64_encode_opt(buffer, str, strlen(str), BASE64_FLAG_APPEND);
data/postfix-3.5.6/src/smtp/smtp_proto.c:1238: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).
		      next_line - line - 1 : strlen(line), offset);
data/postfix-3.5.6/src/smtp/smtp_proto.c:1288: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).
			    + strlen(header_info->name) + 1);
data/postfix-3.5.6/src/smtp/smtp_proto.c:1294: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).
	    vstring_truncate(buf, strlen(header_info->name));
data/postfix-3.5.6/src/smtp/smtp_proto.c:1343: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).
			  next_line - line - 1 : strlen(line), offset);
data/postfix-3.5.6/src/smtp/smtp_proto.c:1371: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).
	    smtp_text_out(state, type, result, strlen(result), offset);
data/postfix-3.5.6/src/smtp/smtp_sasl_auth_cache.c:175: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).
					   strlen(password), 0),
data/postfix-3.5.6/src/smtp/smtp_sasl_auth_cache.c:202: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).
    ssize_t len = strlen(entry);
data/postfix-3.5.6/src/smtp/smtp_sasl_glue.c:382: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).
	&& strlen(mechanism) + LEN(session->sasl_reply) + 8 <= 512) {
data/postfix-3.5.6/src/smtp/smtp_sasl_proto.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).
	    && strlen(mech_list) > 0
data/postfix-3.5.6/src/smtp/smtp_sasl_proto.c:129: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).
	    && strlen(session->sasl_mechanism_list) < var_line_limit) {
data/postfix-3.5.6/src/smtp/smtp_sasl_proto.c:137:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(mech_list) > 0) {
data/postfix-3.5.6/src/smtpd/smtpd.c:3056: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).
	    dsn_orcpt_addr_len = strlen(argv[2].strval);
data/postfix-3.5.6/src/smtpd/smtpd.c:3338: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).
#define VSTRING_STRDUP(s) vstring_strcpy(vstring_alloc(strlen(s) + 1), (s))
data/postfix-3.5.6/src/smtpd/smtpd.c:4402: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(raw_value) > 255) {
data/postfix-3.5.6/src/smtpd/smtpd.c:4505: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).
		    || strlen(attr_value) > sizeof("65535") - 1) {
data/postfix-3.5.6/src/smtpd/smtpd.c:4524: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(attr_value) > VALID_HOSTNAME_LEN) {
data/postfix-3.5.6/src/smtpd/smtpd.c:4595: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).
		    || strlen(attr_value) > sizeof("65535") - 1) {
data/postfix-3.5.6/src/smtpd/smtpd.c:4758: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(raw_value) > 255) {
data/postfix-3.5.6/src/smtpd/smtpd.c:4831: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).
		    || strlen(attr_value) > sizeof("65535") - 1) {
data/postfix-3.5.6/src/smtpd/smtpd.c:4863: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(attr_value) > 64) {
data/postfix-3.5.6/src/smtpd/smtpd_chat.c:227:46:  [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 (cp = STR(state->buffer), end = cp + strlen(STR(state->buffer));;) {
data/postfix-3.5.6/src/smtpd/smtpd_check.c:1344: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).
    if ((len = strlen(name)) > 1
data/postfix-3.5.6/src/smtpd/smtpd_check.c:1366: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 (addr[0] == '[' && (len = strlen(addr)) > 2 && addr[len - 1] == ']') {
data/postfix-3.5.6/src/smtpd/smtpd_check.c:2028: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 (domain[0] == '[' && domain[strlen(domain) - 1] == ']')
data/postfix-3.5.6/src/smtpd/smtpd_check.c:2138: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 (domain[0] == '[' && domain[strlen(domain) - 1] == ']')
data/postfix-3.5.6/src/smtpd/smtpd_check.c:2196: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 (domain[0] == '[' && domain[strlen(domain) - 1] == ']')
data/postfix-3.5.6/src/smtpd/smtpd_check.c:3013: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(domain);
data/postfix-3.5.6/src/smtpd/smtpd_check.c:3060: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).
				    domain, strlen(domain) + 1);
data/postfix-3.5.6/src/smtpd/smtpd_check.c:3069: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).
					    domain, strlen(domain) + 1);
data/postfix-3.5.6/src/smtpd/smtpd_check.c:3179: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).
		 myname, (long) strlen(search_order));
data/postfix-3.5.6/src/smtpd/smtpd_check.c:3944: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).
    if ((retval = valid_utf8_string(action, strlen(action))) == 0)
data/postfix-3.5.6/src/smtpd/smtpd_check.c:3989: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).
	    coded_CN_buf = vstring_alloc(strlen(CN) + 1); \
data/postfix-3.5.6/src/smtpd/smtpd_check.c:5309: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).
		       strlen(var_double_bounce_sender))
data/postfix-3.5.6/src/smtpd/smtpd_check.c:5312: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(MAIL_ADDR_POSTMASTER))
data/postfix-3.5.6/src/smtpd/smtpd_check.c:5315: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).
			 strlen(MAIL_ADDR_MAIL_DAEMON))
data/postfix-3.5.6/src/smtpd/smtpd_check.c:6297: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).
		res += strlen(res) - 1; \
data/postfix-3.5.6/src/smtpd/smtpd_proxy.c:286: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).
    new_len = strlen(name) + strlen(STR(state->expand_buf)) + 2;
data/postfix-3.5.6/src/smtpd/smtpd_proxy.c:286: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).
    new_len = strlen(name) + strlen(STR(state->expand_buf)) + 2;
data/postfix-3.5.6/src/smtpstone/qmqp-source.c:314:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(10);
data/postfix-3.5.6/src/smtpstone/qmqp-source.c:565: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).
	path_len = strlen(path);
data/postfix-3.5.6/src/smtpstone/qmqp-source.c:635: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(sender);
data/postfix-3.5.6/src/smtpstone/qmqp-source.c:640: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(recipient);
data/postfix-3.5.6/src/smtpstone/smtp-sink.c:1357:6:  [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(state->client_addr.buf, "local", sizeof("local"));
data/postfix-3.5.6/src/smtpstone/smtp-source.c:445:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(10);
data/postfix-3.5.6/src/smtpstone/smtp-source.c:1113: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).
	path_len = strlen(path);
data/postfix-3.5.6/src/tls/tls_client.c:667: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).
	    if ((idlen = strlen(certid)) > (domlen = strlen(domain)) + 1
data/postfix-3.5.6/src/tls/tls_client.c:667:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if ((idlen = strlen(certid)) > (domlen = strlen(domain)) + 1
data/postfix-3.5.6/src/tls/tls_client.c:684: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).
		&& (idlen = strlen(certid + 1)) <= (domlen = strlen(parent))
data/postfix-3.5.6/src/tls/tls_client.c:684: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).
		&& (idlen = strlen(certid + 1)) <= (domlen = strlen(parent))
data/postfix-3.5.6/src/tls/tls_client.c:1041: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).
    if (sni && strlen(sni) <= TLSEXT_MAXLEN_host_name) {
data/postfix-3.5.6/src/tls/tls_dane.c:1916: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).
	    if ((idlen = strlen(certid)) > (domlen = strlen(domain)) + 1
data/postfix-3.5.6/src/tls/tls_dane.c:1916:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if ((idlen = strlen(certid)) > (domlen = strlen(domain)) + 1
data/postfix-3.5.6/src/tls/tls_dane.c:1933: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).
		&& (idlen = strlen(certid + 1)) <= (domlen = strlen(parent))
data/postfix-3.5.6/src/tls/tls_dane.c:1933: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).
		&& (idlen = strlen(certid + 1)) <= (domlen = strlen(parent))
data/postfix-3.5.6/src/tls/tls_fprint.c:131: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).
#define digest_string(s) digest_data((s), strlen(s)+1)
data/postfix-3.5.6/src/tls/tls_fprint.c:252: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).
    result = vstring_alloc(strlen(props->serverid) + 1 + 2 * md_len);
data/postfix-3.5.6/src/tls/tls_mgr.c:448: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).
				    argv->argv[3], strlen(argv->argv[3]));
data/postfix-3.5.6/src/tls/tls_prng_exch.c:113:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((count = read(eh->fd, buffer, sizeof(buffer))) < 0)
data/postfix-3.5.6/src/tls/tls_scache.c:320:51:  [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 (tls_scache_decode(cp, cache_id, hex_data, strlen(hex_data),
data/postfix-3.5.6/src/tls/tls_scache.c:398:52:  [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).
	keep_entry = tls_scache_decode(cp, member, value, strlen(value),
data/postfix-3.5.6/src/tls/tls_server.c:195: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).
	buf = vstring_alloc(2 * (len + strlen(service))); \
data/postfix-3.5.6/src/tls/tls_verify.c:390: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 (utf8_length != strlen((char *) utf8_value)) {
data/postfix-3.5.6/src/tls/tls_verify.c:454: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).
    if (len != strlen(dnsname)) {
data/postfix-3.5.6/src/trivial-rewrite/resolve.c:234: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).
    addr_len = strlen(addr);
data/postfix-3.5.6/src/util/allascii.c:57: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(string);
data/postfix-3.5.6/src/util/attr_print0.c:139: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).
	    vstream_fwrite(fp, attr_name, strlen(attr_name) + 1);
data/postfix-3.5.6/src/util/attr_print0.c:148: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).
	    vstream_fwrite(fp, attr_name, strlen(attr_name) + 1);
data/postfix-3.5.6/src/util/attr_print0.c:157: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).
	    vstream_fwrite(fp, attr_name, strlen(attr_name) + 1);
data/postfix-3.5.6/src/util/attr_print0.c:159: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).
	    vstream_fwrite(fp, str_val, strlen(str_val) + 1);
data/postfix-3.5.6/src/util/attr_print0.c:165: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).
	    vstream_fwrite(fp, attr_name, strlen(attr_name) + 1);
data/postfix-3.5.6/src/util/attr_print0.c:185: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).
		vstream_fwrite(fp, ht[0]->key, strlen(ht[0]->key) + 1);
data/postfix-3.5.6/src/util/attr_print0.c:186: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).
		vstream_fwrite(fp, ht[0]->value, strlen(ht[0]->value) + 1);
data/postfix-3.5.6/src/util/attr_print0.c:234: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).
		SEND_ATTR_DATA(ATTR_NAME_DATA, strlen("whoopee"), "whoopee"),
data/postfix-3.5.6/src/util/attr_print0.c:242: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).
		SEND_ATTR_DATA(ATTR_NAME_DATA, strlen("whoopee"), "whoopee"),
data/postfix-3.5.6/src/util/attr_print64.c:173: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).
	    attr_print64_str(fp, attr_name, strlen(attr_name));
data/postfix-3.5.6/src/util/attr_print64.c:183: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).
	    attr_print64_str(fp, attr_name, strlen(attr_name));
data/postfix-3.5.6/src/util/attr_print64.c:193: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).
	    attr_print64_str(fp, attr_name, strlen(attr_name));
data/postfix-3.5.6/src/util/attr_print64.c:196: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).
	    attr_print64_str(fp, str_val, strlen(str_val));
data/postfix-3.5.6/src/util/attr_print64.c:203: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).
	    attr_print64_str(fp, attr_name, strlen(attr_name));
data/postfix-3.5.6/src/util/attr_print64.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).
		attr_print64_str(fp, ht[0]->key, strlen(ht[0]->key));
data/postfix-3.5.6/src/util/attr_print64.c:225: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).
		attr_print64_str(fp, ht[0]->value, strlen(ht[0]->value));
data/postfix-3.5.6/src/util/attr_print64.c:275: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).
	       SEND_ATTR_DATA(ATTR_NAME_DATA, strlen("whoopee"), "whoopee"),
data/postfix-3.5.6/src/util/attr_print64.c:283: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).
	       SEND_ATTR_DATA(ATTR_NAME_DATA, strlen("whoopee"), "whoopee"),
data/postfix-3.5.6/src/util/attr_print_plain.c:230: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).
	       SEND_ATTR_DATA(ATTR_NAME_DATA, strlen("whoopee"), "whoopee"),
data/postfix-3.5.6/src/util/attr_print_plain.c:238: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).
	       SEND_ATTR_DATA(ATTR_NAME_DATA, strlen("whoopee"), "whoopee"),
data/postfix-3.5.6/src/util/casefold.c:124: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(src);
data/postfix-3.5.6/src/util/casefold.c:147: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(src);
data/postfix-3.5.6/src/util/casefold.c:315:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		 && sscanf(bp, "%255s", STR(buffer)) == 1) {
data/postfix-3.5.6/src/util/casefold.c:329:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		 && sscanf(bp, "%255s", STR(buffer)) == 1) {
data/postfix-3.5.6/src/util/clean_env.c:76: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).
		      STRING_AND_LENGTH(eq + 1, strlen(eq + 1)), (char *) 0);
data/postfix-3.5.6/src/util/clean_env.c:115: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).
		      STRING_AND_LENGTH(eq + 1, strlen(eq + 1)), (char *) 0);
data/postfix-3.5.6/src/util/concatenate.c:59: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(arg0);
data/postfix-3.5.6/src/util/concatenate.c:61: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(arg);
data/postfix-3.5.6/src/util/dict_cdb.c:126: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).
	status = cdb_find(&dict_cdbq->cdb, name, strlen(name) + 1);
data/postfix-3.5.6/src/util/dict_cdb.c:136: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).
	status = cdb_find(&dict_cdbq->cdb, name, strlen(name));
data/postfix-3.5.6/src/util/dict_cdb.c:260: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).
    ksize = strlen(name);
data/postfix-3.5.6/src/util/dict_cdb.c:261: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).
    vsize = strlen(value);
data/postfix-3.5.6/src/util/dict_db.c:222: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).
	db_key.size = strlen(name) + 1;
data/postfix-3.5.6/src/util/dict_db.c:237: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).
	db_key.size = strlen(name);
data/postfix-3.5.6/src/util/dict_db.c:287: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).
    db_key.size = strlen(name);
data/postfix-3.5.6/src/util/dict_db.c:288: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).
    db_value.size = strlen(value);
data/postfix-3.5.6/src/util/dict_db.c:388: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).
	db_key.size = strlen(name) + 1;
data/postfix-3.5.6/src/util/dict_db.c:401: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).
	db_key.size = strlen(name);
data/postfix-3.5.6/src/util/dict_dbm.c:117: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).
	dbm_key.dsize = strlen(name) + 1;
data/postfix-3.5.6/src/util/dict_dbm.c:131: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).
	dbm_key.dsize = strlen(name);
data/postfix-3.5.6/src/util/dict_dbm.c:177: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).
    dbm_key.dsize = strlen(name);
data/postfix-3.5.6/src/util/dict_dbm.c:178: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).
    dbm_value.dsize = strlen(value);
data/postfix-3.5.6/src/util/dict_dbm.c:272: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).
	dbm_key.dsize = strlen(name) + 1;
data/postfix-3.5.6/src/util/dict_dbm.c:289: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).
	dbm_key.dsize = strlen(name);
data/postfix-3.5.6/src/util/dict_file.c:177: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).
    helper = strlen(value) / 4;
data/postfix-3.5.6/src/util/dict_file.c:180:51:  [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).
    result = base64_decode(dict->file_buf, value, strlen(value));
data/postfix-3.5.6/src/util/dict_inline.c:90: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).
	&& valid_utf8_string(name, strlen(name)) == 0)
data/postfix-3.5.6/src/util/dict_lmdb.c:139: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).
    klen = strlen(name);
data/postfix-3.5.6/src/util/dict_lmdb.c:240: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).
    mdb_key.mv_size = strlen(name);
data/postfix-3.5.6/src/util/dict_lmdb.c:241:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    mdb_value.mv_size = strlen(value);
data/postfix-3.5.6/src/util/dict_lmdb.c:313: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).
    klen = strlen(name);
data/postfix-3.5.6/src/util/dict_ni.c:91: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).
    query = mymalloc(strlen(path) + strlen(key_prop) + 3 + strlen(key_value));
data/postfix-3.5.6/src/util/dict_ni.c:91: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).
    query = mymalloc(strlen(path) + strlen(key_prop) + 3 + strlen(key_value));
data/postfix-3.5.6/src/util/dict_ni.c:91:60:  [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).
    query = mymalloc(strlen(path) + strlen(key_prop) + 3 + strlen(key_value));
data/postfix-3.5.6/src/util/dict_ni.c:107: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).
		    l += 1 + strlen(values.ni_namelist_val[i]);
data/postfix-3.5.6/src/util/dict_ni.c:115: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).
		    n = strlen(values.ni_namelist_val[i]);
data/postfix-3.5.6/src/util/dict_nis.c:174: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).
		       (void *) key, strlen(key) + 1,
data/postfix-3.5.6/src/util/dict_nis.c:188: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).
		       (void *) key, strlen(key),
data/postfix-3.5.6/src/util/dict_pcre.c:290:26:  [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     lookup_len = strlen(lookup_string);
data/postfix-3.5.6/src/util/dict_sdbm.c:111: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).
	dbm_key.dsize = strlen(name) + 1;
data/postfix-3.5.6/src/util/dict_sdbm.c:125: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).
	dbm_key.dsize = strlen(name);
data/postfix-3.5.6/src/util/dict_sdbm.c:171: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).
    dbm_key.dsize = strlen(name);
data/postfix-3.5.6/src/util/dict_sdbm.c:172: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).
    dbm_value.dsize = strlen(value);
data/postfix-3.5.6/src/util/dict_sdbm.c:266: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).
	dbm_key.dsize = strlen(name) + 1;
data/postfix-3.5.6/src/util/dict_sdbm.c:283: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).
	dbm_key.dsize = strlen(name);
data/postfix-3.5.6/src/util/dict_thash.c:178: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 (key[strlen(key) - 1] == ':')
data/postfix-3.5.6/src/util/dict_utf8.c:103: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).
    if (!allascii(string) && valid_utf8_string(string, strlen(string)) == 0) {
data/postfix-3.5.6/src/util/dict_utf8.c:126: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).
    if (!allascii(string) && valid_utf8_string(string, strlen(string)) == 0) {
data/postfix-3.5.6/src/util/environ.c:29:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    char   *equal;
data/postfix-3.5.6/src/util/environ.c:32: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).
    return ((equal == 0) ? strlen(name) : (equal - name));
data/postfix-3.5.6/src/util/environ.c:64:22:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    char   *value = (equal ? equal : "");
data/postfix-3.5.6/src/util/environ.c:64:30:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    char   *value = (equal ? equal : "");
data/postfix-3.5.6/src/util/environ.c:99:26:  [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_nameval = l_name + strlen(value) + 1;
data/postfix-3.5.6/src/util/environ.c:106: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).
    destination = (envp != 0 && strlen(*envp) >= l_nameval) ?
data/postfix-3.5.6/src/util/environ.c:110:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(destination, name, l_name);
data/postfix-3.5.6/src/util/fifo_listen.c:108:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	   && read(fd, buf, BUF_LEN < count ? BUF_LEN : count) > 0)
data/postfix-3.5.6/src/util/fifo_rdonly_bug.c:61:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(fd, &ch, 1) < 0) {
data/postfix-3.5.6/src/util/fifo_trigger.c:138:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(fd, &ch, 1) != 1)
data/postfix-3.5.6/src/util/file_limit.c:63:18:  [1] (obsolete) ulimit:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name, which is NOT obsolete) (CWE-676). Use getrlimit(2),
  setrlimit(2), and sysconf(3) instead.
    if ((limit = ulimit(UL_GETFSIZE, 0)) < 0)
data/postfix-3.5.6/src/util/file_limit.c:83:9:  [1] (obsolete) ulimit:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name, which is NOT obsolete) (CWE-676). Use getrlimit(2),
  setrlimit(2), and sysconf(3) instead.
    if (ulimit(UL_SETFSIZE, limit / ULIMIT_BLOCK_SIZE) < 0)
data/postfix-3.5.6/src/util/hex_code.c:139:26:  [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).
    hex_encode(b1, test, strlen(test));
data/postfix-3.5.6/src/util/hex_code.c:143:26:  [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).
    hex_encode(b1, test, strlen(test));
data/postfix-3.5.6/src/util/hex_code.c:151:26:  [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).
    hex_encode(b1, test, strlen(test));
data/postfix-3.5.6/src/util/inet_addr_host.c:85: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).
	       && hostname[(hostnamelen = strlen(hostname)) - 1] == ']') {
data/postfix-3.5.6/src/util/line_wrap.c:118: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).
    line_len = strlen(start_line);
data/postfix-3.5.6/src/util/match_ops.c:207: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).
	    pd = name + strlen(name) - strlen(pattern);
data/postfix-3.5.6/src/util/match_ops.c:207: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).
	    pd = name + strlen(name) - strlen(pattern);
data/postfix-3.5.6/src/util/match_ops.c:211: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).
	    pd = name + strlen(name) - strlen(pattern);
data/postfix-3.5.6/src/util/match_ops.c:211: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).
	    pd = name + strlen(name) - strlen(pattern);
data/postfix-3.5.6/src/util/match_ops.c:261: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).
	size_t  addr_len = strlen(addr);
data/postfix-3.5.6/src/util/midna_domain.c:181: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).
    if (allascii(name) == 0 && valid_utf8_string(name, strlen(name)) == 0) {
data/postfix-3.5.6/src/util/midna_domain.c:193: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).
				 name, strlen(name),
data/postfix-3.5.6/src/util/midna_domain.c:235: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).
    if (allascii(name) == 0 && valid_utf8_string(name, strlen(name)) == 0) {
data/postfix-3.5.6/src/util/midna_domain.c:247: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).
				  name, strlen(name),
data/postfix-3.5.6/src/util/myaddrinfo.c:604:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((len = strlen(portbuf)) >= sizeof(portnum->buf)) {
data/postfix-3.5.6/src/util/myaddrinfo.c:665:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((len = strlen(hp->h_name)) >= sizeof(hostname->buf)) {
data/postfix-3.5.6/src/util/myaddrinfo.c:684:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((len = strlen(sp->s_name)) >= sizeof(service->buf)) {
data/postfix-3.5.6/src/util/mymalloc.c:235: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).
    if ((len = strlen(str) + 1) > SSIZE_T_MAX)
data/postfix-3.5.6/src/util/nbbio.c:180:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	count = read(np->fd, np->read_buf + np->read_pend,
data/postfix-3.5.6/src/util/sane_basename.c:94: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).
    last = path + strlen(path) - 1;
data/postfix-3.5.6/src/util/sane_basename.c:137: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).
    last = path + strlen(path) - 1;
data/postfix-3.5.6/src/util/split_nameval.c:78: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 (p = (s) + strlen(s); p > (s) && ISSPACE(p[-1]); p--) \
data/postfix-3.5.6/src/util/stream_recv_fd.c:110:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((read_count = read(client_fd, buf, sizeof(buf))) > 0)
data/postfix-3.5.6/src/util/sys_compat.c:121: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 ((cp = malloc(strlen(name) + strlen(value) + 2)) == 0)
data/postfix-3.5.6/src/util/sys_compat.c:121: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).
    if ((cp = malloc(strlen(name) + strlen(value) + 2)) == 0)
data/postfix-3.5.6/src/util/sys_compat.c:132: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).
    ssize_t name_len = strlen(name);
data/postfix-3.5.6/src/util/sys_compat.c:342: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).
    if ((len = strlen(buffer)) >= size) {
data/postfix-3.5.6/src/util/timed_read.c:75:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((ret = read(fd, buf, len)) < 0 && timeout > 0 && errno == EAGAIN) {
data/postfix-3.5.6/src/util/unix_connect.c:63: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).
    ssize_t len = strlen(addr);
data/postfix-3.5.6/src/util/unix_dgram_connect.c:71: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 ((path_len = strlen(path)) >= sizeof(sun.sun_path))
data/postfix-3.5.6/src/util/unix_dgram_listen.c:66: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 ((path_len = strlen(path)) >= sizeof(sun.sun_path))
data/postfix-3.5.6/src/util/unix_listen.c:70: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).
    ssize_t len = strlen(addr);
data/postfix-3.5.6/src/util/unix_recv_fd.c:169:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((read_count = read(client_fd, buf, sizeof(buf))) > 0)
data/postfix-3.5.6/src/util/valid_hostname.c:365:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(str) > strlen("65535")
data/postfix-3.5.6/src/util/valid_hostname.c:365: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 (strlen(str) > strlen("65535")
data/postfix-3.5.6/src/util/vbuf_print.c:261:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (prec >= 0 || (width > 0 && width > strlen(s))) {
data/postfix-3.5.6/src/util/vstring.c:608: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(str);
data/postfix-3.5.6/src/util/vstring.c:706:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	       n, (long) (vp)->vbuf.len, (long) strlen(vstring_str(vp)));
data/postfix-3.5.6/src/util/watchdog.c:146:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (read(watchdog_pipe[0], &ch, 1) > 0)
data/postfix-3.5.6/src/verify/verify.c:711:18:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    saved_mask = umask(022);
data/postfix-3.5.6/src/verify/verify.c:717:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    (void) umask(saved_mask);
data/postfix-3.5.6/src/virtual/mailbox.c:272:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define LAST_CHAR(s) (s[strlen(s) - 1])
data/postfix-3.5.6/src/xsasl/xsasl_cyrus_client.c:183: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(client->username);
data/postfix-3.5.6/src/xsasl/xsasl_cyrus_client.c:210: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(client->password);
data/postfix-3.5.6/src/xsasl/xsasl_cyrus_client.c:523: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).
    serverinlen = strlen(server_reply);
data/postfix-3.5.6/src/xsasl/xsasl_cyrus_server.c:547: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).
	reply_len = strlen(init_response);
data/postfix-3.5.6/src/xsasl/xsasl_cyrus_server.c:594: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).
    request_len = strlen(request);

ANALYSIS SUMMARY:

Hits = 849
Lines analyzed = 250837 in approximately 10.96 seconds (22893 lines/second)
Physical Source Lines of Code (SLOC) = 125998
Hits@level = [0] 218 [1] 361 [2] 404 [3]  44 [4]  37 [5]   3
Hits@level+ = [0+] 1067 [1+] 849 [2+] 488 [3+]  84 [4+]  40 [5+]   3
Hits/KSLOC@level+ = [0+] 8.46839 [1+] 6.7382 [2+] 3.87308 [3+] 0.666677 [4+] 0.317465 [5+] 0.0238099
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.