diff options
| author | 2022-11-22 12:57:40 -0800 | |
|---|---|---|
| committer | 2022-12-01 21:40:56 +0000 | |
| commit | ab2c6aa021e9ea7ada1b606ec76b8a24335453cb (patch) | |
| tree | 82c6ed9ac41fc79824d70924dcddcb956d53d4ca /libs/androidfw/StringPool.cpp | |
| parent | 46917e533615c8cf66754b96885155e847ed2ef2 (diff) | |
Guard against possible exception when tracing
Trace.beginSection() throws an IllegalArgumentException if section name
is longer than 127 chars. Therefore, it shouldn't be used anytime a
string name is generated at runtime. Instead, replace with equivalent
call to Trace.traceBegin().
Also, guard against StringBuilder GC garbage while tracing.
Test: manual
Bug: 257075630
Change-Id: Ia3477dc98b7d87f6fcd0c4f2e0aaad976f2203a2
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions