[exim-dev] [Bug 1527] eximon fails to read some spool files

Página Inicial
Delete this message
Reply to this message
Autor: Jeremy Harris
Data:  
Para: exim-dev
Assunto: [exim-dev] [Bug 1527] eximon fails to read some spool files
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1527




--- Comment #1 from Jeremy Harris <jgh146exb@???> 2014-09-10 12:48:13 ---
Created an attachment (id=755)
--> (http://bugs.exim.org/attachment.cgi?id=755)
proposed fix

Taking the #ifndef out doesn't compile (because the tls support routines
are not built into eximon) and shouldn't be needed anyway (it should just
skip the unrecognised "-t" line).

The actual bug is the long certificate line being too big for the buffer,
so the subsequent read starts in the middle of the remainder of the line
and, since it doesn't start "-", is a syntax error. The eximon main() nails
big_buffer_size to 1k, oddly overriding the globals file version (minimum 16k).
Just taking out the override should fix this. However, due to the potential
for PEM-format certificates to get large I think it wise to add an auto-grow
for big_buffer as well.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email