Thejaswani Putta uploaded patch set #6 to this change.

View Change

Fix NULL dereference issues found by Klocwork

Check if the block pointer bp is Null before dereferencing it.
Since assert works only with debug builds, Instead of asserting,
return False if bp found as Null

Signed-off-by: Thejaswani Putta <thejaswani.putta@intel.com>
Change-Id: I9ed0fc9b03d9136c582377035cf478d3abf83c41
---
M payloads/libpayload/curses/form/fty_alnum.c
M payloads/libpayload/curses/form/fty_alpha.c
M payloads/libpayload/curses/form/fty_enum.c
M payloads/libpayload/curses/form/fty_int.c
M src/soc/intel/cannonlake/romstage/fsp_params.c
5 files changed, 14 insertions(+), 0 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/25/33625/6

To view, visit change 33625. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I9ed0fc9b03d9136c582377035cf478d3abf83c41
Gerrit-Change-Number: 33625
Gerrit-PatchSet: 6
Gerrit-Owner: Thejaswani Putta <thejaswani.putta@intel.com>
Gerrit-Reviewer: AndreX Andraos <andrex.andraos@intel.com>
Gerrit-Reviewer: Bora Guvendik <bora.guvendik@intel.com>
Gerrit-Reviewer: Julius Werner <jwerner@chromium.org>
Gerrit-Reviewer: Krzysztof M Sywula <krzysztof.m.sywula@intel.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi@google.com>
Gerrit-Reviewer: Pratikkumar V Prajapati <pratikkumar.v.prajapati@intel.com>
Gerrit-Reviewer: Selma Bensaid <selma.bensaid@intel.com>
Gerrit-Reviewer: Thejaswani Putta <thejaswani.putta@intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus@gmail.com>
Gerrit-MessageType: newpatchset