diff options
| author | 2025-03-11 18:20:36 +0000 | |
|---|---|---|
| committer | 2025-03-12 03:50:30 -0700 | |
| commit | 559dc0868345d955d3801a7acfa206f35343acdf (patch) | |
| tree | 8155c577093b44f2a14527ba8e3b55bc76c14c18 /compiler/optimizing/optimizing_compiler.cc | |
| parent | 148a9d7dd69915a9d4ca8ee68d875f8b53b5fe67 (diff) | |
Fix string truncation for oat key value store.
The truncation was wrong. The length was mistakenly passed as the start
position. When adding a field that is longer than 2x the length limit,
the truncated string exceeds the length limit and causes memory
corruption.
Bug: 377474232
Test: Run dex2oat with a commandline longer than 4KB (2x the length
limit), see no crash.
Change-Id: I2307e9a015082f0eec013020d3ad2b08bc1999d4
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.cc')
0 files changed, 0 insertions, 0 deletions