Skip to content

Conversation

jiangliu
Copy link

@jiangliu jiangliu commented Jun 6, 2024

  1. ensure pKernelFifo->ppChidMgr[i]->pChanGrpTree is successfully
    allocated in function kfifoChidMgrConstruct_IMPL(), otherwise
    it may cause invalid memory access when calling mapFine().
  2. only invoke mapDestroy() when pKernelFifo->ppChidMgr[i]->pChanGrpTree
    is not NULL in function kfifoChidMgrDestruct_IMPL(), otherwise
    it may cause invalid memory access.
  3. ensure pChidMgr is valid in function kfifoGetChannelGroup_IMPL().

1) ensure pKernelFifo->ppChidMgr[i]->pChanGrpTree is successfully
   allocated in function kfifoChidMgrConstruct_IMPL(), otherwise
   it may cause invalid memory access when calling mapFine().
2) only invoke mapDestroy() when pKernelFifo->ppChidMgr[i]->pChanGrpTree
   is not NULL in function kfifoChidMgrDestruct_IMPL(), otherwise
   it may cause invalid memory access.
3) ensure pChidMgr is valid in function kfifoGetChannelGroup_IMPL().

Signed-off-by: Jiang Liu <[email protected]>
@CLAassistant
Copy link

CLAassistant commented Jun 6, 2024

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants