Invalid allocation of Gpt_ChannelStateType size to channelWakeupEnFlag

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • MCAL
    • MCAL-31713
    • MCUSW_J7_11.00.00
    • MCUSW_J7_11.01.00
    • Hide
      j7200-evm
      j721e-evm
      j721s2-evm
      j722s-evm
      j742s2-evm
      j784s4-evm
      Show
      j7200-evm j721e-evm j721s2-evm j722s-evm j742s2-evm j784s4-evm

      Description :
      The size of the enum "Gpt_ChannelStateType" is being allocated to the array "channelWakeupEnFlag[chIdx]" using the "memset" function.
      Similar issue with "channelNotifyActiveFlag[chIdx]" as well.
      This results in an improper type allocation, which can lead to security risks such as buffer overflow or undefined behavior.
      Root cause:
      Type mismatch while setting the memory in memset(). Instead of using uint32 type, Gpt_ChannelStateType has been used
      Workaround:
      Change the type from Gpt_ChannelStateType to uint32 type during memset() for channelWakeupEnFlag[chIdx]

            Assignee:
            TI User
            Reporter:
            TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-5898 - Invalid allocation of Gpt_ChannelSt...
                SYNCHRONIZED
                • Last Sync Date: