Bug 18 - AbstractFifo::getNext(int) timeout may become unlimited if system time was changed backwards
Summary: AbstractFifo::getNext(int) timeout may become unlimited if system time was ch...
Status: NEW
Alias: None
Product: resiprocate
Classification: Unclassified
Component: rutil (librutil) (show other bugs)
Version: unspecified
Hardware: All All
: P1 major
Assignee: Owner of all unassigned bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-30 00:57 CDT by Nir Soffer
Modified: 2009-04-30 00:59 CDT (History)
0 users

See Also:


Attachments
Simple fix (503 bytes, patch)
2009-04-30 00:59 CDT, Nir Soffer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nir Soffer 2009-04-30 00:57:17 CDT
The timeout is calculated with begin and end times, acquired using a non monotonic clock. If the system time changes backwards, the timeout may be decreased with a negative value.

Attached a simple fix that bail out if the system time has changed backwards during the wait loop.
Comment 1 Nir Soffer 2009-04-30 00:59:20 CDT
Created attachment 2 [details]
Simple fix

Really add the patch