mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 10:38:53 +08:00
Strictly check occurrence of dynamic table size update
RFC 7541 requires that dynamic table size update must occur at the beginning of the first header block, and is signaled as SETTINGS acknowledgement. This commit checks these conditions. If dynamic table size update appears other than the beginning of the first header block, it is treated as error. If SETTINGS ACK is received, and next HEADERS header block does not have dynamic table size update, it is treated as error.
This commit is contained in:
@@ -326,6 +326,10 @@ int main(int argc _U_, char *argv[] _U_) {
|
||||
test_nghttp2_hd_inflate_clearall_inc) ||
|
||||
!CU_add_test(pSuite, "hd_inflate_zero_length_huffman",
|
||||
test_nghttp2_hd_inflate_zero_length_huffman) ||
|
||||
!CU_add_test(pSuite, "hd_inflate_expect_table_size_update",
|
||||
test_nghttp2_hd_inflate_expect_table_size_update) ||
|
||||
!CU_add_test(pSuite, "hd_inflate_unexpected_table_size_update",
|
||||
test_nghttp2_hd_inflate_unexpected_table_size_update) ||
|
||||
!CU_add_test(pSuite, "hd_ringbuf_reserve",
|
||||
test_nghttp2_hd_ringbuf_reserve) ||
|
||||
!CU_add_test(pSuite, "hd_change_table_size",
|
||||
|
||||
Reference in New Issue
Block a user