-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Medium
-
MCAL
-
MCAL-31713
-
MCUSW_J7_11.00.00
-
MCUSW_J7_11.01.00
-
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]