logd: klogd: parse error

Resolve three areas missing taglen checking. Add some additional
limit-checking paranoia. Problem started when p was allowed to
go beyond the size of the incoming buffer in some blind
p = cp + 1 fragments, placed the check for that after them all
before harm could be done, rather than in each location.

Bug: 25620123
Change-Id: Ib5687fd30ef0cd3ba3bc0df310b436ad675ccabc
1 file changed
tree: a2ac30526dc75ac2b0b7591e766f7dae9ca75937
  1. liblog/
  2. logcat/
  3. logd/
  4. logwrapper/