)]}'
{
  "commit": "104add8368617f80ee356ea48497364ed39a7b7a",
  "tree": "ce4b669664e81dc64c0b6729c233e91a8d7656a3",
  "parents": [
    "d50a5e8939abfc07c2ff97ae72e9330939b36ee0"
  ],
  "author": {
    "name": "Johannes Schindelin",
    "email": "johannes.schindelin@gmx.de",
    "time": "Tue Apr 29 11:37:58 2025 +0000"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Tue Apr 29 12:38:34 2025 -0700"
  },
  "message": "diff: check range before dereferencing an array element\n\nBefore accessing an array element at a given index, it should be\nverified that the index is within the desired bounds, not afterwards,\notherwise it may not make sense to even access the array element in the\nfirst place. This is the point of CodeQL\u0027s\n`cpp/offset-use-before-range-check` rule.\n\nThis CodeQL rule unfortunately is also triggered by the\n`fill_es_indent_data()` code, even though the condition `off \u003c len - 1`\ndoes not even need to guarantee that the offset is in bounds (`s` points\nto a NUL-terminated string, for which `s[off] \u003d\u003d \u0027\\r\u0027` would fail before\nrunning out of bounds).\n\nLet\u0027s work around this rare false positive to help us use an otherwise\nmostly useful tool is a worthy thing to do.\n\nSigned-off-by: Johannes Schindelin \u003cjohannes.schindelin@gmx.de\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c89c15d98e0e29b3441e4a328d8450b71eb5fe28",
      "old_mode": 33188,
      "old_path": "diff.c",
      "new_id": "18ba3060460868e03119e09a320afa07d7b381bc",
      "new_mode": 33188,
      "new_path": "diff.c"
    }
  ]
}
