Clean up Crashdump log entry creation
To avoid passing references to bad memory locations, we had to
pre-build the array with empty entries so we could pass a
reference to the array index without it changing later.
This changes so the code that fills the log entry object checks
if it's filling a single entry or an array entry and expands
the array at that time.
This simplifies filling the "Members" array in the Crashdump
entry collection and avoids sending references to an array
index.
Tested:
Confirmed that Crashdump LogEntries are correctly filled in
the "Members" array of the collection and in the individual
LogEntry.
Change-Id: I4484e248b6d72fadbaedcbb27840cd46cfe3b323
Signed-off-by:
Jason M. Bills <jason.m.bills@intel.com>
Loading
Please register or sign in to comment