commit | 7dd48b90bd0968375cba8dffa2141cc9973329f9 | [log] [tgz] |
---|---|---|
author | Vladimir Marko <vmarko@google.com> | Thu Nov 12 15:18:40 2020 +0000 |
committer | Steven Moreland <smoreland@google.com> | Tue Dec 01 02:11:04 2020 +0000 |
tree | bb7d217dba13d91c044f6bca5d1bde59365e1d8c | |
parent | a3b75aea04f875da146c3ef71912e95f5ee903ac [diff] |
Validate input of JNI::NewStringUTF(). Do a minimal validation needed to construct valid strings. If the validation fails, replace invalid sequences with '?'. Test: Additional tests in JniInternalTest.NewStringUTF Test: m test-art-host-gtest Bug: 172655291 Merged-In: Ica2c5c33f981cbd2f07e7990b3e321cd3b7473b6 Change-Id: Ica2c5c33f981cbd2f07e7990b3e321cd3b7473b6 (cherry picked from commit 7430d794873786e57d5475de41959f5b1b7a8288)