)]}'
{
  "commit": "3ffe9541e53aca0a362b605190eee42482808407",
  "tree": "279492a4d6f74bb81b87d72e9530eb0c099dabcc",
  "parents": [
    "e5ef9b68f101be7c453f82012365a6d6534cca39"
  ],
  "author": {
    "name": "Jeff Bailey",
    "email": "jbailey@raspberryginger.com",
    "time": "Tue Jul 07 06:44:34 2026"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Tue Jul 07 06:46:00 2026"
  },
  "message": "[libc] Improve Dir class safety, performance, and style (#207214)\n\nAddressed issues in the Dir class identified during review:\n\n* Safety: Added bounds and validation checks in Dir::read to prevent\nout-of-bounds reads on corrupted input.\n* Performance: Aligned the internal buffer to struct dirent to prevent\nunaligned memory access, and increased the buffer size to 4096 to reduce\nsyscall overhead.\n* Style: Replaced the system \u003cdirent.h\u003e include with a new proxy header\n(struct_dirent.h) to avoid system dependencies, and fixed relative\nincludes.\n* Refactoring: Moved platform-specific record length access to a\nplatform helper (platform_dir_reclen).\n* CMake: Updated dependencies for the dir target.\n\nAssisted-by: Automated tooling, human reviewed.\nNOKEYCHECK\u003dTrue\nGitOrigin-RevId: 08ed6acb7e0d328ee02d4c15b7b6bcdd943323e3\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "68bbfe31ace31868fe63bfe0aef3cb945359daa1",
      "old_mode": 33188,
      "old_path": "src/__support/File/CMakeLists.txt",
      "new_id": "7fcca3c13978846ed3cb580846cf30411c544ed3",
      "new_mode": 33188,
      "new_path": "src/__support/File/CMakeLists.txt"
    },
    {
      "type": "modify",
      "old_id": "76a45b3df8c0a4eb16fceccc31c0b4b3d93cee33",
      "old_mode": 33188,
      "old_path": "src/__support/File/dir.cpp",
      "new_id": "eeb44c945b3f768c3c54710e4c07efd4e77382c1",
      "new_mode": 33188,
      "new_path": "src/__support/File/dir.cpp"
    },
    {
      "type": "modify",
      "old_id": "89f67ede0ecf5993a89d32fceda8192af759441f",
      "old_mode": 33188,
      "old_path": "src/__support/File/dir.h",
      "new_id": "287e6b7e52f79fcc74d31bae788ef51f51bfef68",
      "new_mode": 33188,
      "new_path": "src/__support/File/dir.h"
    },
    {
      "type": "modify",
      "old_id": "77f9a51952c3bf70364510b061a548a0e72d9c7c",
      "old_mode": 33188,
      "old_path": "src/__support/File/linux/dir.cpp",
      "new_id": "0f194d44de3d32a1c7b5febf1ef385a55a3e3fdb",
      "new_mode": 33188,
      "new_path": "src/__support/File/linux/dir.cpp"
    }
  ]
}
