Re: function g_cond_timed_wait is not safe when change of datetime?
- From: "cee 2G" <fykcee1 gmail com>
- To: "Tor Lillqvist" <tml iki fi>
- Cc: gtk-list gnome org
- Subject: Re: function g_cond_timed_wait is not safe when change of datetime?
- Date: Fri, 21 Nov 2008 19:15:53 +0800
Can this be considered as a security hole?
2008/11/21 Tor Lillqvist <tml iki fi>
> Say, the following code will cause the current process block for very long time:Of course it will. Why are you surprised by that? The
g_cond_timed_wait() function can't know that if you say "wait until
this specific time" you don't actually mean it. If you have a machine
where the time of day clock is randomly jumping back and forth all the
time, you surely need to fix that then.
] [Thread Prev