From 85064d793a5429530022c9b2367105464fd9bac1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bence=20B=C3=A9ky?= Date: Tue, 30 Jul 2019 13:34:19 -0400 Subject: [PATCH] Modify pseudo-code to enforce that zero must be encoded as zero. --- draft-ietf-quic-qpack.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/draft-ietf-quic-qpack.md b/draft-ietf-quic-qpack.md index daa77f930b..f47cd99be8 100644 --- a/draft-ietf-quic-qpack.md +++ b/draft-ietf-quic-qpack.md @@ -901,9 +901,13 @@ table. # If ReqInsertCount exceeds MaxValue, the Encoder's value # must have wrapped one fewer time if ReqInsertCount > MaxValue: - if ReqInsertCount < FullRange: + if ReqInsertCount <= FullRange: Error ReqInsertCount -= FullRange + + # Value of 0 must be encoded as 0. + if ReqInsertCount == 0: + Error ~~~ For example, if the dynamic table is 100 bytes, then the Required Insert Count