maskit commented on issue #11588:
URL: 
https://github.com/apache/trafficserver/issues/11588#issuecomment-2269974383

   I think this code is wrong.
   
https://github.com/apache/trafficserver/blob/94dfd0e0f571a4e91bb0bcaa49af1c039db94e31/src/proxy/hdrs/XPACK.cc#L507-L509
   
   If `_entries_head` is `sizeof(_entries) - 1` (i.e. the max index number), 
the while loop keeps removing entries until `extra_space_needed` becomes larger 
than `freed`. I'm not sure if this is the cause of the crash, but it explains 
why the `_available` is a bit larger than `_requrired`.
   
   The correct condition is probably `this->_entries_head == tail`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to