mirror of
https://github.com/nginx/nginx.git
synced 2026-05-13 17:46:53 +00:00
Resolver: fixed off-by-one read in ngx_resolver_copy().
It is believed to be harmless, see a similar change 077a890a76.
Reported-by: geeknik <geeknik@protonmail.ch>
This commit is contained in:
parent
bb8ec295ab
commit
edb4d2ffa7
1 changed files with 1 additions and 1 deletions
|
|
@ -2757,7 +2757,7 @@ ngx_resolver_process_srv(ngx_resolver_t *r, u_char *buf, size_t n,
|
|||
|
||||
case NGX_RESOLVE_SRV:
|
||||
|
||||
if (i + 6 > n) {
|
||||
if (i + 6 >= n) {
|
||||
goto short_response;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue