Andrew Engelbrecht e8905312f0 nvramtool: cmos_read(): Use malloc() instead of alloca()
Fixes crash occurring when 'nvramtool -a' tried to free a prematurely
freed pointer. (Tested on x60)

malloc() is correct because the pointer is accessed outside the calling
function. The pointer is freed in the parent function list_cmos_entry().

Change-Id: I1723f09740657f0f0d9e6954bd6d11c0a3820a42
Signed-off-by: Andrew Engelbrecht <sudoman@ninthfloor.org>
Reviewed-on: http://review.coreboot.org/7620
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
2014-12-02 10:15:00 +01:00
..
2014-11-26 23:18:58 +01:00
2014-10-18 14:29:29 +02:00
2014-03-09 21:19:29 +01:00
2014-09-06 09:21:07 +02:00
2014-09-08 18:59:23 +02:00
2014-10-07 21:03:25 +02:00
2013-06-12 05:18:24 +02:00
2012-11-30 23:59:58 +01:00