)]}'
{
  "commit": "3b0deb5e7941f59b0a262a4ed8a928f0d2dcb0da",
  "tree": "80f955a5e415d2a1c8507f6603e2b466bd0d9251",
  "parents": [
    "9989454219e751a05bfac40605b1d22008c7bc29"
  ],
  "author": {
    "name": "Gowtham M",
    "email": "gowthamm@ami.com",
    "time": "Tue Nov 04 12:07:59 2025 +0530"
  },
  "committer": {
    "name": "mergify[bot]",
    "email": "37929162+mergify[bot]@users.noreply.github.com",
    "time": "Mon Apr 13 14:12:17 2026 +0000"
  },
  "message": "EmbeddedPkg/PrePiLib: Prevent overread with FFS size macros\n\nSymptom:Unsafe typecasting may lead to out‑of‑bound memory access\n\nRootCause: FileSize and FileLength are declared as\nUINT32 and masked with 0x00FFFFFF to store only the lower 24 bits.\nAlthough this approach yields the correct result,\nit introduces a potential risk due to unsafe typecasting and\ndereferencing.\n\nSolution: Using the predefined macro FFS_FILE_SIZE()\nfrom MdePkg\\Include\\Pi\\PiFirmwareFile.h,\nwhich safely performs the same operation by reconstructing\nthe size using individual byte access.\n\nThis commit also addresses the fix for coverity isssue \"OVERRUN\"\n\nCc: Sachin Ganesh \u003csachinganesh@ami.com\u003e\nSigned-off-by: Gowtham M \u003cgowthamm@ami.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "38ca4f15065620c0087cd64112f8c2ed106f680f",
      "old_mode": 33188,
      "old_path": "EmbeddedPkg/Library/PrePiLib/FwVol.c",
      "new_id": "ee6de5f59a4cb768a8cbfb01d54db861728c7a47",
      "new_mode": 33188,
      "new_path": "EmbeddedPkg/Library/PrePiLib/FwVol.c"
    }
  ]
}
