libbinder: check null bytes in readString*Inplace
This is entirely defensive, since the only real guarantee we have here
from these APIs is that a buffer of a given length is available.
However, since we write 0's here, presumably to guard against people
assuming these are null-terminated strings, we might as well enforce
that they are actually null terminated.
Test: binderParcelTest (added in newer CL)
(cherry picked from commit 51e02b16c397c44ddf81a0736cf6045cd4c44128)
1 file changed