)]}'
{
  "commit": "5bc519bf0c8d34df4fe5e37511a7ddee518684d1",
  "tree": "fd0b4d15fac79ffc5df84e91c320098905d54e21",
  "parents": [
    "46bdb641642d20307521f5db2e1f1c7dcc49d5a7"
  ],
  "author": {
    "name": "Mark Wielaard",
    "email": "mark@klomp.org",
    "time": "Sun Jan 21 21:51:26 2024 +0100"
  },
  "committer": {
    "name": "Mark Wielaard",
    "email": "mark@klomp.org",
    "time": "Mon Jan 22 18:16:42 2024 +0100"
  },
  "message": "opcodes: tic4x_disassemble swap xcalloc arguments\n\nGCC 14 will detect when the size and count arguments of calloc are\nswapped.\n\nbinutils-gdb/opcodes/tic4x-dis.c: In function ‘tic4x_disassemble’:\nbinutils-gdb/opcodes/tic4x-dis.c:710:32: error: ‘xcalloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror\u003dcalloc-transposed-args]\n  710 |       optab \u003d xcalloc (sizeof (tic4x_inst_t *), (1 \u003c\u003c TIC4X_HASH_SIZE));\n      |                                ^~~~~~~~~~~~\nbinutils-gdb/opcodes/tic4x-dis.c:710:32: note: earlier argument should specify number of elements, later size of each element\nbinutils-gdb/opcodes/tic4x-dis.c:712:40: error: ‘xcalloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror\u003dcalloc-transposed-args]\n  712 |       optab_special \u003d xcalloc (sizeof (tic4x_inst_t *), TIC4X_SPESOP_SIZE);\n      |                                        ^~~~~~~~~~~~\nbinutils-gdb/opcodes/tic4x-dis.c:712:40: note: earlier argument should specify number of elements, later size of each element\n\nopcodes/ChangeLog:\n\n\t* /tic4x-dis.c (tic4x_disassemble): Swap size and count xcalloc\n\targuments.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "49de510981b2bfbd9b3b4cef1551ec9d0b637302",
      "old_mode": 33188,
      "old_path": "opcodes/tic4x-dis.c",
      "new_id": "0c703ecf08a2c3f933dcc8718543006e2a7be395",
      "new_mode": 33188,
      "new_path": "opcodes/tic4x-dis.c"
    }
  ]
}
