[dovecot/core] e3440f: lib: cast {,CONST_}PTR_OFFSET's offset argument to...

GitHub noreply at github.com
Tue Jan 23 10:00:10 EET 2018


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: e3440f3861208b263b31912bf4c81e04b7f22c62
      https://github.com/dovecot/core/commit/e3440f3861208b263b31912bf4c81e04b7f22c62
  Author: Josef 'Jeff' Sipek <jeff.sipek at dovecot.fi>
  Date:   2018-01-22 (Mon, 22 Jan 2018)

  Changed paths:
    M src/lib/macros.h

  Log Message:
  -----------
  lib: cast {,CONST_}PTR_OFFSET's offset argument to size_t

This fixes build on 32-bit systems where the addition may cause integer
promotion to an integer type larger than uintptr_t.

gcc 6.3.0 warning:

file-cache.c: In function 'file_cache_write':
macros.h:25:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  ((void *) (((uintptr_t) (ptr)) + (offset)))


  Commit: 3a862c8c9e358b976c965f77bcfd867637700ae3
      https://github.com/dovecot/core/commit/3a862c8c9e358b976c965f77bcfd867637700ae3
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2018-01-23 (Tue, 23 Jan 2018)

  Changed paths:
    M src/submission/submission-client.c

  Log Message:
  -----------
  submission: Enable verbose reporting of relay server certificate problems.


Compare: https://github.com/dovecot/core/compare/c26c060e415e...3a862c8c9e35


More information about the dovecot-cvs mailing list