Tomasz Potega
2013-Nov-06 07:32 UTC
[Dovecot] get_disconnect_reason() gets called with NULL ctx->litinput
Hi, I have found get_disconnect_reason() to be called with NULL ctx->litinput at times, making dovecot crash when accessing v_offset: src/imap/cmd-append.c: 83 switch (i_stream_read(client->input)) { 84 case -1: 85 /* disconnected */ 86 reason = get_disconnect_reason(ctx, ctx->litinput->v_offset); 87 cmd_append_finish(cmd->context); 88 /* Reset command so that client_destroy() doesn't try to call 89 cmd_append_continue_message() anymore. */ Best regards, Tomasz Pot?ga [Wirtualna Polska] <http://www.wp.pl> Znajdziesz nas tutaj: [Wp na Facebooku] <https://www.facebook.com/WirtualnaPolska> [Wp na Twitterze] <https://twitter.com/wirtualnapolska> [Wp na SlideShare] <http://www.slideshare.net/wirtualnapolska> [Wp w Google+] <https://plus.google.com/+wppl> [Wp na YouTube] <https://www.youtube.com/user/wptvwppl> "WIRTUALNA POLSKA" Sp??ka Akcyjna z siedzib? w Gda?sku przy ul. Traugutta 115 C, wpisana do Krajowego Rejestru S?dowego - Rejestru Przedsi?biorc?w prowadzonego przez S?d Rejonowy Gda?sk - P??noc w Gda?sku pod numerem KRS 0000068548, o kapitale zak?adowym 67.980.024,00 z?otych op?aconym w ca?o?ci oraz Numerze Identyfikacji Podatkowej 957-07-51-216.
Timo Sirainen
2013-Nov-06 10:54 UTC
[Dovecot] get_disconnect_reason() gets called with NULL ctx->litinput
On 6.11.2013, at 9.32, Tomasz Potega <tpotega at wp-sa.pl> wrote:> I have found get_disconnect_reason() to be called with NULL > ctx->litinput at times, making dovecot crash when accessing v_offset:Fixed: http://hg.dovecot.org/dovecot-2.2/rev/672350cdf509