did you review it only, or did you test it with a box that causes a crash without it? i didn't test it, as i don't have a suitably broken mail server set up currently.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Looking at the source code, it seems that in
src/drv_imap.cIn above, when the
bytesis 0,this causes the assertion by
in
src/socket.cCan someone please help to fix this issue properly?
please post the last lines of output from
mbsync -a -Dn.@ossi here we go
ok, thanks. the message is clearly zero bytes in size, and i need to harden the code against such garbage.
can you check whether the attached patch is sufficient to produce a sensible result?
LGTM though. I wish this fix landed to melpa sooner.
did you review it only, or did you test it with a box that causes a crash without it? i didn't test it, as i don't have a suitably broken mail server set up currently.
I tested, and it produces another assertion:
This is what I do for the workaround or patch, which is working for me.
Can you refer to the patch here for the hint?
it's somewhat surprising that your hack doesn't crash later on.
please try this updated patch.
Thank you, @Oswald
The last patch works for me.
Thanks,