]> git.kaiwu.me - nginx.git/commit
Fixed segfault with filter_finalize introduced in r4621 (1.3.0).
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 17 May 2012 17:41:40 +0000 (17:41 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 17 May 2012 17:41:40 +0000 (17:41 +0000)
commitd2143f11cbb3e1502e75d2e771aed1e79be7d612
treea3f55788909eb40465539e896aabf1157d6a3c08
parent430ab81a7277106fe27278782d05fdf8f69bfc4a
Fixed segfault with filter_finalize introduced in r4621 (1.3.0).

Example configuration to reproduce:

    location /image/ {
        error_page 415 = /zero;
        image_filter crop 100 100;
        proxy_pass http://127.0.0.1:8080;
        proxy_store on;
    }

    location /zero {
        return 204;
    }

The problem appeared if upstream returned (big enough) non-image file,
causing 415 to be generated by image filter.
src/http/ngx_http_request.c