mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1019577 - Always make room in the table before emitting an entry. r=mcmanus
This commit is contained in:
parent
332d19fd0a
commit
69ee33ce36
@ -1470,10 +1470,17 @@ Http2Compressor::ProcessHeader(const nvPair inputPair, bool neverIndex)
|
||||
return;
|
||||
}
|
||||
|
||||
// Need to ensure we have room for a new static entry before emitting
|
||||
// anything, see bug 1019577
|
||||
bool isStatic = (matchedIndex >= mHeaderTable.VariableLength());
|
||||
if (isStatic) {
|
||||
MakeRoom(newSize);
|
||||
}
|
||||
|
||||
// emit an index to add to reference set
|
||||
DoOutput(kToggleOn, &inputPair, matchedIndex);
|
||||
if (matchedIndex >= mHeaderTable.VariableLength()) {
|
||||
MakeRoom(newSize);
|
||||
|
||||
if (isStatic) {
|
||||
mHeaderTable.AddElement(inputPair.mName, inputPair.mValue);
|
||||
IncrementReferenceSetIndices();
|
||||
mAlternateReferenceSet.AppendElement(0);
|
||||
|
Loading…
Reference in New Issue
Block a user