diff options
author | Neil Fuller <nfuller@google.com> | 2017-11-24 09:18:04 +0000 |
---|---|---|
committer | Neil Fuller <nfuller@google.com> | 2017-11-24 09:33:12 +0000 |
commit | fef459ae66f78b180f05942c9f659781c3822d07 (patch) | |
tree | a0588dad3ecd14085a2c3731d4a838a072bd00e7 /annotations/generate_annotated_java_files.py | |
parent | 6e97bc6d73653ab247c3d660aebe84ac1dde460d (diff) |
Add size check in NativeConverter JNI code
Adding an addition check to avoid copying arbitrary-length
bytes/chars into a statically allocated array. In reality
this is very unlikely to happen as the encoder replacement
length is checked in Java via an if (len > maxBytesPerChar)
in all cases. The decoder replacement is either hardcoded
(and below the limit), or checked when it is set via
withReplacement().
Bug: 63876067
Test: Ran org.apache.harmony.tests.java.nio.charset.Charset.*Test
Change-Id: Id6a7c5cc05a72dc84c405fee18e3e5a0f5f6495b
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions