Re: function g_cond_timed_wait is not safe when change of datetime?

Hi, tml.
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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]