summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRyan Mitchell <rtmitchell@google.com>2019-08-23 11:45:04 -0700
committerRyan Mitchell <rtmitchell@google.com>2020-02-07 19:26:54 +0000
commitaff8e2d83d86abcfdef645712f77215fb3e239e9 (patch)
tree48af319d2bb447694b589f7da2d531471936d26e /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent410b9a75d25fed7d9d0162f3c4bd2f2fa2ab4f41 (diff)
Fix security issue in DynamicRefTable::load.
A crafted resources arsc could cause libandroidfw to read data out of bounds of the resources arsc. This change updates the logic to calculate whether the ref table chunk is large enough to hold the number of entries specified in the header. Bug: 129475100 Test: adb shell push ResTableTest data Test: adb shell push poc.arsc data Test: ./ResTableTest poc.arsc Change-Id: Ifbaad87bdbcb7eecf554ef362e0118f53532a22a (cherry picked from commit 8da1c38b69e947885fcec50cda46c5472ddb6746)
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions