dovecot: Using uninitialized variable sometimes caused crash by ...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Sep 30 15:33:26 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/c83e3272ae88
changeset: 6506:c83e3272ae88
user: Timo Sirainen <tss at iki.fi>
date: Sun Sep 30 15:33:23 2007 +0300
description:
Using uninitialized variable sometimes caused crash by trying to use too
much memory.
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-mail/message-search.c | 2 +-
diffs (13 lines):
diff -r 0da3d9671426 -r c83e3272ae88 src/lib-mail/message-search.c
--- a/src/lib-mail/message-search.c Sun Sep 30 15:01:24 2007 +0300
+++ b/src/lib-mail/message-search.c Sun Sep 30 15:33:23 2007 +0300
@@ -39,8 +39,8 @@ int message_search_init(pool_t pool, con
return 0;
t_push();
+ key_len = strlen(key);
key_utf8 = t_str_new(I_MAX(128, key_len*2));
- key_len = strlen(key);
if (charset_to_utf8(t, (const unsigned char *)key, &key_len,
key_utf8) != CHARSET_RET_OK) {
t_pop();
More information about the dovecot-cvs
mailing list