Skip to content

Fuzzer: bad URL gives response [BTS-2178] #21866

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

Open
wants to merge 3 commits into
base: devel
Choose a base branch
from

Conversation

neunhoef
Copy link
Member

This is about https://arangodb.atlassian.net/browse/BTS-2178 .

  • Proper response if URL is bad.
  • CHANGELOG.

Scope & Purpose

(Please describe the changes in this PR for reviewers, motivation, rationale - mandatory)

  • [*] 💩 Bugfix

Checklist

  • [*] Tests:
    • [*] integration tests
  • [*] 📖 CHANGELOG entry made
  • [*] Backports: none planned

neunhoef added 2 commits July 17, 2025 15:43
This was discovered by the fuzzer. BTS-2178.
@neunhoef neunhoef added this to the devel milestone Jul 17, 2025
@cla-bot cla-bot bot added the cla-signed label Jul 17, 2025
@neunhoef neunhoef self-assigned this Jul 17, 2025
@@ -331,7 +331,8 @@ bool HttpCommTask<T>::readCallback(asio_ns::error_code ec) {

err = llhttp_execute(&_parser, data, datasize);
if (err != HPE_OK) {
if (err == HPE_INVALID_HEADER_TOKEN) {
if (err == HPE_INVALID_HEADER_TOKEN || err == HPE_INVALID_URL ||
err == HPE_UNEXPECTED_CONTENT_LENGTH) {
_headerCorrupt = true;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you also need to close the if brackets again?

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

Successfully merging this pull request may close these issues.

3 participants