meta-gbmc-staging: entity-manager: Fix OOB read in readFRUContents
In readFRUContents, only copy the actual bytes read by the reader to
prevent leaking stale/uninitialized stack memory. Also handle early EOF
to prevent infinite loops.
TAG=agy
CONV=f4b70096-e101-4613-a40f-d3cf330162cb
no fusion2 link for preEVT
Google-Bug-Id: 517754286
Tested: Built entity-manager successfully with bitbake.
Change-Id: I1cdf70b47e28405e721a7602a90d5eea3ca70f0b
Signed-off-by: Tom Tung <tomtung@google.com>
2 files changed