[dovecot/core] 57bc6e: lib: Add i_realloc_type() for i_realloc() that che...

GitHub noreply at github.com
Fri Jun 9 13:30:13 EEST 2017


  Branch: refs/heads/master-2.2
  Home:   https://github.com/dovecot/core
  Commit: 57bc6ece980240d384e8e793617be32244679397
      https://github.com/dovecot/core/commit/57bc6ece980240d384e8e793617be32244679397
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-06-09 (Fri, 09 Jun 2017)

  Changed paths:
    M src/lib/Makefile.am
    M src/lib/imem.h
    M src/lib/mempool.h
    A src/lib/test-imem.c
    M src/lib/test-lib.c
    M src/lib/test-lib.h

  Log Message:
  -----------
  lib: Add i_realloc_type() for i_realloc() that checks for overflows


  Commit: df4d45517293590ddf9847c5d1d80f75d1f79d24
      https://github.com/dovecot/core/commit/df4d45517293590ddf9847c5d1d80f75d1f79d24
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-06-09 (Fri, 09 Jun 2017)

  Changed paths:
    M src/lib/Makefile.am
    M src/lib/test-lib.c
    M src/lib/test-lib.h
    M src/lib/test-mempool-alloconly.c
    A src/lib/test-mempool.c

  Log Message:
  -----------
  lib: Add test-mempool unit test.

It verifies that the p_new() and p_realloc_type() handle overflows
correctly. test-malloc-overflow already does this for the low-level
MALLOC_*() macros, but here we're cheking that the actually used
memory allocation macros also work.


  Commit: 500f98cc516197ee2beb2d61287de8c058ee8afa
      https://github.com/dovecot/core/commit/500f98cc516197ee2beb2d61287de8c058ee8afa
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-06-09 (Fri, 09 Jun 2017)

  Changed paths:
    M src/lib-index/mail-cache-fields.c
    M src/lib-index/mail-cache-transaction.c
    M src/lib/ioloop-poll.c

  Log Message:
  -----------
  global: Use i_realloc_type() wherever possible


  Commit: 45f1cea3aa69266344ebe924bdc1643a79cd869e
      https://github.com/dovecot/core/commit/45f1cea3aa69266344ebe924bdc1643a79cd869e
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-06-09 (Fri, 09 Jun 2017)

  Changed paths:
    M src/lib-mail/test-istream-qp-encoder.c
    M src/lib-mail/test-qp-encoder.c

  Log Message:
  -----------
  lib-mail: Fix compiler warnings


Compare: https://github.com/dovecot/core/compare/d9b9c96c0d2f...45f1cea3aa69


More information about the dovecot-cvs mailing list