[dovecot/core] a9a421: lib-test: Cleanup - Move expected_error_str check ...

GitHub noreply at github.com
Tue Nov 28 00:00:13 EET 2017


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: a9a42103515aa25717fcb24d1897e42fae2da41e
      https://github.com/dovecot/core/commit/a9a42103515aa25717fcb24d1897e42fae2da41e
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-11-27 (Mon, 27 Nov 2017)

  Changed paths:
    M src/lib-test/test-common.c

  Log Message:
  -----------
  lib-test: Cleanup - Move expected_error_str check to its own function


  Commit: 37bf0a2059868bb31f25543e9ca11dd9c77bc198
      https://github.com/dovecot/core/commit/37bf0a2059868bb31f25543e9ca11dd9c77bc198
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-11-27 (Mon, 27 Nov 2017)

  Changed paths:
    M src/lib-test/test-common.c
    M src/lib-test/test-common.h

  Log Message:
  -----------
  lib-test: Add test_expect_fatal_string()


  Commit: 86ec225534ca0e042149eab2458a2a9720db09ae
      https://github.com/dovecot/core/commit/86ec225534ca0e042149eab2458a2a9720db09ae
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-11-27 (Mon, 27 Nov 2017)

  Changed paths:
    M src/lib/failures.c

  Log Message:
  -----------
  lib: Make sure panics/fatals don't recurse into loops


  Commit: f2969642c788b200abe5b6973f30899a07f33420
      https://github.com/dovecot/core/commit/f2969642c788b200abe5b6973f30899a07f33420
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-11-27 (Mon, 27 Nov 2017)

  Changed paths:
    M src/lib/data-stack.c

  Log Message:
  -----------
  lib: Fix logging panic message if data stack canary corruption is detected

The previous code just recursed into the same canary corruption check and
didn't end up logging anything.


  Commit: ac72c147af759373f5de771937ae0a99ee673152
      https://github.com/dovecot/core/commit/ac72c147af759373f5de771937ae0a99ee673152
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-11-27 (Mon, 27 Nov 2017)

  Changed paths:
    M src/lib/mempool-allocfree.c

  Log Message:
  -----------
  lib: mempool-allocfree - If calloc() fails, include "Out of memory" in the log line


  Commit: a7d1bd5be687bbb125ccfb5c685491414280ddac
      https://github.com/dovecot/core/commit/a7d1bd5be687bbb125ccfb5c685491414280ddac
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-11-27 (Mon, 27 Nov 2017)

  Changed paths:
    M src/lib/test-mempool-allocfree.c
    M src/lib/test-mempool-alloconly.c

  Log Message:
  -----------
  lib: Fix mempool-alloconly & mempool-allocfree unit tests

The "physically impossible size" test was supposed to test calloc()==NULL
failure, but in reality it was triggering asserts before that.


  Commit: ba1a5db879b08d2fefcb42160af67853cdfe7687
      https://github.com/dovecot/core/commit/ba1a5db879b08d2fefcb42160af67853cdfe7687
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-11-27 (Mon, 27 Nov 2017)

  Changed paths:
    M src/lib/test-array.c
    M src/lib/test-data-stack.c
    M src/lib/test-malloc-overflow.c
    M src/lib/test-mempool-allocfree.c
    M src/lib/test-mempool-alloconly.c
    M src/lib/test-mempool.c
    M src/lib/test-printf-format-fix.c

  Log Message:
  -----------
  lib: Use test_expect_fatal_string() for all fatal unit tests


  Commit: e4a7dbe5e02280e561d9ac438326ed70700cd39b
      https://github.com/dovecot/core/commit/e4a7dbe5e02280e561d9ac438326ed70700cd39b
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-11-27 (Mon, 27 Nov 2017)

  Changed paths:
    M src/lib/mempool-alloconly.c

  Log Message:
  -----------
  lib: mempool-alloconly - Cleanly fail allocations just below SSIZE_T_MAX

Previously it would have assert-crashed in nearest_power().


Compare: https://github.com/dovecot/core/compare/86ad487452c7...e4a7dbe5e022


More information about the dovecot-cvs mailing list