Don't read more than the buffer size.

Bug: 130593895
Test: manual
Change-Id: I54612d14e7cadde1d4a447040dbe9086e970c549
1 file changed