-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Potential Infinite loop in evict_to_internal function #2306
Comments
The reporter on Bugzilla is hinting at this code: Lines 263 to 285 in 922d266
Off the top of my head I see the following scenario:
This would lead to The following should fix the issue: diff --git a/neqo-qpack/src/table.rs b/neqo-qpack/src/table.rs
index 8c8b8d5e..abea8be2 100644
--- a/neqo-qpack/src/table.rs
+++ b/neqo-qpack/src/table.rs
@@ -260,6 +260,7 @@ impl HeaderTable {
self.evict_to_internal(reduce, true)
}
pub fn evict_to_internal(&mut self, reduce: u64, only_check: bool) -> bool {
qtrace!(
[self],
@@ -278,6 +279,8 @@ impl HeaderTable {
if !only_check {
self.used -= u64::try_from(e.size()).unwrap();
self.dynamic.pop_back();
+ } else {
+ return true;
}
}
} I will give this more thought and try to reproduce it in a unit test. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See bug 1939690 comment 4.
I've asked the reporter to provide STR. It's still not clear how easy this can be triggered.
The text was updated successfully, but these errors were encountered: