)]}'
{
  "commit": "f77f0ead2fc71fcecd15af8ac1bf22643851dac7",
  "tree": "d7a11afabe0997e044fafb2fa30bb9f2e8a91d59",
  "parents": [
    "742f64082dacb7bffe86f40d6a0d4c0e288263e3"
  ],
  "author": {
    "name": "Aibing Chen",
    "email": "chenaibing@cmss.chinamobile.com",
    "time": "Thu Nov 26 11:52:06 2026 +0800"
  },
  "committer": {
    "name": "Dmitry Torokhov",
    "email": "dmitry.torokhov@gmail.com",
    "time": "Wed Nov 25 21:43:18 2026 -0800"
  },
  "message": "Input: cobra - use scnprintf() for the device physical path\n\ncobra_connect() composes the physical path of each port as \"%s/input%d\"\nfrom gameport-\u003ephys into a 32 byte array.  gameport-\u003ephys can hold up to\n31 characters, so the composed string reaches 39 bytes and does not fit.\nThe path is informational only and truncating it is acceptable, but the\ncall site does not say so.\n\nBuilding with W\u003d1, where -Wformat-truncation is enabled, the file does not\nbuild at all today; COMPILE_TEST configurations additionally turn the\nwarning into an error through CONFIG_WERROR:\n\n  drivers/input/joystick/cobra.c:184:29: error: \u0027/input\u0027 directive output\n    may be truncated writing 6 bytes into a region of size between 1 and\n    32 [-Werror\u003dformat-truncation\u003d]\n  note: \u0027snprintf\u0027 output between 8 and 39 bytes into a destination of\n    size 32\n\nUse scnprintf(), the helper that expresses a bounded, truncation tolerant\nwrite, so that the file builds warning free and the intent is visible at\nthe call site.\n\nNo functional change.\n\nSigned-off-by: Aibing Chen \u003cchenaibing@cmss.chinamobile.com\u003e\nLink: https://patch.msgid.link/20261126035206.1062-1-chenaibing@cmss.chinamobile.com\nSigned-off-by: Dmitry Torokhov \u003cdmitry.torokhov@gmail.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ffa6d49c81fee3676c1ea3ca14c13bfb3b6b7072",
      "old_mode": 33188,
      "old_path": "drivers/input/joystick/cobra.c",
      "new_id": "52331a947ae38c612a4ea9372961c23881e9b8d5",
      "new_mode": 33188,
      "new_path": "drivers/input/joystick/cobra.c"
    }
  ]
}
