TechnikEmpire / HttpFilteringEngine

Transparent filtering TLS proxy.
Mozilla Public License 2.0
60 stars 33 forks source link

Compression methods in BaseHttpTransaction use wrong size #30

Closed TechnikEmpire closed 8 years ago

TechnikEmpire commented 8 years ago

Compression/decompression methods use the ::size() member of the m_transactionData vector instead of checking m_unwrittenPayloadSize. ::size() is unreliable because the payload storage vector is almost always going to be larger than actual valid data, due to how the buffer works.

Also, m_unwrittenPayloadSize. is not adjusted to reflect the size of the decompressed payload.

Fixed in next commit.