)]}'
{
  "commit": "7318c966b31bc550f9ee17d3b84bed4193c3a1d6",
  "tree": "fc6a343b25c01887202a358e32c52f5615081909",
  "parents": [
    "788f87fc7715536a7669df294b30e949dd6a9ec7"
  ],
  "author": {
    "name": "Maxim Dounin",
    "email": "mdounin@mdounin.ru",
    "time": "Tue May 31 05:13:30 2016 +0300"
  },
  "committer": {
    "name": "Maxim Dounin",
    "email": "mdounin@mdounin.ru",
    "time": "Tue May 31 05:13:30 2016 +0300"
  },
  "message": "Core: skip special buffers on writing (ticket #981).\n\nA special last buffer with cl-\u003ebuf-\u003epos set to NULL can be present in\na chain when writing request body if chunked encoding was used.  This\nresulted in a NULL pointer dereference if it happened to be the only\nbuffer left after a do...while loop iteration in ngx_write_chain_to_file().\n\nThe problem originally appeared in nginx 1.3.9 with chunked encoding\nsupport.  Additionally, rev. 3832b608dc8d (nginx 1.9.13) changed the\nminimum number of buffers to trigger this from IOV_MAX (typically 1024)\nto NGX_IOVS_PREALLOCATE (typically 64).\n\nFix is to skip such buffers in ngx_chain_to_iovec(), much like it is\ndone in other places.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "65c79a24139711677308ac9456608b408e99e9a7",
      "old_mode": 33188,
      "old_path": "src/os/unix/ngx_files.c",
      "new_id": "7fbb7c9a795476f4ec311166ea9b9260437de3a9",
      "new_mode": 33188,
      "new_path": "src/os/unix/ngx_files.c"
    }
  ]
}
