)]}'
{
  "commit": "89457440e4a4b71b1fe60ed3e034c814bf8eb6b7",
  "tree": "d89663b14c85b39ce87739b3f65b2d9d012a2b01",
  "parents": [
    "e2e6bf023e856831fefb6c7f9b4aee9283c6dde7"
  ],
  "author": {
    "name": "Simon Marchi",
    "email": "simon.marchi@efficios.com",
    "time": "Thu May 16 12:35:53 2024 -0400"
  },
  "committer": {
    "name": "Simon Marchi",
    "email": "simon.marchi@polymtl.ca",
    "time": "Thu May 16 13:25:49 2024 -0400"
  },
  "message": "gdb: initialize packet_result::m_textual_err_msg\n\nWhen building GDB with -O2 and --enable-ubsan, I get some random errors\nin the packet_result self test:\n\n  /home/smarchi/src/binutils-gdb/gdb/remote.c:161:7: runtime error: load of value 92, which is not a valid value for type \u0027bool\u0027\n\nThis happens because packet_result::m_textual_err_msg is uninitialized\nwhen using the second constructor.  When such a packet_result object\ngets copied, an invalid value for m_textual_err_msg (a bool field) is\nloaded, which triggers ubsan.\n\nAvoid this by initializing m_textual_err_msg.\n\nChange-Id: I3ce44816bb0bfc6e442067292f993e5c17301b85\nApproved-By: Tom Tromey \u003ctom@tromey.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "6e568eb47b232a842002b99181b04b3ab1cde155",
      "old_mode": 33188,
      "old_path": "gdb/remote.c",
      "new_id": "42b446c7e27e62d3021d279237a0a43119e0e8b5",
      "new_mode": 33188,
      "new_path": "gdb/remote.c"
    }
  ]
}
