)]}'
{
  "commit": "8aa8a7c80ccdfac2df5ee48a51a4a7bee2143d4f",
  "tree": "605e7196aa1c53aece78e3dfc897c7030e53af14",
  "parents": [
    "87e24f4b67e68d9fd8df16e0bf9c66d1ad2a2533"
  ],
  "author": {
    "name": "Stephane Eranian",
    "email": "eranian@google.com",
    "time": "Tue Mar 13 16:51:02 2012 +0100"
  },
  "committer": {
    "name": "Ingo Molnar",
    "email": "mingo@elte.hu",
    "time": "Tue Mar 13 17:01:28 2012 +0100"
  },
  "message": "perf record: Fix buffer overrun bug in tracepoint_id_to_path()\n\nThis patch fixes a buffer overrun bug in\ntracepoint_id_to_path(). The bug manisfested itself as a memory\nerror reported by perf record. I ran into it with perf sched:\n\n $ perf sched rec noploop 2 noploop for 2 seconds\n [ perf record: Woken up 14 times to write data ]\n [ perf record: Captured and wrote 42.701 MB perf.data (~1865622 samples) ]\n Fatal: No memory to alloc tracepoints list\n\nIt turned out that tracepoint_id_to_path() was reading the\ntracepoint id using read() but the buffer was not large enough\nto include the \\n terminator for id with 4 digits or more.\n\nThe patch fixes the problem by extending the buffer to a more\nreasonable size covering all possible id length include \\n\nterminator. Note that atoll() stops at the first non digit\ncharacter, thus it is not necessary to clear the buffer between\neach read.\n\nSigned-off-by: Stephane Eranian \u003ceranian@google.com\u003e\nAcked-by: Arnaldo Carvalho de Melo \u003cacme@redhat.com\u003e\nAcked-by: Peter Zijlstra \u003ca.p.zijlstra@chello.nl\u003e\nCc: fweisbec@gmail.com\nCc: dsahern@gmail.com\nLink: http://lkml.kernel.org/r/20120313155102.GA6465@quad\nSigned-off-by: Ingo Molnar \u003cmingo@elte.hu\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b029296d20d9dfc3c8bd85fb563d7d404c9cb5a1",
      "old_mode": 33188,
      "old_path": "tools/perf/util/parse-events.c",
      "new_id": "c7a6f6faf91e4e15e326c7dd03d8aabe4a197c08",
      "new_mode": 33188,
      "new_path": "tools/perf/util/parse-events.c"
    }
  ]
}
