)]}'
{
  "commit": "1d8a0257e4e90569152768edb6f62837e538384d",
  "tree": "53385dae9d1f270cfa187be14de633cc14ddf8d3",
  "parents": [
    "88baac34da072b41917b4adc1987c55546266b33"
  ],
  "author": {
    "name": "Guo Li",
    "email": "guo.li@mediatek.com",
    "time": "Wed Jul 13 15:57:31 2022 +0800"
  },
  "committer": {
    "name": "Android Build Coastguard Worker",
    "email": "android-build-coastguard-worker@google.com",
    "time": "Fri Oct 07 02:17:56 2022 +0000"
  },
  "message": "Fix use-after-free issue for dexfile\n\nWhen we open a dex file, class linker will save dex file address in\ndex_caches_. Then when GC occurs, the dex file will be freed in\nart::DexFile_closeDexFile, but dex file address is still in dex_caches_.\nWhen some tries to iterate over dex_caches_, HWASAN complains.\n\nTherefore remove the dexfile in dex_caches_ when we delete the dex file.\n\nIgnore-AOSP-First: Security fix\n\nBug: 222166527\nBug: 238962046\nTest: manually\nChange-Id: I5bb09a906737db986ead9813695918e06ab590c4\n(cherry picked from commit 97283036ec6344eba65f28a3c37b2541f674d4a7)\nMerged-In: I5bb09a906737db986ead9813695918e06ab590c4\n(cherry picked from commit 1ee0290eed24868826ad99678cc58eee425ecba8)\nMerged-In: I5bb09a906737db986ead9813695918e06ab590c4\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c8dbc75e6187e0d653bcd6decf15c1695ee8c460",
      "old_mode": 33188,
      "old_path": "runtime/class_linker.cc",
      "new_id": "f6f98e6192f1da55a4c13d65e8e03aedab7fa61c",
      "new_mode": 33188,
      "new_path": "runtime/class_linker.cc"
    },
    {
      "type": "modify",
      "old_id": "3b20c75b6432fb14124465643cea3fefed790d9b",
      "old_mode": 33188,
      "old_path": "runtime/class_linker.h",
      "new_id": "a3a1adf8397122b068a5f890913e75ae7c5acd05",
      "new_mode": 33188,
      "new_path": "runtime/class_linker.h"
    },
    {
      "type": "modify",
      "old_id": "d7142062414631c7b7471427442aef6d3ad28e41",
      "old_mode": 33188,
      "old_path": "runtime/native/dalvik_system_DexFile.cc",
      "new_id": "ecb901044aec123503425abd5d03c7edacc5d7cc",
      "new_mode": 33188,
      "new_path": "runtime/native/dalvik_system_DexFile.cc"
    }
  ]
}
