)]}'
{
  "commit": "df3037fc6be0ae065b86581029fc0b56e605d2be",
  "tree": "ce4dfba60cf8ae6451399916c4a2a8623fa4de12",
  "parents": [
    "42613e600e6074d5a4eee17fbeed35670967c10f"
  ],
  "author": {
    "name": "Pierre-Clément Tosi",
    "email": "ptosi@google.com",
    "time": "Mon Jan 22 15:41:43 2024 +0000"
  },
  "committer": {
    "name": "Pierre-Clément Tosi",
    "email": "ptosi@google.com",
    "time": "Tue Feb 06 10:25:40 2024 +0000"
  },
  "message": "libfdt: Make ref casts \u0026 transmutes less unsafe\n\nUse (safe) zerocopy::transmute! to transmute [u32; _] into [u8; _].\n\nImplement FdtNodeMut::parent() with FdtNode::parent(), removing an\nunsafe call to the C FFI fdt_parent_offset().\n\nGive the compiler more information about Fdt::unchecked_from*_slice()\nby casting the reference, instead of transmuting its bytes (which are\nnot the bytes of the type referred to!). The code remains unsafe\n(because we\u0027re dereferencing a raw pointer) but is already more robust.\n\nRework the safety comments accordingly.\n\nClearly distinguish the fdt_property-to-FdtPropertyStruct ref cast from\nthe (*const)-\u003e\u0026 cast where the former is safe (thanks to \u0027transparent\u0027)\nwhile the latter is only safe if we blindly trust C (this assumption\nwill be removed by a future patch).\n\nTest: m pvmfw\nTest: atest liblibfdt.integration_test\nChange-Id: I42785d2f5ae2dde2163d571869b36a480406cdd9\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e818c689b52b2f6f90a8d80faa46bc05682973fa",
      "old_mode": 33188,
      "old_path": "libs/libfdt/src/iterators.rs",
      "new_id": "cb7afda4cea5fe8d4c191c43c2f95bec048ad64d",
      "new_mode": 33188,
      "new_path": "libs/libfdt/src/iterators.rs"
    },
    {
      "type": "modify",
      "old_id": "8a4e2518ce776bb82c26fa3dd0d984c91596e8e2",
      "old_mode": 33188,
      "old_path": "libs/libfdt/src/lib.rs",
      "new_id": "32483973bc5a41ee9049aab80100a948cfeabeb9",
      "new_mode": 33188,
      "new_path": "libs/libfdt/src/lib.rs"
    }
  ]
}
