)]}'
{
  "commit": "2dab271ff1b7396498746703d88fefcddcc5cec7",
  "tree": "4df342c879867c223cb8053dd2ec1d9522e58fbb",
  "parents": [
    "b914489dfb743e20a8cef8c4586d9329303f7511"
  ],
  "author": {
    "name": "Carlos Hernandez",
    "email": "carlos@hrndz.ca",
    "time": "Wed Feb 05 15:43:53 2025 +0000"
  },
  "committer": {
    "name": "Gopher Robot",
    "email": "gobot@golang.org",
    "time": "Thu Feb 06 12:21:36 2025 -0800"
  },
  "message": "route: treat short sockaddr lengths as unspecified\n\nPreviously, we enforced minimum length requirements for sockaddr, but\nthe route command can legitimately parse shorter lengths. This change\ntreats any sockaddr with length less than the address offset as an\nunspecified address (0.0.0.0 for IPv4 or :: for IPv6), as discern by\nmonitoring the route command.\n\nTo replicate the issue, prior to the fix, execute the following:\n\nFirst:\nroute -n monitor\n\nNext:\nsudo route -n add -inet6 -ifscope en11 -net :: \\\n    -netmask :: fe80::2d0:4cff:fe10:15d2\n\nThe route command that is actively monitoring will print something such\nas:\nRTM_ADD: Add Route: len 152, pid: 81198, seq 1, errno 0, ifscope 13, flags:\u003cUP,GATEWAY,DONE,STATIC,IFSCOPE\u003e\nlocks:  inits:\nsockaddrs: \u003cDST,GATEWAY,NETMASK\u003e\n:: fe80::2d0:4cff:fe10:15d2 ::\n\nPrior to the fix, if you had attempted parse the above message, PareRIB\nwould have returned errInvalidAddr which is clearly false.\n\nFixes golang/go#71557\n\nChange-Id: Iec86cc9b05a765b6e67e95a4e30ff31f66f3d17e\nGitHub-Last-Rev: 396d8a27da8d8ade966821f75807861559fec495\nGitHub-Pull-Request: golang/net#231\nReviewed-on: https://go-review.googlesource.com/c/net/+/646556\nCommit-Queue: Ian Lance Taylor \u003ciant@google.com\u003e\nReviewed-by: Damien Neil \u003cdneil@google.com\u003e\nLUCI-TryBot-Result: Go LUCI \u003cgolang-scoped@luci-project-accounts.iam.gserviceaccount.com\u003e\nAuto-Submit: Ian Lance Taylor \u003ciant@google.com\u003e\nReviewed-by: Ian Lance Taylor \u003ciant@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d0e9f415fef581395c93b9c0fdeee463dd601dd1",
      "old_mode": 33188,
      "old_path": "route/address.go",
      "new_id": "279505b1092e34a754d0a9dea801556fd7f64bb4",
      "new_mode": 33188,
      "new_path": "route/address.go"
    },
    {
      "type": "modify",
      "old_id": "55accff9d863c625cd28dd05370183b7ce681cf5",
      "old_mode": 33188,
      "old_path": "route/address_darwin_test.go",
      "new_id": "80f686e97dee3c008663ed6564aeef3588cb1d99",
      "new_mode": 33188,
      "new_path": "route/address_darwin_test.go"
    }
  ]
}
