When attempting to write a byte beyond the end of a byte[], don't update the position until after we've finished the bounds checks.
Previously, we'd update position, so size left would return -1. This is a partial roll-forward of cl/673588324. PiperOrigin-RevId: 677587399pull/18442/head
parent
c8c232f196
commit
d98f5e160d
2 changed files with 3 additions and 5 deletions
Loading…
Reference in new issue