[RTEMS Project] #4211: _Timespec_To_ticks overflow

RTEMS trac trac at rtems.org
Thu Jan 7 03:47:11 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       |   Keywords:
Blocked By:               |   Blocking:
--------------------------+--------------------
 The FreeBSD NFSv4 sets a timeout of `INT_MAX` seconds and that translates
 as a call to `tvtohz()` with the `struct timeval` argument fields set to:
 {{{
 tvtohz: tv_sec=2147483647 tv_usec=0
 }}}
 The call overflows the unsigned 32bit integer number of ticks. Should an
 overflow be checked and the maximum number of ticks returned?

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


More information about the bugs mailing list