summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorSiarhei Vishniakou <svv@google.com>2018-07-16 17:01:40 +0100
committerSiarhei Vishniakou <svv@google.com>2018-08-08 13:40:48 -0700
commitd54b70c8bfe393ef57445bd59962e6730b0b13c0 (patch)
tree8a417384848a2fbe0702aa7f1bdd9d91deae71ca /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentc0ba1b5fe6b1ad80626649c64850c9d87d5046cd (diff)
Refactor hid command, mitigate overflows
Currently there are a few overflows possible in the hid command by sending malformed json requests. Refactor the code to avoid these overflows. These are mostly memcpy usage, where the size comes (indirectly) from the size of the json array. The json array must still be valid, because invalid json will produce an earlier exception in the java layer. Test: hid malformed_commands.json The file "malformed_commands.json" can be found in the bug. Bug: 111363077 Change-Id: I2f9dd31e0bfa2badc58779f40f4a80e025754cd2
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions