)]}'
{
  "commit": "1ec3911dbd19076bcdfe5540096ff67f91a6ec02",
  "tree": "95aac4248cb875f7e3f99b1373fdea5ada061298",
  "parents": [
    "c04306471ad93f1daf60771a0373316d4c3494ae"
  ],
  "author": {
    "name": "Cong Ding",
    "email": "dinggnu@gmail.com",
    "time": "Fri Jan 25 17:48:59 2013 -0600"
  },
  "committer": {
    "name": "Alex Elder",
    "email": "elder@inktank.com",
    "time": "Fri Jan 25 17:48:59 2013 -0600"
  },
  "message": "libceph: fix undefined behavior when using snprintf()\n\nThe variable \"str\" is used as both the source and destination in\nfunction snprintf(), which is undefined behavior based on C11. The\noriginal description in C11 is:\n\t\"If copying takes place between objects that\n\toverlap, the behavior is undefined.\"\n\nAnd, the function of ceph_osdmap_state_str() is to return the osdmap\nstate, so it should return \"doesn\u0027t exist\" when all the conditions\nare not satisfied. I fix it in this patch.\n\n[elder@inktank.com: shortened the commit message]\n\nSigned-off-by: Cong Ding \u003cdinggnu@gmail.com\u003e\nReviewed-by: Alex Elder \u003celder@inktank.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "369f03ba9ee53b5bba477eebb3d0f9932b9544b8",
      "old_mode": 33188,
      "old_path": "net/ceph/osdmap.c",
      "new_id": "3c61e21611d3c5a5e666c9bf6c46126ea95f927b",
      "new_mode": 33188,
      "new_path": "net/ceph/osdmap.c"
    }
  ]
}
