switch-coreboot/util/intelmetool
Youness Alaoui 0e62d76d16 UPSTREAM: util/intelmetool: Fix access to deleted data on stack
pci_me_interface_scan was returning (via argument 'name') a pointer
to the interface name which was stored in a stack variable.  This
caused part of the name to be printed as garbage stack data in some
situations if stack data was overwritten.

This moves the name buffer to the calling function so it can be accessed
before it gets overwritten.

BUG=none
BRANCH=none
TEST=none

Change-Id: If90d643cac4ab73e0c7910c12b8bc4694e872664
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: e0c53af470
Original-Change-Id: I947a4c794ee37fe87e035593eaabcaf963b9875e
Original-Signed-off-by: Youness Alaoui <youness.alaoui@puri.sm>
Original-Reviewed-on: https://review.coreboot.org/19066
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://chromium-review.googlesource.com/467106
2017-04-04 03:02:42 -07:00
..
intelmetool.c UPSTREAM: util/intelmetool: Fix access to deleted data on stack 2017-04-04 03:02:42 -07:00
intelmetool.h UPSTREAM: util/intelmetool: Add support for Wildcat Point LP 2017-03-08 05:13:04 -08:00
Makefile util/intelmetool: Add intelmetool from Damien Zammit 2016-03-25 18:28:03 +01:00
me.c util/intelmetool: Add intelmetool from Damien Zammit 2016-03-25 18:28:03 +01:00
me.h util/intelmetool: Add intelmetool from Damien Zammit 2016-03-25 18:28:03 +01:00
me_status.c util/intelmetool: Add intelmetool from Damien Zammit 2016-03-25 18:28:03 +01:00
mmap.c UPSTREAM: util/intelmetool: Fix warning building with 32-bit 2017-01-05 11:00:30 -08:00
mmap.h UPSTREAM: util/intelmetool: Fix warning building with 32-bit 2017-01-05 11:00:30 -08:00