SpiderLabs/ModSecurity — pull request #148 by zimmerle (2013-10-01 02:22:03+00:00)
Title: Bugfix: missing string terminator while mounting the charset (nginx)

The charset in headers is mounted using ngx_snprintf which
does not place the string terminator. This patch adds the
terminator at the end of the string. The size was correctly
allocated, just missing the terminator.

This bug was report at:
- https://www.modsecurity.org/tracker/browse/MODSEC-420
- https://github.com/SpiderLabs/ModSecurity/issues/142

Both reports comes with patch, first by Veli Pekka Jutila and
second by wellumies.