)]}'
{
  "commit": "f796937a062c7aeb44cd0e75e1586c8543634a7d",
  "tree": "c3cfcbb27e291621e31cff71288f3e82d8b149a8",
  "parents": [
    "891c668b90ded38cec36f0852c4983573597170d"
  ],
  "author": {
    "name": "Jeremy Fitzhardinge",
    "email": "jeremy@xensource.com",
    "time": "Sun Jun 25 05:49:17 2006 -0700"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@g5.osdl.org",
    "time": "Sun Jun 25 10:01:23 2006 -0700"
  },
  "message": "[PATCH] Fix bounds check in vsnprintf, to allow for a 0 size and NULL buffer\n\nThis change allows callers to use a 0-byte buffer and a NULL buffer pointer\nwith vsnprintf, so it can be used to determine how large the resulting\nformatted string will be.\n\nPreviously the code effectively treated a size of 0 as a size of 4G (on\n32-bit systems), with other checks preventing it from actually trying to\nemit the string - but the terminal \\0 would still be written, which would\ncrash if the buffer is NULL.\n\nThis change changes the boundary check so that \u0027end\u0027 points to the putative\nlocation of the terminal \u0027\\0\u0027, which is only written if size \u003e 0.\n\nvsnprintf still allows the buffer size to be set very large, to allow\nunbounded buffer sizes (to implement sprintf, etc).\n\n[akpm@osdl.org: fix long-vs-longlong confusion]\nSigned-off-by: Jeremy Fitzhardinge \u003cjeremy@xensource.com\u003e\nSigned-off-by: Chris Wright \u003cchrisw@sous-sol.org\u003e\nSigned-off-by: Andrew Morton \u003cakpm@osdl.org\u003e\nSigned-off-by: Linus Torvalds \u003ctorvalds@osdl.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b07db5ca3f66febf20041ac5a6606d097dea2a15",
      "old_mode": 33188,
      "old_path": "lib/vsprintf.c",
      "new_id": "f5959476e53d8e814efda819f684373c85d305af",
      "new_mode": 33188,
      "new_path": "lib/vsprintf.c"
    }
  ]
}
