The official NGINX Open Source repository.
Go to file
Maxim Dounin f09eae2a75 Fixed incorrect length handling in ngx_utf8_length().
Previously, ngx_utf8_decode() was called from ngx_utf8_length() with
incorrect length, potentially resulting in out-of-bounds read when
handling invalid UTF-8 strings.

In practice out-of-bounds reads are not possible though, as autoindex, the
only user of ngx_utf8_length(), provides null-terminated strings, and
ngx_utf8_decode() anyway returns an errors when it sees a null in the
middle of an UTF-8 sequence.

Reported by Yunbin Liu.
2019-04-15 20:14:07 +03:00
auto Win32: defined pdb path. 2019-04-04 19:30:47 +03:00
conf MIME: added font/woff2 type (ticket #1243). 2018-06-15 17:29:55 +03:00
contrib Contrib: vim syntax, update core and 3rd party module directives. 2018-12-24 16:30:10 +02:00
docs nginx-1.15.11-RELEASE 2019-04-09 16:00:30 +03:00
misc Win32: avoid using CFLAGS, just add define instead. 2019-04-04 22:56:41 +03:00
src Fixed incorrect length handling in ngx_utf8_length(). 2019-04-15 20:14:07 +03:00
.hgtags release-1.15.11 tag 2019-04-09 16:00:30 +03:00