)]}'
{
  "commit": "74d939974d430a2c2e71b0134114d2a7b04dcc20",
  "tree": "1075b540cf68d2df6b9670a85cd49851a0fd0250",
  "parents": [
    "9114f08863cd6dd8a523a843fcf9be2a4518d60b"
  ],
  "author": {
    "name": "Maxim Dounin",
    "email": "mdounin@mdounin.ru",
    "time": "Fri May 11 13:19:22 2012 +0000"
  },
  "committer": {
    "name": "Maxim Dounin",
    "email": "mdounin@mdounin.ru",
    "time": "Fri May 11 13:19:22 2012 +0000"
  },
  "message": "Rewrite: fixed escaping and possible segfault (ticket #162).\n\nThe following code resulted in incorrect escaping of uri and possible\nsegfault:\n\n    location / {\n        rewrite ^(.*) $1?c\u003d$1;\n        return 200 \"$uri\";\n    }\n\nIf there were arguments in a rewrite\u0027s replacement string, and length was\nactually calculated (due to duplicate captures as in the example above,\nor variables present), the is_args flag was set and incorrectly copied\nafter length calculation.  This resulted in escaping applied to the uri part\nof the replacement, resulting in incorrect escaping.  Additionally, buffer\nwas allocated without escaping expected, thus this also resulted in buffer\noverrun and possible segfault.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ce290f4ef67b708052af65b265ee0ac04111a944",
      "old_mode": 33188,
      "old_path": "src/http/ngx_http_script.c",
      "new_id": "e214519fca00466920ff6c556ac6a7d71853102f",
      "new_mode": 33188,
      "new_path": "src/http/ngx_http_script.c"
    }
  ]
}
