summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Sam Gao <ssgao@meta.com> 2023-02-06 01:27:19 -0800
committer Sam Gao <ssgao@meta.com> 2023-03-14 03:17:53 -0700
commit5a4db981644ccf7a266fbb3fe41758b2a5a85eac (patch)
treea28b59a20ef3e0224b0be9f64533d730b2384b99 /libs/androidfw/StringPool.cpp
parent2f18344d982e7c50922fa099a007646702a16a0f (diff)
Remove usage of mFileName in ObbInfo
This field was not being set but was used in storage_manager.cpp:89, which constructed a String16 using the nullptr. This internally calls strlen on the null pointer, which causes a seg fault. Since mFileName is not being set and getFileName has no other callsites, remove the field altogether so nobody else tries to use it and pass in the expected value at its only callsite. Test: Calling AStorageManager_mountObb from NDK does not result in a crash. Signed-off-by: Sam Gao <ssgao@meta.com> Upstream from Meta. Change-Id: I4374148f466dacd62c659d3c94fd309674cb2d34
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions