History log of /dovecot/src/lib/md4.c
Revision Date Author Comments Expand
efe78d3ba24fc866af1c79b9223dc0809ba26cad 24-Dec-2016 Stephan Bosch <stephan.bosch@dovecot.fi>

global: Replaced all instances of memset(p, 0, sizeof(*p)) with the new i_zero() macro. Used the following script: C_FILES=`git ls-files *.c` H_FILES=`git ls-files *.h` for F in "$C_FILES $H_FILES"; do echo "$F" perl -p -i -e 's/safe_memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero_safe(&$1)/g' $F perl -p -i -e 's/safe_memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero_safe($1)/g' $F perl -p -i -e 's/memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero(&$1)/g' $F perl -p -i -e 's/memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero($1)/g' $F done

/dovecot/src/auth/auth-request-var-expand.c /dovecot/src/auth/auth-request.c /dovecot/src/auth/auth-settings.c /dovecot/src/auth/db-dict.c /dovecot/src/auth/db-ldap.c /dovecot/src/auth/main.c /dovecot/src/auth/passdb-pam.c /dovecot/src/config/config-connection.c /dovecot/src/config/config-filter.c /dovecot/src/config/config-parser.c /dovecot/src/config/doveconf.c /dovecot/src/config/old-set-parser.c /dovecot/src/dict/dict-connection.c /dovecot/src/dict/main.c /dovecot/src/director/login-connection.c /dovecot/src/doveadm/client-connection-http.c /dovecot/src/doveadm/client-connection.c /dovecot/src/doveadm/doveadm-auth-server.c /dovecot/src/doveadm/doveadm-auth.c /dovecot/src/doveadm/doveadm-cmd.c /dovecot/src/doveadm/doveadm-dict.c /dovecot/src/doveadm/doveadm-dsync.c /dovecot/src/doveadm/doveadm-fs.c /dovecot/src/doveadm/doveadm-kick.c /dovecot/src/doveadm/doveadm-log.c /dovecot/src/doveadm/doveadm-mail-batch.c /dovecot/src/doveadm/doveadm-mail-fetch.c /dovecot/src/doveadm/doveadm-mail-import.c /dovecot/src/doveadm/doveadm-mail-mailbox-status.c /dovecot/src/doveadm/doveadm-mail-server.c /dovecot/src/doveadm/doveadm-mail.c /dovecot/src/doveadm/doveadm-penalty.c /dovecot/src/doveadm/doveadm-print-formatted.c /dovecot/src/doveadm/doveadm-print-json.c /dovecot/src/doveadm/doveadm-print.c /dovecot/src/doveadm/doveadm-pw.c /dovecot/src/doveadm/doveadm-stats.c /dovecot/src/doveadm/doveadm-util.c /dovecot/src/doveadm/doveadm-who.c /dovecot/src/doveadm/doveadm-zlib.c /dovecot/src/doveadm/doveadm.c /dovecot/src/doveadm/dsync/dsync-brain-mailbox-tree-sync.c /dovecot/src/doveadm/dsync/dsync-brain-mailbox.c /dovecot/src/doveadm/dsync/dsync-brain-mails.c /dovecot/src/doveadm/dsync/dsync-brain.c /dovecot/src/doveadm/dsync/dsync-ibc-stream.c /dovecot/src/doveadm/dsync/dsync-mail.c /dovecot/src/doveadm/dsync/dsync-mailbox-export.c /dovecot/src/doveadm/dsync/dsync-mailbox-import.c /dovecot/src/doveadm/dsync/dsync-mailbox-tree-fill.c /dovecot/src/doveadm/dsync/dsync-transaction-log-scan.c /dovecot/src/doveadm/main.c /dovecot/src/doveadm/server-connection.c /dovecot/src/imap-hibernate/imap-hibernate-client.c /dovecot/src/imap-login/client-authenticate.c /dovecot/src/imap-login/imap-proxy.c /dovecot/src/imap-urlauth/imap-urlauth-worker.c /dovecot/src/imap-urlauth/imap-urlauth.c /dovecot/src/imap/cmd-fetch.c /dovecot/src/imap/cmd-notify.c /dovecot/src/imap/cmd-select.c /dovecot/src/imap/cmd-setmetadata.c /dovecot/src/imap/cmd-store.c /dovecot/src/imap/imap-client.c /dovecot/src/imap/imap-commands-util.c /dovecot/src/imap/imap-commands.c /dovecot/src/imap/imap-fetch.c /dovecot/src/imap/imap-master-client.c /dovecot/src/imap/imap-notify.c /dovecot/src/imap/imap-state.c /dovecot/src/imap/imap-status.c /dovecot/src/imap/main.c /dovecot/src/indexer/indexer-worker.c /dovecot/src/indexer/master-connection.c /dovecot/src/lda/main.c /dovecot/src/lib-auth/auth-master.c /dovecot/src/lib-auth/auth-server-connection.c /dovecot/src/lib-dcrypt/dcrypt-gnutls.c /dovecot/src/lib-dcrypt/dcrypt-openssl.c /dovecot/src/lib-dcrypt/dcrypt.c /dovecot/src/lib-dcrypt/test-crypto.c /dovecot/src/lib-dict-extra/dict-fs.c /dovecot/src/lib-dict/dict-cdb.c /dovecot/src/lib-dict/dict-client.c /dovecot/src/lib-dict/dict-db.c /dovecot/src/lib-dict/dict-file.c /dovecot/src/lib-dict/dict-memcached-ascii.c /dovecot/src/lib-dict/dict-memcached.c /dovecot/src/lib-dict/dict-sql-settings.c /dovecot/src/lib-dict/dict-sql.c /dovecot/src/lib-dict/dict.c /dovecot/src/lib-dict/test-dict-client.c /dovecot/src/lib-dns/dns-lookup.c /dovecot/src/lib-fs/fs-api.c /dovecot/src/lib-fs/fs-dict.c /dovecot/src/lib-fs/fs-posix.c /dovecot/src/lib-fs/fs-test-async.c /dovecot/src/lib-fs/fs-test.c /dovecot/src/lib-fts/fts-icu.c /dovecot/src/lib-http/http-auth.c /dovecot/src/lib-http/http-client-connection.c /dovecot/src/lib-http/http-client-host.c /dovecot/src/lib-http/http-client-request.c /dovecot/src/lib-http/http-date.c /dovecot/src/lib-http/http-message-parser.c /dovecot/src/lib-http/http-parser.c /dovecot/src/lib-http/http-request-parser.c /dovecot/src/lib-http/http-response-parser.c /dovecot/src/lib-http/http-response.c /dovecot/src/lib-http/http-server-connection.c /dovecot/src/lib-http/http-server-response.c /dovecot/src/lib-http/http-url.c /dovecot/src/lib-http/test-http-auth.c /dovecot/src/lib-http/test-http-client-errors.c /dovecot/src/lib-http/test-http-client.c /dovecot/src/lib-http/test-http-payload.c /dovecot/src/lib-http/test-http-response-parser.c /dovecot/src/lib-http/test-http-server-errors.c /dovecot/src/lib-http/test-http-server.c /dovecot/src/lib-imap-client/imapc-client.c /dovecot/src/lib-imap-client/imapc-connection.c /dovecot/src/lib-imap-storage/imap-metadata.c /dovecot/src/lib-imap-storage/imap-msgpart-url.c /dovecot/src/lib-imap-storage/imap-msgpart.c /dovecot/src/lib-imap-urlauth/imap-urlauth-backend.c /dovecot/src/lib-imap-urlauth/imap-urlauth-connection.c /dovecot/src/lib-imap-urlauth/imap-urlauth-fetch.c /dovecot/src/lib-imap/imap-bodystructure.c /dovecot/src/lib-imap/imap-date.c /dovecot/src/lib-imap/imap-id.c /dovecot/src/lib-imap/imap-url.c /dovecot/src/lib-index/mail-cache-compress.c /dovecot/src/lib-index/mail-cache-fields.c /dovecot/src/lib-index/mail-cache-lookup.c /dovecot/src/lib-index/mail-cache-transaction.c /dovecot/src/lib-index/mail-index-alloc-cache.c /dovecot/src/lib-index/mail-index-fsck.c /dovecot/src/lib-index/mail-index-map-read.c /dovecot/src/lib-index/mail-index-map.c /dovecot/src/lib-index/mail-index-modseq.c /dovecot/src/lib-index/mail-index-strmap.c /dovecot/src/lib-index/mail-index-sync-ext.c /dovecot/src/lib-index/mail-index-sync-keywords.c /dovecot/src/lib-index/mail-index-sync-update.c /dovecot/src/lib-index/mail-index-sync.c /dovecot/src/lib-index/mail-index-transaction-export.c /dovecot/src/lib-index/mail-index-transaction-update.c /dovecot/src/lib-index/mail-index-transaction-view.c /dovecot/src/lib-index/mail-index-transaction.c /dovecot/src/lib-index/mail-index-view-sync.c /dovecot/src/lib-index/mail-index-view.c /dovecot/src/lib-index/mail-index.c /dovecot/src/lib-index/mail-transaction-log-append.c /dovecot/src/lib-index/mail-transaction-log-file.c /dovecot/src/lib-index/mail-transaction-log.c /dovecot/src/lib-index/test-mail-index-map.c /dovecot/src/lib-index/test-mail-index-sync-ext.c /dovecot/src/lib-index/test-mail-index-transaction-finish.c /dovecot/src/lib-index/test-mail-transaction-log-view.c /dovecot/src/lib-lda/duplicate.c /dovecot/src/lib-lda/lmtp-client.c /dovecot/src/lib-lda/mail-deliver.c /dovecot/src/lib-lda/smtp-client.c /dovecot/src/lib-ldap/ldap-compare.c /dovecot/src/lib-ldap/ldap-connection.c /dovecot/src/lib-mail/istream-attachment-extractor.c /dovecot/src/lib-mail/mbox-from.c /dovecot/src/lib-mail/message-address.c /dovecot/src/lib-mail/message-date.c /dovecot/src/lib-mail/message-header-decode.c /dovecot/src/lib-mail/message-header-parser.c /dovecot/src/lib-mail/message-parser.c /dovecot/src/lib-mail/message-part-serialize.c /dovecot/src/lib-mail/message-search.c /dovecot/src/lib-mail/message-snippet.c /dovecot/src/lib-mail/rfc2231-parser.c /dovecot/src/lib-mail/rfc822-parser.c /dovecot/src/lib-mail/test-istream-attachment.c /dovecot/src/lib-mail/test-message-decoder.c /dovecot/src/lib-mail/test-message-header-hash.c /dovecot/src/lib-mail/test-message-search.c /dovecot/src/lib-master/master-auth.c /dovecot/src/lib-master/master-login.c /dovecot/src/lib-master/master-service-settings.c /dovecot/src/lib-master/master-service-ssl.c /dovecot/src/lib-master/master-service.c /dovecot/src/lib-master/test-master-service-settings-cache.c /dovecot/src/lib-ntlm/ntlm-message.c /dovecot/src/lib-settings/settings-parser.c /dovecot/src/lib-settings/settings.c /dovecot/src/lib-sql/driver-cassandra.c /dovecot/src/lib-sql/driver-mysql.c /dovecot/src/lib-sql/driver-pgsql.c /dovecot/src/lib-sql/driver-sqlite.c /dovecot/src/lib-ssl-iostream/iostream-ssl.c /dovecot/src/lib-storage/index/dbox-common/dbox-save.c /dovecot/src/lib-storage/index/dbox-multi/mdbox-deleted-storage.c /dovecot/src/lib-storage/index/dbox-multi/mdbox-map.c /dovecot/src/lib-storage/index/dbox-multi/mdbox-save.c /dovecot/src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c /dovecot/src/lib-storage/index/dbox-multi/mdbox-storage.c /dovecot/src/lib-storage/index/dbox-single/sdbox-storage.c /dovecot/src/lib-storage/index/dbox-single/sdbox-sync-rebuild.c /dovecot/src/lib-storage/index/imapc/imapc-list.c /dovecot/src/lib-storage/index/imapc/imapc-storage.c /dovecot/src/lib-storage/index/index-attachment.c /dovecot/src/lib-storage/index/index-attribute.c /dovecot/src/lib-storage/index/index-mail-binary.c /dovecot/src/lib-storage/index/index-mail-headers.c /dovecot/src/lib-storage/index/index-mail.c /dovecot/src/lib-storage/index/index-mailbox-size.c /dovecot/src/lib-storage/index/index-pop3-uidl.c /dovecot/src/lib-storage/index/index-rebuild.c /dovecot/src/lib-storage/index/index-search-result.c /dovecot/src/lib-storage/index/index-search.c /dovecot/src/lib-storage/index/index-sort-string.c /dovecot/src/lib-storage/index/index-sort.c /dovecot/src/lib-storage/index/index-storage.c /dovecot/src/lib-storage/index/index-sync-changes.c /dovecot/src/lib-storage/index/index-sync.c /dovecot/src/lib-storage/index/index-thread-finish.c /dovecot/src/lib-storage/index/index-thread.c /dovecot/src/lib-storage/index/index-transaction.c /dovecot/src/lib-storage/index/maildir/maildir-copy.c /dovecot/src/lib-storage/index/maildir/maildir-mail.c /dovecot/src/lib-storage/index/maildir/maildir-sync-index.c /dovecot/src/lib-storage/index/maildir/maildir-uidlist.c /dovecot/src/lib-storage/index/mbox/mbox-lock.c /dovecot/src/lib-storage/index/mbox/mbox-save.c /dovecot/src/lib-storage/index/mbox/mbox-sync-list-index.c /dovecot/src/lib-storage/index/mbox/mbox-sync-parse.c /dovecot/src/lib-storage/index/mbox/mbox-sync-rewrite.c /dovecot/src/lib-storage/index/mbox/mbox-sync.c /dovecot/src/lib-storage/index/pop3c/pop3c-client.c /dovecot/src/lib-storage/index/pop3c/pop3c-storage.c /dovecot/src/lib-storage/index/pop3c/pop3c-sync.c /dovecot/src/lib-storage/list/mailbox-list-index-backend.c /dovecot/src/lib-storage/list/mailbox-list-index-notify.c /dovecot/src/lib-storage/list/mailbox-list-index-status.c /dovecot/src/lib-storage/list/mailbox-list-index-sync.c /dovecot/src/lib-storage/list/mailbox-list-iter.c /dovecot/src/lib-storage/list/mailbox-list-notify-tree.c /dovecot/src/lib-storage/list/mailbox-list-subscriptions.c /dovecot/src/lib-storage/list/subscription-file.c /dovecot/src/lib-storage/mail-search-args-simplify.c /dovecot/src/lib-storage/mail-search-build.c /dovecot/src/lib-storage/mail-storage-hooks.c /dovecot/src/lib-storage/mail-storage-service.c /dovecot/src/lib-storage/mail-storage.c /dovecot/src/lib-storage/mail-user.c /dovecot/src/lib-storage/mailbox-attribute.c /dovecot/src/lib-storage/mailbox-list.c buffer.c connection.c failures.c fd-close-on-exec.c file-dotlock.c file-lock.c file-set-size.c ioloop-epoll.c ioloop.c iso8601-date.c istream-sized.c istream.c lib-signals.c md4.c md5.c mempool-alloconly.c mountpoint.c net.c ostream.c restrict-access.c sendfile-util.c seq-range-array.c sha3.c test-ioloop.c test-utc-mktime.c timing.c uri-util.c var-expand.c /dovecot/src/lmtp/client.c /dovecot/src/lmtp/commands.c /dovecot/src/lmtp/lmtp-proxy.c /dovecot/src/lmtp/main.c /dovecot/src/log/log-connection.c /dovecot/src/login-common/client-common-auth.c /dovecot/src/login-common/login-proxy-state.c /dovecot/src/login-common/login-settings.c /dovecot/src/login-common/main.c /dovecot/src/login-common/sasl-server.c /dovecot/src/login-common/ssl-proxy-openssl.c /dovecot/src/master/main.c /dovecot/src/master/sd-daemon.c /dovecot/src/master/service-listen.c /dovecot/src/master/service-log.c /dovecot/src/master/service-monitor.c /dovecot/src/plugins/acl/acl-api.c /dovecot/src/plugins/acl/acl-attributes.c /dovecot/src/plugins/acl/acl-backend-vfile-update.c /dovecot/src/plugins/acl/acl-backend-vfile.c /dovecot/src/plugins/acl/acl-global-file.c /dovecot/src/plugins/acl/acl-lookup-dict.c /dovecot/src/plugins/acl/acl-mailbox-list.c /dovecot/src/plugins/acl/acl-mailbox.c /dovecot/src/plugins/acl/doveadm-acl.c /dovecot/src/plugins/dict-ldap/dict-ldap-settings.c /dovecot/src/plugins/dict-ldap/dict-ldap.c /dovecot/src/plugins/expire/doveadm-expire.c /dovecot/src/plugins/expire/expire-plugin.c /dovecot/src/plugins/fts-lucene/doveadm-fts-lucene.c /dovecot/src/plugins/fts-solr/fts-backend-solr.c /dovecot/src/plugins/fts-solr/solr-connection.c /dovecot/src/plugins/fts-squat/squat-trie.c /dovecot/src/plugins/fts-squat/squat-uidlist.c /dovecot/src/plugins/fts/doveadm-fts.c /dovecot/src/plugins/fts/fts-api.c /dovecot/src/plugins/fts/fts-build-mail.c /dovecot/src/plugins/fts/fts-parser-tika.c /dovecot/src/plugins/fts/fts-search.c /dovecot/src/plugins/fts/xml2text.c /dovecot/src/plugins/imap-acl/imap-acl-plugin.c /dovecot/src/plugins/last-login/last-login-plugin.c /dovecot/src/plugins/mail-crypt/doveadm-mail-crypt.c /dovecot/src/plugins/mail-crypt/mail-crypt-acl-plugin.c /dovecot/src/plugins/mail-crypt/mail-crypt-global-key.c /dovecot/src/plugins/mail-crypt/mail-crypt-plugin.c /dovecot/src/plugins/mail-crypt/mail-crypt-pluginenv.c /dovecot/src/plugins/mail-crypt/test-mail-global-key.c /dovecot/src/plugins/mail-crypt/test-mail-key.c /dovecot/src/plugins/pop3-migration/pop3-migration-plugin.c /dovecot/src/plugins/push-notification/push-notification-driver-ox.c /dovecot/src/plugins/push-notification/push-notification-event-flagsclear.c /dovecot/src/plugins/push-notification/push-notification-event-flagsset.c /dovecot/src/plugins/push-notification/push-notification-event-messageappend.c /dovecot/src/plugins/push-notification/push-notification-event-messagenew.c /dovecot/src/plugins/quota-clone/quota-clone-plugin.c /dovecot/src/plugins/quota/doveadm-quota.c /dovecot/src/plugins/quota/quota-count.c /dovecot/src/plugins/quota/quota-dict.c /dovecot/src/plugins/quota/quota-status.c /dovecot/src/plugins/quota/quota-util.c /dovecot/src/plugins/quota/quota.c /dovecot/src/plugins/quota/test-quota-util.c /dovecot/src/plugins/stats/mail-stats-fill.c /dovecot/src/plugins/virtual/virtual-config.c /dovecot/src/plugins/virtual/virtual-mail.c /dovecot/src/plugins/virtual/virtual-search.c /dovecot/src/plugins/virtual/virtual-sync.c /dovecot/src/plugins/zlib/zlib-plugin.c /dovecot/src/pop3-login/pop3-proxy.c /dovecot/src/pop3/main.c /dovecot/src/replication/replicator/replicator-queue-auth.c /dovecot/src/replication/replicator/replicator-queue.c /dovecot/src/stats/client-export.c /dovecot/src/stats/client-reset.c /dovecot/src/stats/main.c /dovecot/src/util/script-login.c
21484e16293b2fb12f026d2ad533fa32ebebf641 24-Nov-2016 Timo Sirainen <timo.sirainen@dovecot.fi>

lib: Mark md4/md5/sha1/sha2 code with ATTR_UNSIGNED_WRAPS

23bdbb7b1831785c6ba6df190f6369da882d2b9d 06-Jun-2016 Timo Sirainen <timo.sirainen@dovecot.fi>

global: Require comparisons to be strict boolean expressions * No implicit integer -> boolean or pointer -> boolean conversions * !expr can be used only if expr is boolean type These were checked with a patched clang. It found various actual bugs, which were fixed by the previous commits.

/dovecot/src/auth/db-ldap.c /dovecot/src/auth/mech-digest-md5.c /dovecot/src/auth/mech-ntlm.c /dovecot/src/auth/mech-scram-sha1.c /dovecot/src/auth/password-scheme-md5crypt.c /dovecot/src/auth/password-scheme-rpa.c /dovecot/src/director/director-connection.c /dovecot/src/doveadm/doveadm-auth.c /dovecot/src/doveadm/doveadm-director.c /dovecot/src/doveadm/doveadm-util.c /dovecot/src/doveadm/dsync/dsync-mailbox-export.c /dovecot/src/imap/imap-sync.c /dovecot/src/lib-dcrypt/dcrypt-openssl.c /dovecot/src/lib-dict-extra/dict-ldap-settings.c /dovecot/src/lib-http/http-server-request.c /dovecot/src/lib-http/test-http-client-errors.c /dovecot/src/lib-http/test-http-payload.c /dovecot/src/lib-imap/imap-bodystructure.c /dovecot/src/lib-index/mail-index-sync-ext.c /dovecot/src/lib-index/mail-index-sync.c /dovecot/src/lib-index/mail-index-transaction-export.c /dovecot/src/lib-lda/duplicate.c /dovecot/src/lib-ldap/ldap-connection.c /dovecot/src/lib-mail/message-header-parser.c /dovecot/src/lib-mail/message-parser.c /dovecot/src/lib-mail/message-part-serialize.c /dovecot/src/lib-mail/test-message-header-encode.c /dovecot/src/lib-mail/test-message-parser.c /dovecot/src/lib-master/test-master-service-settings-cache.c /dovecot/src/lib-ntlm/ntlm-des.c /dovecot/src/lib-ntlm/ntlm-encrypt.c /dovecot/src/lib-ntlm/ntlm-message.c /dovecot/src/lib-otp/otp-parse.c /dovecot/src/lib-settings/settings-parser.c /dovecot/src/lib-settings/settings.c /dovecot/src/lib-sql/driver-cassandra.c /dovecot/src/lib-sql/driver-pgsql.c /dovecot/src/lib-ssl-iostream/iostream-openssl-context.c /dovecot/src/lib-ssl-iostream/iostream-openssl.c /dovecot/src/lib-storage/index/maildir/maildir-filename-flags.c /dovecot/src/lib-storage/index/maildir/maildir-filename.c /dovecot/src/lib-storage/index/mbox/mbox-file.c /dovecot/src/lib-storage/index/mbox/mbox-lock.c /dovecot/src/lib-storage/index/mbox/mbox-save.c /dovecot/src/lib-storage/index/mbox/mbox-sync.c /dovecot/src/lib-storage/mail-search.c /dovecot/src/lib-storage/mail-search.h askpass.c buffer.h compat.h file-cache.c file-lock.c hash.c ioloop-select.c macros.h md4.c md5.c net.c test-timing.c test-unichar.c var-expand.c wildcard-match.c /dovecot/src/login-common/sasl-server.c /dovecot/src/login-common/ssl-proxy-openssl.c /dovecot/src/master/service-process.c /dovecot/src/plugins/fts-lucene/fts-backend-lucene.c /dovecot/src/plugins/fts-solr/solr-connection.c /dovecot/src/plugins/push-notification/push-notification-event-flagsclear.c /dovecot/src/plugins/push-notification/push-notification-event-flagsset.c /dovecot/src/plugins/push-notification/push-notification-event-messageappend.c /dovecot/src/plugins/push-notification/push-notification-event-messagenew.c /dovecot/src/plugins/push-notification/push-notification-event-messageread.c /dovecot/src/plugins/push-notification/push-notification-event-messagetrash.c /dovecot/src/plugins/push-notification/push-notification-plugin.c /dovecot/src/plugins/quota/Makefile.am /dovecot/src/pop3/pop3-client.c /dovecot/src/pop3/pop3-commands.c
9625595c47c665f5aee57ebfcb1fcbe9ad1bf3a0 31-May-2016 Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi>

[LEN] to [static LEN] on some function parameters Also add STATIC_ARRAY macro to hide it in c++ compilation.

c9c20b28081218c0af83d36283abb0a8c6cc6125 07-May-2014 Phil Carmody <phil@dovecot.fi>

lib: fix md4/md5 buffer read overrun uint_fast32_t may be 64 bits and read too many bytes at the end of the buffer. This didn't actually break anything as long as there was 32 bits of readable memory past the buffer.

4e8d6d03c2ff85448df79b181a2ea850fb5d4199 27-Jun-2012 Timo Sirainen <tss@iki.fi>

Try to avoid (void) casts by adding more ATTR_NOWARN_UNUSED_RESULT.

e34d170f8f0e084bd94bfbc1a7085ece67e508df 25-Jun-2012 Timo Sirainen <tss@iki.fi>

Make sure we check all the functions' return values. Minor API changes to simplify this. Checked using a patched clang that adds attribute(warn_unused_result) to all functions. This commit fixes several error handling mistakes.

/dovecot/src/anvil/main.c /dovecot/src/auth/auth-request.c /dovecot/src/auth/mech-digest-md5.c /dovecot/src/auth/mech-scram-sha1.c /dovecot/src/auth/passdb-blocking.c /dovecot/src/auth/password-scheme-otp.c /dovecot/src/auth/userdb-blocking.c /dovecot/src/auth/userdb-sql.c /dovecot/src/config/doveconf.c /dovecot/src/config/main.c /dovecot/src/config/old-set-parser.c /dovecot/src/dict/dict-commands.c /dovecot/src/dict/main.c /dovecot/src/director/director-connection.c /dovecot/src/director/director-host.c /dovecot/src/director/director.c /dovecot/src/director/doveadm-connection.c /dovecot/src/director/mail-host.c /dovecot/src/director/main.c /dovecot/src/director/test-user-directory.c /dovecot/src/doveadm/doveadm-dump-dbox.c /dovecot/src/doveadm/doveadm-mail-server.c /dovecot/src/doveadm/doveadm-mailbox-list-iter.c /dovecot/src/doveadm/doveadm-mount.c /dovecot/src/doveadm/doveadm-penalty.c /dovecot/src/doveadm/doveadm-stats.c /dovecot/src/doveadm/dsync/doveadm-dsync.c /dovecot/src/doveadm/dsync/dsync-brain-mailbox-tree.c /dovecot/src/doveadm/dsync/dsync-brain-mailbox.c /dovecot/src/doveadm/dsync/dsync-brain-mails.c /dovecot/src/doveadm/dsync/dsync-mailbox-import.c /dovecot/src/doveadm/dsync/dsync-mailbox-tree.c /dovecot/src/doveadm/dsync/dsync-slave.c /dovecot/src/doveadm/dsync/dsync-slave.h /dovecot/src/doveadm/server-connection.c /dovecot/src/doveadm/server-connection.h /dovecot/src/imap-login/client.c /dovecot/src/imap/cmd-fetch.c /dovecot/src/imap/cmd-idle.c /dovecot/src/imap/cmd-list.c /dovecot/src/imap/imap-client.c /dovecot/src/imap/imap-client.h /dovecot/src/imap/imap-fetch-body.c /dovecot/src/imap/imap-sync.c /dovecot/src/imap/main.c /dovecot/src/indexer/master-connection.c /dovecot/src/lib-auth/auth-client.c /dovecot/src/lib-imap/imap-parser.c /dovecot/src/lib-imap/imap-quote.c /dovecot/src/lib-index/mail-cache-compress.c /dovecot/src/lib-index/mail-cache-transaction.c /dovecot/src/lib-index/mail-cache.c /dovecot/src/lib-index/mail-index-fsck.c /dovecot/src/lib-index/mail-index-map-hdr.c /dovecot/src/lib-index/mail-index-modseq.c /dovecot/src/lib-index/mail-index-private.h /dovecot/src/lib-index/mail-index-strmap.c /dovecot/src/lib-index/mail-index-sync-update.c /dovecot/src/lib-index/mail-index-transaction-private.h /dovecot/src/lib-index/mail-index-transaction-sort-appends.c /dovecot/src/lib-index/mail-index-transaction-update.c /dovecot/src/lib-index/mail-index-view-sync.c /dovecot/src/lib-index/mail-index-write.c /dovecot/src/lib-index/mail-index.c /dovecot/src/lib-index/mail-transaction-log-file.c /dovecot/src/lib-index/test-mail-index-transaction-update.c /dovecot/src/lib-index/test-mail-transaction-log-append.c /dovecot/src/lib-mail/message-header-decode.c /dovecot/src/lib-mail/message-part-serialize.c /dovecot/src/lib-mail/rfc822-parser.c /dovecot/src/lib-mail/test-istream-dot.c /dovecot/src/lib-ntlm/ntlm-des.c /dovecot/src/lib-ntlm/ntlm-des.h /dovecot/src/lib-ntlm/ntlm-encrypt.c /dovecot/src/lib-ntlm/ntlm-encrypt.h /dovecot/src/lib-otp/otp-hash.c /dovecot/src/lib-otp/otp-hash.h /dovecot/src/lib-storage/index/dbox-common/dbox-file-fix.c /dovecot/src/lib-storage/index/dbox-common/dbox-file.c /dovecot/src/lib-storage/index/dbox-common/dbox-sync-rebuild.c /dovecot/src/lib-storage/index/dbox-multi/mdbox-purge.c /dovecot/src/lib-storage/index/dbox-single/sdbox-copy.c /dovecot/src/lib-storage/index/imapc/imapc-mail.c /dovecot/src/lib-storage/index/imapc/imapc-storage.c /dovecot/src/lib-storage/index/index-mail.c /dovecot/src/lib-storage/index/index-search.c /dovecot/src/lib-storage/index/index-sort-string.c /dovecot/src/lib-storage/index/index-sort.c /dovecot/src/lib-storage/index/index-status.c /dovecot/src/lib-storage/index/index-storage.h /dovecot/src/lib-storage/index/index-sync-changes.c /dovecot/src/lib-storage/index/index-sync.c /dovecot/src/lib-storage/index/index-thread.c /dovecot/src/lib-storage/index/maildir/maildir-uidlist.c /dovecot/src/lib-storage/index/mbox/istream-raw-mbox.c /dovecot/src/lib-storage/index/mbox/mbox-mail.c /dovecot/src/lib-storage/index/mbox/mbox-save.c /dovecot/src/lib-storage/index/mbox/mbox-storage.c /dovecot/src/lib-storage/index/mbox/mbox-storage.h /dovecot/src/lib-storage/index/mbox/mbox-sync.c /dovecot/src/lib-storage/index/pop3c/pop3c-client.c /dovecot/src/lib-storage/index/raw/raw-mail.c /dovecot/src/lib-storage/mail-search-build.c /dovecot/src/lib-storage/mail-storage-private.h /dovecot/src/lib-storage/mail.c /dovecot/src/lib-storage/mailbox-get.c /dovecot/src/lib-storage/mailbox-uidvalidity.c data-stack.c hash.c hostpid.c iostream-rawlog.c md4.c md5.c mountpoint.c nfs-workarounds.c nfs-workarounds.h seq-range-array.c seq-range-array.h test-base64.c test-network.c test-ostream-file.c test-seq-range-array.c /dovecot/src/log/log-connection.c /dovecot/src/log/log-connection.h /dovecot/src/login-common/client-common-auth.c /dovecot/src/login-common/login-proxy-state.c /dovecot/src/login-common/login-proxy.c /dovecot/src/login-common/ssl-proxy-openssl.c /dovecot/src/master/main.c /dovecot/src/master/service-anvil.c /dovecot/src/master/service-process.c /dovecot/src/master/service-process.h /dovecot/src/plugins/autocreate/autocreate-plugin.c /dovecot/src/plugins/expire/doveadm-expire.c /dovecot/src/plugins/expire/expire-plugin.c /dovecot/src/plugins/fts-lucene/fts-backend-lucene.c /dovecot/src/plugins/fts-squat/squat-trie.c /dovecot/src/plugins/fts-squat/squat-uidlist.c /dovecot/src/plugins/fts/fts-storage.c /dovecot/src/plugins/imap-acl/imap-acl-plugin.c /dovecot/src/plugins/imap-quota/imap-quota-plugin.c /dovecot/src/plugins/imap-zlib/imap-zlib-plugin.c /dovecot/src/plugins/quota/quota-maildir.c /dovecot/src/plugins/quota/quota.c /dovecot/src/plugins/stats/stats-connection.c /dovecot/src/plugins/virtual/virtual-mail.c /dovecot/src/plugins/virtual/virtual-sync.c /dovecot/src/plugins/zlib/doveadm-zlib.c /dovecot/src/plugins/zlib/ostream-zlib.c /dovecot/src/pop3/main.c /dovecot/src/pop3/pop3-client.c /dovecot/src/pop3/pop3-client.h /dovecot/src/pop3/pop3-commands.c /dovecot/src/replication/aggregator/notify-connection.c /dovecot/src/replication/replicator/notify-connection.c /dovecot/src/stats/main.c /dovecot/src/util/rawlog.c
74ae32512357bdd4872bf160dc697ff7b54b54c5 19-Oct-2010 Timo Sirainen <tss@iki.fi>

liblib: Added a common API for accessing all hash methods.

70bb16e72afdcd87b6294501d035d5ba1e35af5f 09-Oct-2006 Timo Sirainen <tss@iki.fi>

Added MD4_RESULTLEN macro. --HG-- branch : HEAD

d0e64d52fd8d6491b1140866ff73f76454ec0577 16-Jun-2006 Timo Sirainen <tss@iki.fi>

MD4 was broken with 64bit systems. Added a few x86-64 optimizations. Patch by Andrey Panin --HG-- branch : HEAD

c7480644202e5451fbed448508ea29a25cffc99c 28-Jul-2004 Timo Sirainen <tss@iki.fi>

NTLM authentication. Patch by Andrey Panin --HG-- branch : HEAD

/dovecot/AUTHORS /dovecot/configure.in /dovecot/src/Makefile.am /dovecot/src/auth/Makefile.am /dovecot/src/auth/mech-ntlm.c /dovecot/src/auth/mech.c /dovecot/src/auth/passdb.c /dovecot/src/auth/passdb.h /dovecot/src/auth/password-scheme-ntlm.c /dovecot/src/auth/password-scheme.c /dovecot/src/auth/password-scheme.h /dovecot/src/lib-ntlm/.cvsignore /dovecot/src/lib-ntlm/Makefile.am /dovecot/src/lib-ntlm/hmac-md5.c /dovecot/src/lib-ntlm/hmac-md5.h /dovecot/src/lib-ntlm/ntlm-byteorder.h /dovecot/src/lib-ntlm/ntlm-des.c /dovecot/src/lib-ntlm/ntlm-des.h /dovecot/src/lib-ntlm/ntlm-encrypt.c /dovecot/src/lib-ntlm/ntlm-encrypt.h /dovecot/src/lib-ntlm/ntlm-flags.h /dovecot/src/lib-ntlm/ntlm-message.c /dovecot/src/lib-ntlm/ntlm-message.h /dovecot/src/lib-ntlm/ntlm-types.h /dovecot/src/lib-ntlm/ntlm.h Makefile.am md4.c md4.h