coreboot-kgpe-d16/util/romcc
Patrick Georgi adcad7f046 util/romcc: Don't read 'member' if it might be NULL
The earlier loop exits gracefully iff i == index. In other cases, member
might be NULL, so check that the scan was successful before using its
results.

Change-Id: I818c233d797d82fa819243c4626dd9c4b7de3ac6
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Found-by: Coverity Scan #1129147
Reviewed-on: https://review.coreboot.org/17887
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
2016-12-16 18:45:56 +01:00
..
results
tests romcc: Use UNIX line endings in linux tests 2016-04-13 17:37:03 +02:00
COPYING Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
Makefile romcc: Remove old test infrastructure, rework Makefile 2016-04-14 19:13:07 +02:00
romcc.1 romcc.1: Point bug reporters to the coreboot ML / bug tracker 2016-05-01 16:29:09 +02:00
romcc.c util/romcc: Don't read 'member' if it might be NULL 2016-12-16 18:45:56 +01:00
test.sh romcc: Remove old test infrastructure, rework Makefile 2016-04-14 19:13:07 +02:00