[exim-dev] [Bug 1112] ${eval:INT_MIN/-1} gives SIGFPE

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Phil Pennock
Dátum:  
Címzett: exim-dev
Tárgy: [exim-dev] [Bug 1112] ${eval:INT_MIN/-1} gives SIGFPE
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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




--- Comment #1 from Phil Pennock <pdp@???> 2011-05-08 08:15:16 ---
One solution implemented and pushed to my staging repo:

http://git.exim.org/users/pdp/exim.git/commit/19aa17d10e806f84c0d5525c5947f367ebc106ba

In this, INT_MIN/-1 or INT_MIN%-1 becomes INT_MAX.

I am not pushing this to the main repo yet, I want review. Is this a sane
approach? Am I missing something? Should we just mandate 32-bit ints for Exim
and require that 64-bit be available for working? Something else?


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