)]}'
{
  "commit": "200546f1a33bd4e6d81d5bdef8d26836a7504bdb",
  "tree": "9681bad2404e68c0654693938cf65eb545f876ed",
  "parents": [
    "ac284430be5471a292eebd235266aca3e65a2de9"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Wed Jul 26 17:06:23 2023 +0200"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Wed Jul 26 17:06:23 2023 +0200"
  },
  "message": "[gdb/build] Fix Wstringop-truncation in coff_getfilename\n\nWhen building gdb with -O2 -fsanitize-threads, I ran into\na Werror\u003dstringop-truncation.\n\nThe problem is here in coff_getfilename in coffread.c:\n...\n      strncpy (buffer, aux_entry-\u003ex_file.x_n.x_fname, FILNMLEN);\n      buffer[FILNMLEN] \u003d \u0027\\0\u0027;\n...\n\nThe constant FILNMLEN is expected to designate the size of\naux_entry-\u003ex_file.x_n.x_fname, but that\u0027s no longer the case since commit\n60ebc257517 (\"Fixes a buffer overflow when compiling assembler for the MinGW\ntargets.\").\n\nFix this by using \"sizeof (aux_entry-\u003ex_file.x_n.x_fname)\" instead.\n\nLikewise in xcoffread.c.\n\nTested on x86_64-linux.\n\nApproved-By: Tom Tromey \u003ctom@tromey.com\u003e\n\nPR build/30669\nBug: https://sourceware.org/bugzilla/show_bug.cgi?id\u003d30669\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "33fb2ba1fcafcccee52f73ea664cd0401386c1bd",
      "old_mode": 33188,
      "old_path": "gdb/coffread.c",
      "new_id": "6ec341c61c2a5f890940b29f12d69131bcc336ee",
      "new_mode": 33188,
      "new_path": "gdb/coffread.c"
    },
    {
      "type": "modify",
      "old_id": "1538d1c823d366acd0b0dc9219d9f887f05380cf",
      "old_mode": 33188,
      "old_path": "gdb/xcoffread.c",
      "new_id": "8930cf1bc35f8ef30ea63d62f410a7fb9116fda7",
      "new_mode": 33188,
      "new_path": "gdb/xcoffread.c"
    }
  ]
}
