bug in rfc1522_encode() / rfc1522_do_encode()

Urs Janßen <[email protected]> Tue, 18 Dec 2007 01:58:22 +0100
Newsgroups gmane.network.tin.devel
Message-ID <[email protected]>
Wolfgang Becker <[email protected]> reported a crash with stack corruption
when _reading_ comp.emulators.ms-windows.wine - it turns out that he has
turned on cache_overview_files which does encode !us-ascii data for the
local overview. the problematic article seems to be

<ccc3b705-7599-45a2-8620-670a72dc55d7@b40g2000prf.googlegroups.com>

which has a _very_ huge subject and thus overflows the 2k-buffer in
rfc1522_do_encode().

as a quick fix a 10k buffer should suffice, for a real fix we need to keep
trac of how much space is left in the buffer and realloc it when we need
more... anyone willing to implement this?
-- 
"Only whimps use tape backup: _real_ men just upload their important stuff
 on ftp, and let the rest of the world mirror it ;)" - Linus