)]}'
{
  "commit": "94de803db748b902a9442fcfd7aad31a2fde43b7",
  "tree": "ba5aa9e86b625eb9abdbab29c75218d6ee975b5e",
  "parents": [
    "710708e82bfbdd392ebdef5743e68fef0fde91a6"
  ],
  "author": {
    "name": "Julia Lawall",
    "email": "julia@diku.dk",
    "time": "Sun Dec 13 01:41:29 2009 +0000"
  },
  "committer": {
    "name": "David S. Miller",
    "email": "davem@davemloft.net",
    "time": "Sun Dec 13 19:56:34 2009 -0800"
  },
  "message": "drivers/net/sfc: Correct code taking the size of a pointer\n\nThe function efx_iterate_state contains the code\nmemcpy(\u0026payload-\u003emsg, payload_msg, sizeof(payload_msg));\nThis is the only use of payload_msg.  The type of payload_msg is\nchanged from a pointer to an array, so that the result of sizeof really is\nthe length of the string.\n\nA simplified version of the semantic patch that finds this problem is as\nfollows: (http://coccinelle.lip6.fr/)\n\n// \u003csmpl\u003e\n@@\nexpression *x;\nexpression f;\ntype T;\n@@\n\n*f(...,(T)x,...)\n// \u003c/smpl\u003e\n\nSigned-off-by: Julia Lawall \u003cjulia@diku.dk\u003e\nSigned-off-by: David S. Miller \u003cdavem@davemloft.net\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "14949bb303a0bca7e87d4fea48e6e4f69d6eca0c",
      "old_mode": 33188,
      "old_path": "drivers/net/sfc/selftest.c",
      "new_id": "af3933579790f8aacc4302f193729552efea4fb2",
      "new_mode": 33188,
      "new_path": "drivers/net/sfc/selftest.c"
    }
  ]
}
