Bug 628977 - crash in imapx_parse_uids() (Make stream buf grow automatically)
authorDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 8 Sep 2010 09:43:28 +0000 (10:43 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 8 Sep 2010 09:47:08 +0000 (10:47 +0100)
commitde5bdc315907225f61bce95937ba16d23b028691
tree28266c3d7e862c3f0aaaf408f1f5386c4de2db13
parent5e6b049763a7c72e179c9f6446856031a68dba26
Bug 628977 - crash in imapx_parse_uids() (Make stream buf grow automatically)

Instead of bailing out when we need a larger buffer, just grow it.

Start with a 4-byte buffer, to ensure we exercise the reallocation code.
After a little while (and before the release) we can bump that up to something
more sensible like 4KiB.
camel/providers/imapx/camel-imapx-stream.c
camel/providers/imapx/camel-imapx-stream.h