)]}'
{
  "commit": "f7502dfe3f99d09fba2fc49f806ccc6b0a18c06d",
  "tree": "2647f5d77d7515971d4ece107bafb5c4520920ac",
  "parents": [
    "d0e5049d8fa8e1994a42bb0296f72cc981b8ce8c"
  ],
  "author": {
    "name": "Alan Modra",
    "email": "amodra@gmail.com",
    "time": "Fri Nov 11 13:43:42 2022 +1030"
  },
  "committer": {
    "name": "Alan Modra",
    "email": "amodra@gmail.com",
    "time": "Fri Nov 11 18:05:36 2022 +1030"
  },
  "message": "PR28834, PR26946 sanity checking section size\n\nThis patch provides a new function to sanity check section sizes.\nIt\u0027s mostly extracted from what we had in bfd_get_full_section_contents\nbut also handles compressed debug sections.\nImprovements are:\n- section file offset is taken into account,\n- added checks that a compressed section can be read from file.\n\nThe function is then used when handling multiple .debug_* sections\nthat need to be read into a single buffer, to sanity check sizes\nbefore allocating the buffer.\n\n\tPR 26946, PR 28834\n\t* Makefile.am (LIBBFD_H_FILES): Add section.c.\n\t* compress.c (bfd_get_full_section_contents): Move section size\n\tsanity checks..\n\t* section.c (_bfd_section_size_insane): ..to here.  New function.\n\t* dwarf2.c (read_section): Use _bfd_section_size_insane.\n\t(_bfd_dwarf2_slurp_debug_info): Likewise.\n\t* Makefile.in: Regenerate.\n\t* libbfd.h: Regenerate.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b70d8f3ccea5bf384a9bd6617aea8575a30c7084",
      "old_mode": 33188,
      "old_path": "bfd/Makefile.am",
      "new_id": "93313778d4234055fd6c857756549889841c79b5",
      "new_mode": 33188,
      "new_path": "bfd/Makefile.am"
    },
    {
      "type": "modify",
      "old_id": "b906976a1c09c7054de8a18a84167d79a687e5e8",
      "old_mode": 33188,
      "old_path": "bfd/Makefile.in",
      "new_id": "85cae1f6f0fb9f785efea4a9ea70ddf449f6ad00",
      "new_mode": 33188,
      "new_path": "bfd/Makefile.in"
    },
    {
      "type": "modify",
      "old_id": "9608a0a6341e45a53bf3053c83fb3ea0e2932048",
      "old_mode": 33188,
      "old_path": "bfd/compress.c",
      "new_id": "ad3feeafc6c9efd4faea1af0d1796e496f2cd1f3",
      "new_mode": 33188,
      "new_path": "bfd/compress.c"
    },
    {
      "type": "modify",
      "old_id": "364cc9a64809b134a2c9334e7a32507111c687a1",
      "old_mode": 33188,
      "old_path": "bfd/dwarf2.c",
      "new_id": "95f45708e9d155ce349653bdf24eeadc1ee92de5",
      "new_mode": 33188,
      "new_path": "bfd/dwarf2.c"
    },
    {
      "type": "modify",
      "old_id": "a67bded0d18419c4476395c13a509ed16a81036e",
      "old_mode": 33188,
      "old_path": "bfd/libbfd.h",
      "new_id": "2dec8109bb8079344e8f7b0c94dadf102aa83ef6",
      "new_mode": 33188,
      "new_path": "bfd/libbfd.h"
    },
    {
      "type": "modify",
      "old_id": "614570e976e793cc9e6d943508b49c53673c04a6",
      "old_mode": 33188,
      "old_path": "bfd/section.c",
      "new_id": "48505f373e23d81b60a9535700405a002a4b8a7a",
      "new_mode": 33188,
      "new_path": "bfd/section.c"
    }
  ]
}
