Skip to content

[FIX] libcamhal: Fix NULL_FIELD defects in PipeLine, CBStage, and GraphConfig - #70

Open
deep0294 wants to merge 1 commit into
intel:mainfrom
deep0294:fix-coverity-null-field
Open

deep0294 wants to merge 1 commit into
intel:mainfrom
deep0294:fix-coverity-null-field

Conversation

@deep0294

Copy link
Copy Markdown

Description

Fix Coverity static analysis NULL_FIELD defects (CWE-476, Major severity) detected during upstream static analysis scans:

  • CID 8497422 (NULL_FIELD): Guard link, graph, and node pointers in GraphConfig::saveLink
  • CID 8498221 (NULL_FIELD): Add null check for link->srcNode and link->destNode in PipeLine::createPSysGraph
  • CID 8498223 (NULL_FIELD): Guard node and linkConfiguration pointers in CBStage::setTerminalLinkAndAllocNode2SelfBuffers

Tracked-On: #JSWBALINUX-258
Signed-off-by: Amarnath Kumar, Deepak deepak.amarnath.kumar@intel.com

Changes
- Fix CID 8497422 (NULL_FIELD): Guard link, graph, and node
  pointers in GraphConfig::saveLink
- Fix CID 8498221 (NULL_FIELD): Add null check for link->srcNode
  and link->destNode in PipeLine::createPSysGraph
- Fix CID 8498223 (NULL_FIELD): Guard node and linkConfiguration
  pointers in CBStage::setTerminalLinkAndAllocNode2SelfBuffers

Change-Id: I967aef8a8263e9773bf62d1d7d9b3f2fcc37ec45
Tracked-On: #JSWBALINUX-258
Signed-off-by: Amarnath Kumar, Deepak <deepak.amarnath.kumar@intel.com>
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.

1 participant