[exim-dev] [Bug 1102] Exim should not abort on divide-by-zer…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Phil Pennock
Date:  
À: exim-dev
Anciens-sujets: [exim-dev] [Bug 1102] New: Divide by zero in eval/acl not reported in logs
Sujet: [exim-dev] [Bug 1102] Exim should not abort on divide-by-zero
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

Phil Pennock <pdp@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





--- Comment #2 from Phil Pennock <pdp@???> 2011-04-12 09:26:57 ---
This should now result in error messages in the log from the expansion failure.

http://git.exim.org/exim.git/commit/54e7ce4ad20a6977ee895a358259122bf3630090

% ./build-FreeBSD-amd64/exim -be
> ${eval:42/0}

Failed: error in expression evaluation: divide by zero (after processing
"42/0")

It will be up to the postmaster of a given install to construct their
arithmetic expressions to avoid trying to divide by zero, but Exim will no
longer die on FPE for this case.


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