See htdig-Patches-548448, or ftp://ftp.ccsf.org/htdig-
patches/3.1.6/time_t.1, which apparently should be adapted
to the 3.2 code. 3.2 does things differently, but the same
potential for overflow appears to exist.
Patches item #548448, was opened at 2002-04-25 08:27
You can respond by visiting:
Submitted By: Martin Vorlaender (martinv2)
Assigned to: Nobody/Anonymous (nobody)
Summary: Cope with unsigned time_t type
While porting ht://Dig to OpenVMS/Alpha, I saw a program
hang due to the fact that the time arithmetic in htdig/
server.cc:Server::delay overflows if time_t is an unsigned
type (which is the case in Compaq C++). To remedy it, just
rearrange the calculation.