)]}'
{
  "commit": "f052e984e0c8bf10784198cc311b23c567b1367f",
  "tree": "487ae6d10e29f3a58a931ef2a61865eef9b36d5e",
  "parents": [
    "d1934dc9d847e06a915af9b2b651f45d31d9ae2a"
  ],
  "author": {
    "name": "intel-mediadev",
    "email": "MediaDev@intel.com",
    "time": "Fri Oct 23 12:05:47 2026 +0800"
  },
  "committer": {
    "name": "Zhang, Xinfeng",
    "email": "carl.zhang@intel.com",
    "time": "Fri Oct 23 15:56:11 2026 +0800"
  },
  "message": "[Media_Common][Coverity] Fix NULL_FIELD dereferences in va_trace and va_dri2\n\nFix two Coverity NULL_FIELD defects (CID 3528231, CID 3660939):\n\n1. va/va_trace.c (CID 3528231): In va_TraceVPrint(), fp_log is read from\n   trace_ctx-\u003eplog_file-\u003efp_log and passed directly to vfprintf/fflush without\n   a null check. Since fp_log is set from fopen() output (which can return NULL\n   on failure), dereferencing it unconditionally causes undefined behavior. All\n   other sites in the file that use fp_log check it for null first (lines 744,\n   920, 2113, 4307). Add the missing null guard before the FILE* use.\n\n2. va/x11/va_dri2.c (CID 3660939): VA_DRI2GetBuffers_internal() dereferences\n   info-\u003ecodes-\u003emajor_opcode without checking info-\u003ecodes for null. Both callers\n   validate info-\u003ecodes via XextCheckExtension/XextSimpleCheckExtension before\n   calling this static helper, so this cannot be triggered in current code.\n   Add a defensive early-return to make the function self-guarding and consistent\n   with the pattern used in sibling functions.\n\nResolves: VSMGWL-85794\n\n[Internal]\nCommit_Type: Bugfix\nPlatforms: Gen8_12, Xe_Hpm, Xe_Lpm, Xe2_Hpm, Xe2_Lpm, Xe3_Hpm, Xe3_Lpm\nOS: Linux\nFeature impact: Misc\nResolves: VSMGWL-85794\nRelated-to: N/A\n\nCo-Authored-By: Claude Code \u003cnoreply@anthropic.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7ececc0885f9fc71382f6323c95580263d7564c9",
      "old_mode": 33188,
      "old_path": "va/va_trace.c",
      "new_id": "4d051bab32f5ad487db468ee04233cbde7158089",
      "new_mode": 33188,
      "new_path": "va/va_trace.c"
    },
    {
      "type": "modify",
      "old_id": "da2a9f40b57fa9f9584c298b121ffd58638852b8",
      "old_mode": 33188,
      "old_path": "va/x11/va_dri2.c",
      "new_id": "6d3637f81b23ab704a8067cf2f908ec5e0580792",
      "new_mode": 33188,
      "new_path": "va/x11/va_dri2.c"
    }
  ]
}
