Uploaded image for project: 'rcX - Operating System'
  1. rcX - Operating System
  2. RCX-863

Functions TLR_TIM_TIME_TO_TICK()/TLR_OS_TimeToTick() return wrong result for large arguments

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V2.0.8.25, V2.0.8.26, V2.0.8.27, V2.0.8.28, V2.0.8.29, V2.0.8.30, V2.0.8.31, V2.0.8.32, V2.0.8.33, V2.0.8.34, V2.1.10.0, V2.1.11.0, V2.1.11.1, V2.1.11.2, V2.1.11.3, V2.1.11.4, V2.1.11.5, V2.1.11.6, V2.1.11.7, V2.1.11.8, V2.1.11.9, V2.1.11.10, V2.1.11.11, V2.1.12.0, V2.1.13.0, V2.1.14.0, V2.1.14.1, V2.1.14.2
    • Fix Version/s: V2.1.15.0
    • Component/s: General
    • Labels:
      None
    • Sprint:
      SDO Sprint 5
    • Account:
      SDO rcX (SDORCX)

      Description

      From reporter:

      When function TLR_OS_TimeToTick() is called with an argument value greater than 4294967 an invalid value is returned. E.g. calling with argument value 4294967 returns 4294967 while calling with argument value 4294968 returns 1.

      The problem is caused by an integer overflow and also affects macro TLR_TIM_TIME_TO_TICK().

        Attachments

          Expenses

            Activity

              Status Description

                People

                • Reporter:
                  AMinor Alexander Minor
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: