commit | 654e8191641085aa6bff6df6aaef9a8cb0c03ec1 | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Thu May 28 15:24:29 2015 +0100 |
committer | Narayan Kamath <narayan@google.com> | Fri May 29 08:38:23 2015 +0000 |
tree | 6c3c689cd062b462e31f4073bbce90b309eb746d | |
parent | aac3c2c4b3cb7b46943db278973ad358314eeb06 [diff] |
Fix incorrect position calculation in CharsetDecoder. Data OUTPUT_OFFSET always gives us the number of bytes written on output, so it's sufficient to increment the position by that number. In particular, we do not have to subtract arrayOffset() from that number. Reported-By: Piotr Jastrzębski <haaawk@google.com> Change-Id: I39ac470101f72aa4a87e31c4eb0665fe6a162e1d