summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/driver.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2023-08-11 17:48:43 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2023-08-11 19:33:13 +0000
commit3117a44a2bb277a99cf90ffb57086a3f2a5aae8f (patch)
tree5a3b33467a048440a46dd4b877fb3a5e32a4c972 /vulkan/libvulkan/driver.cpp
parent1a6e0bcb0c84d26cfdd482d82ef83902a9c9ef00 (diff)
InputVerifier: Accept invalid utf-8 strings silently
Rust's String seems to have more strict requirements than cpp's std::string, since its creation will fail if the string is not valid in its encoding format. rust::String from cxxbridge escalates the error and causes a panic. Since we do not perform a validity check on the std::string that comes from apps, we must use rust::String::lossy() to create the rust::String for cxxbridge, since it is tolorant of invalid encodings. Bug: 295014987 Test: atest libinput_tests Change-Id: I45ecc6117a43cf25ac6ac15fd57ae25e7174d88f
Diffstat (limited to 'vulkan/libvulkan/driver.cpp')
0 files changed, 0 insertions, 0 deletions