summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2017-11-24 09:18:04 +0000
committerNeil Fuller <nfuller@google.com>2017-11-24 09:33:12 +0000
commitfef459ae66f78b180f05942c9f659781c3822d07 (patch)
treea0588dad3ecd14085a2c3731d4a838a072bd00e7 /annotations/generate_annotated_java_files.py
parent6e97bc6d73653ab247c3d660aebe84ac1dde460d (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