]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
dict-fs/memcached-ascii/redis: Consistently truncate value at NULs
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sat, 21 Apr 2018 12:50:08 +0000 (15:50 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 23 Apr 2018 10:32:50 +0000 (13:32 +0300)
commit302708ee9a2bcc5876cd1c54e7832da4f3943786
tree0a761b8770364c2dee26c67ebf98c94af6475563
parenta60deaa8cc47f8ecb0155b52ca4b849ee1fcfe5b
dict-fs/memcached-ascii/redis: Consistently truncate value at NULs

The dict API currently doesn't support NULs in values, so they have to be
truncated. However, previously they were truncated at NULs, but more data
may have still been appended to the value. This could have produced
somewhat random results.
src/lib-dict-extra/dict-fs.c
src/lib-dict/dict-memcached-ascii.c
src/lib-dict/dict-redis.c