aboutsummaryrefslogtreecommitdiff
path: root/src/stream/ngx_stream_script.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2019-04-15 20:14:07 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2019-04-15 20:14:07 +0300
commitf09eae2a7586c5149fe7eaa497c8ff1be684270f (patch)
tree2df53cfd90a3d3cc337f2867aec447c2b4f59109 /src/stream/ngx_stream_script.c
parent5784889fb907485978919b91c2c7f6bf0c4843e3 (diff)
downloadnginx-f09eae2a7586c5149fe7eaa497c8ff1be684270f.tar.gz
nginx-f09eae2a7586c5149fe7eaa497c8ff1be684270f.zip
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.
Diffstat (limited to 'src/stream/ngx_stream_script.c')
0 files changed, 0 insertions, 0 deletions