]> git.kaiwu.me - nginx.git/commit
Fixed ssi and perl interaction.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 15 Mar 2012 11:23:07 +0000 (11:23 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 15 Mar 2012 11:23:07 +0000 (11:23 +0000)
commit030e235ec70868469cb6aaf01f25fc29d579e028
tree04c937dbec32f2b6c56041bf59d26692bd059f30
parent205394e6f90c8aa2aac000e46d4b7a1eff5bbfd2
Fixed ssi and perl interaction.

Embedded perl module assumes there is a space for terminating NUL character,
make sure to provide it in all situations by allocating one extra byte for
value buffer.  Default ssi_value_length is reduced accordingly to
preserve 256 byte allocations.

While here, fixed another one byte value buffer overrun possible in
ssi_quoted_symbol_state.

Reported by Matthew Daley.
src/http/modules/ngx_http_ssi_filter_module.c