[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#4872) Non-portable comparison in wait4msg() (result.c) causes infinite loop



There might be more about this; in daemon.c, difftime() is used to
compute the difference between two time_t, but the result is assigned to
a time_t.  Maybe a negative value cannot be obtained, but in any case
that cast would likely be incorrect as well in systems where time_t is
unsigned.

I'm re-opening this bug.

p.



Ing. Pierangelo Masarati
OpenLDAP Core Team

SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
------------------------------------------
Office:   +39.02.23998309
Mobile:   +39.333.4963172
Email:    pierangelo.masarati@sys-net.it
------------------------------------------