commit | 1358c9faa9766fd470ab2ba002a73479ccf54154 | [log] [tgz] |
---|---|---|
author | Vladimir Marko <vmarko@google.com> | Thu Nov 12 15:18:40 2020 +0000 |
committer | Vladimir Marko <vmarko@google.com> | Tue Dec 08 09:53:19 2020 +0000 |
tree | 3413198e9eb5d822e080d142a940f062e0b20ff2 | |
parent | 097a32c3f0de6645b3f9a59d3c0179fb3fa7d934 [diff] |
Validate input of JNI::NewStringUTF(). Do a minimal validation needed to construct valid strings. If the validation fails, replace invalid sequences with '?'. (cherry picked from commit d0b940349294a363e6d578adf58db8222c425669) Test: Additional tests in JniInternalTest.NewStringUTF Test: m test-art-host-gtest Bug: 172655291 Merged-In: I683c142fe5972599297d604f775bb8cfe6154bb7 Merged-In: Ica2c5c33f981cbd2f07e7990b3e321cd3b7473b6 Change-Id: Ieda5a89b738bbb624872512a400855866e120acd