Re: ctx->vsize reset

2018-07-23 Thread Vincent Lefevre
On 2018-07-22 09:54:44 -0700, Kevin J. McCarthy wrote: > On Sun, Jul 22, 2018 at 03:35:38AM +0200, Vincent Lefevre wrote: > > I'm wondering whether there could be similar bugs in other parts > > of the code, where vcount is reset to 0, but not vsize. > > Nice sleuthing! > > > mbox.c has: > > [...

Re: ctx->vsize reset

2018-07-23 Thread Kevin J. McCarthy
On Tue, Jul 24, 2018 at 04:47:43AM +0200, Vincent Lefevre wrote: > On 2018-07-22 09:54:44 -0700, Kevin J. McCarthy wrote: > > I think the second time is okay. The routine is just resorting, and > > updating the virtual and v2r fields with the assumption that the actual > > visible headers hasn't c