)]}'
{
  "commit": "983ee3aa270ccc3037f4c1cd0d33ac9e2e30e7ae",
  "tree": "d3e5a1e9ac02dac773bb1caa248d6fcc14628bf6",
  "parents": [
    "a70151dfec390eb5f7fc5b266f51d601da2a7778"
  ],
  "author": {
    "name": "Dai Yanlong",
    "email": "daiyanlong@kylinos.cn",
    "time": "Sun Nov 01 15:25:19 2026 +0800"
  },
  "committer": {
    "name": "daiyanlong",
    "email": "daiyanlong@kylinos.cn",
    "time": "Wed Nov 18 16:57:22 2026 +0800"
  },
  "message": "ibacm: Fix realloc() return value without detecting null pointer\n\nIn expand() function of ibacm/src/parse.c, the return value of realloc()\nis directly assigned back to the original pointer without null check.\nIf realloc() fails and returns NULL, the original memory pointer is lost,\ncausing memory leak. Additionally, the subsequent strcpy() will dereference\na NULL pointer, leading to segmentation fault.\n\nUse a temporary variable new_buf to receive realloc() return value and\ncheck for NULL before assignment. On failure, free the original buffer,\nreset output parameters, and return NULL.\n\nAlso add NULL check for expand() return value in parse() to prevent\ndereferencing NULL pointer in subsequent memcpy().\n\nSigned-off-by: Dai Yanlong \u003cdaiyanlong@kylinos.cn\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "15aab17f8b0a45a214c2dd59d61c2388458217b0",
      "old_mode": 33188,
      "old_path": "ibacm/src/parse.c",
      "new_id": "1c0080746a7692ae79fc760b823e0110189efceb",
      "new_mode": 33188,
      "new_path": "ibacm/src/parse.c"
    }
  ]
}
