summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Leon Scroggins III <scroggo@google.com> 2021-10-01 16:35:46 -0400
committer Leon Scroggins III <scroggo@google.com> 2024-06-07 15:25:27 -0400
commit3eb6c88b447fe633f1ec1f3a1a6377e4975189d2 (patch)
tree406dd1dad1f74c84b803fb9128d39401ff27584a /libs/androidfw/StringPool.cpp
parent309fdfc8e9b194e1b8671d2a561db26784468be6 (diff)
Check for (and clear) Exceptions thrown by TransferParameters
In GraphicsJNI::getColorSpace, which returns an android.graphics.ColorSpace for a Bitmap, Skia reads the encoded transfer function which then gets passed to the TransferParameters constructor. It's possible for that constructor to throw an Exception, in which case we cannot call JNI functions without handling the Exception. Clear it and return null, since we are now unable to create an android.graphics.ColorSpace. Bug: 198155681 Test: I805aba8c078aac71d92ea71a199c2e1fe52df8fd Flag: EXEMPT trivial bug fix Change-Id: Ib1f7cbcc62a4722a2379b111838584cc4b6a36cc
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions