Skip to content

Conversation

@artemredkin
Copy link
Collaborator

Fixes malformed cookie parsing, closes #209.

Motivation:
We do not check that cookie component name could be empty, assuming that split array is not empty, that could lead to crash.

Modifications:

  1. return empty pairs if split array is empty
  2. add a test

Result:
Cookie parsing is more robust.

@artemredkin artemredkin requested review from Lukasa and weissi May 13, 2020 13:23
@artemredkin
Copy link
Collaborator Author

@swift-server-bot test this please

@artemredkin artemredkin merged commit 0fbfdcc into master May 13, 2020
@artemredkin artemredkin deleted the fix_malformed_cookie_parsing branch May 13, 2020 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Untimely client termination on malformed Set-Cookie values

2 participants