)]}'
{
  "commit": "a7abbb79d9a30d6efe687c84407dae7a8d6dae67",
  "tree": "7514c0e4dca87d1423ea834f1911cff33ed245d4",
  "parents": [
    "8b3abe8eebc0e97890977d9658038f4966aa7df6"
  ],
  "author": {
    "name": "Hao Liu",
    "email": "haoliuu@google.com",
    "time": "Wed Aug 19 17:16:18 2026 +0000"
  },
  "committer": {
    "name": "Android Build Coastguard Worker",
    "email": "android-build-coastguard-worker@google.com",
    "time": "Thu Sep 03 00:32:31 2026 -0700"
  },
  "message": "Validate resultFileName to prevent path traversal\n\nProfilingService.sendAnomalyProfile() accepted an unsanitized\nresultFileName parameter from callers, which was concatenated directly\nwith sTempTracePath (/data/misc/perfetto-traces/profiling/) in file\noperations (e.g. read via receiveFileDescriptor and delete via\ndeleteProfilingFiles).\n\nThis allowed path traversal payloads (such as\n\"../../../../data/system/packages.xml\") to read or delete arbitrary\nfiles with system_server privileges.\n\nThis change adds enforceValidResultFileName() in ProfilingService to\nreject null/empty strings, path separators (/ and \\), relative path\nsequences (..), and paths resolving outside the base profiling\ndirectory.\n\nBug: 546680461\nBug: 546679793\nTest: manual\nFlag: EXEMPT bugfix\nCherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:e5e649dd60542f17bc9d3988fb8afd24911a3c8f\nCherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:e954b0f8155ea02b46156ebe478bc66593855aca\nMerged-In: I30adfd935a60ac2b878e60cda2b12b1f6423d25b\nChange-Id: I30adfd935a60ac2b878e60cda2b12b1f6423d25b\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "503e67870c33d5869d9a41a357d76d8c586221a0",
      "old_mode": 33188,
      "old_path": "service/java/com/android/os/profiling/ProfilingService.java",
      "new_id": "411433836a84dc9a0c957581b8df0ac5a1340683",
      "new_mode": 33188,
      "new_path": "service/java/com/android/os/profiling/ProfilingService.java"
    }
  ]
}
