)]}'
{
  "commit": "af514777f4327932a3e84f83d79e941967503e15",
  "tree": "68ddb2e6dd758b2c50f3a4facea1dfc925460312",
  "parents": [
    "6d729eeac91578dca29961e0e46f246f33c37f0c"
  ],
  "author": {
    "name": "Jorge Boncompte [DTI2]",
    "email": "jorge@dti2.net",
    "time": "Wed Jul 31 16:16:05 2013 +0000"
  },
  "committer": {
    "name": "David Lamparter",
    "email": "equinox@opensourcerouting.org",
    "time": "Tue Apr 01 17:14:44 2014 +0200"
  },
  "message": "lib: fix possible off-by-one in stream_put_prefix()\n\nThe STREAM_WRITEABLE() call only checks if there is space for the\nprefix in the stream but does not account for the prefixlen. The\nstream_putc() call reduces available space by 1 and we can end\ncopying one byte too much and with \"endp\" off by one if we are\nnear the buffer end.\n\nInstead of moving the stream_putc() call before STREAM_WRITEABLE(),\nwe check before hand for the required space, and open-code it. This\navoids a function call and verifying again the stream buffer.\n\nSigned-off-by: Jorge Boncompte [DTI2] \u003cjorge@dti2.net\u003e\nSigned-off-by: David Lamparter \u003cequinox@opensourcerouting.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ee2920e64796a8d655c3e7974c81b2e0d2466f6c",
      "old_mode": 33188,
      "old_path": "lib/stream.c",
      "new_id": "ccd4623ff16f4c542fc44278dcb51393024c048a",
      "new_mode": 33188,
      "new_path": "lib/stream.c"
    }
  ]
}
