diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2023-05-01 19:16:05 +0400 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2023-05-01 19:16:05 +0400 |
commit | 1a8ef991d92d22eb8aded7f49595dd31a639e8a4 (patch) | |
tree | 3bd3644b2fece440fde318a14ae3aa9501a3674b /docs/man/nginx.8 | |
parent | 25c546ac37ba622b93c1a7075bd7eb447bac17b2 (diff) | |
download | nginx-master.tar.gz |
Variables: avoid possible buffer overrun with some "$sent_http_*".HEADmasterbranches/default
The existing logic to evaluate multi header "$sent_http_*" variables,
such as $sent_http_cache_control, as previously introduced in 1.23.0,
doesn't take into account that one or more elements can be cleared,
yet still present in a linked list, pointed to by the next field.
Such elements don't contribute to the resulting variable length, an
attempt to append a separator for them ends up in out of bounds write.
This is not possible with standard modules, though at least one third
party module is known to override multi header values this way, so it
makes sense to harden the logic.
The fix restores a generic boundary check.
Diffstat (limited to 'docs/man/nginx.8')
0 files changed, 0 insertions, 0 deletions