)]}'
{
  "commit": "75fe36b4e8a994cdf9fd6eb601f49e96b1bc791d",
  "tree": "d43671dc64ae4a1a821634b96ad07eaa7fe5889a",
  "parents": [
    "96e610b23d4dcfa07b0f85eef02c70e28b32f4e6"
  ],
  "author": {
    "name": "Bernhard Beschow",
    "email": "shentey@gmail.com",
    "time": "Tue Oct 08 22:28:42 2024 +0200"
  },
  "committer": {
    "name": "Jason Wang",
    "email": "jasowang@redhat.com",
    "time": "Mon Oct 28 14:37:25 2024 +0800"
  },
  "message": "net/tap-win32: Fix gcc 14 format truncation errors\n\nThe patch fixes the following errors generated by GCC 14.2:\n\n../src/net/tap-win32.c:343:19: error: \u0027%s\u0027 directive output may be truncated writing up to 255 bytes into a region of size 176 [-Werror\u003dformat-truncation\u003d]\n  343 |              \"%s\\\\%s\\\\Connection\",\n      |                   ^~\n  344 |              NETWORK_CONNECTIONS_KEY, enum_name);\n      |                                       ~~~~~~~~~\n\n../src/net/tap-win32.c:341:9: note: \u0027snprintf\u0027 output between 92 and 347 bytes into a destination of size 256\n  341 |         snprintf(connection_string,\n      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~\n  342 |              sizeof(connection_string),\n      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~\n  343 |              \"%s\\\\%s\\\\Connection\",\n      |              ~~~~~~~~~~~~~~~~~~~~~\n  344 |              NETWORK_CONNECTIONS_KEY, enum_name);\n      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n../src/net/tap-win32.c:242:58: error: \u0027%s\u0027 directive output may be truncated writing up to 255 bytes into a region of size 178 [-Werror\u003dformat-truncation\u003d]\n  242 |         snprintf (unit_string, sizeof(unit_string), \"%s\\\\%s\",\n      |                                                          ^~\n  243 |                   ADAPTER_KEY, enum_name);\n      |                                ~~~~~~~~~\n\n../src/net/tap-win32.c:242:9: note: \u0027snprintf\u0027 output between 79 and 334 bytes into a destination of size 256\n  242 |         snprintf (unit_string, sizeof(unit_string), \"%s\\\\%s\",\n      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n  243 |                   ADAPTER_KEY, enum_name);\n      |                   ~~~~~~~~~~~~~~~~~~~~~~~\n\n../src/net/tap-win32.c:620:52: error: \u0027%s\u0027 directive output may be truncated writing up to 255 bytes into a region of size 245 [-Werror\u003dformat-truncation\u003d]\n  620 |     snprintf (device_path, sizeof(device_path), \"%s%s%s\",\n      |                                                    ^~\n  621 |               USERMODEDEVICEDIR,\n  622 |               device_guid,\n      |               ~~~~~~~~~~~\n../src/net/tap-win32.c:620:5: note: \u0027snprintf\u0027 output between 16 and 271 bytes into a destination of size 256\n  620 |     snprintf (device_path, sizeof(device_path), \"%s%s%s\",\n      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n  621 |               USERMODEDEVICEDIR,\n      |               ~~~~~~~~~~~~~~~~~~\n  622 |               device_guid,\n      |               ~~~~~~~~~~~~\n  623 |               TAPSUFFIX);\n      |               ~~~~~~~~~~\n\nSigned-off-by: Bernhard Beschow \u003cshentey@gmail.com\u003e\nResolves: https://gitlab.com/qemu-project/qemu/-/issues/2607\nCc: qemu-stable@nongnu.org\nReviewed-by: Michael Tokarev \u003cmjt@tls.msk.ru\u003e\nReviewed-by: Pierrick Bouvier \u003cpierrick.bouvier@linaro.org\u003e\nSigned-off-by: Jason Wang \u003cjasowang@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7edbd7163370723afc06a029e7b52c648f9e2006",
      "old_mode": 33188,
      "old_path": "net/tap-win32.c",
      "new_id": "671dee970f7a6f0d317f95decbbdc1319a85c4bd",
      "new_mode": 33188,
      "new_path": "net/tap-win32.c"
    }
  ]
}
