)]}'
{
  "commit": "5a3cf18c2ed9593f194ea22f50ea5651532f6cfc",
  "tree": "4b617189ef5761bb5f892e09774bedf49865dc52",
  "parents": [
    "05527d8ca1082b4607e9ddc3209691f454b3b186"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Mon May 23 14:50:02 2022 +0200"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Mon May 23 14:50:02 2022 +0200"
  },
  "message": "[gdb/exp] Fix UB in scalar_binop\n\nWhen building gdb with -fsanitize\u003dundefined, I run into:\n...\n$ gdb -q -batch -ex \"p -(-0x7fffffffffffffff - 1)\"\nsrc/gdb/valarith.c:1385:10: runtime error: signed integer overflow: \\\n  0 - -9223372036854775808 cannot be represented in type \u0027long int\u0027\n$1 \u003d -9223372036854775808\n...\n\nFix this by performing the substraction in scalar_binop using unsigned types.\n\nTested on x86_64-linux.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b6009a362355dd89d341ab0eadfe937e6ac05a53",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.base/arithmet.exp",
      "new_id": "4905c2e27061ba970ae131e47038d28529846248",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.base/arithmet.exp"
    },
    {
      "type": "modify",
      "old_id": "6210267826e835041d195a1c655070178608c786",
      "old_mode": 33188,
      "old_path": "gdb/valarith.c",
      "new_id": "526cc02599ec45ea8ef1756e33ddfcebb6889670",
      "new_mode": 33188,
      "new_path": "gdb/valarith.c"
    }
  ]
}
