Skip to content

Conversation

@catenacyber
Copy link
Contributor

#445 with additional commit

To turn 4c2b36da6de0a59451666b8764e66fc222036a35186461cadb96e15a47c03c2b into 6a17e25cd28428d099bb3249a909946b96023cf1d0ea0eeb5e6caf4483021b25 and get closer to libhtp.rs

When a response ends in the middle of a chunk, signal
it to the decompressors to let them finalize the data
they got so far, as is done with content-length.

Do this for all states of chunked content.
If a chunk length line was split in two packets, we buffered
the end of the first packet/beginning of the line, and checked
its validity.
So, do not check further on second packet.
@catenacyber catenacyber mentioned this pull request Mar 13, 2025
@catenacyber
Copy link
Contributor Author

catenacyber commented Mar 13, 2025

when libhtp.rs has 3 more files


5bf6fda88e45ed8b1b37e1731c8a33a9160541e9513088f07b8f885031d1f963
dc9daad4a8f638a67bdfa94ce12ca0fc4121f57d265a93a861720b4184facc13
e59696229cc023d0d11cbd4cb3b534c46c312a2c2f05f35baaf05c22675b5bf5

Passing a gap to a decompressor closes it, but if we also finish
known content-length, we try to reclose decompressor and fail
@catenacyber catenacyber mentioned this pull request Mar 13, 2025
@catenacyber
Copy link
Contributor Author

Next in #447

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant