)]}'
{
  "commit": "2dfdd094d084e258934cc1e89be8a09fb59cdfa1",
  "tree": "ffbd263079548775a1b617b0b233b383bc7d1438",
  "parents": [
    "930a46d2379914172f9e9e5e108510aa43fb7934"
  ],
  "author": {
    "name": "Rashmi Mudduluru",
    "email": "r_mudduluru@apple.com",
    "time": "Tue Jun 16 12:54:15 2026 -0700"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Jun 16 12:54:15 2026 -0700"
  },
  "message": "[clang][StaticAnalyzer] Reduce MallocSizeofChecker false positives for layout-compatible types (#200253)\n\nWhen one operand is a record type and the other is a non-record type,\ntreat them as compatible if they share the same size and the record\u0027s\nalignment satisfies the scalar\u0027s alignment. This suppresses warnings for\npatterns like `malloc(sizeof(std::atomic\u003cint32_t\u003e))` assigned to an\n`int32_t *` (or a wrapper struct with an identical layout), while still\nflagging genuinely mismatched types such as `long` vs `double` or\nunrelated struct pairs.\n\nrdar://177553628\n\n---------\n\nCo-authored-by: Claude Sonnet 4.6 \u003cnoreply@anthropic.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f84d45214f6fe0733dcb7eb6447cea73729fb498",
      "old_mode": 33188,
      "old_path": "clang/lib/StaticAnalyzer/Checkers/MallocSizeofChecker.cpp",
      "new_id": "5d4f15246c3fb2f8eed84416f364ca254133dced",
      "new_mode": 33188,
      "new_path": "clang/lib/StaticAnalyzer/Checkers/MallocSizeofChecker.cpp"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "64590796de4ce680e9e5d1874a36cfe537f5ee62",
      "new_mode": 33188,
      "new_path": "clang/test/Analysis/malloc-sizeof-fp.cpp"
    }
  ]
}
