APEI: Make sure event data fit into the buffer.
There seem to be systems returning some garbage here. I still don't
know why, but at least I hope this check fix indefinite printf loop.
MFC after: 2 weeks
(cherry picked from commit 3b248a2113829e43c382f5e2b1f85c626c01f024)