]> git.kaiwu.me - nginx.git/commit
HTTP/3: fixed dynamic table overflow.
authorRoman Arutyunyan <arut@nginx.com>
Tue, 28 May 2024 13:18:50 +0000 (17:18 +0400)
committerRoman Arutyunyan <arut@nginx.com>
Tue, 28 May 2024 13:18:50 +0000 (17:18 +0400)
commit3f2d8cb8f92d3c3468478651b58607f1576a12ac
tree08299a4098078dae6f98d4a18a1a800b7e42a89f
parent326150b82d5a345dfb8799f2f52e987760ea242e
HTTP/3: fixed dynamic table overflow.

While inserting a new entry into the dynamic table, first the entry is added,
and then older entries are evicted until table size is within capacity.  After
the first step, the number of entries may temporarily exceed the maximum
calculated from capacity by one entry, which previously caused table overflow.

The easiest way to trigger the issue is to keep adding entries with empty names
and values until first eviction.

The issue was introduced by 987bee4363d1.
src/http/v3/ngx_http_v3_table.c