[RTEMS Project] #4211: _Timespec_To_ticks overflow

RTEMS trac trac at rtems.org
Fri Jan 8 05:42:44 UTC 2021


#4211: _Timespec_To_ticks overflow
-------------------------+---------------------
 Reporter:  Chris Johns  |       Owner:  (none)
     Type:  defect       |      Status:  new
 Priority:  normal       |   Milestone:  6.1
Component:  score        |     Version:  6
 Severity:  normal       |  Resolution:
 Keywords:               |  Blocked By:
 Blocking:               |
-------------------------+---------------------

Comment (by Sebastian Huber):

 Replying to [comment:2 Chris Johns]:
 > Replying to [comment:1 Sebastian Huber]:
 > > I would simply use the tvtohz() implementation from FreeBSD.
 > The ticket is about correctness in the `score` and not `libbsd`.
 The ticket description doesn't mention _Timespec_To_ticks().

 _Timespec_To_ticks() is used for the sporadic server and the POSIX timer.
 Maybe the implementation should be changed to use CLOCK_MONOTONIC, but I
 don't really know what is specified by POSIX. Maybe Joel can have a look
 at this.

--
Ticket URL: <http://devel.rtems.org/ticket/4211#comment:3>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list