Skip to content
Commit 2b20ef6e authored by Jason M. Bills's avatar Jason M. Bills Committed by Ed Tanous
Browse files

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: default avatarJason M. Bills <jason.m.bills@intel.com>
parent ace85d60
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment