[dovecot/core] 9521a4: fts: Fix indexing input that contains NULs

GitHub noreply at github.com
Fri Apr 27 14:30:18 EEST 2018


  Branch: refs/heads/master-2.3
  Home:   https://github.com/dovecot/core
  Commit: 9521a4e872e971981169773e3ac7921f73786432
      https://github.com/dovecot/core/commit/9521a4e872e971981169773e3ac7921f73786432
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-04-27 (Fri, 27 Apr 2018)

  Changed paths:
    M src/plugins/fts/fts-parser.c

  Log Message:
  -----------
  fts: Fix indexing input that contains NULs

Any message_block that contained NULs, but otherwise was valid UTF-8, was
simply dropped.


  Commit: a3503eb62dba999436518a85a63cf61dc5cf68f4
      https://github.com/dovecot/core/commit/a3503eb62dba999436518a85a63cf61dc5cf68f4
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-04-27 (Fri, 27 Apr 2018)

  Changed paths:
    M src/lib-fts/test-fts-tokenizer.c

  Log Message:
  -----------
  lib-fts: Minor fix to randomness test in test-fts-tokenizer

If the random input was entirely valid UTF-8, the input was truncated to
empty.


  Commit: fac3484be95ddaaff8675899adf3465db0783e1d
      https://github.com/dovecot/core/commit/fac3484be95ddaaff8675899adf3465db0783e1d
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-04-27 (Fri, 27 Apr 2018)

  Changed paths:
    M src/lib-storage/list/mailbox-list-fs-iter.c
    M src/lib-storage/list/mailbox-list-maildir-iter.c

  Log Message:
  -----------
  lib-storage: Don't ignore uni_utf8_get_valid_data() return value

It's not supposed to happen, so call i_unreached()


  Commit: 3246adaba57888b8d9907992b16d0f16861ec769
      https://github.com/dovecot/core/commit/3246adaba57888b8d9907992b16d0f16861ec769
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-04-27 (Fri, 27 Apr 2018)

  Changed paths:
    M src/lib/unichar.h

  Log Message:
  -----------
  lib: uni_utf8_get_valid_data() - Add ATTR_WARN_UNUSED_RESULT

Ignoring the return value most likely leads to buggy code, so make sure it's
checked.


Compare: https://github.com/dovecot/core/compare/9002dc87fb9b...3246adaba578


More information about the dovecot-cvs mailing list