liblog: log reader validate headers

Ensure len and hdr_size fields are valid and match the return value.
Truncate or zero content as necessary, but do not drop the message.

Bug: 28610769
Change-Id: I10785fa5b03aa3da7d07b368188e3f7c36a84b4f
1 file changed
tree: 7f58a91785e02c9428170bcc4357885159e96241
  1. liblog/
  2. logcat/
  3. logd/
  4. logwrapper/