diff options
author | Przemyslaw Szczepaniak <pszczepaniak@google.com> | 2017-01-05 16:00:43 +0000 |
---|---|---|
committer | Przemyslaw Szczepaniak <pszczepaniak@google.com> | 2017-01-05 16:00:43 +0000 |
commit | 094c77bee3cb096ab3cfe7a60729037d5add2e8e (patch) | |
tree | 24160f9d7060add343d21a925c8f42efa446303d /annotations/generate_annotated_java_files.py | |
parent | d2e8a8a4c98852be942358697d2b54a8141c887b (diff) |
Fix ByteBuffer.put(ByteBuffer) edge case.
Replaced use of ByteBuffer.array() in ByteBuffer.put(ByteBuffer)
with a raw "hb" field access. This prevents .array() throwing a
ReadOnlyBufferException in case the buffer is a MappedByteBuffer
(only type of ByteBuffer without a backing array) and the put
argument is a non-empty, read-only HeapByteBuffer.
Test: CtsLibcoreTestCases
Bug: 34045479
_______________________________
Change-Id: I59dcfab85c4ee6bc02f1f5dad4ad2f8de43dd991
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions