The dav_get_timeoutfunction in "dav/main/util.c" (image1.png) returns a time_t value (aka long int). If a big enough "timeout" value is sent, the returned value can be overflowed. This issue was discovered and reported by GHSL team member @antonio-morales (Antonio Morales).