This is an automated email from the ASF dual-hosted git repository.

JosiahWI pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 082e87545e Track remaining length while decoding qpack header block 
(#13361)
082e87545e is described below

commit 082e87545eeeb6141b492d833d298dab2f9e03d5
Author: Javid Khan <[email protected]>
AuthorDate: Tue Jul 7 05:45:12 2026 +0530

    Track remaining length while decoding qpack header block (#13361)
---
 src/proxy/http3/QPACK.cc | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/proxy/http3/QPACK.cc b/src/proxy/http3/QPACK.cc
index dfdd2d278b..1469d69de1 100644
--- a/src/proxy/http3/QPACK.cc
+++ b/src/proxy/http3/QPACK.cc
@@ -923,6 +923,7 @@ QPACK::_decode_header(const uint8_t *header_block, size_t 
header_block_len, HTTP
     return -1;
   }
   pos                        += ret;
+  remain_len                 -= ret;
   uint16_t largest_reference  = tmp;
 
   uint64_t delta_base_index;
@@ -939,7 +940,8 @@ QPACK::_decode_header(const uint8_t *header_block, size_t 
header_block_len, HTTP
   } else {
     base_index = largest_reference + delta_base_index;
   }
-  pos += ret;
+  pos        += ret;
+  remain_len -= ret;
 
   uint32_t decoded_header_list_size = 0;
 
@@ -969,7 +971,8 @@ QPACK::_decode_header(const uint8_t *header_block, size_t 
header_block_len, HTTP
       break;
     }
 
-    pos += ret;
+    pos        += ret;
+    remain_len -= ret;
   }
 
   return ret;

Reply via email to