Blame bind-9.5-overflow.patch
|
Adam Tkac |
f3718d |
diff -up bind-9.5.0a5/lib/isc/pthreads/condition.c.overflow bind-9.5.0a5/lib/isc/pthreads/condition.c
|
|
Adam Tkac |
f3718d |
--- bind-9.5.0a5/lib/isc/pthreads/condition.c.overflow 2007-07-17 07:53:59.000000000 +0200
|
|
Adam Tkac |
f3718d |
+++ bind-9.5.0a5/lib/isc/pthreads/condition.c 2007-07-17 07:55:08.000000000 +0200
|
|
Adam Tkac |
f3718d |
@@ -43,7 +43,7 @@ isc_condition_waituntil(isc_condition_t
|
|
Adam Tkac |
f3718d |
* POSIX defines a timespec's tv_sec as time_t.
|
|
Adam Tkac |
f3718d |
*/
|
|
Adam Tkac |
f3718d |
result = isc_time_secondsastimet(t, &ts.tv_sec);
|
|
Adam Tkac |
f3718d |
- if (result != ISC_R_SUCCESS)
|
|
Adam Tkac |
f3718d |
+ if (result != ISC_R_RANGE && result != ISC_R_SUCCESS)
|
|
Adam Tkac |
f3718d |
return (result);
|
|
Adam Tkac |
f3718d |
|
|
Adam Tkac |
f3718d |
/*!
|
|
Adam Tkac |
f3718d |
diff -up bind-9.5.0a5/lib/isc/unix/time.c.overflow bind-9.5.0a5/lib/isc/unix/time.c
|
|
Adam Tkac |
f3718d |
--- bind-9.5.0a5/lib/isc/unix/time.c.overflow 2007-02-14 01:27:27.000000000 +0100
|
|
Adam Tkac |
f3718d |
+++ bind-9.5.0a5/lib/isc/unix/time.c 2007-07-17 07:53:08.000000000 +0200
|
|
Adam Tkac |
f3718d |
@@ -379,6 +379,9 @@ isc_time_secondsastimet(const isc_time_t
|
|
Adam Tkac |
f3718d |
* (Let's hope the compiler got the actual test right.)
|
|
Adam Tkac |
f3718d |
*/
|
|
Adam Tkac |
f3718d |
UNUSED(i);
|
|
Adam Tkac |
f3718d |
+
|
|
Adam Tkac |
f3718d |
+ /* Means that t->seconds > maximum value in time_t and we have int time_t */
|
|
Adam Tkac |
f3718d |
+ seconds = INT_MAX;
|
|
Adam Tkac |
f3718d |
return (ISC_R_RANGE);
|
|
Adam Tkac |
f3718d |
}
|