Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GPU/FIFO: avoid possible invalid memory accesses#657

Open
jiangliu wants to merge 1 commit intoNVIDIA:mainfrom
jiangliu:gpu/fifo
Open

GPU/FIFO: avoid possible invalid memory accesses#657
jiangliu wants to merge 1 commit intoNVIDIA:mainfrom
jiangliu:gpu/fifo

Conversation

Copy link

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
Copy link

CLAassistant commented Jun 6, 2024 *
edited
Loading


All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants