)]}'
{
  "commit": "d1b722d7ee3454364e10eb4ff0c218225c57ebd0",
  "tree": "be82fbb6ec9f33ee885022c0fb0733dd62d5456a",
  "parents": [
    "d5faa80713d25a8c8d47a3fb4d215d6c96e338ba"
  ],
  "author": {
    "name": "Mark Cave-Ayland",
    "email": "mark.cave-ayland@ilande.co.uk",
    "time": "Mon Apr 22 08:51:07 2024 +0100"
  },
  "committer": {
    "name": "Mark Cave-Ayland",
    "email": "mark.cave-ayland@ilande.co.uk",
    "time": "Mon Apr 22 08:51:07 2024 +0100"
  },
  "message": "packages/pc-parts.c: fix bug in extended partition logic\n\nWhen compiled with gcc 12 packages/pc-parts.c generates the following error:\n\n/root/packages/pc-parts.c:243:64: error: array subscript 1 is outside array bounds of \u0027struct pc_partition[1]\u0027 [-Werror\u003darray-bounds]\n  243 |                         cur_table \u003d ext_start + __le32_to_cpu(p[1].start_sect);\n      |                                                               ~^~~\n/root/include/libc/byteorder.h:12:13: note: in definition of macro \u0027__bswap32\u0027\n   12 |         ((((x) \u0026 0xff000000) \u003e\u003e 24) | (((x) \u0026 0x00ff0000) \u003e\u003e  8) | \\\n      |             ^\n/root/packages/pc-parts.c:243:49: note: in expansion of macro \u0027__le32_to_cpu\u0027\n  243 |                         cur_table \u003d ext_start + __le32_to_cpu(p[1].start_sect);\n      |                                                 ^~~~~~~~~~~~~\n/root/packages/pc-parts.c:143:13: note: at offset 16 into object of size 16 allocated by \u0027malloc\u0027\n  143 |         p \u003d malloc(sizeof(struct pc_partition));\n      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\ncc1: all warnings being treated as errors\nmake[1]: *** [rules.mak:191: target/packages/pc-parts.o] Error 1\nmake[1]: Leaving directory \u0027/root/obj-ppc\u0027\n\nUpon inspection this appears to be a genuine bug whereby the attempt to access\nthe second extended partition entry incorrectly accesses the memory beyond the\nend of the aligned copy of the first extended partition entry.\n\nCopy the second extended partition entry into aligned extended partition buffer\nand access the values from there to resolve the issue.\n\nSigned-off-by: Mark Cave-Ayland \u003cmark.cave-ayland@ilande.co.uk\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "dbbb2d44b37ebda9c06b0045886aab4e098ddda2",
      "old_mode": 33188,
      "old_path": "packages/pc-parts.c",
      "new_id": "ddc68e135d631676e52decd85fd13a4ec92a542d",
      "new_mode": 33188,
      "new_path": "packages/pc-parts.c"
    }
  ]
}
