Vincent Lefevre
2018-07-22 01:35:38 UTC
While testing the new code related to limited view, I noticed
an old standing bug: ctx->vsize wasn't reset in this code.
I'm wondering whether there could be similar bugs in other parts
of the code, where vcount is reset to 0, but not vsize.
mbox.c has:
ctx->hdrmax = 0; /* force allocation of new headers */
ctx->msgcount = 0;
ctx->vcount = 0;
ctx->tagged = 0;
ctx->deleted = 0;
ctx->new = 0;
ctx->unread = 0;
ctx->flagged = 0;
ctx->changed = 0;
ctx->id_hash = NULL;
ctx->subj_hash = NULL;
but nothing related to vsize.
sort.c has "ctx->vcount = 0;" twice, but nothing about vsize.
I don't know whether this is correct.
The other files with /vcount *= *0/ seem OK.
an old standing bug: ctx->vsize wasn't reset in this code.
I'm wondering whether there could be similar bugs in other parts
of the code, where vcount is reset to 0, but not vsize.
mbox.c has:
ctx->hdrmax = 0; /* force allocation of new headers */
ctx->msgcount = 0;
ctx->vcount = 0;
ctx->tagged = 0;
ctx->deleted = 0;
ctx->new = 0;
ctx->unread = 0;
ctx->flagged = 0;
ctx->changed = 0;
ctx->id_hash = NULL;
ctx->subj_hash = NULL;
but nothing related to vsize.
sort.c has "ctx->vcount = 0;" twice, but nothing about vsize.
I don't know whether this is correct.
The other files with /vcount *= *0/ seem OK.
--
Vincent Lefèvre <***@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Vincent Lefèvre <***@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)